/* =========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================= */
   :root {
    /* Color Palette */
    --bg-dark: #0f172a;      /* Deep Slate Blue */
    --bg-darker: #0b1120;    /* Darker Slate */
    --primary: #0ea5e9;      /* Neon Cyan */
    --primary-glow: #0ea5e966;
    --secondary: #8b5cf6;    /* Neon Purple */
    --secondary-glow: #8b5cf666;
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Backgrounds */
    --bg-radial-start: #1e293b;
    --bg-radial-end: var(--bg-dark);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --nav-bg-scrolled: rgba(15, 23, 42, 0.95);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-text: linear-gradient(to right, #38bdf8, #818cf8);
    
    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    
    /* Borders & Shadows */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 20px var(--primary-glow);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --primary: #0284c7;
    --primary-glow: #0284c766;
    --secondary: #7c3aed;
    --secondary-glow: #7c3aed66;
    
    --text-main: #0f172a;
    --text-muted: #334155;
    
    --bg-radial-start: #ffffff;
    --bg-radial-end: #f8fafc;
    --nav-bg: rgba(255, 255, 255, 0.8);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    
    --gradient-text: linear-gradient(to right, #0284c7, #6d28d9);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* =========================================================================
   CANVAS & SCANLINES
   ========================================================================= */
#network-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.1) 50%,
        rgba(0,0,0,0.1)
    );
    background-size: 100% 4px;
    z-index: 9997; 
    pointer-events: none;
    opacity: 0.15;
}

body.light-mode .scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.05) 50%,
        rgba(0,0,0,0.05)
    );
}

/* =========================================================================
   GLITCH SCRAMBLE ANIMATION
   ========================================================================= */
.glitch-text {
    position: relative;
    display: inline-block;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, var(--bg-radial-start), var(--bg-radial-end) 80%);
    transition: background 0.3s ease, color 0.3s ease;
}

/* =========================================================================
   CUSTOM SCROLLBAR
   ========================================================================= */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.3);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body.light-mode ::-webkit-scrollbar-track { background: var(--bg-darker); }
body.light-mode ::-webkit-scrollbar-thumb { background: rgba(2, 132, 199, 0.3); }
body.light-mode ::-webkit-scrollbar-thumb:hover { background: #0284c7; }

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Text Gradient Utility */
.text-gradient, span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: 100px 0;
}

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

/* =========================================================================
   COMPONENTS
   ========================================================================= */
/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-glass);
    transition: transform 0.5s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Mouse Spotlight Injection */
.spotlight-glow {
    position: absolute;
    pointer-events: none;
    top: var(--mouse-y, -100px);
    left: var(--mouse-x, -100px);
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 80%);
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glass-card:hover .spotlight-glow { opacity: 1; }
body.light-mode .spotlight-glow { background: radial-gradient(circle, rgba(2, 132, 199, 0.3) 0%, transparent 80%); }

/* All content inside glass-card needs relative z-index so spotlight goes behind */
.glass-card > * {
    position: relative;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: rgba(14, 165, 233, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        115deg, 
        transparent 20%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 80%
    );
    background-size: 200% 100%;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::after {
    transform: translateX(50%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: transparent;
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header h2 span {
    color: var(--primary);
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================================================================
   CUSTOM CURSOR & SCROLL PROGRESS & ANIMATED TEXT
   ========================================================================= */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

body.light-mode .cursor-dot { box-shadow: 0 0 15px rgba(2, 132, 199, 0.5); }
body.light-mode .cursor-outline { border-color: var(--primary); }

.cursor-hovering .cursor-dot {
    background-color: transparent;
    border: 2px solid var(--primary);
}

.cursor-hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: var(--secondary-glow);
    border-color: transparent;
}

.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 10001;
    box-shadow: 0 0 10px var(--primary-glow);
    border-radius: 0 2px 2px 0;
}

.animated-gradient-text {
    background: linear-gradient(270deg, var(--primary), var(--secondary), #38bdf8, #818cf8);
    background-size: 300% 300%;
    animation: gradient-shift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-mode .animated-gradient-text {
    background: linear-gradient(270deg, #0284c7, #6d28d9, #38bdf8, #818cf8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================================================
   ANIMATIONS
   ========================================================================= */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hover-float {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px var(--primary-glow);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Cyber grid background */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 15s linear infinite;
    pointer-events: none;
}

body.light-mode .cyber-grid {
    background-image: 
        linear-gradient(rgba(2, 132, 199, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px);
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.nav-links li a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

.nav-links li a.active::after {
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 2s infinite;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    padding-top: var(--nav-height);
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.hero .typing-text {
    font-size: 2rem;
    color: var(--text-muted);
    min-height: 48px; /* Prevents jumping */
    margin-bottom: 1.5rem;
}

.hero .typing-text::after {
    content: '|';
    animation: blink 1s infinite;
}

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

.hero .description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

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

.cv-btn {
    background: transparent !important;
    border: 2px solid var(--secondary) !important;
    color: var(--text-main) !important;
    box-shadow: 0 0 15px var(--secondary-glow) !important;
}

.cv-btn:hover {
    background: rgba(139, 92, 246, 0.1) !important;
    box-shadow: 0 0 25px var(--secondary-glow) !important;
    transform: translateY(-2px) !important;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    animation: pulse 4s infinite, float 6s infinite;
}

.glow-orb.primary {
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
}

.glow-orb.secondary {
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: var(--secondary-glow);
    animation-delay: 2s;
}

.glow-orb.tertiary {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: rgba(56, 189, 248, 0.1);
    animation: pulse 6s infinite alternate;
}

/* =========================================================================
   ABOUT SECTION (Grid, Avatar, Stats)
   ========================================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-image {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.profile-avatar {
    font-size: 8rem;
    color: var(--secondary);
    position: relative;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; height: 150px;
    background: var(--secondary);
    filter: blur(50px);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 1;
    animation: pulse 4s infinite alternate;
}

.about-stats {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
}

.stat-box {
    flex: 1;
    text-align: center;
    padding: 1.5rem !important;
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-box span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.philosophy-box {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--glass-bg);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
}

.philosophy-box h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.philosophy-list li i {
    color: var(--primary);
}

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

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

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.tag {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-category:hover .tag {
    background: var(--primary);
    color: #fff;
}

/* Progress Bars */
.skill-bars {
    width: 100%;
    margin-top: 1.5rem;
    text-align: left;
}

.skill-bar {
    margin-bottom: 1.2rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-line {
    height: 8px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

body.light-mode .progress-line {
    background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    background: var(--gradient-primary);
    border-radius: 10px;
    width: 0; /* JS will animate this */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    box-shadow: 0 0 10px var(--primary-glow);
}

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

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--gradient-primary);
    z-index: -1;
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    background: rgba(139, 92, 246, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--secondary);
    color: #fff;
    transform: rotate(10deg);
}

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

.project-info p {
    font-size: 1rem;
    margin-bottom: 0;
}

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

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

.timeline-item {
    padding: 10px 0 40px 80px;
    position: relative;
}

.timeline-item::after {
    content: "";
    display: table;
    clear: both;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 31px;
    top: 15px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-date {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.timeline-content li {
    color: var(--text-muted);
    margin-bottom: 5px;
}

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

.achievement-card {
    text-align: center;
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

.achievement-card:hover {
    border-top: 3px solid var(--primary);
}

.achievement-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.achievement-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.achievement-card p {
    font-size: 1.1rem;
}

.highlight-score {
    font-weight: 700;
    font-size: 1.8rem !important;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.service-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-icon {
    transform: translateY(-10px) scale(1.1);
    color: var(--secondary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* =========================================================================
   CAREER OBJECTIVE SECTION
   ========================================================================= */
.objective-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 20px;
}

.objective-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.objective-container p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.quote-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.quote-block blockquote {
    font-style: italic;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-top: 1rem;
    font-family: var(--font-heading);
}

/* =========================================================================
   INTERESTS SECTION
   ========================================================================= */
.interests-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interest-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
    border-color: transparent;
}

.interest-item i {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.interest-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================================================
   CONTACT SECTION (Grid & Form & Tooltip)
   ========================================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Tooltips */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 5px 5px 5px;
    border-style: solid;
    border-color: transparent transparent var(--primary) transparent;
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px var(--primary-glow);
    border-color: transparent;
}

/* Form Styles */
.contact-form {
    text-align: left;
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

body.light-mode .input-group input,
body.light-mode .input-group textarea {
    background: rgba(255, 255, 255, 0.5);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(0, 0, 0, 0.4);
}

/* =========================================================================
   FOOTER & BACK TO TOP
   ========================================================================= */
footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px var(--primary-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* =========================================================================
   5 EPIC CHANGES STYLES
   ========================================================================= */

/* 1. Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark); z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#preloader.loaded { opacity: 0; visibility: hidden; }
body.light-mode #preloader { background: var(--bg-light); }
.loader-content { text-align: center; }
.loader-text { font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; font-weight: bold; letter-spacing: 2px;}
.loader-bar-container { width: 300px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; margin: 0 auto; box-shadow: 0 0 10px var(--primary-glow); }
body.light-mode .loader-bar-container { background: rgba(0,0,0,0.1); }
.loader-bar { width: 0%; height: 100%; background: var(--primary); animation: load 2s cubic-bezier(0.1, 0.5, 0.1, 1) forwards; }
@keyframes load { 0% { width: 0%; } 100% { width: 100%; } }

/* 2. Floating Socials */
.floating-socials {
    position: fixed; left: 30px; bottom: 0;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    z-index: 999;
}
.floating-socials a { color: var(--text-muted); font-size: 1.3rem; transition: all 0.3s ease; }
.floating-socials a:hover { color: var(--primary); transform: translateY(-5px); filter: drop-shadow(0 0 10px var(--primary-glow)); }
.social-line { width: 2px; height: 90px; background: rgba(255,255,255,0.2); margin-top: 10px; }
body.light-mode .social-line { background: rgba(0,0,0,0.2); }
@media (max-width: 1200px) { .floating-socials { display: none; } } /* Hide on smaller screens to prevent overlap */

/* 3. Tech Marquee */
.tech-marquee { width: 100%; overflow: hidden; padding: 20px 0; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); display: flex;}
.marquee-content { display: flex; white-space: nowrap; animation: marquee 25s linear infinite; align-items: center; gap: 30px;}
.marquee-content span { font-size: 1.2rem; font-weight: 600; font-family: var(--font-heading); color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;}
.marquee-content .dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 8px var(--primary-glow); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 4. Quotes Carousel */
.carousel-container { padding: 3rem; text-align: center; max-width: 800px; margin: 0 auto; position: relative; }
.quote-slides { position: relative; overflow: hidden; height: 200px; }
@media (max-width: 768px) { .quote-slides { height: 280px; } }
.quote-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease; display: flex; flex-direction: column; justify-content: center; pointer-events: none;}
.quote-slide.active { opacity: 1; pointer-events: auto; }
.quote-mark { font-size: 3rem; color: var(--primary); opacity: 0.3; margin-bottom: 1rem; }
.quote-text { font-size: 1.3rem; font-style: italic; margin-bottom: 1.5rem; color: var(--text-main); }
.quote-author { font-size: 1.1rem; color: var(--secondary); font-weight: 600; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 1rem; }
.carousel-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); cursor: pointer; transition: all 0.3s ease; }
body.light-mode .carousel-dot { background: rgba(0,0,0,0.2); }
.carousel-dot.active { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); transform: scale(1.3); }

/* =========================================================================
   MEDIA QUERIES
   ========================================================================= */
@media (max-width: 991px) {
    .hero .title { font-size: 3rem; }
    .hero .typing-text { font-size: 1.5rem; }
    
    .timeline::after { left: 31px; }
    .timeline-dot { left: 22px; }
    .timeline-item { padding-left: 70px; }
}

@media (max-width: 768px) {
    .menu-btn { display: block; }
    
    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--nav-bg-scrolled);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-out;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 1rem;
    }
    
    .hero .title { font-size: 2.5rem; }
    .hero .description { font-size: 1rem; }
    .section-header h2 { font-size: 2rem; }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn { width: 100%; max-width: 250px; text-align: center; }
}

@media (max-width: 576px) {
    .container { padding: 0 1.5rem; }
    
    .timeline::after { left: 20px; }
    .timeline-dot { left: 11px; }
    .timeline-item { padding-left: 50px; }
    
    .skills-grid, .projects-grid, .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   5 NEW EPIC CHANGES STYLES (Menu, Hologram, Timeline, Badges, Clicks)
   ========================================================================= */

/* 5. Custom Context Menu */
#cyber-context-menu {
    position: fixed; z-index: 100000; display: none; width: 220px;
    background: rgba(10, 10, 18, 0.9); border: 1px solid var(--primary);
    box-shadow: 0 0 15px var(--primary-glow); padding: 5px; border-radius: 8px;
    backdrop-filter: blur(5px);
}
#cyber-context-menu ul { list-style: none; padding: 0; margin: 0; }
#cyber-context-menu li { 
    padding: 10px 15px; cursor: pointer; color: var(--text-main); 
    display: flex; gap: 10px; align-items: center; border-radius: 4px; transition: all 0.2s;
}
#cyber-context-menu li:hover { background: var(--primary); color: #fff; }

/* 6. Dynamic Typing Cursor */
.type-cursor { display: inline-block; width: 3px; background-color: var(--primary); animation: blink 1s infinite; margin-left: 5px;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* 7. Hologram Scan Avatar */
.hologram-scan {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--secondary); box-shadow: 0 0 20px 5px var(--secondary-glow);
    z-index: 5; opacity: 0.7; animation: scanHologram 4s linear infinite; pointer-events: none;
}
@keyframes scanHologram { 0% { top: -10%; opacity: 0;} 10% { opacity: 0.7;} 90% { opacity: 0.7; } 100% { top: 110%; opacity: 0;} }

/* 8. Project Badges */
.project-badge {
    position: absolute; top: 15px; right: -30px; background: var(--primary); color: #fff;
    padding: 5px 35px; font-size: 0.8rem; font-weight: bold; font-family: var(--font-heading);
    transform: rotate(45deg); z-index: 10; box-shadow: 0 0 10px var(--primary-glow); text-transform: uppercase;
}
.project-badge.security { background: var(--secondary); box-shadow: 0 0 10px var(--secondary-glow); }

/* 9. Scroll Percentage */
.scroll-percentage {
    position: fixed; top: 20px; right: 20px; z-index: 9998; font-family: var(--font-heading);
    font-size: 1.2rem; font-weight: bold; color: var(--primary); text-shadow: 0 0 10px var(--primary-glow);
    pointer-events: none;
}

/* 10. Experience Timeline Update */
.experience-timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 30px; }
.experience-timeline::before {
    content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%;
    background: var(--gradient-primary); border-radius: 3px;
}
.experience-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
    position: absolute; left: -44px; top: 20px; width: 25px; height: 25px;
    background: var(--bg-dark); border: 4px solid var(--primary); border-radius: 50%;
    box-shadow: 0 0 15px var(--primary-glow); z-index: 2; transition: all 0.3s ease;
}
.experience-item:hover .timeline-dot { background: var(--primary); transform: scale(1.2); }
.experience-item .year { font-weight: bold; color: var(--secondary); margin-bottom: 5px;}

/* 11. Section Diagonal Split */
.diagonal-split {
    position: relative;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding-top: 100px; padding-bottom: 100px;
    margin: -50px 0; z-index: 2;
}
@media (max-width: 768px) { .diagonal-split { clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%); } }

/* 12. Footer Matrix Canvas */
.matrix-bg-container { position: relative; overflow: hidden; }
#matrix-footer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.2; pointer-events: none;}

/* 13. Click Ripple Burst */
.click-ripple {
    position: absolute; border: 2px solid var(--primary); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 99999;
    animation: rippleBurst 0.6s ease-out forwards;
}
@keyframes rippleBurst {
    0% { width: 0; height: 0; opacity: 1; border-width: 4px; box-shadow: 0 0 10px var(--primary-glow); }
    100% { width: 100px; height: 100px; opacity: 0; border-width: 1px; }
}
