/* --- Nav --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 2rem;
}

nav .nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 2rem;
}

nav .nav-inner .logo {
    margin-right: auto;
}

nav .logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 100px;
    width: 100px;
}

nav .nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav .nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav .nav-links a:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-cta {
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 60px;
    position: relative;
}

.hero-heading {
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    transform: translateY(-60%);
    z-index: 2;
    pointer-events: none;
}

.hero-inner {
    display: flex;
    align-items: flex-end;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero .profile-photo {
    width: 420px;
    height: 520px;
    border-radius: 0;
    object-fit: cover;
    border: none;
    flex-shrink: 0;
    object-position: center top;
    transform: scale(1.15);
    transform-origin: center top;
    overflow: hidden;
}

.hero-inner.no-photo .profile-photo {
    display: none;
}

.hero-text {
    flex: 1;
    padding-bottom: 1rem;
}

.hero .greeting {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #ff6b35, #f9a825, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero .cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- About Layout --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* --- Grid Layouts --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 42, 0.95);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border);
    }

    nav .nav-links.open {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 4rem 1.25rem 2rem;
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
    }

    .hero .profile-photo {
        width: 220px;
        height: 280px;
    }

    .chat-iframe {
        height: 450px;
    }
}
