/* --- Premium Variables --- */
:root {
    --bg-main: #050505;        /* Ultra-dark background */
    --text-primary: #ffffff;   
    --text-secondary: #a1a1aa; 
    --accent-gradient: linear-gradient(90deg, #38BDF8, #818CF8);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout & Typography --- */
.container {
    max-width: 1000px; /* Slightly narrower for a more focused, premium feel */
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    margin-top: -30px;
    margin-bottom: 40px;
    font-weight: 500;
    color: #818CF8;
}

.section-text {
    max-width: 700px;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}


/* --- Gradient Text Effects --- */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text; /* Added standard property */
    -webkit-text-fill-color: transparent;
    color: transparent; /* Added standard fallback */
    display: inline-block;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(5, 5, 5, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px); /* Glassmorphism for nav */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .dot {
    color: #38BDF8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* --- Hero Section: Refined Hierarchy --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; 
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* --- Drifting Starfield Background --- */
.hero-section {
    position: relative; /* Keeps the stars contained in the hero area */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensures your text and buttons sit on top of the stars */
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; /* Extra height to allow seamless scrolling */
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.6), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.9), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, rgba(255,255,255,0.5), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: starDrift 100s linear infinite; /* An extremely slow, soothing drift */
    opacity: 0.35; /* Keeps the stars subtle so they don't distract from your name */
    z-index: 1;
    pointer-events: none; /* Prevents the stars from blocking button clicks */
}

@keyframes starDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.greeting {
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 30px; /* Increased gap */
    letter-spacing: 4px; /* More modern, airy spacing */
    text-transform: uppercase;
    font-size: 0.85rem;
    opacity: 0.9;
}

.hero-section h1 {
    font-size: 5.5rem; /* Large, statement size */
    margin-bottom: 15px;
    font-weight: 800; /* Extra bold for the name */
    letter-spacing: -3px; /* Professional tight tracking for large headings */
    line-height: 1.1;
}

.hero-section h2 {
    font-size: 20px; /* Slightly smaller than before to let the name lead */
    font-weight: 300; /* Lighter weight for a "soothing" look */
    color: var(--text-secondary);
    margin-bottom: 35px; /* More breathing room before description */
    min-height: 1.8em; /* Prevents layout jump while typing */
}

.hero-desc {
    font-size: 1.1rem; /* Slightly smaller for better contrast with name */
    max-width: 650px; /* Wider for more elegant line breaks */
    color: var(--text-secondary);
    line-height: 1.8; /* Airy line spacing */
    margin-bottom: 50px; /* Large gap before the buttons */
    font-weight: 300;
}

/* --- Hero Buttons Refinement --- */
.hero-buttons {
    display: flex;
    gap: 25px; /* More space between the two buttons */
    justify-content: center;
}

.btn {
    padding: 14px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-main);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* --- Premium Glassmorphism Cards --- */
.glass-panel {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 16px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}
/* --- Premium Spotlight Glass Cards --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: left;
    position: relative; /* Essential for the spotlight */
    overflow: hidden;   /* Keeps the glow inside the card */
    transition: transform 0.4s ease, border-color 0.4s ease;
}

/* The actual glowing spotlight */
.glass-card::before {
    content: "";
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* Prevents the glow from blocking text */
    z-index: 0;
}

/* The card content needs to sit above the glow */
.glass-card h3, 
.glass-card p {
    position: relative;
    z-index: 1;
}

/* Show the glow and lift the card on hover */
.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.glass-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

/* --- Leadership List --- */
.list-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glass-list-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent-gradient);
}

.glass-list-item:hover {
    transform: translateX(10px);
    background: var(--glass-hover);
}

.glass-list-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

/* --- Typing Effect & Footer --- */
.typing-text { color: #38BDF8; font-weight: 500; }
.cursor {
    display: inline-block; width: 3px; background-color: #38BDF8;
    animation: blink 0.75s step-end infinite; margin-left: 4px;
}
@keyframes blink { from, to { opacity: 0; } 50% { opacity: 1; } }

footer {
    text-align: center; padding: 40px; font-size: 0.9rem; color: var(--text-secondary);
}

/* --- Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hamburger Menu & Mobile --- */
.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001;
}
.hamburger .bar {
    width: 28px; height: 2px; background-color: var(--text-primary); transition: 0.3s;
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 3.5rem; }
    .hero-section h2 { font-size: 1.5rem; }
    .glass-panel { padding: 30px 20px; }
    
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: -100%; flex-direction: column;
        justify-content: center; align-items: center; background: rgba(5, 5, 5, 0.98);
        width: 100%; height: 100vh; transition: right 0.4s ease; gap: 40px;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* --- Fix for Congested Mobile Buttons --- */
    .hero-buttons, .contact-links {
        flex-direction: column; /* Stacks the buttons vertically */
        width: 100%;
        gap: 16px; /* Adds comfortable vertical breathing room */
        padding: 0 20px; /* Keeps them from touching the screen edges */
    }

    .hero-buttons .btn, .contact-links .btn {
        width: 100%; /* Makes buttons full-width for easy thumb tapping */
        justify-content: center; /* Centers the text and the arrow */
    }
}


/* Specifically add spacing between text and the buttons */
.button-container {
    margin-top: 50px; /* Adjust this value for more or less gap */
    display: flex;
    gap: 20px;
    justify-content: center; /* Ensures buttons remain centered */
    flex-wrap: wrap;
    width: 100%;
}

/* --- Hero Text & AI Badge --- */
.hero-content .giant-text {
    font-size: 4.8rem !important; /* Scaled down slightly so your full name fits elegantly */
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 10px;
    font-weight: 800;
}

/* Restoring the premium blue/purple badge */
.inline-pill {
    display: inline-block;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: #0f172a; /* Dark text so the "AI" pops against the blue */
    padding: 0px 24px;
    border-radius: 50px;
    font-size: 3rem; /* Scaled to match the new name size */
    vertical-align: middle;
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    font-weight: 800;
    letter-spacing: 0;
}

/* --- Typewriter Positioning --- */
.typewriter-container {
    font-size: 1.6rem; /* Clean, readable size */
    font-weight: 400;
    margin-bottom: 25px;
    min-height: 1.5em; /* Prevents the page from jumping while it types */
}

/* --- Gradient Typewriter Text Fix --- */
.typing-text {
    background-image: linear-gradient(135deg, #38bdf8, #818cf8); /* Using background-image instead of background */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 600;
    display: inline-block; /* THIS is the magic line that makes it visible */
}

.cursor {
    color: #38bdf8; 
}

.role-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

/* --- Mobile Responsiveness for the New Sizes --- */
@media (max-width: 768px) {
    .hero-content .giant-text { 
        font-size: 3rem !important; 
    }
    .inline-pill { 
        font-size: 1.8rem; 
        padding: 0px 16px;
        transform: translateY(-3px);
    }
    .typewriter-container {
        font-size: 1.2rem;
    }
}

/* --- Diagonal Arrow Button Animations --- */
.btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow {
    font-family: Arial, sans-serif; /* Ensures the arrow renders cleanly */
    font-size: 1.2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover .arrow {
    transform: translate(4px, -4px); /* Moves up and right on hover */
}
