.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.8rem 9%;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s, box-shadow 0.3s;
}

.header.sticky {
    box-shadow: var(--shadow-sm);
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--main-color);
    cursor: pointer;
    letter-spacing: -0.02em;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.navbar a {
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: 0.7rem 1.3rem;
    border-radius: 0.6rem;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--main-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 50%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.8rem;
    height: 3.8rem;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 0.8rem;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--main-color);
    border-color: var(--main-color);
    background: var(--accent-glow-soft);
}

#menu-icon {
    font-size: 3rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
}

.home {
    position: relative;
    height: 100vh;
    min-height: 60rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 9%;
    gap: 4rem;
    background: var(--gradient-hero);
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 238, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 238, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.home::after {
    content: '';
    position: absolute;
    width: 45rem;
    height: 45rem;
    background: radial-gradient(circle, rgba(0, 238, 255, 0.08) 0%, transparent 70%);
    right: 5%;
    bottom: -10%;
    pointer-events: none;
    z-index: 0;
}

.home-content {
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 56rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-content .greeting {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.home-content .greeting span {
    color: var(--main-color);
}

.home-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-color);
}

.home-content .role-line {
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
}

.home-content .role-line .multiple-text {
    color: var(--main-color);
    min-width: 20rem;
    display: inline-block;
}

.home-content .bio {
    font-size: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 50rem;
}

/* Stat counters */
.home-stats {
    display: flex;
    gap: 2.5rem;
    padding: 1.4rem 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 1.2rem;
    width: fit-content;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1;
}

.stat-label {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    background: var(--border-subtle);
    align-self: stretch;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.2rem;
    height: 4.2rem;
    background: transparent;
    border: 1.5px solid var(--border-color);
    border-radius: 0.8rem;
    font-size: 2rem;
    color: var(--main-color);
    transition: all 0.3s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: #111;
    box-shadow: var(--shadow-accent);
    transform: translateY(-3px);
    border-color: var(--main-color);
}

.btn-group {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.1rem 2.8rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.5rem;
    color: #0a1628;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--accent-glow);
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--accent-glow);
    filter: brightness(1.08);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--main-color);
    color: var(--main-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    color: #0a1628;
    border-color: var(--main-color);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.home-img {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    animation: floatWrapper 6s ease-in-out infinite;
}

@keyframes floatWrapper {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.home-img .img-wrapper {
    position: relative;
    width: 36rem;
    height: 40rem;
}

.home-img .img-frame {
    position: absolute;
    inset: -1.4rem;
    border-radius: 3rem;
    border: 2px dashed rgba(0, 238, 255, 0.25);
    z-index: -1;
    animation: spinSlow 18s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.home-img .img-border {
    position: absolute;
    inset: -0.6rem;
    border-radius: 2.6rem;
    background: linear-gradient(145deg, var(--main-color), transparent 50%, transparent 70%, var(--main-color));
    z-index: 0;
    opacity: 0.55;
}

.home-img img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 2.4rem;
    border: none;
    display: block;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 238, 255, 0.12),
        inset 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.home-img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48rem;
    height: 48rem;
    background: radial-gradient(circle, var(--accent-glow-medium) 0%, transparent 65%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

.img-badge {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.2rem;
    padding: 1rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 3;
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.img-badge-icon {
    width: 3.6rem;
    height: 3.6rem;
    background: var(--accent-glow-soft);
    border: 1px solid var(--border-color);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--main-color);
    flex-shrink: 0;
}

.img-badge-text strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
}

.img-badge-text span {
    font-size: 1.1rem;
    color: var(--text-muted);
    color: initial;
}

.img-badge-text .badge-label {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.badge-exp {
    bottom: 2.5rem;
    right: -4rem;
}

.badge-avail {
    top: 2rem;
    left: -4rem;
}

.status-dot {
    width: 0.9rem;
    height: 0.9rem;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 6px #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.3);
    }
}

section {
    min-height: 100vh;
    padding: 10rem 9%;
}

.heading {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
}

.heading span {
    color: var(--main-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 5rem;
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 4.6rem;
    height: 4.6rem;
    background: var(--main-color);
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #0a1628;
    box-shadow: var(--shadow-accent);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.35s ease;
    z-index: 500;
    border: none;
    font-weight: 900;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent-strong);
}

@media (max-width: 1200px) {
    html {
        font-size: 56%;
    }

    .home-img .img-wrapper {
        width: 30rem;
        height: 33rem;
    }

    .badge-avail {
        left: -2rem;
        top: 1rem;
    }

    .badge-exp {
        right: -2rem;
        bottom: 1rem;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 1.8rem 4%;
    }

    section {
        padding: 10rem 4% 5rem;
    }

    .home {
        height: auto;
        min-height: 100vh;
        padding: 10rem 4% 6rem;
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 4rem;
    }

    .home-content {
        max-width: 100%;
        align-items: center;
    }

    .home-content .bio {
        max-width: 100%;
    }

    .home-content .role-line {
        justify-content: center;
    }

    .home-stats {
        margin: 0 auto;
    }

    .social-media {
        justify-content: center;
    }

    .btn-group {
        justify-content: center;
    }

    .home-img .img-wrapper {
        width: 24rem;
        height: 28rem;
    }

    .home-img::before {
        width: 34rem;
        height: 34rem;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: flex;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 4%;
        background: var(--navbar-mobile-bg);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        display: none;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        font-size: 1.8rem;
        padding: 1rem 1.2rem;
        width: 100%;
    }

    .home-content h1 {
        font-size: 4.4rem;
    }

    .home-content .role-line {
        font-size: 1.9rem;
        white-space: normal;
    }

    .home-content .role-line .multiple-text {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 52%;
    }

    .home-content h1 {
        font-size: 3.8rem;
    }

    .home-stats {
        gap: 1.5rem;
        padding: 1.2rem 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-img .img-wrapper {
        width: 20rem;
        height: 24rem;
    }

    .img-badge {
        display: none;
    }

    .home-img::before {
        width: 28rem;
        height: 28rem;
    }
}