/* ==========================================================================
   Modern Portfolio Styles - Professional & Sophisticated
   ========================================================================== */

/* CSS Custom Properties */
:root {
    /* Light Theme Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: rgba(37, 99, 235, 0.1);
    
    --secondary: #7c3aed;
    --secondary-dark: #6d28d9;
    --secondary-light: rgba(124, 58, 237, 0.1);
    
    --accent: #06d6a0;
    --accent-dark: #05c290;
    --accent-light: rgba(6, 214, 160, 0.1);
    
    --dark: #0f172a;
    --dark-2: #1e293b;
    --dark-3: #334155;
    
    --light: #ffffff;
    --light-2: #f8fafc;
    --light-3: #e2e8f0;
    
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --gray-dark: #475569;
    
    /* Backgrounds */
    --bg-primary: var(--light);
    --bg-secondary: var(--light-2);
    --bg-tertiary: var(--light-3);
    
    /* Text Colors */
    --text-primary: var(--dark);
    --text-secondary: var(--gray);
    --text-light: var(--gray-light);
    
    /* Border Colors */
    --border-color: var(--light-3);
    --border-dark: var(--gray-light);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #4cc9f0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Glow Effects */
    --glow-primary: 0 0 40px rgba(37, 99, 235, 0.3);
    --glow-secondary: 0 0 40px rgba(124, 58, 237, 0.3);
    --glow-accent: 0 0 40px rgba(6, 214, 160, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Dark Theme */
[data-theme="dark"] {
    /* Invert colors */
    --light: #0f172a;
    --light-2: #1e293b;
    --light-3: #334155;
    
    --dark: #000000;
    --dark-2: #f8fafc;
    --dark-3: #e2e8f0;
    
    --gray: #94a3b8;
    --gray-light: #475569;
    --gray-dark: #cbd5e1;
    
    /* Update derived colors */
    --bg-primary: var(--light);
    --bg-secondary: var(--light-2);
    --bg-tertiary: var(--light-3);
    
    --text-primary: var(--dark);
    --text-secondary: var(--gray);
    --text-light: var(--gray-light);
    
    --border-color: var(--light-3);
    --border-dark: var(--gray-light);
    
    /* Update shadows for dark mode */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Grid lines for dark mode */
    .grid-lines {
        background-image: 
            linear-gradient(to right, var(--light-3) 1px, transparent 1px),
            linear-gradient(to bottom, var(--light-3) 1px, transparent 1px);
        opacity: 0.05;
    }
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

h1 { font-size: 5.6rem; }
h2 { font-size: 4.8rem; }
h3 { font-size: 3.6rem; }
h4 { font-size: 2.4rem; }
h5 { font-size: 2rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.7rem;
    line-height: 1.8;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
    max-width: 300px;
}

.preloader-logo {
    margin-bottom: 40px;
}

.logo-svg {
    width: 100px;
    height: 100px;
    animation: rotate 10s linear infinite;
}

.hexagon-path {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    animation: draw 2s ease forwards;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    fill: var(--primary);
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto 20px;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    border-radius: var(--radius-full);
    animation: progress 2s ease forwards;
}

.preloader-text {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes progress {
    to {
        width: 100%;
    }
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.1) 50%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: float-blob 20s ease-in-out infinite;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, var(--border-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 70%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation: float 25s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    animation: float 20s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 15%;
    animation: float 30s ease-in-out infinite;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float-blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(-50px, 100px) rotate(180deg);
    }
    75% {
        transform: translate(-100px, -100px) rotate(270deg);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.8);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.95);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.95);
}

.navbar {
    padding: 20px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.brand-logo {
    width: 40px;
    height: 40px;
}

.hexagon {
    fill: var(--primary);
    transition: var(--transition-fast);
}

.logo-initials {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    fill: white;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.link-number {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition-fast);
}

.link-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.link-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.nav-link:hover .link-underline,
.nav-link.active .link-underline {
    width: calc(100% - 32px);
}

.nav-link:hover .link-number,
.nav-link.active .link-number {
    color: var(--primary);
}

.nav-link:hover .link-text,
.nav-link.active .link-text {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.6rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.theme-toggle i {
    position: absolute;
    transition: var(--transition-fast);
}

.theme-toggle .bi-sun-fill {
    opacity: 1;
}

.theme-toggle .bi-moon-fill {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .bi-sun-fill {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle .bi-moon-fill {
    opacity: 1;
}

.theme-toggle:hover {
    transform: rotate(15deg);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    padding-top: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.badge-icon {
    font-size: 1.6rem;
}

.hero-title {
    font-size: 5.6rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 2.4rem;
    margin-bottom: 30px;
    font-weight: 600;
    color: var(--text-primary);
}

.typing-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-intro {
    color: var(--text-secondary);
}

.name-highlight {
    color: var(--primary);
    font-weight: 700;
}

.typing-text {
    color: var(--accent);
    font-weight: 600;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.8rem;
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Profile Visual */
.profile-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: visible;
}

.profile-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--bg-primary);
    box-shadow: var(--shadow-2xl), var(--glow-primary);
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    mix-blend-mode: multiply;
}

.floating-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tech-orb {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    box-shadow: var(--shadow-lg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(180px) rotate(calc(var(--i) * -72deg));
    animation: orbit-tech 20s linear infinite;
    animation-delay: calc(var(--i) * -4s);
}

@keyframes orbit-tech {
    0% {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(180px) rotate(calc(var(--i) * -72deg));
    }
    100% {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg + 360deg)) translateX(180px) rotate(calc(var(--i) * -72deg - 360deg));
    }
}

.availability-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid var(--accent-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: var(--radius-full);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

.scroll-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

@keyframes scroll-wheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(20px);
        opacity: 0;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.label-number {
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.section-title {
    font-size: 4.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 30px auto 0;
}

/* About Section - FIXED FOR DARK MODE */
.about-section {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-container {
    position: relative;
    width: 400px;
    margin: 0 auto;
}

.image-wrapper {
    width: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    position: relative;
    background: var(--bg-secondary);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: 2;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-xl);
    z-index: 3;
}

.exp-icon {
    font-size: 2.4rem;
}

.exp-content {
    display: flex;
    flex-direction: column;
}

.exp-years {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 1.2rem;
    opacity: 0.9;
}

.about-title {
    font-size: 3.6rem;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.about-description {
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.highlight-item {
    background: var(--bg-secondary);
    padding: 25px 20px;
    border-radius: var(--radius-xl);
    transition: var(--transition-fast);
    border: 2px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.highlight-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-content h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.highlight-content p {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-secondary);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.detail-value:hover {
    color: var(--primary);
}

.status-available {
    color: var(--accent) !important;
    font-weight: 700;
}

.about-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.expertise-category {
    background: var(--bg-secondary);
    border-radius: var(--radius-2xl);
    padding: 40px;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.expertise-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.expertise-category:hover::before {
    transform: translateX(0);
}

.expertise-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--primary);
}

.category-header h3 {
    margin: 0;
    font-size: 2.4rem;
    color: var(--text-primary);
}

.skills-list {
    display: grid;
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text-primary);
}

.skill-percent {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.skill-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.certifications-section {
    margin-top: 80px;
    text-align: center;
}

.certifications-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.certifications-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 1.4rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: var(--transition-fast);
}

.cert-badge:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.cert-badge i {
    color: var(--primary);
}

.cert-badge:hover i {
    color: white;
}

/* ==========================================================================
   PROJECTS SECTION - FIXED FOR ALL DEVICES
   ========================================================================== */

.projects-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(37, 99, 235, 0.02) 100%);
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-slow);
    z-index: -1;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: transparent;
}

.filter-btn.active::before,
.filter-btn:hover::before {
    left: 0;
}

/* Projects Grid - Responsive */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

/* Project Card */
.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    position: relative;
    border: 2px solid transparent;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    display: block !important;
    opacity: 1 !important;
    width: 100%;
    max-width: 100%;
}

.project-card:hover {
    transform: perspective(1000px) translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.project-image {
    height: 240px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: var(--transition-fast);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: rotate(15deg) scale(1.1);
}

.project-content {
    padding: 30px;
    width: 100%;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
}

.project-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-description {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4rem;
    color: var(--text-secondary);
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.project-meta i {
    color: var(--primary);
}

.project-link-small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.project-link-small:hover {
    gap: 12px;
}

.projects-cta {
    text-align: center;
    margin-top: 30px;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.info-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: white;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-content a,
.info-content span {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 5px;
    transition: var(--transition-fast);
}

.info-content a:hover {
    color: var(--primary);
}

.info-content p {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-secondary);
}

.social-connect {
    margin-top: 30px;
}

.social-connect h4 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.social-link i {
    font-size: 2rem;
}

.contact-form-wrapper {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.contact-form-wrapper:hover {
    border-color: var(--primary);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 20px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 1.6rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .form-group select:focus {
    background: var(--bg-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

[data-theme="dark"] .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

.error-message {
    color: #ff4757;
    font-size: 1.3rem;
    margin-top: 8px;
    min-height: 20px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.error-message.show {
    opacity: 1;
}

.form-success, .form-error {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    animation: fadeIn 0.3s ease;
}

.form-success {
    background: rgba(6, 214, 160, 0.1);
    color: var(--accent);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.form-error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
}

.btn-submit {
    width: 100%;
    position: relative;
}

.submit-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.btn-submit.loading .submit-spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background: var(--gradient-dark);
    color: white;
    padding: 80px 0 40px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    text-align: center;
}

.footer-brand .brand-logo {
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.footer-brand h3 {
    margin-bottom: 10px;
    font-size: 2.4rem;
    color: white;
}

.footer-brand .highlight {
    color: var(--accent);
}

.footer-brand p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-links h4,
.footer-services h4,
.footer-newsletter h4 {
    margin-bottom: 25px;
    font-size: 2rem;
    color: white;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a::before {
    content: '›';
    font-size: 2rem;
    color: var(--accent);
    opacity: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-services li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
    width: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1.8rem;
}

.newsletter-form button:hover {
    background: var(--primary);
    transform: rotate(15deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.4rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.3);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl), var(--glow-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN - FIXED FOR ALL DEVICES
   ========================================================================== */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    html {
        font-size: 55%;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 60px 0;
        width: 100%;
        overflow: hidden;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 120px;
        min-height: auto;
        width: 100%;
        overflow: hidden;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }
    
    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 3.2rem;
        text-align: center;
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1.6rem;
        text-align: center;
        margin: 0 auto 30px;
        max-width: 100%;
        line-height: 1.6;
    }
    
    .hero-actions {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        width: 100%;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .tech-orb {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(110px) rotate(calc(var(--i) * -72deg));
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 999;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .hire-btn {
        width: 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 40px;
        width: 100%;
    }
    
    .section-title {
        font-size: 3.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .section-subtitle {
        font-size: 1.6rem;
        max-width: 100%;
        margin: 20px auto 0;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }
    
    .about-image-container {
        width: 280px;
        margin: 0 auto;
    }
    
    .experience-badge {
        bottom: -20px;
        right: -20px;
        padding: 15px;
        transform: scale(0.9);
    }
    
    .exp-years {
        font-size: 2.4rem;
    }
    
    .about-title {
        font-size: 2.8rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .about-description {
        text-align: center;
        font-size: 1.6rem;
        line-height: 1.6;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .highlight-item {
        padding: 20px 15px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        padding: 15px;
        gap: 10px;
    }
    
    .detail-item {
        padding: 12px 0;
    }
    
    .about-actions {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px;
    }
    
    .about-actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Expertise Section */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .expertise-category {
        padding: 25px;
        width: 100%;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .category-header h3 {
        font-size: 2rem;
    }
    
    .certifications-grid {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .cert-badge {
        width: 100%;
        max-width: 250px;
        justify-content: center;
        padding: 10px 20px;
    }
    
    /* Projects Section - FIXED FOR MOBILE */
    .projects-section {
        width: 100%;
        overflow: hidden;
    }
    
    .projects-filter {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 30px;
        width: 100%;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 1.3rem;
        flex: 1;
        min-width: 100px;
        text-align: center;
        margin: 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .project-card {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        border-radius: var(--radius-xl);
    }
    
    .project-image {
        height: 180px;
        width: 100%;
    }
    
    .project-content {
        padding: 20px;
        width: 100%;
    }
    
    .project-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .project-description {
        font-size: 1.4rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    .project-tag {
        font-size: 1.1rem;
        padding: 4px 8px;
    }
    
    .project-meta {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Fix for AOS animations on mobile */
    .project-card[data-aos] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }
    
    .contact-info {
        gap: 15px;
        width: 100%;
    }
    
    .info-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    .social-links {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .contact-form-wrapper {
        padding: 25px;
        width: 100%;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 30px;
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form button {
        width: 100%;
        padding: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Small Devices (481px - 720px) */
@media (min-width: 481px) and (max-width: 720px) {
    html {
        font-size: 57.5%;
    }
    
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .section {
        padding: 80px 0;
        width: 100%;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 140px;
        width: 100%;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        width: 100%;
    }
    
    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 4rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 2rem;
        text-align: center;
        line-height: 1.3;
    }
    
    .hero-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .profile-container {
        width: 320px;
        height: 320px;
    }
    
    .tech-orb {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(140px) rotate(calc(var(--i) * -72deg));
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 999;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hire-btn {
        width: 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Section Header */
    .section-title {
        font-size: 3.6rem;
        line-height: 1.2;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-image-container {
        width: 350px;
    }
    
    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Expertise Section */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .expertise-category {
        padding: 30px;
    }
    
    /* Projects Section */
    .projects-filter {
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 1.4rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 25px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .social-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Medium Devices (721px - 992px) */
@media (min-width: 721px) and (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 30px;
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        order: -1;
        display: flex;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 4.8rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-description {
        text-align: center;
        margin: 0 auto 40px;
        max-width: 600px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .profile-container {
        width: 350px;
        height: 350px;
    }
    
    .tech-orb {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(160px) rotate(calc(var(--i) * -72deg));
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 999;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
    }
    
    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .hire-btn {
        width: 100%;
        justify-content: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-container {
        width: 400px;
    }
    
    /* Expertise Section */
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Large Devices (993px - 1200px) - Laptop/Desktop */
@media (min-width: 993px) and (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 4.8rem;
        line-height: 1.1;
    }
    
    .profile-container {
        width: 380px;
        height: 380px;
    }
    
    .tech-orb {
        transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateX(170px) rotate(calc(var(--i) * -72deg));
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    /* Projects Grid for Laptops */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 35px;
    }
    
    .project-card {
        max-width: 100%;
    }
    
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .expertise-category {
        padding: 30px;
    }
}

/* Extra Large Devices (1201px and above) - Large Desktops */
@media (min-width: 1201px) {
    .container {
        max-width: 1200px;
        padding: 0 50px;
    }
    
    /* Projects Grid for Large Screens */
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
        gap: 40px;
    }
    
    .project-card {
        max-width: 100%;
    }
}

/* Desktop Hover Effects (disable on mobile) */
@media (hover: hover) and (pointer: fine) {
    .project-card:hover {
        transform: perspective(1000px) translateY(-15px) rotateX(5deg);
        box-shadow: var(--shadow-2xl);
        border-color: var(--primary);
    }
    
    .project-card:hover .project-image img {
        transform: scale(1.1);
    }
    
    .project-card:hover .project-overlay {
        opacity: 1;
    }
    
    .project-card:hover .project-link {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover .link-underline,
    .nav-link.active .link-underline {
        width: 0;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .theme-toggle:hover {
        transform: none;
    }
    
    .highlight-item:hover {
        transform: none;
    }
    
    .expertise-category:hover {
        transform: none;
    }
    
    .project-card:hover {
        transform: perspective(1000px) translateY(0) rotateX(0);
    }
    
    .info-card:hover {
        transform: none;
    }
    
    .social-link:hover {
        transform: none;
    }
    
    .back-to-top:hover {
        transform: scale(1) rotate(0);
    }
    
    /* Enable touch scrolling */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection on mobile */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Simple mobile hover effects */
    .project-card:active {
        transform: translateY(-5px);
    }
}

/* AOS Custom Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Landscape Mode Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 3.6rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .hero-stats {
        display: none;
    }
    
    .preloader-content {
        transform: scale(0.8);
    }
    
    /* Projects in landscape */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-content {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .preloader,
    .bg-effects,
    .header,
    .hero-scroll,
    .theme-toggle,
    .menu-toggle,
    .back-to-top,
    .footer,
    .contact-form-wrapper {
        display: none !important;
    }
    
    .section {
        padding: 50px 0;
        page-break-inside: avoid;
    }
    
    .hero-section {
        padding-top: 50px;
        min-height: auto;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
    }
    
    .gradient-text {
        background: none;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    .btn {
        display: none;
    }
}