/* ======= VARIABLES & DESIGN TOKENS ======= */
:root {
    /* Color Palette - Deep Blue Theme */
    --bg-primary: #050b14;
    --bg-secondary: #0a1122;
    --bg-glass: rgba(10, 17, 34, 0.65);
    
    --accent-blue-dark: #1d4ed8;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-cyan: #06b6d4;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-glass: rgba(59, 130, 246, 0.2);
    --border-light: rgba(255, 255, 255, 0.05);
    
    --glow: 0 0 20px rgba(59, 130, 246, 0.4);
    
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    
    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ======= RESET & BASE ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-blue);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9998;
    transition: transform 0.1s, width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor.active {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid var(--accent-cyan);
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-cyan);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-accent {
    color: var(--accent-cyan);
}

/* ======= LAYOUT UTILITIES ======= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gap-md { gap: 1.5rem; }

.p-lg { padding: 1.5rem; }
.p-xl { padding: 2.5rem; }
.p-xxl { padding: 4rem; }

.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 3rem; }

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

.inline-block { display: inline-block; }

.py-md { padding: 1.5rem 0; }

/* ======= COMPONENTS ======= */
/* Glassmorphism */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue-dark), var(--accent-blue));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--accent-blue-light);
    border: 1px solid var(--accent-blue);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow);
    border-color: var(--accent-blue-light);
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }

/* ======= HEADER / NAVBAR ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(5, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

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

.nav-link {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s;
    position: relative;
}

.nav-link:not(.btn):hover {
    color: var(--accent-cyan);
}

.nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-link:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======= HERO SECTION ======= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.hero-bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 80%);
}

.hero-container {
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-card {
    padding: 10px;
    border-radius: 20px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.image-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    display: block;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* ======= SECTIONS HEADER ======= */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

/* ======= ABOUT SECTION ======= */
.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

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

.category-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
}

.skill-list i {
    color: var(--accent-blue);
    width: 20px;
    text-align: center;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* ======= EXPERIENCE SECTION ======= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-blue), transparent);
}

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

.timeline-dot {
    position: absolute;
    top: 30px;
    left: -48px;
    width: 16px;
    height: 16px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.job-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-duration {
    font-weight: 600;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.job-description li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
}

.job-description i {
    margin-top: 5px;
}

/* ======= PROJECTS SECTION ======= */
.subsection-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-card {
    padding: 2rem;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    border: 1px solid var(--accent-cyan);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    list-style-type: disc;
    padding-left: 1rem;
}

.project-details li {
    margin-bottom: 0.5rem;
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ======= EDUCATION SECTION ======= */
.edu-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

/* ======= CONTACT SECTION ======= */
.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.contact-info h4 {
    margin-bottom: 0.3rem;
}

.contact-info p {
    color: var(--text-muted);
}

/* ======= RESPONSIVE DESIGN ======= */
@media (max-width: 992px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(5, 11, 20, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        border-left: 1px solid var(--border-light);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        margin-left: 30px;
    }
    
    .timeline-dot {
        left: -38px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
}

@media (hover: none) {
    .cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}
