/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e5e7eb;
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    /* Glassmorphism Colors */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(20px);
    
    /* Tab Navigation Glassmorphism */
    --glass-bg-secondary: rgba(255, 255, 255, 0.05);
    --glass-bg-scrolled: rgba(255, 255, 255, 0.15);
    --glass-border-scrolled: rgba(255, 255, 255, 0.25);
    
    /* Dark Theme Glassmorphism */
    --glass-dark-bg: rgba(15, 23, 42, 0.1);
    --glass-dark-border: rgba(255, 255, 255, 0.1);
    --glass-dark-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --glass-bg-dark-secondary: rgba(15, 23, 42, 0.05);
    --glass-bg-dark-scrolled: rgba(15, 23, 42, 0.15);
    --glass-border-dark-scrolled: rgba(255, 255, 255, 0.15);
    
    /* Text Colors for Dark Theme */
    --text-primary-dark: #f9fafb;
    --text-secondary-dark: #d1d5db;
    
    /* Responsive Breakpoints */
    --mobile-small: 320px;
    --mobile-medium: 480px;
    --mobile-large: 600px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1200px;
    --large-desktop: 1400px;
}

[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --border-color: #374151;
    
    /* Dark theme glassmorphism */
    --glass-bg: rgba(15, 23, 42, 0.1);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
    position: relative;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glassmorphism Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

[data-theme="dark"] .glass-card:hover {
    background: rgba(15, 23, 42, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.glass-button {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Typography */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title span {
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

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

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

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

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Navigation with Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.4));
}

/* Tab-Style Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-menu:hover::before {
    opacity: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.nav-link.active {
    color: white;
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

/* Active tab indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: tabPulse 2s ease-in-out infinite;
}

@keyframes tabPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scaleX(1.2); }
}

/* Tab hover effects */
.nav-link:hover {
    transform: translateY(-2px) scale(1.02);
}

.nav-link:active {
    transform: translateY(0) scale(0.98);
}

/* Tab Ripple Effect */
.nav-link .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Tab Focus States */
.nav-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced Tab Hover Effects */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active::after {
    width: 80%;
    background: white;
}

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

/* Theme Toggle Button */
.theme-toggle {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger:hover {
    background: var(--glass-bg-secondary);
    transform: scale(1.05);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

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

/* Scrolled Navbar State */
.navbar.scrolled {
    background: var(--glass-bg-scrolled);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border-scrolled);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-menu {
    background: var(--glass-bg-scrolled);
    border-color: var(--glass-border-scrolled);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .navbar {
    background: var(--glass-bg-dark);
    border-bottom-color: var(--glass-border-dark);
}

[data-theme="dark"] .nav-menu {
    background: var(--glass-bg-dark-secondary);
    border-color: var(--glass-border-dark);
}

[data-theme="dark"] .nav-link {
    color: var(--text-secondary-dark);
}

[data-theme="dark"] .nav-link:hover {
    color: white;
}

[data-theme="dark"] .hamburger span {
    background: var(--text-primary-dark);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--glass-border);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        border-radius: 15px;
        background: var(--glass-bg-secondary);
        border: 1px solid var(--glass-border);
    }

    .nav-link:hover {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(10px);
    }

    .nav-link.active {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(10px);
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        padding: 0 1rem;
    }
}

/* Tab Animation for Mobile */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }

    .nav-link.active::after {
        display: none;
    }
}

/* Hero Section with Glassmorphism */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    padding: 2rem 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-text {
    position: relative;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.floating-card {
    position: relative;
    animation: float 6s ease-in-out infinite;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.floating-card img {
    width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-accent);
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 30%;
    animation-delay: 6s;
}

/* About Section with Glassmorphism */
.about {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.3s ease;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 1rem;
}

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

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.image-container:hover img {
    transform: scale(1.05);
}

.about-text {
    animation: slideInRight 1s ease-out;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Skills Section with Glassmorphism */
.skills {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.skill-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .skill-card:hover {
    background: rgba(15, 23, 42, 0.2);
}

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

.skill-icon img {
    width: 3rem;
    height: 3rem;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

[data-theme="dark"] .skill-bar {
    background: rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left;
    animation: skillProgress 1.5s ease-out forwards;
}

/* Services Section with Glassmorphism */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.05;
    transition: left 0.3s ease;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .service-card:hover {
    background: rgba(15, 23, 42, 0.2);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Portfolio Section with Glassmorphism */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    aspect-ratio: 16/9;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 2rem;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* Contact Section with Glassmorphism */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

[data-theme="dark"] .contact-item:hover {
    background: rgba(15, 23, 42, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
}

/* Enhanced Contact Form Styles */
.contact-form {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-form:hover::before {
    left: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    background: var(--glass-bg-secondary);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--glass-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.4;
}

/* Form Error Messages */
.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    display: none;
    animation: slideInDown 0.3s ease;
}

/* Form Success/Error Messages */
.form-success,
.form-error {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    animation: slideInUp 0.4s ease;
}

.form-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-success i,
.form-error i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Submit Button Styles */
.contact-form .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form .btn:hover::before {
    left: 100%;
}

.contact-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-form .btn.loading {
    background: var(--gradient-primary);
    color: white;
}

/* Button Loading State */
.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* Character Counter */
.char-counter {
    position: absolute;
    bottom: -1.5rem;
    right: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--glass-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* Phone Input Styling */
.form-group input[name="phone"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Floating Labels Effect */
.form-group.focused input,
.form-group.focused textarea {
    border-color: var(--primary-color);
    background: var(--glass-bg);
}

/* Form Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .contact-form .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .form-success,
    .form-error {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .contact-form .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .form-success,
    .form-error {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Dark Theme Contact Form */
[data-theme="dark"] .contact-form {
    background: var(--glass-bg-dark);
    border-color: var(--glass-border-dark);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: var(--glass-bg-dark-secondary);
    border-color: var(--glass-border-dark);
    color: var(--text-primary-dark);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    background: var(--glass-bg-dark);
    border-color: var(--primary-color);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: var(--text-secondary-dark);
}

[data-theme="dark"] .char-counter {
    background: var(--glass-bg-dark);
    color: var(--text-secondary-dark);
}

/* Focus States for Accessibility */
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Print Styles for Contact Form */
@media print {
    .contact-form {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        background: white;
        border: 1px solid #ccc;
        color: black;
    }
    
    .g-recaptcha,
    .form-success,
    .form-error {
        display: none;
    }
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo img {
    height: 50px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
}

.social-link img {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: var(--text-secondary);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.scroll-top.show {
    display: flex;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.8);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.2;
    }
}

@keyframes skillProgress {
    to {
        transform: scaleX(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 1px solid var(--border-color);
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-card img {
        width: 300px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .floating-card img {
        width: 250px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Dark theme toggle animation */
[data-theme="dark"] .theme-toggle i {
    transform: rotate(180deg);
}

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

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

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loader-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Enhanced 3D Effects */
.skill-card, .service-card, .portfolio-item {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.skill-card:hover, .service-card:hover, .portfolio-item:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass {
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Animation for Cards */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.skill-card:nth-child(odd) {
    animation: floatCard 6s ease-in-out infinite;
}

.skill-card:nth-child(even) {
    animation: floatCard 6s ease-in-out infinite reverse;
}

/* Glow Effects */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.glow-on-hover:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

/* Enhanced Button Hover Effects */
.btn-3d {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.btn-3d:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.btn-3d:active {
    transform: translateY(-1px) scale(1.02);
}

/* Particle System Enhancement */
.particle {
    filter: blur(0.5px);
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .floating-shapes {
        display: none;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skill-card, .service-card {
        transform: none !important;
    }
    
    .skill-card:hover, .service-card:hover {
        transform: translateY(-5px) !important;
    }
}

/* Performance Optimizations */
.skill-card, .service-card, .portfolio-item {
    will-change: transform;
}

.floating-card {
    will-change: transform;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes, .particle {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar, .scroll-top, .floating-shapes, .particle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Enhanced Footer Styles */
.footer {
    position: relative;
    background: var(--bg-dark);
    color: white;
    margin-top: 4rem;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    color: var(--bg-dark);
    z-index: 1;
}

.footer-wave svg {
    width: 100%;
    height: 100%;
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.footer-logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.3s ease;
    z-index: -1;
}

.social-link:hover::before {
    left: 0;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 20px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.contact-item div p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-item div a,
.contact-item div span {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-item div a:hover {
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
}

.footer-bottom strong {
    color: var(--primary-color);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Enhanced Dark Mode Support */
[data-theme="dark"] .footer {
    background: var(--bg-dark);
}

[data-theme="dark"] .footer-wave {
    color: var(--bg-dark);
}

[data-theme="dark"] .newsletter-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .contact-item {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Footer Animations */
.footer-section {
    transition: all 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-5px);
}

.footer-section:hover h4::after {
    width: 60px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        min-width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .footer-wave {
        top: -50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 3rem 0 1.5rem;
    }
    
    .newsletter-section {
        padding: 2rem 1.5rem;
    }
    
    .newsletter-content h3 {
        font-size: 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Enhanced Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

[data-theme="dark"] .loader {
    background: var(--bg-dark);
}

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

.loader-spinner {
    width: 80px;
    height: 80px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
    position: relative;
}

.loader-spinner::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.loader-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Enhanced Theme Toggle */
.theme-toggle {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(15, 23, 42, 0.2);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Theme Icon Styles */
.theme-toggle i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
    z-index: 2;
    position: relative;
}

/* Light theme icon (moon) */
[data-theme="light"] .theme-toggle i {
    color: #6366f1;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* Dark theme icon (sun) */
[data-theme="dark"] .theme-toggle i {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Theme Change Indicator */
.theme-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    z-index: 10000;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Theme Toggle Animation */
@keyframes themeToggleSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.theme-toggle.animating i {
    animation: themeToggleSpin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme Toggle Focus States */
.theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Theme Toggle Hover Effects */
.theme-toggle:hover i {
    transform: scale(1.1);
}

/* Dark Mode Enhanced Styles */
[data-theme="dark"] {
    /* Enhanced dark mode colors */
    --glass-bg: rgba(15, 23, 42, 0.15);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Dark mode specific shadows */
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Theme Toggle Responsive */
@media (max-width: 768px) {
    .theme-toggle {
        padding: 0.6rem;
    }
    
    .theme-toggle i {
        font-size: 1.2rem;
    }
    
    .theme-indicator {
        top: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .theme-toggle {
        padding: 0.5rem;
    }
    
    .theme-toggle i {
        font-size: 1.1rem;
    }
    
    .theme-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Enhanced Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 1000;
    transform: scale(0);
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.scroll-top.show {
    display: flex;
    transform: scale(1);
}

/* Enhanced Particle System */
.particle {
    filter: blur(0.5px);
    animation: particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg) scale(1.2);
        opacity: 0.6;
    }
}

/* Enhanced 3D Card Effects */
.skill-card, .service-card, .portfolio-item {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform;
}

.skill-card:hover, .service-card:hover, .portfolio-item:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass {
    background: rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Animation for Cards */
@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

.skill-card:nth-child(odd) {
    animation: floatCard 6s ease-in-out infinite;
}

.skill-card:nth-child(even) {
    animation: floatCard 6s ease-in-out infinite reverse;
}

/* Glow Effects */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    opacity: 0;
}

.glow-on-hover:hover::before {
    width: 300px;
    height: 300px;
    opacity: 0.1;
}

/* Enhanced Button Hover Effects */
.btn-3d {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.btn-3d:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.btn-3d:active {
    transform: translateY(-1px) scale(1.02);
}

/* Performance Optimizations */
.skill-card, .service-card, .portfolio-item {
    will-change: transform;
}

.floating-card {
    will-change: transform;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes, .particle {
        display: none;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 15px;
    }
    
    .hero-container {
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .hero-name {
        font-size: 3.5rem;
    }
    
    .floating-card img {
        width: 350px;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-name {
        font-size: 3rem;
    }
    
    .floating-card img {
        width: 300px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Navigation Mobile */
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        padding: 2rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    [data-theme="dark"] .nav-menu {
        background: var(--bg-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 0;
        display: block;
        border-radius: 10px;
        transition: all 0.3s ease;
        margin: 0.5rem 0;
    }
    
    .nav-link:hover {
        background: rgba(99, 102, 241, 0.1);
        transform: translateX(10px);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    }
    
    .nav-link::before {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Hero Section Mobile */
    .hero-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .floating-card img {
        width: 250px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        padding: 1rem 2rem;
    }
    
    /* Section Titles Mobile */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    /* Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }
    
    .service-icon img {
        width: 35px;
        height: 35px;
    }
    
    /* Portfolio Section Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-item {
        aspect-ratio: 16/10;
    }
    
    .portfolio-overlay {
        padding: 1.5rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.3rem;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        gap: 2rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-item i {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-section {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .newsletter-form input {
        min-width: 100%;
        max-width: 300px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .footer-wave {
        top: -50px;
        height: 50px;
    }
    
    /* Floating shapes hidden on mobile */
    .floating-shapes {
        display: none;
    }
    
    /* Scroll to top button mobile */
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation Extra Small */
    .nav-container {
        padding: 0.8rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .nav-controls {
        gap: 1rem;
    }
    
    .theme-toggle {
        padding: 0.6rem;
        font-size: 1.2rem;
    }
    
    .hamburger span {
        width: 25px;
        height: 2.5px;
    }
    
    /* Hero Section Extra Small */
    .hero-container {
        padding: 0 0.5rem;
        gap: 1rem;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 1.2rem;
    }
    
    .hero-greeting {
        font-size: 1.2rem;
    }
    
    .floating-card img {
        width: 200px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Section Titles Extra Small */
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    /* Skills Section Extra Small */
    .skill-card {
        padding: 1.2rem;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-card h3 {
        font-size: 1.1rem;
    }
    
    /* Services Section Extra Small */
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Portfolio Section Extra Small */
    .portfolio-item {
        aspect-ratio: 4/3;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem;
    }
    
    /* Contact Section Extra Small */
    .contact-item {
        padding: 1rem;
    }
    
    .contact-item i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Footer Extra Small */
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-section {
        padding: 0 0.5rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .newsletter-section {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem 1.5rem;
    }
    
    .newsletter-content h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-content p {
        font-size: 1rem;
    }
    
    .footer-bottom-links {
        gap: 1rem;
        flex-direction: column;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
    }
    
    /* Social links extra small */
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Contact info extra small */
    .contact-item div p {
        font-size: 0.8rem;
    }
    
    .contact-item div a,
    .contact-item div span {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.1rem;
    }
    
    .floating-card img {
        width: 180px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .skill-card,
    .service-card {
        padding: 1rem;
    }
    
    .portfolio-item {
        aspect-ratio: 1/1;
    }
    
    .footer-content {
        padding: 1.5rem 0 1rem;
    }
    
    .newsletter-section {
        padding: 1.2rem 0.8rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .floating-card img {
        width: 200px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-grid,
    .services-grid,
    .portfolio-grid {
        gap: 1rem;
    }
    
    .skill-card,
    .service-card {
        padding: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    .floating-card img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .navbar,
    .scroll-top,
    .floating-shapes,
    .particle,
    .hero-background,
    .footer-wave {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
    }
    
    .hero,
    .about,
    .skills,
    .services,
    .portfolio,
    .contact,
    .footer {
        page-break-inside: avoid;
        margin: 1rem 0;
    }
    
    .section-title {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
    
    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-shapes,
    .particle,
    .floating-card {
        animation: none !important;
    }
    
    .skill-card:nth-child(odd),
    .skill-card:nth-child(even) {
        animation: none !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn:focus,
.theme-toggle:focus,
.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
        background: none;
    }
    
    .skill-card:hover,
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
}

/* Enhanced Responsive Design for Tab Navigation */

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .nav-container {
        max-width: 1400px;
        padding: 0 3rem;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .nav-container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Laptop (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .nav-container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        gap: 0.25rem;
        padding: 0.4rem;
    }
    
    .nav-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
    }
    
    .logo img {
        width: 45px;
        height: 45px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        height: 70px;
    }
    
    .nav-menu {
        background: var(--glass-bg);
        border-radius: 40px;
        padding: 0.3rem;
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
        border-radius: 20px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    .nav-container {
        padding: 0 1rem;
        height: 65px;
    }
    
    .nav-menu {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--glass-border);
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 65px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        border-radius: 15px;
        background: var(--glass-bg-secondary);
        border: 1px solid var(--glass-border);
        font-size: 1rem;
    }
    
    .nav-link:hover {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(10px);
    }
    
    .nav-link.active {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(10px);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Mobile Large (480px - 599px) */
@media (max-width: 599px) and (min-width: 480px) {
    .nav-container {
        padding: 0 0.8rem;
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        padding: 0.8rem;
    }
    
    .nav-link {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .hamburger {
        padding: 0.4rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
}

/* Mobile Medium (360px - 479px) */
@media (max-width: 479px) and (min-width: 360px) {
    .nav-container {
        padding: 0 0.6rem;
        height: 55px;
    }
    
    .nav-menu {
        top: 55px;
        max-height: calc(100vh - 55px);
        padding: 0.6rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .logo {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .hamburger {
        padding: 0.3rem;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Mobile Small (320px - 359px) */
@media (max-width: 359px) {
    .nav-container {
        padding: 0 0.5rem;
        height: 50px;
    }
    
    .nav-menu {
        top: 50px;
        max-height: calc(100vh - 50px);
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .logo {
        font-size: 0.9rem;
        gap: 0.4rem;
    }
    
    .logo img {
        width: 25px;
        height: 25px;
    }
    
    .theme-toggle {
        width: 25px;
        height: 25px;
        font-size: 0.6rem;
    }
    
    .hamburger {
        padding: 0.25rem;
    }
    
    .hamburger span {
        width: 18px;
        height: 1.8px;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-container {
        height: 50px;
    }
    
    .nav-menu {
        top: 50px;
        max-height: calc(100vh - 50px);
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-link {
        border-width: 0.5px;
    }
    
    .nav-menu {
        border-width: 0.5px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
    }
    
    .nav-link:active {
        transform: scale(0.98);
    }
    
    .theme-toggle:hover {
        transform: none;
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-menu,
    .theme-toggle,
    .hamburger {
        transition: none;
        animation: none;
    }
    
    .nav-link::before,
    .nav-link::after {
        transition: none;
    }
}

/* Print Styles */
@media print {
    .navbar {
        position: static;
        background: white;
        border-bottom: 1px solid #ccc;
    }
    
    .nav-menu {
        background: white;
        border: 1px solid #ccc;
    }
    
    .nav-link {
        color: #333;
        background: white;
        border: 1px solid #ccc;
    }
    
    .theme-toggle,
    .hamburger {
        display: none;
    }
}

/* Focus Styles for Accessibility */
.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.hamburger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

/* Dark Theme Responsive Adjustments */
@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background: var(--glass-bg-dark);
        border-top-color: var(--glass-border-dark);
    }
    
    [data-theme="dark"] .nav-link {
        background: var(--glass-bg-dark-secondary);
        border-color: var(--glass-border-dark);
        color: var(--text-secondary-dark);
    }
    
    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        background: var(--gradient-primary);
        color: white;
    }
}

/* Container Responsive Adjustments */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.8rem;
    }
}

/* Enhanced Mobile Navigation Animations */
@media (max-width: 768px) {
    .nav-menu {
        transform: translateY(-100%) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: calc(var(--index) * 0.1s);
    }
    
    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Hero Section Mobile */
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .hero-text h3 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    /* Skills Section Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    /* Services Section Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Portfolio Section Mobile */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Contact Section Mobile */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-form {
        width: 100%;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-container {
        gap: 3rem;
        padding: 3rem 2rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Small Mobile Optimizations */
@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text h3 {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .skill-card,
    .service-card,
    .portfolio-item {
        margin: 0 0.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        height: 50px;
    }
    
    .nav-container {
        height: 50px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        padding: 1rem 2rem;
        gap: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text h3 {
        font-size: 1.3rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo img,
    .skill-icon img,
    .service-icon img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover,
    .btn:hover,
    .skill-card:hover,
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
    
    .nav-link:active,
    .btn:active,
    .skill-card:active,
    .service-card:active,
    .portfolio-item:active {
        transform: scale(0.98);
    }
    
    /* Increase touch targets */
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .theme-toggle,
    .hamburger {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .nav-link::before,
    .nav-link::after,
    .btn::before,
    .skill-card::before,
    .service-card::before,
    .portfolio-item::before {
        animation: none !important;
        transition: none !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .theme-toggle,
    .scroll-top,
    .hero-background,
    .floating-shapes {
        display: none !important;
    }
    
    .hero,
    .section {
        page-break-inside: avoid;
        margin: 1rem 0;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .skills-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .footer {
        margin-top: 2rem;
    }
}

/* Focus Management for Accessibility */
.nav-link:focus,
.btn:focus,
.theme-toggle:focus,
.hamburger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading State Responsive */
@media (max-width: 768px) {
    .loader-content {
        padding: 2rem;
    }
    
    .loader-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loader-text {
        font-size: 1.2rem;
        margin-top: 1rem;
    }
}

/* Scroll to Top Button Responsive */
@media (max-width: 768px) {
    .scroll-top {
        right: 1rem;
        bottom: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Enhanced Mobile Menu Animation */
@media (max-width: 768px) {
    .nav-menu {
        transform: translateY(-100%) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: calc(var(--index) * 0.1s);
    }
    
    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Staggered animation for nav links */
    .nav-link:nth-child(1) { --index: 1; }
    .nav-link:nth-child(2) { --index: 2; }
    .nav-link:nth-child(3) { --index: 3; }
    .nav-link:nth-child(4) { --index: 4; }
    .nav-link:nth-child(5) { --index: 5; }
    .nav-link:nth-child(6) { --index: 6; }
}

/* Ultra-Small Mobile Devices (280px - 319px) */
@media (max-width: 319px) {
    .nav-container {
        padding: 0 0.3rem;
        height: 45px;
    }
    
    .nav-menu {
        top: 45px;
        max-height: calc(100vh - 45px);
        padding: 0.3rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .logo {
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .logo img {
        width: 22px;
        height: 22px;
    }
    
    .theme-toggle {
        width: 22px;
        height: 22px;
        font-size: 0.5rem;
    }
    
    .hamburger {
        padding: 0.2rem;
    }
    
    .hamburger span {
        width: 16px;
        height: 1.5px;
    }
    
    /* Hero Section Ultra-Small */
    .hero-container {
        padding: 1.5rem 0.5rem;
        gap: 1.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text h3 {
        font-size: 1.2rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
    
    /* Content Sections Ultra-Small */
    .container {
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .skills-grid,
    .services-grid,
    .portfolio-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .skill-card,
    .service-card,
    .portfolio-item {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .skill-card h3,
    .service-card h3,
    .portfolio-item h3 {
        font-size: 1.1rem;
    }
    
    .skill-card p,
    .service-card p,
    .portfolio-item p {
        font-size: 0.85rem;
    }
    
    /* Footer Ultra-Small */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .newsletter-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .newsletter-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Extra-Large Desktop (1600px and above) */
@media (min-width: 1600px) {
    .nav-container {
        max-width: 1600px;
        padding: 0 4rem;
    }
    
    .nav-link {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .logo img {
        width: 70px;
        height: 70px;
    }
    
    .container {
        max-width: 1400px;
        padding: 0 3rem;
    }
    
    .hero-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 3rem;
    }
    
    .hero-text h1 {
        font-size: 4.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h3 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
        max-width: 600px;
    }
    
    .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* Foldable Device Support */
@media (max-width: 280px) {
    .nav-container {
        height: 40px;
        padding: 0 0.2rem;
    }
    
    .nav-menu {
        top: 40px;
        max-height: calc(100vh - 40px);
        padding: 0.2rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .logo img {
        width: 20px;
        height: 20px;
    }
    
    .theme-toggle {
        width: 20px;
        height: 20px;
        font-size: 0.4rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 0.9rem;
    }
    
    .hero-text h3 {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .hero-image img {
        width: 180px;
        height: 180px;
    }
}

/* Enhanced Touch Interactions for All Mobile Devices */
@media (max-width: 1024px) {
    .nav-link {
        min-height: 44px; /* Apple's recommended touch target size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
    }
    
    .hamburger {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .skill-card,
    .service-card,
    .portfolio-item {
        min-height: 120px;
        cursor: pointer;
    }
    
    /* Enhanced touch feedback */
    .nav-link:active,
    .theme-toggle:active,
    .hamburger:active,
    .btn:active,
    .skill-card:active,
    .service-card:active,
    .portfolio-item:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Improved Mobile Typography */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Prevent zoom on iOS */
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }
    
    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .hero-text h1 {
        line-height: 1.1;
        margin-bottom: 0.5rem;
    }
    
    .hero-text h2 {
        line-height: 1.2;
        margin-bottom: 0.5rem;
    }
    
    .hero-text h3 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Mobile Spacing */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 2rem 0 3rem 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .about,
    .skills,
    .services,
    .portfolio,
    .contact {
        padding: 2.5rem 0;
    }
    
    .footer {
        padding: 2rem 0 1rem 0;
    }
}

/* Better Mobile Grid Layouts */
@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Enhanced Mobile Animations */
@media (max-width: 768px) {
    .skill-card,
    .service-card,
    .portfolio-item {
        animation: fadeInUp 0.6s ease forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .skill-card:nth-child(1) { animation-delay: 0.1s; }
    .skill-card:nth-child(2) { animation-delay: 0.2s; }
    .skill-card:nth-child(3) { animation-delay: 0.3s; }
    .skill-card:nth-child(4) { animation-delay: 0.4s; }
    .skill-card:nth-child(5) { animation-delay: 0.5s; }
    .skill-card:nth-child(6) { animation-delay: 0.6s; }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    
    .portfolio-item:nth-child(1) { animation-delay: 0.1s; }
    .portfolio-item:nth-child(2) { animation-delay: 0.2s; }
    .portfolio-item:nth-child(3) { animation-delay: 0.3s; }
    .portfolio-item:nth-child(4) { animation-delay: 0.4s; }
    .portfolio-item:nth-child(5) { animation-delay: 0.5s; }
    .portfolio-item:nth-child(6) { animation-delay: 0.6s; }
}

/* Mobile-First Loading Animation */
@media (max-width: 768px) {
    .loader {
        background: var(--bg-primary);
    }
    
    .loader-content {
        padding: 2rem;
    }
    
    .loader-spinner {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }
    
    .loader-text {
        font-size: 1.2rem;
        margin-top: 1rem;
    }
}

/* Enhanced Mobile Accessibility */
@media (max-width: 768px) {
    .nav-link:focus,
    .theme-toggle:focus,
    .hamburger:focus,
    .btn:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    .skill-card:focus,
    .service-card:focus,
    .portfolio-item:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 4px;
    }
    
    /* Better focus indicators for mobile */
    .nav-link:focus-visible,
    .theme-toggle:focus-visible,
    .hamburger:focus-visible,
    .btn:focus-visible {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    .floating-shapes {
        display: none; /* Hide complex animations on mobile for better performance */
    }
    
    .particle {
        display: none; /* Hide particles on mobile for better performance */
    }
    
    .cursor-trail {
        display: none; /* Hide cursor trail on mobile */
    }
    
    /* Reduce complex shadows on mobile */
    .skill-card,
    .service-card,
    .portfolio-item,
    .btn {
        box-shadow: var(--shadow-light);
    }
    
    /* Simplify gradients on mobile */
    .btn-primary {
        background: var(--primary-color);
    }
    
    .btn-secondary {
        background: var(--secondary-color);
    }
}

/* Mobile Landscape Specific Adjustments */
@media (max-height: 400px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        flex-direction: row;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text h3 {
        font-size: 1.3rem;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .hero-image img {
        width: 120px;
        height: 120px;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    .nav-container {
        height: 45px;
    }
    
    .nav-menu {
        top: 45px;
        max-height: calc(100vh - 45px);
    }
}

/* Print Styles Enhancement */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .hamburger,
    .theme-toggle,
    .hero-background,
    .floating-shapes,
    .particle,
    .cursor-trail,
    .loader {
        display: none !important;
    }
    
    .hero {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .btn {
        border: 1px solid #ccc;
        background: white;
        color: black;
    }
    
    .skill-card,
    .service-card,
    .portfolio-item {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .footer {
        border-top: 1px solid #ccc;
        margin-top: 2rem;
        padding-top: 1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #800080;
        --accent-color: #008000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f0f0f0;
        --border-color: #000000;
    }
    
    [data-theme="dark"] {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --border-color: #ffffff;
    }
    
    .btn,
    .skill-card,
    .service-card,
    .portfolio-item {
        border: 2px solid var(--border-color);
    }
    
    .nav-link {
        border: 1px solid var(--border-color);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .loader-spinner {
        animation: none;
        border: 4px solid var(--primary-color);
        border-top-color: transparent;
    }
    
    .floating-shapes,
    .particle,
    .cursor-trail {
        display: none;
    }
}

/* Dark Mode System Preference Support */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --border-color: #374151;
        --glass-bg: rgba(15, 23, 42, 0.1);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

/* Light Mode System Preference Support */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --text-primary: #1f2937;
        --text-secondary: #6b7280;
        --bg-primary: #ffffff;
        --bg-secondary: #f8fafc;
        --border-color: #e5e7eb;
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.2);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}

/* Enhanced Responsive Navbar - Perfect for All Devices */
/* Ultra-Small Mobile (280px and below) */
@media (max-width: 280px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-container {
        height: 40px;
        padding: 0 0.2rem;
        max-width: 100%;
    }
    
    .logo {
        font-size: 0.8rem;
        gap: 0.2rem;
    }
    
    .logo img {
        width: 18px;
        height: 18px;
    }
    
    .nav-menu {
        position: fixed;
        top: 40px;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--glass-border);
        padding: 0.2rem;
        flex-direction: column;
        gap: 0.3rem;
        transform: translateY(-100%) scale(0.9);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.6rem;
        border-radius: 4px;
        background: var(--glass-bg-secondary);
        border: 1px solid var(--glass-border);
        font-size: 0.75rem;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(5px);
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 24px;
        height: 24px;
        padding: 0.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .hamburger span {
        width: 14px;
        height: 1.2px;
        background: var(--text-primary);
        margin: 1px 0;
        transition: all 0.3s ease;
        border-radius: 1px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, 3px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, -3px);
    }
    
    .theme-toggle {
        width: 20px;
        height: 20px;
        font-size: 0.4rem;
        min-width: 20px;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-controls {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }
}

/* Small Mobile (281px - 319px) */
@media (min-width: 281px) and (max-width: 319px) {
    .nav-container {
        height: 45px;
        padding: 0 0.3rem;
    }
    
    .nav-menu {
        top: 45px;
        max-height: calc(100vh - 45px);
        padding: 0.3rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
        min-height: 38px;
    }
    
    .logo img {
        width: 22px;
        height: 22px;
    }
    
    .theme-toggle {
        width: 22px;
        height: 22px;
        font-size: 0.5rem;
    }
    
    .hamburger {
        width: 26px;
        height: 26px;
        padding: 0.25rem;
    }
    
    .hamburger span {
        width: 16px;
        height: 1.5px;
    }
}

/* Medium Mobile (320px - 359px) */
@media (min-width: 320px) and (max-width: 359px) {
    .nav-container {
        height: 50px;
        padding: 0 0.5rem;
    }
    
    .nav-menu {
        top: 50px;
        max-height: calc(100vh - 50px);
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
        min-height: 40px;
    }
    
    .logo img {
        width: 25px;
        height: 25px;
    }
    
    .theme-toggle {
        width: 25px;
        height: 25px;
        font-size: 0.6rem;
    }
    
    .hamburger {
        width: 28px;
        height: 28px;
        padding: 0.3rem;
    }
    
    .hamburger span {
        width: 18px;
        height: 1.8px;
    }
}

/* Large Mobile (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .nav-container {
        height: 55px;
        padding: 0 0.6rem;
    }
    
    .nav-menu {
        top: 55px;
        max-height: calc(100vh - 55px);
        padding: 0.6rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        border-radius: 10px;
        min-height: 42px;
    }
    
    .logo img {
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    
    .hamburger {
        width: 30px;
        height: 30px;
        padding: 0.35rem;
    }
    
    .hamburger span {
        width: 20px;
        height: 2px;
    }
}

/* Extra Large Mobile (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .nav-container {
        height: 60px;
        padding: 0 0.8rem;
    }
    
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        padding: 0.8rem;
    }
    
    .nav-link {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 12px;
        min-height: 44px;
    }
    
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .hamburger {
        width: 32px;
        height: 32px;
        padding: 0.4rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }
}

/* Tablet Portrait (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .nav-container {
        height: 65px;
        padding: 0 1rem;
    }
    
    .nav-menu {
        top: 65px;
        max-height: calc(100vh - 65px);
        padding: 1rem;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1rem;
        border-radius: 15px;
        min-height: 48px;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hamburger {
        width: 35px;
        height: 35px;
        padding: 0.45rem;
    }
    
    .hamburger span {
        width: 24px;
        height: 2.8px;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-container {
        height: 70px;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .nav-menu {
        position: static;
        background: var(--glass-bg);
        border-radius: 40px;
        padding: 0.3rem;
        gap: 0.2rem;
        transform: none;
        opacity: 1;
        visibility: visible;
        max-height: none;
        overflow: visible;
        box-shadow: none;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 0.2rem;
    }
    
    .nav-link {
        padding: 0.6rem 1.1rem;
        font-size: 0.9rem;
        border-radius: 20px;
        min-height: 44px;
        background: transparent;
        border: none;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: var(--gradient-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    
    .nav-link.active {
        background: var(--gradient-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    
    .nav-link::after {
        display: block;
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.3s ease;
    }
    
    .nav-link:hover::after,
    .nav-link.active::after {
        width: 80%;
    }
    
    .hamburger {
        display: none;
    }
    
    .logo img {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Laptop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-container {
        max-width: 1000px;
        padding: 0 1.5rem;
        height: 75px;
    }
    
    .nav-menu {
        gap: 0.25rem;
        padding: 0.4rem;
    }
    
    .nav-link {
        padding: 0.7rem 1.3rem;
        font-size: 0.95rem;
        border-radius: 25px;
        min-height: 46px;
    }
    
    .logo img {
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle {
        width: 42px;
        height: 42px;
        font-size: 1.05rem;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-container {
        max-width: 1200px;
        padding: 0 2rem;
        height: 80px;
    }
    
    .nav-link {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        border-radius: 30px;
        min-height: 48px;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Large Desktop (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    .nav-container {
        max-width: 1400px;
        padding: 0 3rem;
        height: 85px;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        border-radius: 35px;
        min-height: 50px;
    }
    
    .logo img {
        width: 60px;
        height: 60px;
    }
    
    .theme-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Extra Large Desktop (1600px and above) */
@media (min-width: 1600px) {
    .nav-container {
        max-width: 1600px;
        padding: 0 4rem;
        height: 90px;
    }
    
    .nav-link {
        padding: 1.2rem 2.5rem;
        font-size: 1.2rem;
        border-radius: 40px;
        min-height: 52px;
    }
    
    .logo img {
        width: 70px;
        height: 70px;
    }
    
    .theme-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Enhanced Mobile Navigation Animations */
@media (max-width: 767px) {
    .nav-menu {
        transform: translateY(-100%) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        transform: translateX(-20px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: calc(var(--index) * 0.1s);
    }
    
    .nav-menu.active .nav-link {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Staggered animation for nav links */
    .nav-link:nth-child(1) { --index: 1; }
    .nav-link:nth-child(2) { --index: 2; }
    .nav-link:nth-child(3) { --index: 3; }
    .nav-link:nth-child(4) { --index: 4; }
    .nav-link:nth-child(5) { --index: 5; }
    .nav-link:nth-child(6) { --index: 6; }
    
    /* Enhanced hamburger animation */
    .hamburger {
        transition: all 0.3s ease;
    }
    
    .hamburger.active {
        transform: rotate(90deg);
    }
    
    .hamburger span {
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) and (max-width: 767px) {
    .nav-container {
        height: 45px;
    }
    
    .nav-menu {
        top: 45px;
        max-height: calc(100vh - 45px);
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-height: 36px;
    }
    
    .logo img {
        width: 30px;
        height: 30px;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    
    .hamburger {
        width: 28px;
        height: 28px;
        padding: 0.3rem;
    }
    
    .hamburger span {
        width: 18px;
        height: 1.8px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        transform: none;
    }
    
    .nav-link:active {
        transform: scale(0.98);
        background: var(--gradient-primary);
        color: white;
    }
    
    .theme-toggle:hover {
        transform: none;
    }
    
    .theme-toggle:active {
        transform: scale(0.95);
    }
    
    .hamburger:hover {
        transform: none;
    }
    
    .hamburger:active {
        transform: scale(0.95);
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .nav-link {
        border-width: 0.5px;
    }
    
    .nav-menu {
        border-width: 0.5px;
    }
    
    .hamburger span {
        border-radius: 0.5px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-menu,
    .theme-toggle,
    .hamburger,
    .hamburger span {
        transition: none;
        animation: none;
    }
    
    .nav-link::before,
    .nav-link::after {
        transition: none;
    }
    
    .nav-menu {
        transform: none;
    }
    
    .nav-link {
        transform: none;
        opacity: 1;
    }
}

/* Dark Theme Responsive Adjustments */
@media (max-width: 767px) {
    [data-theme="dark"] .nav-menu {
        background: var(--glass-bg-dark);
        border-top-color: var(--glass-border-dark);
    }
    
    [data-theme="dark"] .nav-link {
        background: var(--glass-bg-dark-secondary);
        border-color: var(--glass-border-dark);
        color: var(--text-secondary-dark);
    }
    
    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
        background: var(--gradient-primary);
        color: white;
    }
    
    [data-theme="dark"] .hamburger span {
        background: var(--text-primary-dark);
    }
    
    [data-theme="dark"] .theme-toggle {
        background: var(--glass-bg-dark);
        border-color: var(--glass-border-dark);
        color: var(--text-primary-dark);
    }
}

/* Focus and Accessibility */
@media (max-width: 767px) {
    .nav-link:focus,
    .theme-toggle:focus,
    .hamburger:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }
    
    .nav-link:focus-visible,
    .theme-toggle:focus-visible,
    .hamburger:focus-visible {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    }
    
    .nav-link:focus {
        background: var(--gradient-primary);
        color: white;
        transform: translateX(5px);
    }
}

/* Print Styles for Navbar */
@media print {
    .navbar {
        position: static;
        background: white;
        border-bottom: 1px solid #ccc;
    }
    
    .nav-menu {
        background: white;
        border: none;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        position: static;
        padding: 0.5rem;
    }
    
    .nav-list {
        flex-direction: row;
        gap: 1rem;
    }
    
    .nav-link {
        background: white;
        border: 1px solid #ccc;
        color: black;
        transform: none;
        opacity: 1;
        padding: 0.5rem 1rem;
        border-radius: 4px;
    }
    
    .hamburger,
    .theme-toggle {
        display: none;
    }
}