/* ============================================
   ENHANCED PORTFOLIO STYLESHEET - FINAL VERSION
   Perfect responsive design with mobile-first approach
   ============================================ */

/* ===== CSS VARIABLES & DESIGN TOKENS ===== */
:root {
    /* Primary Colors - Rich Teal & Gold Palette */
    --color-primary: #14b8a6;
    --color-primary-dark: #0f766e;
    --color-primary-light: #5eead4;
    --color-secondary: #f59e0b;
    --color-accent: #8b5cf6;
    --color-accent-light: #a78bfa;
    --color-success: #10b981;
    --color-error: #ef4444;
    
    /* Background Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f17;
    --bg-tertiary: #14141f;
    --bg-card: #1a1a28;
    --bg-card-hover: #1f1f2e;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --text-accent: #14b8a6;
    
    /* Glass Effects */
    --glass: rgba(248, 250, 252, 0.03);
    --glass-strong: rgba(248, 250, 252, 0.08);
    --glass-border: rgba(248, 250, 252, 0.1);
    --glass-hover: rgba(248, 250, 252, 0.06);
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
    --glow-primary: 0 0 40px rgba(20, 184, 166, 0.6);
    --glow-secondary: 0 0 40px rgba(245, 158, 11, 0.6);
    --glow-accent: 0 0 40px rgba(139, 92, 246, 0.6);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Syne', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

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

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

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

.centered {
    text-align: center;
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.15s ease-out, width 0.15s, height 0.15s;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translate(-50%, -50%);
    box-shadow: var(--glow-primary);
}

@media (max-width: 1024px) {
    .cursor,
    .cursor-follower {
        display: none;
    }
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: floatOrb 25s infinite ease-in-out;
}

.gradient-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation-duration: 30s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 60%;
    right: -200px;
    animation-duration: 35s;
    animation-delay: -10s;
}

.gradient-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-secondary) 0%, transparent 70%);
    bottom: -175px;
    left: 40%;
    animation-duration: 40s;
    animation-delay: -20s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(120px, -80px) rotate(90deg) scale(1.1); }
    50% { transform: translate(-60px, -120px) rotate(180deg) scale(0.9); }
    75% { transform: translate(-100px, 60px) rotate(270deg) scale(1.05); }
}

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

.shape {
    position: absolute;
    opacity: 0.05;
    animation: shapeFloat 20s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-primary), transparent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 20%;
    left: 10%;
    animation-duration: 25s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-secondary), transparent);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-accent), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    bottom: 15%;
    left: 20%;
    animation-duration: 35s;
    animation-delay: -10s;
}

.shape-4 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-primary-light), transparent);
    border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
    top: 40%;
    right: 25%;
    animation-duration: 28s;
    animation-delay: -15s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -40px) rotate(90deg); }
    50% { transform: translate(-20px, -60px) rotate(180deg); }
    75% { transform: translate(-40px, 20px) rotate(270deg); }
}

.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(ellipse at 15% 40%, rgba(20, 184, 166, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 25%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
}

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ===== NAVIGATION ===== */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-normal);
}

.nav-wrapper.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition-normal);
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-family: var(--font-mono);
    box-shadow: var(--glow-primary);
    transition: var(--transition-normal);
}

.nav-brand:hover .brand-icon {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: var(--glow-accent);
}

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

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.75rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    overflow: hidden;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    background: var(--glass);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: var(--glow-primary);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.5);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.mobile-menu-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg);
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-size: 2rem;
    font-weight: 600;
    font-family: var(--font-display);
    color: var(--text-secondary);
    transition: var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

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

.mobile-menu.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-link:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-nav-link:nth-child(7) { transition-delay: 0.4s; }

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

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.875rem 1.75rem;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(20px);
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.status-indicator {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--color-success);
    animation: pulse 2s infinite;
}

.status-pulse {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.hero-title .title-line {
    display: block;
    font-size: 0.4em;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.title-main {
    display: block;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    font-weight: 600;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        justify-content: flex-start;
    }
}

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

.subtitle-separator {
    color: var(--color-primary);
    font-size: 1.5em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0 0 2.5rem 0;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1s both;
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-start;
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.5);
}

.btn-secondary {
    background: var(--glass);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    transition: var(--transition-normal);
}

.btn:hover .btn-icon {
    transform: translateX(5px);
}

.hero-scroll {
    margin-top: 4rem;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.4s both;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* ===== HERO 3D CARD ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.card-3d {
    width: min(450px, 90vw);
    height: min(550px, 65vh);
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-slow);
}

.card-3d:hover {
    transform: rotateY(8deg) rotateX(5deg) translateZ(30px);
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-xl);
    opacity: 0.3;
    filter: blur(20px);
    transition: var(--transition-normal);
}

.card-3d:hover .card-glow {
    opacity: 0.5;
}

.card-face {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.card-pattern {
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(248, 250, 252, 0.02) 10px,
            rgba(248, 250, 252, 0.02) 20px
        );
    pointer-events: none;
}

.profile-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    z-index: 1;
    transition: var(--transition-normal);
}

.card-3d:hover .avatar-img {
    transform: scale(1.05);
}

.avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--color-success);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 0 20px var(--color-success);
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.tech-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tech-pill {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.tech-pill:hover {
    background: var(--glass);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-title .title-line {
    color: var(--text-secondary);
}

.title-highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== FREELANCE BADGE (SKILLS SECTION) ===== */
.freelance-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
   margin-right: 2%;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.3);
    backdrop-filter: blur(8px);
    letter-spacing: 0.05em;
}

.freelance-badge i {
    font-size: 1rem;
}

/* ===== SKILLS FOOTER ===== */
.skills-footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
    position: relative;
}

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

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }
}

.about-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.feature-item:hover {
    background: var(--glass-hover);
    transform: translateX(10px);
    border-color: var(--color-primary);
}

.feature-item i {
    font-size: 1.75rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== ABOUT IMAGE - FIXED ===== */
.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: auto;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    padding: 6px;
    margin: 0 auto;
}

.image-decoration {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-primary);
}

.image-decoration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl), var(--glow-secondary);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

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

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

.badge-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: white;
    line-height: 1;
}

.badge-text {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1.3;
    margin-top: 0.25rem;
}

/* ===== SKILLS SECTION ===== */
.skills {
    position: relative;
}

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

.skill-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition-normal);
}

.skill-card-inner {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.skill-card:hover .skill-card-inner::before {
    transform: scaleX(1);
}

.skill-card:hover .skill-card-inner {
    transform: translateY(-10px);
    background: var(--glass-hover);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary);
}

.skill-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--glow-primary);
    transition: var(--transition-normal);
}

.skill-card:hover .skill-icon {
    transform: rotateY(360deg) scale(1.1);
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.skill-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.skill-tag:hover {
    background: var(--glass);
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    box-shadow: 0 0 10px var(--color-primary);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 240px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px
        );
}

.project-icon {
    font-size: 4rem;
    color: white;
    z-index: 1;
    transition: var(--transition-normal);
}

.project-card:hover .project-icon {
    visibility: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    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: 1rem;
}

.project-link-btn {
    width: 56px;
    height: 56px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    transition: var(--transition-normal);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-link-btn {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:hover .project-link-btn:nth-child(2) {
    transition-delay: 0.15s;
}

.project-link-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px) scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.375rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ===== ACHIEVEMENTS SECTION ===== */
.achievements {
    position: relative;
}

.achievements-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
}

.achievement-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .achievement-item {
        grid-template-columns: auto 1fr;
    }
}

.achievement-item:nth-child(even) .achievement-content {
    grid-column: 1;
    text-align: right;
}

.achievement-item:nth-child(even) .achievement-marker {
    grid-column: 2;
}

.achievement-item:nth-child(odd) .achievement-content {
    grid-column: 3;
}

.achievement-item:nth-child(odd) .achievement-marker {
    grid-column: 2;
}

@media (max-width: 768px) {
    .achievement-item:nth-child(even) .achievement-content,
    .achievement-item:nth-child(odd) .achievement-content {
        grid-column: 2;
        text-align: left;
    }
    
    .achievement-item:nth-child(even) .achievement-marker,
    .achievement-item:nth-child(odd) .achievement-marker {
        grid-column: 1;
    }
}

.achievement-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-dot {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    transition: var(--transition-normal);
}

.achievement-item:hover .marker-dot {
    transform: scale(1.5);
    box-shadow: 0 0 30px var(--color-primary);
}

.achievement-content {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-slow);
}

.achievement-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.achievement-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.achievement-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(20px);
    transition: var(--transition-normal);
}

.achievement-card:hover {
    background: var(--glass-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: var(--glow-secondary);
}

.achievement-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 0.75rem;
}

.achievement-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.stat-card:hover {
    background: var(--glass-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-title {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-normal);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--glass-strong);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
    border-color: currentColor;
    box-shadow: 0 0 30px currentColor;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact-arrow {
    font-size: 1.25rem;
    transition: var(--transition-normal);
    opacity: 0;
}

.contact-card:hover .contact-arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* Social Media Colors */
.email-card { color: #ea4335; }
.linkedin-card { color: #0a66c2; }
.github-card { color: #6e5494; }
.instagram-card { color: #e1306c; }
.twitter-card { color: #1da1f2; }
.whatsapp-card { color: #25D366; }

/* ===== SCROLL TO TOP ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg), var(--glow-primary);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.5);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

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

.footer-social a {
    width: 48px;
    height: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: var(--glow-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: var(--transition-slow);
}

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

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

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

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

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Large Desktops (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 4.5rem;
    }
}

/* Laptops & Small Desktops (1024px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .card-3d {
        width: min(400px, 85vw);
        height: min(500px, 60vh);
    }
}

/* ===== TABLETS & MOBILE - IMAGE FIRST LAYOUT ===== */
@media (max-width: 1023px) {
    html {
        font-size: 15px;
    }
    
    .section-padding {
        padding: 5rem 0;
    }
    
    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }
    
    /* HERO: Image First on Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        display: flex;
        flex-direction: column;
    }
    
    .hero-visual {
        order: -1; /* Image appears first */
        margin-bottom: 1rem;
    }
    
    .hero-text {
        order: 2; /* Text appears second */
        text-align: center;
    }
    
    /* ABOUT: Image First on Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        display: flex;
        flex-direction: column;
    }
    
    .about-image {
        order: -1; /* Image appears first */
        max-width: 400px;
        margin: 0 auto 2rem;
    }
    
    .about-text {
        order: 2; /* Text appears second */
    }
    
    .hero-subtitle,
    .hero-description,
    .hero-stats,
    .hero-cta {
        text-align: center;
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        text-align: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .card-3d {
        width: min(380px, 90vw);
        height: min(480px, 55vh);
    }
    
    .card-face {
        padding: 2.5rem 1.5rem;
    }
    
    .profile-avatar {
        width: 140px;
        height: 140px;
    }
    
    .image-wrapper {
        max-width: 400px;
    }
    
    .experience-badge {
        width: 120px;
        height: 120px;
        bottom: -15px;
        right: -15px;
    }
    
    .badge-number {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Mobile Landscape & Small Tablets (640px - 767px) */
@media (max-width: 767px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 7rem 0 3rem;
    }
    
    .hero-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-title .title-line {
        font-size: 0.5em;
        margin-bottom: 0.25rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.5rem);
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .subtitle-separator {
        display: none;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 100px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .card-3d {
        width: min(340px, 92vw);
        height: min(440px, 50vh);
    }
    
    .card-face {
        padding: 2rem 1.25rem;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .card-subtitle {
        font-size: 0.9rem;
    }
    
    .tech-showcase {
        gap: 0.5rem;
    }
    
    .tech-pill {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-image {
        max-width: 350px;
    }
    
    .image-wrapper {
        max-width: 350px;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: -10px;
        right: -10px;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card-inner {
        padding: 2rem 1.5rem;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .achievements-timeline {
        padding: 1rem 0;
    }
    
    .timeline-line {
        left: 25px;
    }
    
    .achievement-item {
        grid-template-columns: auto 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .achievement-item:nth-child(even) .achievement-content,
    .achievement-item:nth-child(odd) .achievement-content {
        grid-column: 2;
        text-align: left;
    }
    
    .achievement-item:nth-child(even) .achievement-marker,
    .achievement-item:nth-child(odd) .achievement-marker {
        grid-column: 1;
    }
    
    .achievement-card {
        padding: 1.5rem;
    }
    
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .stats-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Mobile Portrait (480px - 639px) */
@media (max-width: 639px) {
    .hero-cta {
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
    }
    
    .card-3d {
        width: min(320px, 95vw);
        height: min(420px, 48vh);
    }
    
    .about-image {
        max-width: 300px;
    }
    
    .image-wrapper {
        max-width: 300px;
    }
    
    .experience-badge {
        width: 90px;
        height: 90px;
        bottom: -8px;
        right: -8px;
    }
    
    .badge-number {
        font-size: 1.75rem;
    }
    
    .skills-grid,
    .projects-grid {
        gap: 1.25rem;
    }
    
    .stats-showcase {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 479px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero-badge {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .status-dot,
    .status-pulse {
        width: 8px;
        height: 8px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 12vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 6vw, 1.25rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .stat-item {
        min-width: 90px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-cta {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
    
    .card-3d {
        width: min(300px, 96vw);
        height: min(400px, 46vh);
    }
    
    .card-face {
        padding: 1.75rem 1rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        margin-bottom: 1.5rem;
    }
    
    .avatar-badge {
        width: 30px;
        height: 30px;
        font-size: 0.875rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .card-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .tech-pill {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .about-image {
        max-width: 280px;
        margin: 0 auto 1.5rem;
    }
    
    .image-wrapper {
        max-width: 280px;
    }
    
    .experience-badge {
        width: 80px;
        height: 80px;
        bottom: -6px;
        right: -6px;
    }
    
    .badge-number {
        font-size: 1.5rem;
    }
    
    .badge-text {
        font-size: 0.7rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .skill-card-inner {
        padding: 1.75rem 1.25rem;
    }
    
    .skill-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    
    .skill-card h3 {
        font-size: 1.25rem;
    }
    
    .skill-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-icon {
        font-size: 2.5rem;
    }
    
    .project-link-btn {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-category {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-tech span {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
    
    .achievement-card {
        padding: 1.25rem;
    }
    
    .achievement-card h3 {
        font-size: 1.25rem;
    }
    
    .stat-card {
        padding: 1.75rem 1.25rem;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .stat-title {
        font-size: 0.85rem;
    }
    
    .contact-card {
        padding: 1.75rem 1.25rem;
    }
    
    .contact-icon-wrapper {
        width: 55px;
        height: 55px;
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .contact-card h3 {
        font-size: 1.1rem;
    }
    
    .contact-card p {
        font-size: 0.85rem;
    }
    
    .scroll-to-top {
        width: 48px;
        height: 48px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-brand h3 {
        font-size: 1.5rem;
    }
    
    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 359px) {
    html {
        font-size: 12px;
    }
    
    .card-3d {
        width: 95vw;
        height: 44vh;
    }
    
    .about-image {
        max-width: 250px;
    }
    
    .image-wrapper {
        max-width: 250px;
    }
    
    .experience-badge {
        width: 70px;
        height: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ===== TOUCH DEVICE STYLES ===== */
.touch-device .skill-card:hover,
.touch-device .project-card:hover,
.touch-device .contact-card:hover {
    transform: none;
}

.touch-device .skill-card.touch-active,
.touch-device .project-card.touch-active,
.touch-device .contact-card.touch-active {
    transform: scale(0.98);
}

/* Improve touch targets */
@media (max-width: 768px) {
    a, button, .btn, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .mobile-nav-link {
        padding: 1rem;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== 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;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .nav-wrapper,
    .mobile-menu,
    .scroll-to-top,
    .cursor,
    .cursor-follower,
    .bg-animation,
    .mesh-gradient,
    .grain-overlay {
        display: none !important;
    }
}
