/* ========================================
   PORTFOLIO WEBSITE - MODERN CSS FRAMEWORK
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */

:root {
    /* Color Palette */
    --primary-color: #4A90E2;
    --primary-dark: #357ABD;
    --primary-light: #64B5F6;
    --secondary-color: #81C784;
    --accent-color: #FF6B6B;
    
    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Dark Theme Colors */
    --dark-bg: #1a1a1a;
    --dark-surface: #2a2a2a;
    --dark-surface-light: #3a3a3a;
    --dark-text: #f0f0f0;
    --dark-text-secondary: #d0d0d0;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-6xl: 3.75rem;   /* 60px */
    --font-size-7xl: 4.5rem;    /* 72px */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Spacing */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */
    
    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --white: var(--dark-bg);
    --gray-50: var(--dark-surface);
    --gray-100: var(--dark-surface-light);
    --gray-200: var(--gray-700);
    --gray-300: var(--gray-600);
    --gray-400: var(--gray-500);
    --gray-500: var(--gray-400);
    --gray-600: var(--gray-300);
    --gray-700: var(--gray-200);
    --gray-800: var(--gray-100);
    --gray-900: var(--gray-500);
    
    /* Night Sky Colors */
    --sky-primary: #0a0a0a;
    --sky-secondary: #1a1a2e;
    --sky-accent: #16213e;
    --star-color: #ffffff;
    --comet-color: #4A90E2;
    --nebula-color: rgba(74, 144, 226, 0.1);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   PRELOADER
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-toast);
    transition: opacity var(--transition-slow);
    opacity: 1;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader__content {
    text-align: center;
}

.preloader__spinner {
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-5);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader__text {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */

.container {
    width: 100%;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 var(--space-10);
}

.section {
    min-height: 100vh;
    padding: var(--space-20) 0;
    position: relative;
    z-index: 1;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section__title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    position: relative;
}

/* Removed decorative bar under section titles */

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-500);
    font-weight: var(--font-weight-normal);
}

/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 18.75rem; /* 300px */
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: var(--gray-800);
    z-index: var(--z-fixed);
    transform: translateX(0);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar__content {
    padding: var(--space-10) var(--space-8);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: var(--space-10);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile__image {
    margin-bottom: var(--space-5);
}

.profile__image img {
    width: 7.5rem; /* 120px */
    height: 7.5rem; /* 120px */
    border-radius: var(--radius-full);
    border: 4px solid rgba(74, 144, 226, 0.3);
    object-fit: cover;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.profile__image img:hover {
    transform: scale(1.05);
}

.profile__name {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
    color: var(--gray-800);
}

.profile__title {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    margin-bottom: var(--space-5);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    background: rgba(74, 144, 226, 0.1);
    border-radius: var(--radius-full);
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.social-link:hover {
    background: rgba(74, 144, 226, 0.2);
    transform: translateY(-2px);
    border-color: rgba(74, 144, 226, 0.4);
    box-shadow: var(--shadow-md);
}

.social-link i {
    font-size: var(--font-size-lg);
}

/* Theme Toggle */
.theme-toggle {
    width: 2.8125rem; /* 45px */
    height: 2.8125rem; /* 45px */
    background: rgba(74, 144, 226, 0.9);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    font-size: var(--font-size-base);
    margin-top: var(--space-5);
    align-self: center;
}

.theme-toggle:hover {
    background: rgba(74, 144, 226, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    flex: 1;
}

.nav-menu li {
    margin-bottom: var(--space-3);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    color: var(--gray-500);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(74, 144, 226, 0.1);
    transition: left var(--transition-normal);
}

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(-5px);
    border-left: 3px solid var(--primary-color);
}

.nav-link i {
    margin-right: var(--space-4);
    font-size: var(--font-size-lg);
    width: 1.25rem; /* 20px */
    text-align: center;
}

.nav-link span {
    font-weight: var(--font-weight-medium);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: var(--space-5);
    left: var(--space-5);
    width: 3.125rem; /* 50px */
    height: 3.125rem; /* 50px */
    background: rgba(74, 144, 226, 0.9);
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    z-index: var(--z-fixed);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle:hover {
    background: rgba(74, 144, 226, 1);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.mobile-menu-toggle span {
    width: 1.5625rem; /* 25px */
    height: 0.1875rem; /* 3px */
    background: var(--white);
    margin: 2px 0;
    transition: all var(--transition-normal);
    border-radius: var(--radius-sm);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-fixed) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    margin-left: 18.75rem; /* 300px */
    min-height: 100vh;
    transition: margin-left var(--transition-normal), background var(--transition-slow);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 0;
    transition: opacity var(--transition-slow);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.9) 0%, rgba(195, 207, 226, 0.9) 100%);
    z-index: -1;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero__text {
    display: flex;
    flex-direction: column;
}

.hero__title {
    font-size: var(--font-size-7xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--space-5);
}

.hero__greeting {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-normal);
    color: var(--gray-500);
    margin-bottom: var(--space-3);
}

.hero__name {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
    color: var(--gray-800);
    margin-bottom: var(--space-4);
    height: 2.5rem; /* 40px */
    overflow: hidden;
    position: relative;
}

.hero__subtitle-text {
    display: inline-block;
    position: relative;
}

/* Removed blinking cursor from typing animation */

/* Removed blink animation - no longer needed */

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding: var(--space-2) var(--space-4);
    background: rgba(74, 144, 226, 0.1);
    border-radius: var(--radius-full);
    border: 1px solid rgba(74, 144, 226, 0.2);
    width: fit-content;
}

.status-dot {
    width: 0.5rem; /* 8px */
    height: 0.5rem; /* 8px */
    background: var(--secondary-color);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--secondary-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(129, 199, 132, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(129, 199, 132, 0);
    }
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--gray-500);
    margin-bottom: var(--space-10);
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: var(--space-5);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn--secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   HERO IMAGE
   ======================================== */

.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 25rem; /* 400px */
    height: 25rem; /* 400px */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 7.5rem; /* 120px */
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.about__text {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.about__text p {
    font-size: var(--font-size-lg);
    color: var(--gray-500);
    margin-bottom: var(--space-5);
    line-height: 1.8;
}

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.skills h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-8);
    text-align: center;
}

/* Skill Category Styling */
.skill-category {
    margin-bottom: var(--space-10);
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: var(--space-6);
    text-align: left;
    position: relative;
    padding-left: var(--space-4);
}

.skill-category h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-sm);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-2);
}

/* Modern Card Design */
.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-6) var(--space-4);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    border: 1px solid rgba(74, 144, 226, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 120px;
    justify-content: center;
}

/* Gradient overlay effect */
.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(74, 144, 226, 0.05));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.95));
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: var(--space-3);
    color: var(--primary-color);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.skill-item:hover .skill-icon {
    transform: scale(1.15) rotate(-5deg);
    color: var(--primary-dark);
    filter: drop-shadow(0 4px 8px rgba(74, 144, 226, 0.3));
}

.skill-item span {
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    font-size: var(--font-size-sm);
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.skill-item:hover span {
    color: var(--gray-900);
}

/* Responsive adjustments for skill categories */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .skill-category h4 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-4);
    }
    
    .skill-item {
        padding: var(--space-4) var(--space-3);
        min-height: 100px;
    }
    
    .skill-icon {
        font-size: 1.8rem;
        margin-bottom: var(--space-2);
    }
    
    .skill-item span {
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .skill-item {
        padding: var(--space-3) var(--space-2);
        min-height: 90px;
    }
    
    .skill-icon {
        font-size: 1.6rem;
    }
}

/* ========================================
   RESUME SECTION
   ======================================== */

.resume__content {
    max-width: 50rem; /* 800px */
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.timeline {
    position: relative;
    padding-left: var(--space-8);
}

.timeline::before {
    content: '';
    position: absolute;
    left: var(--space-4);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-sm);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-12);
    padding-left: var(--space-10);
    background: rgba(255, 255, 255, 0.6);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
}

.timeline-item:hover {
    transform: translateX(10px);
    border-left-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.8);
}

.timeline-marker {
    position: absolute;
    left: calc(-1 * var(--space-3));
    top: var(--space-8);
    width: 1.25rem; /* 20px */
    height: 1.25rem; /* 20px */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-full);
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
    transition: all var(--transition-normal);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(74, 144, 226, 0.3);
}

.timeline-content h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}

.timeline-content h4 {
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
    font-weight: var(--font-weight-medium);
}

.timeline-date {
    font-size: var(--font-size-sm);
    color: var(--gray-500);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
    display: inline-block;
    background: rgba(74, 144, 226, 0.1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.timeline-content p {
    color: var(--gray-500);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

/* Timeline Achievements Styling */
.timeline-achievements {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(74, 144, 226, 0.2);
}

.timeline-achievements h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievement-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(74, 144, 226, 0.05);
    border-radius: var(--radius-lg);
    border-left: 3px solid var(--primary-color);
    transition: all var(--transition-normal);
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.achievement-list li:hover {
    background: rgba(74, 144, 226, 0.1);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.achievement-list li:last-child {
    margin-bottom: 0;
}

.achievement-list li i {
    color: var(--primary-color);
    font-size: var(--font-size-base);
    margin-top: 2px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.achievement-list li .achievement-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-1);
}

.achievement-list li strong {
    color: var(--gray-800);
    font-weight: var(--font-weight-semibold);
}

.achievement-list li .achievement-description {
    color: var(--gray-600);
    flex-basis: 100%;
    margin-top: var(--space-1);
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    margin-bottom: var(--space-12);
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-5);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.filter-btn {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 2px solid rgba(74, 144, 226, 0.3);
    border-radius: var(--radius-full);
    color: var(--gray-500);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
    font-size: var(--font-size-sm);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); /* 352px */
    gap: var(--space-8);
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    group: portfolio-item;
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(74, 144, 226, 0.15), 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(74, 144, 226, 0.4);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 16rem; /* 256px */
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.95) 0%, 
        rgba(53, 122, 189, 0.95) 50%, 
        rgba(129, 199, 132, 0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all var(--transition-normal);
    color: var(--white);
    text-align: center;
    padding: var(--space-6);
    backdrop-filter: blur(10px);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    max-width: 100%;
}

.portfolio-overlay h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.portfolio-overlay p {
    font-size: var(--font-size-sm);
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin: var(--space-2) 0;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.portfolio-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.portfolio-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-link i {
    font-size: var(--font-size-sm);
}

.portfolio-link span {
    font-size: var(--font-size-xs);
}

.portfolio-overlay h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-4) 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: var(--white);
    text-align: center;
}

.portfolio-overlay p {
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin: var(--space-2) 0;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-fast);
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.portfolio-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.portfolio-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.portfolio-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.portfolio-link i {
    font-size: var(--font-size-sm);
}

.portfolio-link span {
    font-size: var(--font-size-xs);
}

.portfolio-click-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    animation: pulse-hint 2s infinite;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-top: var(--space-2);
}

.portfolio-click-hint i {
    font-size: var(--font-size-lg);
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
}

/* ========================================
   PORTFOLIO MODAL
   ======================================== */

.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.portfolio-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 70rem; /* 1120px */
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.portfolio-modal.active .portfolio-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-modal-close {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    width: 2.5rem; /* 40px */
    height: 2.5rem; /* 40px */
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--gray-600);
    transition: all var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.portfolio-modal-close:hover {
    background: rgba(255, 255, 255, 1);
    color: var(--accent-color);
    transform: scale(1.1);
}

.portfolio-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    min-height: 32rem; /* 512px */
}

.portfolio-modal-image {
    position: relative;
    overflow: hidden;
}

.portfolio-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-modal-info {
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    overflow-y: auto;
}

.portfolio-modal-info h3 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--gray-800);
    margin: 0;
}

.portfolio-modal-info > p {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

.portfolio-modal-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.modal-tech-section h4,
.modal-features-section h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-color);
    margin-bottom: var(--space-3);
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.modal-tech-tags .tech-tag {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.modal-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2);
}

.modal-features-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2);
    background: rgba(74, 144, 226, 0.05);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

.modal-features-list li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-base);
}

.portfolio-modal-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: auto;
}

.modal-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.modal-btn-secondary {
    background: transparent;
    color: var(--gray-600);
    border-color: var(--gray-300);
}

.modal-btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Dark Mode Modal Styles */
[data-theme="dark"] .portfolio-modal-content {
    background: radial-gradient(ellipse at center, rgba(40, 40, 40, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-color: rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .portfolio-modal-close {
    background: rgba(40, 40, 40, 0.9);
    color: #ffffff;
}

[data-theme="dark"] .portfolio-modal-close:hover {
    background: rgba(60, 60, 60, 1);
    color: var(--accent-color);
}

[data-theme="dark"] .portfolio-modal-info h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .portfolio-modal-info > p {
    color: #ffffff !important;
}

[data-theme="dark"] .modal-tech-section h4,
[data-theme="dark"] .modal-features-section h4 {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .modal-tech-tags .tech-tag {
    background: rgba(74, 144, 226, 0.2);
    color: #ffffff !important;
    border-color: rgba(74, 144, 226, 0.4);
}

[data-theme="dark"] .modal-features-list li {
    background: rgba(74, 144, 226, 0.1);
    color: #ffffff !important;
}

[data-theme="dark"] .modal-btn-secondary {
    color: #ffffff !important;
    border-color: rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .modal-btn-secondary:hover {
    background: rgba(74, 144, 226, 0.1);
    border-color: rgba(74, 144, 226, 0.5);
    color: #ffffff !important;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .portfolio-modal-content {
        width: 95%;
        max-width: none;
        max-height: 90vh;
        margin: 5vh auto;
    }
    
    .portfolio-modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 250px 1fr;
        max-height: 80vh;
    }
    
    .portfolio-modal-image {
        height: 250px;
    }
    
    .portfolio-modal-info {
        padding: var(--space-6);
        overflow-y: auto;
        max-height: calc(80vh - 250px);
        -webkit-overflow-scrolling: touch;
    }
    
    .portfolio-modal-info h3 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-4);
    }
    
    .portfolio-modal-info > p {
        font-size: var(--font-size-sm);
        line-height: 1.6;
        margin-bottom: var(--space-4);
    }
    
    .portfolio-modal-details {
        gap: var(--space-4);
    }
    
    .modal-tech-section h4,
    .modal-features-section h4 {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-2);
    }
    
    .modal-tech-tags {
        gap: var(--space-1);
    }
    
    .modal-tech-tags .tech-tag {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-2);
    }
    
    .modal-features-list {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }
    
    .modal-features-list li {
        font-size: var(--font-size-xs);
        padding: var(--space-1) var(--space-2);
    }
    
    .portfolio-modal-actions {
        flex-direction: column;
        gap: var(--space-3);
        margin-top: var(--space-4);
        padding-top: var(--space-4);
        border-top: 1px solid rgba(74, 144, 226, 0.2);
    }
    
    .modal-btn {
        justify-content: center;
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
    }
    
    .portfolio-modal-close {
        top: var(--space-3);
        right: var(--space-3);
        width: 2rem;
        height: 2rem;
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .portfolio-modal-content {
        width: 98%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .portfolio-modal-body {
        grid-template-rows: 200px 1fr;
    }
    
    .portfolio-modal-image {
        height: 200px;
    }
    
    .portfolio-modal-info {
        padding: var(--space-4);
        max-height: calc(95vh - 200px);
    }
    
    .portfolio-modal-info h3 {
        font-size: var(--font-size-xl);
    }
    
    .modal-btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
    max-width: 60rem; /* 960px - reduced from full width */
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    max-width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
}

.contact-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: rgba(74, 144, 226, 0.3);
}

.contact-icon {
    width: 3.75rem; /* 60px - reduced from 70px */
    height: 3.75rem; /* 60px - reduced from 70px */
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--font-size-2xl);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.contact-details h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-800);
    margin-bottom: var(--space-2);
}

.contact-details p {
    color: var(--gray-500);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
    background: rgba(255, 255, 255, 0.8);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: var(--space-8);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-5) var(--space-5);
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-normal);
    outline: none;
    backdrop-filter: blur(5px);
    color: var(--gray-800);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15);
}

.form-group label {
    position: absolute;
    top: calc(-1 * var(--space-3));
    left: var(--space-4);
    color: var(--primary-color);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    background: var(--white);
    padding: 0 var(--space-1);
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.form-group textarea {
    resize: vertical;
    min-height: 7.5rem; /* 120px */
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: var(--white);
    padding: var(--space-12) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-left: 18.75rem; /* 300px */
    transition: margin-left var(--transition-normal);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    pointer-events: none;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    padding: 0 var(--space-10);
    position: relative;
    z-index: 1;
}

.footer__content p {
    font-size: var(--font-size-base);
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: var(--space-5);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8125rem; /* 45px */
    height: 2.8125rem; /* 45px */
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    text-decoration: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 144, 226, 0.3);
}

/* ========================================
   DARK THEME STYLES
   ======================================== */

/* ========================================
   DARK THEME TEXT OVERRIDES
   ======================================== */

[data-theme="dark"] {
    color: #ffffff !important;
}

[data-theme="dark"] * {
    color: inherit;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #ffffff !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] li,
[data-theme="dark"] a {
    color: #ffffff !important;
}

[data-theme="dark"] .hero__subtitle-text {
    color: #ffffff !important;
}

[data-theme="dark"] .status-text {
    color: var(--secondary-color) !important;
}

[data-theme="dark"] .nav-link span {
    color: inherit !important;
}

[data-theme="dark"] .nav-link i {
    color: inherit !important;
}

[data-theme="dark"] .social-link i {
    color: inherit !important;
}

[data-theme="dark"] .footer-social-link i {
    color: inherit !important;
}

[data-theme="dark"] .theme-toggle i {
    color: #ffffff !important;
}

[data-theme="dark"] .mobile-menu-toggle span {
    background: #ffffff !important;
}

[data-theme="dark"] .portfolio-link i {
    color: #ffffff !important;
}

[data-theme="dark"] .contact-icon i {
    color: #ffffff !important;
}

[data-theme="dark"] .skill-icon i {
    color: var(--primary-color) !important;
}

[data-theme="dark"] .timeline-marker {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

[data-theme="dark"] .image-placeholder i {
    color: #ffffff !important;
}

[data-theme="dark"] {
    background-color: var(--sky-primary);
    color: var(--dark-text);
    position: relative;
    overflow-x: hidden;
}

[data-theme="dark"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, var(--nebula-color) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(129, 199, 132, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, var(--sky-primary) 0%, var(--sky-secondary) 50%, var(--sky-accent) 100%);
    pointer-events: none;
    z-index: -2;
}

[data-theme="dark"] .main-content {
    background: transparent;
    position: relative;
}

[data-theme="dark"] .main-content::before {
    opacity: 0;
}

[data-theme="dark"] .main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(74, 144, 226, 0.08) 0%, transparent 70%),
        linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.02) 50%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    /* Removed heavy animation for better performance */
}

@keyframes nebula-drift {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translateX(10px) translateY(-5px) rotate(1deg);
        opacity: 1;
    }
    50% { 
        transform: translateX(-5px) translateY(10px) rotate(-1deg);
        opacity: 0.9;
    }
    75% { 
        transform: translateX(5px) translateY(-10px) rotate(0.5deg);
        opacity: 1;
    }
}

[data-theme="dark"] .sidebar {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 
        5px 0 25px rgba(0, 0, 0, 0.5),
        inset 1px 0 0 rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .profile__name {
    color: #ffffff !important;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile__title {
    color: #ffffff !important;
    font-weight: var(--font-weight-medium);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-link {
    color: #ffffff !important;
    font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(74, 144, 226, 0.25);
}

[data-theme="dark"] .section__title {
    color: #ffffff !important;
    font-weight: var(--font-weight-bold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .section__subtitle {
    color: #ffffff !important;
    font-weight: var(--font-weight-medium);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero__greeting {
    color: #ffffff !important;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-medium);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero__name {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.5);
    font-weight: var(--font-weight-bold);
}

[data-theme="dark"] .hero__subtitle {
    color: #ffffff !important;
    font-weight: var(--font-weight-bold);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .hero__description {
    color: #ffffff !important;
    font-size: var(--font-size-lg);
    line-height: 1.8;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
    font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .about__text,
[data-theme="dark"] .skills,
[data-theme="dark"] .resume__content,
[data-theme="dark"] .contact-form,
[data-theme="dark"] .contact-item,
[data-theme="dark"] .portfolio-item,
[data-theme="dark"] .portfolio-filters {
    background: 
        radial-gradient(ellipse at center, rgba(40, 40, 40, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .skill-item {
    background: 
        radial-gradient(ellipse at center, rgba(30, 30, 30, 0.7) 0%, rgba(10, 10, 10, 0.8) 100%);
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .skill-item:hover {
    border-color: rgba(74, 144, 226, 0.4);
    background: 
        radial-gradient(ellipse at center, rgba(40, 40, 40, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    box-shadow: 
        0 15px 35px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(74, 144, 226, 0.2);
    transform: translateY(-8px) scale(1.05);
}

[data-theme="dark"] .timeline-item {
    background: 
        radial-gradient(ellipse at center, rgba(30, 30, 30, 0.7) 0%, rgba(10, 10, 10, 0.8) 100%);
    border-left: 4px solid transparent;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .timeline-item:hover {
    border-left-color: rgba(74, 144, 226, 0.6);
    background: 
        radial-gradient(ellipse at center, rgba(40, 40, 40, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    box-shadow: 
        0 15px 35px rgba(74, 144, 226, 0.2),
        inset 0 1px 0 rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .about__text p,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .timeline-content h3,
[data-theme="dark"] .timeline-content h4,
[data-theme="dark"] .contact-details h3,
[data-theme="dark"] .contact-details p,
[data-theme="dark"] .skill-item span,
[data-theme="dark"] .skills h3,
[data-theme="dark"] .achievement-description {
    color: #ffffff !important;
    font-weight: var(--font-weight-medium);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .timeline-date {
    color: #ffffff !important;
    font-weight: var(--font-weight-semibold);
    background: rgba(74, 144, 226, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .portfolio-overlay h3,
[data-theme="dark"] .portfolio-overlay p {
    color: #ffffff !important;
    font-weight: var(--font-weight-semibold);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .portfolio-overlay h3 {
    font-weight: var(--font-weight-bold) !important;
}

[data-theme="dark"] .tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .tech-tag:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}

[data-theme="dark"] .portfolio-link {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .portfolio-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
}

[data-theme="dark"] .portfolio-link span {
    color: #ffffff !important;
}

[data-theme="dark"] .portfolio-click-hint {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1) !important;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .portfolio-click-hint i {
    color: rgba(255, 255, 255, 1) !important;
}

[data-theme="dark"] .portfolio-click-hint span {
    color: rgba(255, 255, 255, 1) !important;
}

[data-theme="dark"] .portfolio-link i {
    color: #ffffff !important;
}

[data-theme="dark"] .footer__content p {
    color: #ffffff !important;
    font-weight: var(--font-weight-medium);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(40, 40, 40, 0.7);
    border: 2px solid rgba(74, 144, 226, 0.4);
    color: #ffffff !important;
    font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: rgba(50, 50, 50, 0.8);
    border-color: var(--primary-color);
    color: #ffffff !important;
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] .form-group label {
    background: rgba(40, 40, 40, 0.7);
    color: var(--primary-color) !important;
    font-weight: var(--font-weight-medium);
}

[data-theme="dark"] .btn {
    color: #ffffff !important;
    font-weight: var(--font-weight-semibold);
}

[data-theme="dark"] .btn--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff !important;
    border: 2px solid transparent;
}

[data-theme="dark"] .btn--secondary {
    background: transparent;
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
}

[data-theme="dark"] .btn--secondary:hover {
    background: var(--primary-color);
    color: #ffffff !important;
}

[data-theme="dark"] .filter-btn {
    color: #ffffff !important;
    border-color: rgba(74, 144, 226, 0.3);
    background: transparent;
}

[data-theme="dark"] .filter-btn:hover,
[data-theme="dark"] .filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: #ffffff !important;
}

[data-theme="dark"] .social-link {
    color: var(--primary-color) !important;
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.2);
}

[data-theme="dark"] .social-link:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #ffffff !important;
    border-color: rgba(74, 144, 226, 0.4);
}

[data-theme="dark"] .footer-social-link {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .footer-social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff !important;
    border-color: rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .footer {
    background: 
        radial-gradient(ellipse at center, rgba(10, 10, 10, 0.9) 0%, rgba(5, 5, 5, 1) 100%);
    margin-left: 18.75rem; /* 300px */
    border-top: 1px solid rgba(74, 144, 226, 0.2);
    box-shadow: 
        0 -10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .hero::before {
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(74, 144, 226, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(129, 199, 132, 0.05) 0%, transparent 60%),
        linear-gradient(135deg, rgba(10, 10, 10, 0.9) 0%, rgba(26, 26, 46, 0.8) 50%, rgba(22, 33, 62, 0.7) 100%);
}

[data-theme="dark"] .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, rgba(74, 144, 226, 0.15) 0%, transparent 70%),
        linear-gradient(45deg, transparent 30%, rgba(74, 144, 226, 0.03) 50%, transparent 70%);
    z-index: -1;
    /* Removed heavy animation for better performance */
}

@keyframes hero-glow {
    0%, 100% { 
        opacity: 0.8;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

[data-theme="dark"] .image-placeholder {
    background: 
        radial-gradient(ellipse at center, rgba(74, 144, 226, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--secondary-color));
    box-shadow: 
        var(--shadow-xl), 
        0 0 60px rgba(74, 144, 226, 0.3),
        0 0 120px rgba(74, 144, 226, 0.1);
    border: 2px solid rgba(74, 144, 226, 0.4);
    /* Removed heavy animation for better performance */
}

@keyframes image-glow {
    0%, 100% { 
        box-shadow: 
            var(--shadow-xl), 
            0 0 60px rgba(74, 144, 226, 0.3),
            0 0 120px rgba(74, 144, 226, 0.1);
    }
    50% { 
        box-shadow: 
            var(--shadow-xl), 
            0 0 80px rgba(74, 144, 226, 0.4),
            0 0 160px rgba(74, 144, 226, 0.2);
    }
}

[data-theme="dark"] .image-placeholder::before {
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    /* Removed heavy animation for better performance */
}

@keyframes shimmer-dark {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0.3; }
}

[data-theme="dark"] .status-indicator {
    background: 
        radial-gradient(ellipse at center, rgba(74, 144, 226, 0.3) 0%, rgba(74, 144, 226, 0.1) 100%);
    border: 1px solid rgba(74, 144, 226, 0.5);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 20px rgba(74, 144, 226, 0.2),
        inset 0 0 10px rgba(74, 144, 226, 0.1);
}

[data-theme="dark"] .status-dot {
    background: var(--secondary-color);
    box-shadow: 
        0 0 10px rgba(129, 199, 132, 0.6),
        0 0 20px rgba(129, 199, 132, 0.3);
    /* Simplified animation for better performance */
    animation: pulse-simple 3s infinite;
}

@keyframes pulse-dark {
    0% {
        box-shadow: 
            0 0 0 0 rgba(129, 199, 132, 0.8),
            0 0 10px rgba(129, 199, 132, 0.6),
            0 0 20px rgba(129, 199, 132, 0.3);
    }
    70% {
        box-shadow: 
            0 0 0 15px rgba(129, 199, 132, 0),
            0 0 15px rgba(129, 199, 132, 0.8),
            0 0 30px rgba(129, 199, 132, 0.4);
    }
    100% {
        box-shadow: 
            0 0 0 0 rgba(129, 199, 132, 0),
            0 0 10px rgba(129, 199, 132, 0.6),
            0 0 20px rgba(129, 199, 132, 0.3);
    }
}

/* Simplified pulse animation for better performance */
@keyframes pulse-simple {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
}

[data-theme="dark"] .status-text {
    color: var(--secondary-color);
    text-shadow: 
        0 0 10px rgba(129, 199, 132, 0.5),
        0 0 20px rgba(129, 199, 132, 0.2);
}

/* ========================================
   ANIMATED STARS & COMETS
   ======================================== */

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: var(--star-color);
    border-radius: var(--radius-full);
    animation: twinkle 4s infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star:nth-child(odd) {
    animation-delay: 1s;
    animation-duration: 3s;
}

.star:nth-child(even) {
    animation-delay: 2s;
    animation-duration: 5s;
}

.star:nth-child(3n) {
    animation-delay: 0.5s;
    animation-duration: 6s;
}

.star:nth-child(5n) {
    animation-delay: 3s;
    animation-duration: 4s;
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1); 
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.2); 
        box-shadow: 0 0 12px rgba(255, 255, 255, 1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.5); 
        box-shadow: 0 0 20px rgba(255, 255, 255, 1);
    }
    75% { 
        opacity: 0.6; 
        transform: scale(1.1); 
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    }
}

/* Shooting Stars */
.shooting-star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: linear-gradient(45deg, var(--star-color), var(--comet-color));
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: -1;
    animation: shooting-star 3s linear infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), rgba(74, 144, 226, 0.6));
    border-radius: 2px;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60px;
    width: 60px;
    height: 0.5px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.4));
    border-radius: 2px;
}

@keyframes shooting-star {
    0% {
        transform: translate(-100px, -100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100vw + 100px), calc(100vh + 100px));
        opacity: 0;
    }
}

/* Comet Animation */
.comet {
    position: fixed;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, var(--star-color) 0%, var(--comet-color) 70%, transparent 100%);
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: -1;
    animation: comet 12s linear infinite;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.8);
}

.comet::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(74, 144, 226, 0.6);
}

.comet::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80px;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.4));
    border-radius: 2px;
}

@keyframes comet {
    0% {
        transform: translate(-150px, -150px);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(100vw + 150px), calc(100vh + 150px));
        opacity: 0;
    }
}

/* ========================================
   ANIMATION CLASSES
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

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

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

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

/* ========================================
   UTILITY CLASSES
   ======================================== */

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */

/* Scrollbar styling removed - no visible scrollbar */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: transparent;
}

/* Hide scrollbar for Firefox and other browsers */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

/* ========================================
   SELECTION & FOCUS STYLES
   ======================================== */

::selection {
    background: rgba(74, 144, 226, 0.2);
    color: var(--gray-800);
}

button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Global mobile overflow prevention */
@media (max-width: 767px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .btn {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section__title,
    .section__subtitle,
    .hero__greeting,
    .hero__name,
    .hero__subtitle-text,
    .hero__description,
    .about__text p,
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content p,
    .contact-details h3,
    .contact-details p,
    .skill-item span,
    .skills h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

/* Mobile Layout (320px - 767px) */
@media (max-width: 767px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .main-content {
        overflow-x: hidden;
    }
    
    .section {
        overflow-x: hidden;
    }
    
    .container {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .sidebar {
        width: 100%;
        max-width: 20rem; /* 320px */
        transform: translateX(-100%);
        left: 0;
        top: 0;
        height: 100vh;
        position: fixed;
        z-index: var(--z-fixed);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar__content {
        padding: var(--space-6) var(--space-4);
        width: 100%;
        box-sizing: border-box;
    }
    
    .profile {
        margin-bottom: var(--space-6);
    }
    
    .profile__image img {
        width: 6.25rem; /* 100px */
        height: 6.25rem; /* 100px */
    }
    
    .profile__name {
        font-size: var(--font-size-xl);
    }
    
    .nav-menu {
        gap: var(--space-2);
        width: 100%;
    }
    
    .nav-link {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-sm);
        width: 100%;
        box-sizing: border-box;
    }
    
    .main-content {
        margin-left: 0;
        position: relative;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .section__title {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--space-3);
    }
    
    .section__header {
        margin-bottom: var(--space-10);
    }
    
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
        width: 100%;
        max-width: 100%;
    }
    
    .hero__text {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero__title {
        font-size: var(--font-size-4xl);
        margin-bottom: var(--space-4);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero__subtitle {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-3);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero__description {
        margin-bottom: var(--space-8);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero__buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--space-4);
        width: 100%;
        max-width: 100%;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        width: 100%;
        max-width: 100%;
    }
    
    .about__text {
        padding: var(--space-8);
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }
    
    .about__text p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .skills {
        padding: var(--space-8);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .skills h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        width: 100%;
        max-width: 100%;
    }
    
    .skill-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .skill-item span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        width: 100%;
        max-width: 100%;
    }
    
    .contact-form {
        padding: var(--space-6);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .contact-item {
        padding: var(--space-5);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        gap: var(--space-3);
    }
    
    .contact-icon {
        width: 3rem; /* 48px */
        height: 3rem; /* 48px */
        font-size: var(--font-size-xl);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
        width: 100%;
        max-width: 100%;
    }
    
    .portfolio-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
        gap: var(--space-3);
        padding: var(--space-4);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .filter-btn {
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: nowrap;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .resume__content {
        padding: var(--space-8);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .timeline {
        width: 100%;
        max-width: 100%;
    }
    
    .timeline-item {
        padding: var(--space-6);
        margin-bottom: var(--space-8);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .timeline-content h3,
    .timeline-content h4,
    .timeline-content p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .footer__content {
        flex-direction: column;
        gap: var(--space-5);
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .main-content {
        overflow-x: hidden;
    }
    
    .section {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 var(--space-3);
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .section {
        padding: var(--space-10) 0;
    }
    
    .section__title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-2);
    }
    
    .section__header {
        margin-bottom: var(--space-8);
    }
    
    .hero__title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--space-3);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-2);
    }
    
    .hero__description {
        margin-bottom: var(--space-6);
        font-size: var(--font-size-base);
    }
    
    .hero__buttons {
        gap: var(--space-3);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
    }
    
    .contact-form {
        padding: var(--space-5);
    }
    
    .contact-item {
        padding: var(--space-4);
        gap: var(--space-2);
    }
    
    .contact-icon {
        width: 2.5rem; /* 40px */
        height: 2.5rem; /* 40px */
        font-size: var(--font-size-lg);
    }
    
    .about__text {
        padding: var(--space-6);
    }
    
    .skills {
        padding: var(--space-6);
    }
    
    .resume__content {
        padding: var(--space-6);
    }
    
    .timeline-item {
        padding: var(--space-5);
        margin-bottom: var(--space-6);
    }
    
    .sidebar__content {
        padding: var(--space-5) var(--space-4);
    }
    
    .profile {
        margin-bottom: var(--space-5);
    }
    
    .profile__name {
        font-size: var(--font-size-lg);
    }
    
    .profile__title {
        font-size: var(--font-size-sm);
    }
    
    .nav-link {
        padding: var(--space-3) var(--space-3);
        font-size: var(--font-size-sm);
    }
    
    .portfolio-filters {
        padding: var(--space-3);
        gap: var(--space-2);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--font-size-sm);
    }
}

/* Extra Small Mobile (up to 359px) */
@media (max-width: 359px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }
    
    .main-content {
        overflow-x: hidden;
    }
    
    .section {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 var(--space-2);
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .section {
        padding: var(--space-8) 0;
    }
    
    .section__title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-2);
    }
    
    .section__header {
        margin-bottom: var(--space-6);
    }
    
    .hero__title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-2);
    }
    
    .hero__subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-2);
    }
    
    .hero__description {
        margin-bottom: var(--space-5);
        font-size: var(--font-size-sm);
    }
    
    .hero__buttons {
        gap: var(--space-2);
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: var(--space-3) var(--space-4);
        font-size: var(--font-size-xs);
        width: 100%;
        max-width: 200px;
    }
    
    .sidebar__content {
        padding: var(--space-4) var(--space-3);
    }
    
    .profile {
        margin-bottom: var(--space-4);
    }
    
    .profile__image img {
        width: 4.5rem; /* 72px */
        height: 4.5rem; /* 72px */
    }
    
    .profile__name {
        font-size: var(--font-size-base);
    }
    
    .profile__title {
        font-size: var(--font-size-xs);
    }
    
    .nav-link {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .contact-form {
        padding: var(--space-4);
    }
    
    .contact-item {
        padding: var(--space-3);
        gap: var(--space-2);
    }
    
    .contact-icon {
        width: 2rem; /* 32px */
        height: 2rem; /* 32px */
        font-size: var(--font-size-base);
    }
    
    .about__text {
        padding: var(--space-4);
    }
    
    .skills {
        padding: var(--space-4);
    }
    
    .resume__content {
        padding: var(--space-4);
    }
    
    .timeline-item {
        padding: var(--space-4);
        margin-bottom: var(--space-5);
    }
    
    .portfolio-filters {
        padding: var(--space-2);
        gap: var(--space-1);
    }
    
    .filter-btn {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2);
    }
    
    .skill-item {
        padding: var(--space-4) var(--space-3);
    }
    
    .skill-icon {
        font-size: 2rem; /* 32px */
        margin-bottom: var(--space-2);
    }
    
    .skill-item span {
        font-size: var(--font-size-xs);
    }
}

/* Small Mobile Dark Mode Fixes */
@media (max-width: 479px) {
    [data-theme="dark"] {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] .main-content {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] .main-content::after {
        z-index: -1;
    }
}

/* Extra Small Mobile Dark Mode Fixes */
@media (max-width: 359px) {
    [data-theme="dark"] {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] .main-content {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] .main-content::after {
        z-index: -1;
    }
}

/* Large Mobile / Small Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 0 var(--space-8);
    }
    
    .section__title {
        font-size: var(--font-size-5xl);
    }
    
    .hero__title {
        font-size: var(--font-size-5xl);
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-6);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .sidebar {
        width: 17.5rem; /* 280px */
    }
    
    .main-content {
        margin-left: 17.5rem; /* 280px */
    }
    
    .footer {
        margin-left: 17.5rem; /* 280px */
    }
}

/* Tablet / Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .container {
        padding: 0 var(--space-10);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-10);
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .container {
        padding: 0 var(--space-12);
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-10);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-10);
    }
    
    .section__title {
        font-size: var(--font-size-5xl);
    }
    
    .hero__title {
        font-size: var(--font-size-7xl);
    }
}

/* Dark Theme Responsive Adjustments */
@media (max-width: 767px) {
    [data-theme="dark"] .footer {
        margin-left: 0;
    }
    
    /* Fix dark mode mobile scrolling issues */
    [data-theme="dark"] {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    [data-theme="dark"] body {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    [data-theme="dark"] .main-content {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        position: relative;
    }
    
    [data-theme="dark"] .main-content::after {
        z-index: -1;
        pointer-events: none;
    }
    
    [data-theme="dark"] .section {
        overflow-x: hidden;
        overflow-y: visible;
        position: relative;
    }
    
    /* Dark Theme Performance Optimizations for Mobile */
    [data-theme="dark"] {
        /* Disable heavy animations on mobile for better performance */
        animation: none !important;
    }
    
    [data-theme="dark"] * {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
    }
    
    [data-theme="dark"] .main-content::after {
        /* Simplify background on mobile */
        background: rgba(74, 144, 226, 0.05);
    }
    
    [data-theme="dark"] .hero::after {
        /* Simplify hero background on mobile */
        background: rgba(74, 144, 226, 0.08);
    }
    
    [data-theme="dark"] .image-placeholder {
        /* Remove complex shadows on mobile */
        box-shadow: var(--shadow-lg);
    }
    
    [data-theme="dark"] .status-dot {
        /* Remove pulse animation on mobile */
        animation: none;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .mobile-menu-toggle,
    .footer {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}



