@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #07111f;
    --bg-soft: rgba(255, 255, 255, 0.05);
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.12);
    --text: #f4f7fb;
    --muted: #9fb0c7;
    --primary: #4f8cff;
    --primary-soft: #7eb2ff;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at top left, #10233f 0%, #07111f 35%),
        linear-gradient(180deg, #07111f 0%, #050b14 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

.section {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 90px 0;
}

.bg-blur {
    position: fixed;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.bg1 {
    background: #3d7bff;
    top: -60px;
    left: -80px;
}

.bg2 {
    background: #6f42ff;
    bottom: 0;
    right: -100px;
}

.hero {
    width: min(1200px, calc(100% - 40px));
    margin: 20px auto 0;
    position: relative;
    z-index: 1;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.menu {
    list-style: none;
    display: flex;
    gap: 22px;
}

.menu a {
    color: var(--muted);
    transition: 0.25s ease;
    font-size: 15px;
}

.menu a:hover {
    color: var(--text);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 70px 10px 40px;
}

.mini-title {
    color: var(--primary-soft);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.hero-text h1 {
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text h2 {
    font-size: clamp(20px, 4vw, 28px);
    color: #dce8ff;
    margin-bottom: 18px;
    font-weight: 500;
}

.hero-desc {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    max-width: 620px;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary), #6aa7ff);
    color: white;
    box-shadow: 0 14px 30px rgba(79, 140, 255, 0.3);
}

.btn.primary:hover {
    transform: translateY(-3px);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-image {
    position: relative;
}

.hero-image img {
    height: 520px;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.section-title span {
    font-size: 14px;
    color: var(--primary-soft);
    border: 1px solid rgba(126, 178, 255, 0.25);
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(79, 140, 255, 0.08);
}

.section-title h3 {
    font-size: 30px;
    font-weight: 700;
}

.about-box {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
    align-items: center;
}

.about-image img {
    height: 400px;
    object-fit: cover;
    border-radius: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.about-text {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.about-text p {
    color: var(--muted);
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.skill-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(79, 140, 255, 0.4);
}

.skill-card h4 {
    font-size: 22px;
    margin-bottom: 12px;
    color: white;
}

.skill-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}

.project-list {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 18px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
    min-height: 180px;
    transition: 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.project-card.large {
    grid-row: span 2;
    padding: 16px;
    overflow: hidden;
}

.project-image img {
    height: 250px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.project-card h4 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 15px;
}

.contact-box {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.04));
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 34px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-box p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 22px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-links a {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #e8f0ff;
    transition: 0.25s ease;
}

.contact-links a:hover {
    background: rgba(79, 140, 255, 0.12);
    border-color: rgba(79, 140, 255, 0.35);
    transform: translateY(-3px);
}

.footer {
    text-align: center;
    padding: 30px 15px 50px;
    color: #8ca0bb;
    font-size: 14px;
}

@media (max-width: 980px) {
    .hero-content,
    .about-box,
    .skills-grid,
    .project-list {
        grid-template-columns: 1fr;
    }

    .hero-image img,
    .about-image img {
        height: 380px;
    }

    .project-card.large {
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 14px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-content {
        padding-top: 40px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-text h2 {
        font-size: 22px;
    }

    .about-text,
    .skill-card,
    .project-card,
    .contact-box {
        padding: 22px;
    }

    .section {
        padding: 70px 0;
    }
}
