:root {
    --bg: #070b14;
    --bg2: #0f172a;
    --blue: #4f9cff;
    --orange: #ff8a1f;
    --text: #f8fafc;
    --muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, sans-serif;
    background: linear-gradient(135deg, var(--bg), var(--bg2));
    color: var(--text);
    overflow-x: hidden;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
    z-index: -1;
    animation: float 16s ease-in-out infinite;
}

.orb1 {
    width: 400px;
    height: 400px;
    background: var(--blue);
    top: -100px;
    left: -100px;
}

.orb2 {
    width: 350px;
    height: 350px;
    background: var(--orange);
    right: -100px;
    top: 100px;
}

.orb3 {
    width: 300px;
    height: 300px;
    background: var(--blue);
    bottom: -100px;
    left: 40%;
}

@keyframes float {
    50% {
        transform: translateY(40px);
    }
}

/* Navbar navigation */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1100px, 92%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    z-index: 1000;
}

.logo {
    font-weight: 800;
}

.logo span,
.tag {
    color: var(--orange);
}

.links {
    display: flex;
    gap: 24px;
}

.links a,
a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section Base */
.hero {
    max-width: 1200px;
    margin: auto;
    padding: 140px 5% 80px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    min-height: 100vh;
    align-items: center;
}

.hero h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: .95;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--blue), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--muted);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 25px 0;
}

.badge {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    margin-bottom: 24px;
}

.hero-panel,
.card,
.stat {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 24px;
}

.cta {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 22px;
    border-radius: 14px;
    font-weight: 700;
    display: inline-block;
}

.primary {
    background: linear-gradient(135deg, var(--blue), var(--orange));
}

.secondary {
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Picture Placement Layout elements */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-wrapper {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats Section */
.stats {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 5%;
}

.stat {
    padding: 28px;
    text-align: center;
}

.stat h2 {
    font-size: 2rem;
    color: var(--orange);
}

/* About & Overview Layout */
.section {
    max-width: 1200px;
    margin: auto;
    padding: 90px 5%;
}

.section h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.large {
    font-size: 1.35rem;
    color: var(--muted);
    max-width: 900px;
    line-height: 1.6;
}

.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
    margin-top: 20px;
}

.unique-overview {
    padding: 35px;
    font-size: 1.1rem;
}

.unique-overview h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.unique-overview ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding-left: 0;
}

/* Projects Section */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    padding: 28px;
    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 40px rgba(79, 156, 255, .15);
}

.card h3 {
    margin: 10px 0;
}

/* Timeline Section */
.timeline {
    border-left: 2px solid rgba(255, 255, 255, .15);
    padding-left: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.event span {
    display: inline-block;
    width: 80px;
    color: var(--orange);
    font-weight: 700;
}

/* Intersection Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: .8s;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* --- Responsive Breakpoints (Mobile Fixes) --- */
@media(max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }

    .hero p {
        margin: 25px auto;
    }

    .cta {
        justify-content: center;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-wrapper {
        max-width: 320px;
    }
}

@media(max-width: 600px) {
    .links {
        display: none;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .cta {
        flex-direction: column;
        width: 100%;
    }

    .cta .btn {
        text-align: center;
        width: 100%;
    }

    .image-wrapper {
        max-width: 280px;
    }
}

/* --- Top Branding Header Styling --- */
.main-branding-header {
    width: 100%;
    text-align: center;
    padding: 120px 20px 20px 20px;
    /* Generous top padding so it sits comfortably above the fixed nav */
    position: relative;
    z-index: 999;
}

.main-branding-header span {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;

    /* The Color Spice: Animated gradient text */
    background: linear-gradient(270deg, var(--text), var(--blue), var(--orange), var(--text));
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 12s ease infinite;

    /* Smooth transition for hover effects */
    transition: filter 0.4s ease, transform 0.4s ease;
    display: inline-block;
}

/* --- Top Branding Header Styling --- */
.main-branding-header {
    width: 100%;
    text-align: center;
    padding: 30px 20px 10px 20px; /* Reduced top padding from 120px to 30px to bring it closer */
    position: relative;
    z-index: 999;
}

.main-branding-header span {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;

    /* The Color Spice: Animated gradient text */
    background: linear-gradient(270deg, var(--text), var(--blue), var(--orange), var(--text));
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 12s ease infinite;

    /* Smooth transition for hover effects */
    transition: filter 0.4s ease, transform 0.4s ease;
    display: inline-block;
}

/* --- Top Branding Header Styling --- */
.main-branding-header {
    width: 100%;
    text-align: center;
    /* Pushes it down exactly enough to clear the fixed navbar (approx 80px for nav height + 20px top) */
    padding: 110px 20px 10px 20px; 
    position: relative;
    z-index: 999;
}

.main-branding-header span {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;

    /* The Color Spice: Animated gradient text */
    background: linear-gradient(270deg, var(--text), var(--blue), var(--orange), var(--text));
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 12s ease infinite;

    /* Smooth transition for hover effects */
    transition: filter 0.4s ease, transform 0.4s ease;
    display: inline-block;
}

/* Subtle interactive glow when hovered */
.main-branding-header span:hover {
    filter: drop-shadow(0 0 15px rgba(79, 156, 255, 0.4));
    transform: scale(1.02);
}

/* Smooth ambient animation for the name's gradient color shifting */
@keyframes textGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Responsive adjustment for the Hero layout padding */
/* Responsive adjustment for the Hero layout padding */
@media(min-width: 901px) {
    .hero {
        min-height: auto !important;     /* Removes the forced full-screen height constraint */
        align-items: start !important;   /* Pulls the content straight to the top */
        padding-top: 30px !important;    /* Tightens the gap right below the banner */
        padding-bottom: 60px;
    }
}

@media(max-width: 900px) {
    .main-branding-header {
        padding: 100px 20px 10px 20px;
    }

    .hero {
        min-height: auto !important;
        align-items: start !important;
        padding-top: 20px !important;
    }
}