/* 1. Global Styles & Variables */
/* ------------------------------------ */
:root {
    /* Colors */
    --color-primary: #6366f1;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    
    /* Dark Theme */
    --color-bg-dark: #0a0a0a;
    --color-bg-dark-2: #1a1a2e;
    --color-bg-dark-3: #16213e;
    --color-text-dark: #e5e7eb;
    --color-text-dark-muted: #9ca3af;
    --color-border-dark: rgba(255, 255, 255, 0.1);
    --color-card-dark: #171717;

    /* Light Theme */
    --color-bg-light: #f4f5fa;
    --color-bg-light-2: #ffffff;
    --color-bg-light-3: #eef2ff;
    --color-text-light: #1f2937;
    --color-text-light-muted: #4b5563;
    --color-border-light: rgba(0, 0, 0, 0.1);
    --color-card-light: #ffffff;

    /* Typography */
    --font-family-base: 'Inter', sans-serif;
    
    /* Transitions & Borders */
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    
    /* Spacing */
    --section-padding: 100px 0;
}

[data-theme="dark"] {
    --bg-color: var(--color-bg-dark);
    --bg-color-2: var(--color-bg-dark-2);
    --bg-color-3: var(--color-bg-dark-3);
    --text-color: var(--color-text-dark);
    --text-muted-color: var(--color-text-dark-muted);
    --text-hero-main: #ffffff;
    --border-color: var(--color-border-dark);
    --card-bg-color: var(--color-card-dark);
    --hero-gradient: linear-gradient(135deg, var(--bg-color-2) 0%, #2b2a4a 50%, var(--bg-color-3) 100%);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --navbar-bg: rgba(10, 10, 10, 0.8);
    --navbar-scrolled-bg: rgba(10, 10, 10, 0.9);
    --cursor-bg: #ffffff; /* White for max contrast with difference blend mode */
    --cursor-blend-mode: difference;
    --bubble-bg: rgba(255, 255, 255, 0.05);
    --bubble-border: rgba(255, 255, 255, 0.1);
    --bubble-shadow: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-color: var(--color-bg-light);
    --bg-color-2: var(--color-bg-light-2);
    --bg-color-3: var(--color-bg-light-3);
    --text-color: var(--color-text-light);
    --text-muted-color: var(--color-text-light-muted);
    --text-hero-main: var(--color-text-light);
    --border-color: var(--color-border-light);
    --card-bg-color: var(--color-card-light);
    --hero-gradient: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #fbe2f3 100%);
    --shadow-color: rgba(99, 102, 241, 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.95);
    --cursor-bg: #ffffff; /* White is also best for light theme with difference blend mode */
    --cursor-blend-mode: difference;
    --bubble-bg: rgba(255, 255, 255, 0.3);
    --bubble-border: rgba(99, 102, 241, 0.2);
    --bubble-shadow: rgba(99, 102, 241, 0.15);
}
logo-image {
    width: 10px;
    height: 40px;
    object-fit: cover;
}

/* Reset and base styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-family-base); line-height: 1.6; color: var(--text-color); background-color: var(--bg-color); overflow-x: hidden; cursor: none; transition: background-color var(--transition-medium), color var(--transition-medium); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: var(--section-padding); position: relative; }
.gradient-text { background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; }

/* 2. Components */
/* ------------------------------------ */

/* --- UPDATED CURSOR CSS SECTION (INSTANT CURSOR, SMOOTH FOLLOWER) --- */
@media (hover: hover) and (pointer: fine) {
  a, button, input, textarea, .project-card, .skill-item, .social-link {
      cursor: none;
  }
}

.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    top: 0;
    left: 0;
    mix-blend-mode: var(--cursor-blend-mode);
}

/* The inner dot. Movement is INSTANT - no transitions on transform */
.cursor {
    width: 20px;
    height: 20px;
    background-color: var(--cursor-bg);
    /* Only transitions for idle state fade-out, NOT for transform */
    transition: opacity 0.3s ease;
}

/* The outer follower. Movement is SMOOTH via JavaScript animation */
.cursor-follower {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 2px solid var(--cursor-bg);
    /* Transitions handle changes to scale, background, and border smoothly */
    /* Position handled by JavaScript, but scale transitions smoothly */
    transition: background-color 0.3s ease, border-color 0.3s ease;
    transition-property: background-color, border-color;
}

/* --- State-based Styling --- */

/* IDLE STATE: When the mouse is not moving */
.is-idle .cursor {
    /* The inner dot shrinks and disappears */
    opacity: 0;
    transform: scale(0);
}

.is-idle .cursor-follower {
    /* The follower fills with the blend color, creating a solid circle */
    background-color: var(--cursor-bg);
}

/* Navbar */
/* Navbar - Updated to be hidden during hero section */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: transparent; /* Start completely transparent */
    backdrop-filter: none; /* No blur initially */
    z-index: 1000; 
    transition: all 0.3s ease-in-out; 
    border-bottom: none; /* No border initially */
    opacity: 0; /* Hidden by default */
    transform: translateY(-100%); /* Start above viewport */
}

/* Navbar appears only after hero section */
.navbar.after-hero { 
    opacity: 1;
    transform: translateY(0);
    background: var(--navbar-bg); 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

/* Enhanced blur effect when scrolled */
.navbar.scrolled { 
    background: var(--navbar-scrolled-bg); 
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px var(--shadow-color); 
}

/* Rest of navbar styles remain the same */
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 70px; 
    padding-left: 50px; 
    padding-right: 50px;
}

.nav-logo .logo-text { 
    font-size: 1.8rem; 
    font-weight: 700; 
}

.nav-menu { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
}

.nav-link { 
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: 500; 
    position: relative; 
    transition: var(--transition-medium); 
    padding: 0.5rem 0; 
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); 
    transition: width 0.3s ease; 
}

.nav-link:hover, .nav-link.active { 
    color: var(--color-secondary); 
}

.nav-link:hover::after, .nav-link.active::after { 
    width: 100%; 
}

.nav-controls { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
}

/* Theme Toggle & Hamburger */
.theme-toggle, .hamburger { background: none; border: none; color: var(--text-color); cursor: none; font-size: 1.2rem; padding: 0.5rem; transition: var(--transition-medium); }
.theme-toggle:hover, .hamburger:hover { color: var(--color-primary); }
.hamburger { display: none; flex-direction: column; gap: 4px; }
.bar { width: 25px; height: 3px; background: var(--text-color); transition: var(--transition-medium); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; text-decoration: none; border-radius: 50px; font-weight: 600; transition: var(--transition-medium); position: relative; overflow: hidden; border: 2px solid transparent; }
.btn-primary { background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4); }
.btn-secondary { background: transparent; color: var(--text-color); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; transform: translateY(-3px); }

/* Section Header */
.section-header { text-align: center; margin-bottom: 80px; }
.section-title { font-size: 3rem; font-weight: 700; color: var(--text-color); margin-bottom: 1rem; position: relative; display: inline-block; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); border-radius: 2px; }
.section-subtitle { font-size: 1.2rem; color: var(--text-muted-color); max-width: 600px; margin: 0 auto; }

/* 3. Page Sections */
/* ------------------------------------ */

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; background: var(--hero-gradient); overflow: hidden; }
.hero-bg-animation { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.2) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.2) 0%, transparent 50%); animation: floatBG 20s ease-in-out infinite; }
[data-theme="light"] .hero-bg-animation { display: none; }
.hero-container { position: relative; z-index: 2; }
.hero-content { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center;}
.greeting { display: block; font-size: 1.2rem; color: var(--color-primary); margin-bottom: 0.5rem; }
.name { display: block; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; color: var(--text-hero-main); margin-bottom: 1rem; }
.role { display: block; font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 500; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; min-height: 2.5rem; }
.hero-description { font-size: 1.1rem; color: var(--text-muted-color); margin: 2rem 0; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-image { display: flex; justify-content: center; }
.image-container { position: relative; width: clamp(280px, 80%, 400px); height: clamp(280px, 80%, 400px); }
.image-frame { position: relative; width: 100%; height: 100%; }
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 5px solid transparent; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)) border-box; animation: profilePulse 3s ease-in-out infinite; position: relative; z-index: 1; }
.image-glow { position: absolute; inset: -10px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); filter: blur(20px); border-radius: 50%; z-index: 0; opacity: 0.7; animation: glowRotate 10s linear infinite; }

/* Improved Transparent Bubbles */
.floating-elements { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    z-index: 2; 
}

.floating-element { 
    font-size: 1.5rem; 
    background: var(--bubble-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0.75rem; 
    border-radius: 50%; 
    box-shadow: 
        0 8px 32px var(--bubble-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid var(--bubble-border);
    animation: floatElement 4s ease-in-out infinite; 
    animation-delay: var(--delay); 
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Add subtle shimmer effect */
.floating-element::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s linear infinite;
    opacity: 0.5;
}

.floating-element:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 
        0 12px 40px var(--bubble-shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; text-decoration: none; }
.scroll-arrow { color: var(--text-color); font-size: 1.5rem; opacity: 0.7; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2rem; }
.hero-header{ padding-left: 150px;}
.stat { text-align: left; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--text-hero-main); }
.experience-years { display: block; font-size: 2.5rem; font-weight: 700; color: var(--text-hero-main); }
.stat-label { color: var(--text-muted-color); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

[data-theme="dark"] .floating-elements { left: -15%; right: auto; }
[data-theme="light"] .floating-elements { left: auto; right: -15%; }

/* Other Sections (About, Skills, etc.) */
.about, .projects, .blog { background: var(--bg-color-2); }
.skills, .experience, .contact { background: var(--bg-color); }

.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-description { font-size: 1.1rem; color: var(--text-muted-color); margin-bottom: 1.5rem; line-height: 1.8; }
.about-highlights { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
.highlight-item { display: flex; align-items: center; gap: 1rem; color: var(--text-muted-color); }
.highlight-item i { color: var(--color-primary); font-size: 1.2rem; }
.code-editor { background: #1e1e1e; border-radius: 10px; box-shadow: 0 20px 40px var(--shadow-color); padding: 1rem; }
.editor-header { display: flex; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid #333; }
.editor-buttons { display: flex; gap: 0.5rem; }
.editor-buttons span { width: 12px; height: 12px; border-radius: 50%; }
.btn-close { background: #ff5f56; } .btn-minimize { background: #ffbd2e; } .btn-maximize { background: #27c93f; }
.editor-title { color: #888; margin-left: auto; font-family: monospace; }
.editor-content { padding-top: 1rem; font-family: 'Fira Code', monospace; color: #d4d4d4; }
.code-comment { color: #6a9955; } .code-keyword { color: #569cd6; } .code-variable { color: #9cdcfe; } .code-property { color: #dcdcaa; } .code-string { color: #ce9178; }
.skills-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4rem; }
.category-title { font-size: 1.5rem; color: var(--text-color); margin-bottom: 2rem; text-align: center; }
.skills-grid { display: flex; flex-direction: column; gap: 2rem; }
.skill-item { background: var(--card-bg-color); padding: 1.5rem; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); transition: var(--transition-medium); box-shadow: 0 5px 10px var(--shadow-color); }
.skill-item:hover { transform: translateY(-5px); box-shadow: 0 15px 30px var(--shadow-color); }
.skill-icon { font-size: 3rem; margin-bottom: 1rem; }
.skill-name { display: block; color: var(--text-color); font-weight: 600; margin-bottom: 0.5rem; }
.skill-level { font-size: 0.9rem; color: var(--text-muted-color); float: right; }
.skill-bar { width: 100%; height: 8px; background: rgba(139, 92, 246, 0.1); border-radius: 4px; overflow: hidden; margin-top: 1rem; }
.skill-progress { height: 100%; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); border-radius: 4px; width: 0; transition: width 2s ease-in-out; }
.projects-filter { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; }
.filter-btn { background: var(--card-bg-color); color: var(--text-muted-color); border: 1px solid var(--border-color); padding: 0.5rem 1.5rem; border-radius: 30px; transition: var(--transition-medium); }
.filter-btn:hover { color: var(--text-color); border-color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }
.project-card { background: var(--card-bg-color); border-radius: var(--border-radius-lg); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition-medium); opacity: 1; transform: scale(1); box-shadow: 0 10px 20px var(--shadow-color); }
.project-card.hide { opacity: 0; transform: scale(0.9); }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px var(--shadow-color); }
.project-image { position: relative; overflow: hidden; height: 250px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.project-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.project-card:hover .project-overlay { opacity: 1; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-links { display: flex; gap: 1rem; }
.project-link { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: #fff; text-decoration: none; transition: var(--transition-medium); }
.project-link:hover { background: var(--color-primary); transform: scale(1.1); }
.project-content { padding: 2rem; }
.project-title { font-size: 1.3rem; color: var(--text-color); margin-bottom: 1rem; }
.project-description { color: var(--text-muted-color); line-height: 1.6; margin-bottom: 1.5rem; }
.project-header { margin-bottom: 1rem;}
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag { padding: 0.3rem 0.8rem; background: rgba(139, 92, 246, 0.2); color: var(--color-secondary); border-radius: 20px; font-size: 0.8rem; border: 1px solid rgba(139, 92, 246, 0.3); }
.project-status { padding: 0.3rem 0.8rem; background: rgba(139, 92, 246, 0.2); color: var(--color-secondary); border-radius: 20px; font-size: 0.8rem; border: 1px solid rgba(139, 92, 246, 0.3);  margin: 1re;}

/* Experience, Blog, Contact, Footer... */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary)); transform: translateX(-50%); }
.timeline-item { position: relative; margin-bottom: 4rem; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; padding-right: 3rem; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; padding-left: 3rem; text-align: left; }
.timeline-marker { position: absolute; top: 0; width: 20px; height: 20px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); border-radius: 50%; border: 4px solid var(--bg-color); }
.timeline-item:nth-child(odd) .timeline-marker { right: -12px; }
.timeline-item:nth-child(even) .timeline-marker { left: -12px; }
.timeline-content { background: var(--card-bg-color); padding: 2rem; border-radius: var(--border-radius-md); border: 1px solid var(--border-color); transition: var(--transition-medium); }
.timeline-content:hover { transform: scale(1.02); box-shadow: 0 10px 20px var(--shadow-color); }
.timeline-title { font-size: 1.2rem; color: var(--text-color); margin-bottom: 0.5rem; }
.timeline-company { color: var(--color-secondary); font-size: 1rem; margin-bottom: 0.5rem; }
.timeline-period { display: inline-block; background: rgba(139, 92, 246, 0.2); color: var(--color-secondary); padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.8rem; margin-bottom: 1rem; }
.timeline-description { color: var(--text-muted-color); line-height: 1.6; }
.timeline-achievements { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.timeline-item:nth-child(odd) .timeline-achievements { justify-content: flex-end; }
.achievement { font-size: 0.8rem; padding: 0.2rem 0.6rem; background-color: var(--border-color); border-radius: 5px; color: var(--text-muted-color); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.blog-card { background: var(--card-bg-color); border-radius: var(--border-radius-md); overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition-medium); display: flex; flex-direction: column; box-shadow: 0 5px 15px var(--shadow-color); }
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px var(--shadow-color); }
.blog-link-wrapper { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.blog-image { position: relative; height: 200px; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-category { position: absolute; top: 1rem; right: 1rem; background: var(--color-primary); color: #fff; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.blog-content { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-title { font-size: 1.2rem; color: var(--text-color); margin-bottom: 0.5rem; }
.blog-excerpt { color: var(--text-muted-color); flex-grow: 1; margin-bottom: 1rem; }
.blog-meta { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--text-muted-color); border-top: 1px solid var(--border-color); padding-top: 1rem; margin-top: auto; }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: flex-start; }
.contact-item { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; padding: 1.5rem; background: var(--card-bg-color); border-radius: var(--border-radius-md); border: 1px solid var(--border-color); transition: var(--transition-medium); }
.contact-item:hover { transform: translateX(10px); }
.contact-icon { width: 60px; height: 60px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.5rem; flex-shrink: 0; }
.contact-details h3 { color: var(--text-color); margin-bottom: 0.5rem; }
.contact-details p { color: var(--text-muted-color); }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; }
.social-link { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; background: var(--card-bg-color); border-radius: 50%; color: var(--text-color); text-decoration: none; transition: var(--transition-medium); border: 1px solid var(--border-color); }
.social-link:hover { background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 20px var(--shadow-color); }
.contact-form { background: var(--card-bg-color); padding: 3rem; border-radius: var(--border-radius-lg); border: 1px solid var(--border-color); }
.form-group { position: relative; margin-bottom: 2rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem 1.5rem; background: transparent; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-color); font-size: 1rem; transition: var(--transition-medium); }
.form-group label { position: absolute; left: 1.5rem; top: 1rem; color: var(--text-muted-color); transition: var(--transition-medium); pointer-events: none; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); }
.form-group input:focus + label, .form-group textarea:focus + label, .form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label { top: -0.75rem; left: 1rem; font-size: 0.8rem; background: var(--card-bg-color); padding: 0 0.5rem; color: var(--color-primary); }
.footer { background: var(--color-bg-dark-2); color: var(--color-text-dark-muted); padding: 4rem 0 2rem; border-top: 1px solid var(--color-border-dark); }
.footer-content { text-align: left; }
.footer-main { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; margin-bottom: 3rem; }
.footer-brand .logo-text { font-size: 2rem; font-weight: 700; }
.footer-description { margin: 1rem 0; max-width: 300px; }
.footer-social { display: flex; gap: 1rem; }
.footer-social-link { color: var(--color-text-dark-muted); font-size: 1.2rem; transition: var(--transition-medium); }
.footer-social-link:hover { color: var(--color-primary); }
.footer-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.footer-section h4 { color: var(--color-text-dark); margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: var(--color-text-dark-muted); text-decoration: none; transition: var(--transition-medium); }
.footer-section a:hover { color: var(--color-primary); }
.footer-bottom { text-align: center; border-top: 1px solid var(--color-border-dark); padding-top: 2rem; font-size: 0.9rem; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background: linear-gradient(45deg, var(--color-primary), var(--color-secondary)); color: #fff; border: none; border-radius: 50%; font-size: 1.2rem; z-index: 1000; opacity: 0; transform: translateY(100px); transition: var(--transition-medium); box-shadow: 0 5px 15px var(--shadow-color); }
.back-to-top.visible { opacity: 1; transform: translateY(0); }

/* 4. Animations & Keyframes */
/* ------------------------------------ */
@keyframes floatBG { 0%, 100% { transform: translateY(0px) rotate(0deg); } 25% { transform: translateY(-20px) rotate(1deg); } 50% { transform: translateY(-10px) rotate(-1deg); } 75% { transform: translateY(-30px) rotate(0.5deg); } }
@keyframes profilePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); } 50% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); } }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }
@keyframes glowRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatElement { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* 5. Responsive Design */
/* ------------------------------------ */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-text { order: 2; display: flex; flex-direction: column; align-items: center; padding-left: 50px; }
    .hero-image { order: 1; }
    .hero-image { margin-top: 2rem; justify-content: center; }
    .floating-elements { position: relative; flex-direction: row; justify-content: center; left: 0; right: 0; top: -2rem; transform: translateY(0); }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-stats .stat { text-align: center; }
    .contact-info { order: 2; } .contact-form { order: 1; }
    .timeline::before { left: 20px; transform: translateX(0); }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; left: 0; padding-left: 3rem; padding-right: 0; text-align: left; }
    .timeline-item .timeline-marker, .timeline-item:nth-child(odd) .timeline-marker { left: 9px; right: auto; }
    .timeline-item:nth-child(odd) .timeline-achievements { justify-content: flex-start; }
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { margin: 0 auto; }
    .footer-social { justify-content: center; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
    .nav-menu { position: fixed; left: -100%; top: 70px; flex-direction: column; background: var(--bg-color); width: 100%; height: calc(100vh - 70px); text-align: center; transition: var(--transition-medium); padding: 2rem 0; z-index: 999; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 1rem 0; }
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .skills-content, .contact-content { grid-template-columns: 1fr; }
    body { cursor: auto; }
    .cursor, .cursor-follower { display: none; }
}