/* ============================================
   CSS VARIABLES & THEME
   ============================================ */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    
    /* Dark Theme Backgrounds */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(30, 30, 50, 0.8); /* Glass effect base */
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Effects */
    --blur: 20px;
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND EFFECTS (ORBS)
   ============================================ */
.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4facfe 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-30px, 30px); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(15, 15, 30, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover {
    color: white;
    background: rgba(99, 102, 241, 0.1);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success);
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    min-height: 1.5em; /* Prevents layout jump */
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 4px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* ============================================
   HERO VISUAL & PROFILE PHOTO (UPDATED)
   ============================================ */
.profile-card {
    position: relative;
    /* STRICTLY FORCE SIZE */
    width: 300px;       
    height: 300px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps aspect ratio */
    border-radius: 50%; /* Circle */
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); /* Glow */
    display: block;
}

/* Floating Badges */
.tech-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    animation: floatBadge 6s infinite ease-in-out;
    animation-delay: var(--delay);
}

.tech-badge:nth-child(2) { top: -10px; left: 50%; transform: translateX(-50%); } /* Python */
.tech-badge:nth-child(3) { top: 40%; right: -20px; } /* DB */
.tech-badge:nth-child(4) { bottom: -10px; left: 50%; transform: translateX(-50%); } /* Brain */
.tech-badge:nth-child(5) { top: 40%; left: -20px; } /* Chart */

@keyframes floatBadge {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-15px) translateX(0); }
}

/* Scroll Indicator */
/* Update your existing .scroll-indicator */
/* Update this block in style.css */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%; /* Spans the full width of the screen */
    display: flex;
    flex-direction: column;
    align-items: center; /* Forces the text and line to the center */
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    
    /* Fade transition */
    transition: opacity 0.5s ease, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}
/* ADD THIS NEW CLASS below .scroll-indicator */
.scroll-indicator.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Prevents clicking while hidden */
}
.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

/* ============================================
   SECTIONS GENERAL
   ============================================ */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
}

/* ============================================
   SKILLS GRID
   ============================================ */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.category-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-category:hover .skill-tag {
    border-color: rgba(99, 102, 241, 0.3);
}

/* ============================================
   PROJECT CARDS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-description {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes tags to bottom */
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border-radius: 20px;
}

.card-link {
    color: var(--primary-light);
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */
.experience-timeline {
    position: relative;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    margin-left: 20px;
    padding-left: 40px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-marker {
    position: absolute;
    left: -51px; /* Adjust based on border/padding */
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--bg-primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 12px;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
}

.timeline-company {
    color: var(--primary-light);
    font-size: 14px;
}

.timeline-date {
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-details {
    list-style: none;
    font-size: 15px;
    color: var(--text-secondary);
}

.timeline-details li {
    margin-bottom: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 0 30px;
    text-align: center;
    margin-top: 60px;
    background: rgba(15, 15, 30, 0.5);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .nav-link { display: none; } /* Simplified mobile nav */
    
    /* Show only logo on mobile nav */
    .navbar .container { justify-content: center; }
    .d-flex { display: none !important; }

    .experience-timeline {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
    }
    
    .timeline-marker {
        position: static;
        margin-bottom: 10px;
        display: inline-flex;
    }
}
