/*
    ====================================
    CSS Variables & Theme Configuration
    ====================================
*/
:root {
    /* Colors */
    --bg-color: #0d1117;
    --bg-secondary: #161b22;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;

    /* Accents (Primary blue to cyan gradient) */
    --accent-1: #0A66C2;
    --accent-2: #00f2fe;

    /* Glassmorphism */
    --glass-bg: rgba(22, 27, 34, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 0;
}

/*
    ====================================
    Global Resets
    ====================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: var(--section-padding);
}

.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/*
    ====================================
    Utility Classes
    ====================================
*/
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/*
    ====================================
    Ambient Interactive Background
    ====================================
*/
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(90px);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(10,102,194,0.3) 0%, rgba(0,0,0,0) 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0,242,254,0.2) 0%, rgba(0,0,0,0) 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(136,206,2,0.15) 0%, rgba(0,0,0,0) 70%); /* GSAP Green hint */
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 10%) scale(1.1); }
    66% { transform: translate(-5%, 5%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

/*
    ====================================
    Navigation
    ====================================
*/
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

.nav-links a:not(.btn-primary-sm):hover {
    color: var(--accent-2);
}

/* Buttons */
.btn-primary-sm {
    background: linear-gradient(135deg, var(--accent-1), #0056b3);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 5px 20px rgba(10, 102, 194, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/*
    ====================================
    Hero Section
    ====================================
*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(10, 102, 194, 0.1);
    border: 1px solid rgba(10, 102, 194, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(10,102,194,0.1);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    height: 3rem; /* Prevents layout shift during typing */
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    color: var(--accent-1);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Scroll Indicator & Back to Top */
.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
    animation: fadePulse 3s infinite ease-in-out;
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.scroll-indicator:hover {
    opacity: 1;
    color: var(--text-primary);
}

@keyframes fadePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

/* Mouse Icon State */
.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 13px;
    position: relative;
    transition: all 0.3s ease;
}

.wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite ease-in-out;
    transition: all 0.3s ease;
}

/* Back to Top State */
.scroll-indicator.back-to-top .mouse {
    border-radius: 50%;
    width: 40px;
    background: rgba(10, 102, 194, 0.2);
    border-color: var(--accent-1);
}

.scroll-indicator.back-to-top .wheel {
    animation: none;
    /* Morph wheel into an up arrow */
    width: 10px;
    height: 10px;
    background: transparent;
    border-top: 2px solid var(--accent-1);
    border-left: 2px solid var(--accent-1);
    transform: translate(-50%, -20%) rotate(45deg);
    top: 14px;
}

.scroll-indicator-text {
    transition: opacity 0.3s;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite ease-in-out;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    50% { top: 20px; opacity: 0; }
    100% { top: 6px; opacity: 0; }
}

/*
    ====================================
    Typography & Section Headers
    ====================================
*/
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -1px;
}

/*
    ====================================
    About Section
    ====================================
*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--accent-2);
}

.stat-label {
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0 !important;
}

.visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.visual-card h3 {
    margin-bottom: 1rem;
}

/*
    ====================================
    Skills Section
    ====================================
*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-header .icon {
    font-size: 2rem;
}

.category-header h3 {
    font-size: 1.5rem;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.badge-container img {
    height: 28px;
    border-radius: 4px;
    transition: transform 0.2s;
}

.badge-container img:hover {
    transform: scale(1.1);
}

.graph-container {
    text-align: center;
}

/*
    ====================================
    Projects Section
    ====================================
*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(10,102,194,0.2), rgba(0,242,254,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
}

.project-image.upcoming {
    background: linear-gradient(135deg, rgba(30,30,30,0.5), rgba(10,10,10,0.5));
}

.project-image span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-1);
    opacity: 0.7;
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.project-link {
    color: var(--accent-2);
    font-weight: 600;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s;
}

.project-link::after {
    content: '→';
    font-size: 1.2rem;
}

.project-link:hover {
    gap: 0.8rem;
}

/*
    ====================================
    Contact Section
    ====================================
*/
.contact {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
}

.contact-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-btn svg {
    fill: currentColor;
}

.linkedin {
    background: #0A66C2;
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}
.linkedin:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(10, 102, 194, 0.5); }

.github {
    background: #181717;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.github:hover { transform: translateY(-3px); background: #24292e; border-color: #444; }

.email {
    background: #0078D4; /* Outlook Blue */
    box-shadow: 0 4px 15px rgba(0,120,212,0.3);
}
.email:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,120,212,0.5); }


/*
    ====================================
    Media Queries (Mobile Responsiveness)
    ====================================
*/
@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple hidden nav for mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

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