/* =========================================
   CSS Variables & Theme
   ========================================= */
:root {
    /* Colors */
    --bg-color-main: #0B0F19;
    /* Deep space blue/black */
    --bg-color-secondary: rgba(20, 26, 40, 0.7);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;

    --accent-color: #00D4FF;
    /* Vibrant cyan */
    --accent-color-hover: #00A6CC;
    --accent-glow: rgba(0, 212, 255, 0.3);

    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);

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

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Dynamic Background Gradients */
.bg-gradient-1,
.bg-gradient-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

.bg-gradient-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
}

.bg-gradient-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -200px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Typography Selection */
::selection {
    background: var(--accent-glow);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style-type: none;
}

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

/* =========================================
   Glassmorphism Utilities
   ========================================= */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding var(--transition-normal), background var(--transition-normal);
}

.glass-nav.scrolled {
    padding: 0.5rem 0;
    background: rgba(11, 15, 25, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* =========================================
   Navigation
   ========================================= */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
}

.logo {
    font-weight: 800;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =========================================
   Main Layout & Sections
   ========================================= */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    height: 3px;
    width: 50%;
    background: var(--accent-color);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero-section {
    align-items: flex-start;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.name-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.dynamic-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cursor {
    animation: blink 1s infinite step-end;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--accent-glow);
}

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

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.profile-image {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.6);
}

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

.skills-container {
    margin-top: 2rem;
}

.skills-container h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skills-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.skills-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
}

/* =========================================
   Experience Section (Timeline)
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    margin-left: 60px;
}

.timeline-dot {
    position: absolute;
    left: -46px;
    /* 60px - 14px (half height) */
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content .date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: monospace;
}

.timeline-content ul {
    padding-left: 1.2rem;
}

.timeline-content li {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    list-style-type: square;
}

.timeline-content li::marker {
    color: var(--accent-color);
}


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

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.project-image {
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.5rem -2rem;
    height: 220px;
    object-fit: cover;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid var(--glass-border);
    filter: brightness(0.9);
    transition: filter var(--transition-normal);
}

.glass-card:hover .project-image {
    filter: brightness(1.1);
}

.project-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 1.5rem;
    transition: all var(--transition-fast);
}

.project-btn i {
    margin-left: 0.5rem;
}

.project-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color-main);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.project-tech li {
    font-size: 0.8rem;
    font-family: monospace;
    color: var(--accent-color);
}


/* =========================================
   Extracurriculars Section
   ========================================= */
.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.extra-item {
    padding: 1.5rem;
    text-align: center;
}

.icon-accent {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.extra-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.extra-item .date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: monospace;
}

.extra-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* =========================================
   Footer
   ========================================= */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    margin: 0 0.5rem;
    color: var(--accent-color);
    font-family: monospace;
}

/* =========================================
   Animations & Interactivity
   ========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add hamburger menu in JS later if needed */
    }

    section {
        padding: 80px 0;
    }

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

    .profile-image-container {
        margin-bottom: 1rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        margin-left: 30px;
    }

    .timeline-dot {
        left: -26px;
    }
}