/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Radical Color Palette */
    --color-bg: #000000;
    --color-bg-secondary: linear-gradient(45deg, #ff006e, #8338ec, #3a86ff);
    --color-bg-tertiary: conic-gradient(from 180deg, #ff006e, #ffbe0b, #fb5607, #8338ec, #3a86ff);
    --color-text-primary: #ffffff;
    --color-text-secondary: #ff006e;
    --color-text-muted: #ffbe0b;
    --color-accent: #ff006e;
    --color-accent-hover: #ffbe0b;
    --color-border: #8338ec;
    --color-success: #00ff41;
    
    /* Wild gradients */
    --gradient-chaos: linear-gradient(45deg, #ff006e 0%, #ffbe0b 25%, #fb5607 50%, #8338ec 75%, #3a86ff 100%);
    --gradient-neon: linear-gradient(90deg, #ff0080, #00ff80, #0080ff, #ff8000);
    --gradient-psychedelic: conic-gradient(from 0deg, #ff0080, #8000ff, #0080ff, #00ff80, #ffff00, #ff8000, #ff0080);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', Monaco, 'Cascadia Code', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Animations */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--gradient-psychedelic);
    background-size: 400% 400%;
    opacity: 0.08;
    animation: psychedelic-bg 20s ease infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes psychedelic-bg {
    0%, 100% { 
        background-position: 0% 50%;
        transform: rotate(0deg) scale(1);
    }
    25% { 
        background-position: 100% 0%;
        transform: rotate(90deg) scale(1.1);
    }
    50% { 
        background-position: 100% 100%;
        transform: rotate(180deg) scale(0.9);
    }
    75% { 
        background-position: 0% 100%;
        transform: rotate(270deg) scale(1.05);
    }
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient-neon);
    background-size: 200% 200%;
    animation: nav-rainbow 8s ease infinite;
    backdrop-filter: blur(20px) saturate(2);
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-chaos) 1;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-normal);
    transform: skewY(-1deg);
    margin-bottom: 10px;
}

@keyframes nav-rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: var(--spacing-3xl) 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 600px 400px at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 400px 600px at 80% 20%, rgba(0, 255, 136, 0.06) 0%, transparent 60%),
        conic-gradient(from 45deg at 70% 70%, transparent 0deg, rgba(0, 212, 255, 0.03) 90deg, transparent 180deg);
    animation: chaos-drift 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes chaos-drift {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg) scale(1); 
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translateX(-30px) translateY(20px) rotate(2deg) scale(1.05); 
        filter: hue-rotate(15deg);
    }
    50% { 
        transform: translateX(25px) translateY(-25px) rotate(-1deg) scale(0.95); 
        filter: hue-rotate(-10deg);
    }
    75% { 
        transform: translateX(-15px) translateY(30px) rotate(1.5deg) scale(1.02); 
        filter: hue-rotate(20deg);
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(45deg, rgba(0, 255, 136, 0.01) 2px, transparent 2px),
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.02) 2px, transparent 2px);
    background-size: 60px 60px, 60px 60px, 120px 120px, 80px 80px;
    animation: grid-chaos 25s ease-in-out infinite;
}

@keyframes grid-chaos {
    0%, 100% { 
        transform: translate(0, 0) rotate(0deg); 
        background-size: 60px 60px, 60px 60px, 120px 120px, 80px 80px;
    }
    25% { 
        transform: translate(30px, 20px) rotate(0.5deg); 
        background-size: 65px 55px, 55px 65px, 110px 130px, 85px 75px;
    }
    50% { 
        transform: translate(60px, 60px) rotate(0deg); 
        background-size: 50px 70px, 70px 50px, 140px 100px, 90px 70px;
    }
    75% { 
        transform: translate(20px, 40px) rotate(-0.3deg); 
        background-size: 70px 60px, 60px 70px, 100px 140px, 75px 85px;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(0, 255, 136, 0.1);
    color: var(--color-success);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

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

.hero-name {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-chaos);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: name-explosion 3s ease-in-out infinite;
    position: relative;
    transform: perspective(500px) rotateX(15deg) rotateY(-5deg);
    text-shadow: 
        0 0 10px rgba(255, 0, 110, 0.5),
        0 0 20px rgba(255, 190, 11, 0.3),
        0 0 30px rgba(131, 56, 236, 0.2);
    letter-spacing: -0.02em;
}

@keyframes name-explosion {
    0%, 100% { 
        background-position: 0% 50%;
        transform: perspective(500px) rotateX(15deg) rotateY(-5deg) scale(1);
        filter: hue-rotate(0deg) saturate(1);
    }
    25% { 
        background-position: 100% 25%;
        transform: perspective(500px) rotateX(10deg) rotateY(5deg) scale(1.02);
        filter: hue-rotate(90deg) saturate(1.5);
    }
    50% { 
        background-position: 50% 100%;
        transform: perspective(500px) rotateX(20deg) rotateY(-10deg) scale(0.98);
        filter: hue-rotate(180deg) saturate(2);
    }
    75% { 
        background-position: 25% 0%;
        transform: perspective(500px) rotateX(5deg) rotateY(8deg) scale(1.01);
        filter: hue-rotate(270deg) saturate(1.2);
    }
}

.hero-name::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.1) 25%, 
        transparent 50%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: name-glitch 6s linear infinite;
    opacity: 0.7;
}

@keyframes name-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes name-glitch {
    0%, 94%, 100% { 
        transform: translateX(0); 
        opacity: 0;
    }
    95% { 
        transform: translateX(2px); 
        opacity: 0.3;
    }
    96% { 
        transform: translateX(-1px); 
        opacity: 0.5;
    }
    97% { 
        transform: translateX(1px); 
        opacity: 0.2;
    }
}

.hero-title {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-neon);
    background-size: 300% 300%;
    color: var(--color-bg);
    animation: btn-pulse 3s ease-in-out infinite;
    border-radius: 30px;
    transform: perspective(200px) rotateX(10deg);
    box-shadow: 
        0 10px 20px rgba(255, 0, 110, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: var(--gradient-chaos);
    transform: perspective(200px) rotateX(5deg) translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(255, 0, 110, 0.4),
        0 0 20px rgba(255, 190, 11, 0.3);
    animation: btn-chaos 0.5s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { 
        background-position: 0% 50%;
        transform: perspective(200px) rotateX(10deg);
    }
    50% { 
        background-position: 100% 50%;
        transform: perspective(200px) rotateX(5deg);
    }
}

@keyframes btn-chaos {
    0%, 100% { transform: perspective(200px) rotateX(5deg) translateY(-5px) scale(1.05); }
    50% { transform: perspective(200px) rotateX(0deg) translateY(-8px) scale(1.08); }
}

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

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

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

.image-placeholder {
    position: relative;
}

.image-frame {
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--gradient-psychedelic);
    background-size: 400% 400%;
    border: 5px solid transparent;
    border-image: var(--gradient-chaos) 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: morph-frame 8s ease-in-out infinite;
    transform: perspective(400px) rotateX(15deg) rotateY(15deg);
    box-shadow: 
        0 20px 40px rgba(255, 0, 110, 0.3),
        inset 0 0 20px rgba(255, 190, 11, 0.2);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-neon);
    background-size: 400% 400%;
    border-radius: 50% 20% 50% 20% / 20% 50% 20% 50%;
    z-index: -1;
    animation: orbit-border 4s linear infinite;
    filter: blur(5px);
}

@keyframes morph-frame {
    0%, 100% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        background-position: 0% 50%;
        transform: perspective(400px) rotateX(15deg) rotateY(15deg);
    }
    25% { 
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        background-position: 100% 25%;
        transform: perspective(400px) rotateX(10deg) rotateY(20deg);
    }
    50% { 
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        background-position: 50% 100%;
        transform: perspective(400px) rotateX(20deg) rotateY(10deg);
    }
    75% { 
        border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
        background-position: 25% 0%;
        transform: perspective(400px) rotateX(5deg) rotateY(25deg);
    }
}

@keyframes orbit-border {
    0% { 
        transform: rotate(0deg) scale(1);
        background-position: 0% 50%;
    }
    50% { 
        transform: rotate(180deg) scale(1.1);
        background-position: 100% 50%;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        background-position: 0% 50%;
    }
}

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

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.image-content {
    text-align: center;
    color: var(--color-text-muted);
}

.image-note {
    font-size: 0.8rem;
    margin-top: var(--spacing-xs);
}

/* Section Styles */
.section {
    padding: var(--spacing-3xl) 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 80px,
        rgba(0, 212, 255, 0.005) 80px,
        rgba(0, 212, 255, 0.005) 160px
    );
    animation: section-sweep 30s linear infinite;
    pointer-events: none;
}

@keyframes section-sweep {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(1deg); }
}

.section:nth-child(even) {
    background: var(--color-bg-secondary);
    background-size: 300% 300%;
    animation: section-morph 15s ease infinite;
    transform: skewY(1deg);
    margin: var(--spacing-lg) 0;
    border-radius: 0 50px 0 50px;
    border: 2px solid transparent;
    border-image: var(--gradient-neon) 1;
}

.section:nth-child(odd) {
    transform: skewY(-0.5deg);
    margin: var(--spacing-md) 0;
    border-radius: 30px 0 30px 0;
}

@keyframes section-morph {
    0%, 100% { 
        background-position: 0% 50%;
        border-radius: 0 50px 0 50px;
    }
    33% { 
        background-position: 100% 0%;
        border-radius: 50px 0 50px 0;
    }
    66% { 
        background-position: 50% 100%;
        border-radius: 0 30px 0 30px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-neon);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-wave 4s ease-in-out infinite;
    transform: perspective(300px) rotateX(10deg);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

@keyframes title-wave {
    0%, 100% { 
        background-position: 0% 50%;
        transform: perspective(300px) rotateX(10deg) scale(1);
    }
    50% { 
        background-position: 100% 50%;
        transform: perspective(300px) rotateX(5deg) scale(1.02);
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.about-text p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.about-skills {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.skill-category h4 {
    color: var(--color-text-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    transform: translateY(-2px);
}

/* AI Expertise Section */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.expertise-card {
    background: var(--color-bg-tertiary);
    background-size: 200% 200%;
    border: 3px solid transparent;
    border-image: var(--gradient-chaos) 1;
    border-radius: 25px;
    padding: var(--spacing-xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) rotateZ(2deg);
    animation: card-float 6s ease-in-out infinite;
    box-shadow: 
        0 10px 30px rgba(255, 0, 110, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes card-float {
    0%, 100% { 
        transform: perspective(1000px) rotateX(5deg) rotateY(5deg) rotateZ(2deg) translateY(0px);
        filter: hue-rotate(0deg);
    }
    33% { 
        transform: perspective(1000px) rotateX(-3deg) rotateY(8deg) rotateZ(-1deg) translateY(-10px);
        filter: hue-rotate(120deg);
    }
    66% { 
        transform: perspective(1000px) rotateX(8deg) rotateY(-5deg) rotateZ(3deg) translateY(5px);
        filter: hue-rotate(240deg);
    }
}

.expertise-card:nth-child(1) { animation: card-tilt-1 8s ease-in-out infinite; }
.expertise-card:nth-child(2) { animation: card-tilt-2 9s ease-in-out infinite; }
.expertise-card:nth-child(3) { animation: card-tilt-3 7s ease-in-out infinite; }

@keyframes card-tilt-1 {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
    25% { transform: perspective(1000px) rotateX(1deg) rotateY(-0.5deg); }
    50% { transform: perspective(1000px) rotateX(-0.5deg) rotateY(1deg); }
    75% { transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.8deg); }
}

@keyframes card-tilt-2 {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
    30% { transform: perspective(1000px) rotateX(-0.8deg) rotateY(0.5deg); }
    60% { transform: perspective(1000px) rotateX(0.8deg) rotateY(-1deg); }
    90% { transform: perspective(1000px) rotateX(-0.3deg) rotateY(0.7deg); }
}

@keyframes card-tilt-3 {
    0%, 100% { transform: perspective(1000px) rotateX(0deg) rotateY(0deg); }
    20% { transform: perspective(1000px) rotateX(0.7deg) rotateY(0.8deg); }
    40% { transform: perspective(1000px) rotateX(-1deg) rotateY(-0.3deg); }
    80% { transform: perspective(1000px) rotateX(0.4deg) rotateY(-0.9deg); }
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition-slow);
}

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

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.expertise-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-primary);
}

.expertise-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.expertise-footer {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-bg-tertiary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
}

.expertise-note {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* Experience Section */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--color-bg-tertiary);
    background-size: 300% 300%;
    border: 3px solid transparent;
    border-image: var(--gradient-neon) 1;
    border-radius: 20px 5px 20px 5px;
    transition: var(--transition-normal);
    transform: perspective(600px) rotateX(3deg) skewY(1deg);
    position: relative;
    overflow: hidden;
    animation: experience-drift 10s ease-in-out infinite;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-chaos);
    opacity: 0.1;
    animation: sweep-across 3s ease-in-out infinite;
}

@keyframes experience-drift {
    0%, 100% { 
        transform: perspective(600px) rotateX(3deg) skewY(1deg) translateX(0);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: perspective(600px) rotateX(-2deg) skewY(-0.5deg) translateX(10px);
        filter: hue-rotate(30deg);
    }
}

@keyframes sweep-across {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: -100%; }
}

.experience-item:hover {
    transform: translateX(8px);
    border-color: var(--color-accent);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    transition: var(--transition-normal);
    transform: rotate(0deg);
    animation: logo-float 3s ease-in-out infinite;
}

.company-logo:nth-child(odd) {
    animation-delay: -1s;
    animation-duration: 4s;
}

.company-logo:nth-child(even) {
    animation-delay: -2s;
    animation-duration: 3.5s;
}

@keyframes logo-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: translateY(-3px) rotate(1deg) scale(1.02);
        filter: hue-rotate(5deg);
    }
    50% { 
        transform: translateY(2px) rotate(-0.5deg) scale(0.98);
        filter: hue-rotate(-3deg);
    }
    75% { 
        transform: translateY(-1px) rotate(0.5deg) scale(1.01);
        filter: hue-rotate(2deg);
    }
}

.company-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    border-radius: inherit;
    z-index: 1;
    mix-blend-mode: multiply;
    opacity: 0.1;
}

.company-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.company-logo img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    object-fit: contain;
    object-position: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-normal);
    
    /* Color adjustments to match theme */
    
    
    /* Mask for better integration */
    mask: radial-gradient(circle, black 70%, transparent 100%);
    -webkit-mask: radial-gradient(circle, black 70%, transparent 100%);
}

.company-logo:hover img {
    filter: 
        brightness(0) 
        invert(1) 
        sepia(1) 
        saturate(5) 
        hue-rotate(180deg) 
        brightness(1.4) 
        contrast(1.3);
    transform: scale(1.05);
}

/* Enhanced styling for different image formats - all same size now */
.company-logo img[src$=".svg"] {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
}

.company-logo img[src$=".png"] {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
}

.company-logo img[src$=".jpg"], 
.company-logo img[src$=".jpeg"] {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 6px;
}

.company-logo img[src$=".avif"] {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
}

/* Alternative styling for logos that might need different treatment */
.company-logo.logo-alt {
    background: linear-gradient(135deg, var(--color-accent), var(--color-success));
}

.company-logo.logo-alt img {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    filter: 
        brightness(0) 
        invert(1) 
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    mask: none;
    -webkit-mask: none;
}

.experience-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-primary);
}

.experience-content p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Details Section */
.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    max-width: 800px;
    margin: 0 auto;
}

.details-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
}

.details-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
}

.language-list, .education-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

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

.language-name {
    color: var(--color-text-primary);
    font-weight: 500;
}

.language-level {
    display: flex;
    gap: 4px;
}

.level-bar {
    width: 12px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border);
}

.level-full {
    background: var(--color-accent);
}

.education-item {
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
}

.education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.education-degree {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.education-school {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    background: var(--color-bg-secondary);
    background-size: 400% 400%;
    position: relative;
    transform: perspective(800px) rotateX(5deg);
    animation: contact-wave 12s ease-in-out infinite;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-psychedelic);
    opacity: 0.05;
    animation: contact-bg-shift 8s ease infinite;
}

@keyframes contact-wave {
    0%, 100% { 
        transform: perspective(800px) rotateX(5deg) scale(1);
        background-position: 0% 50%;
    }
    50% { 
        transform: perspective(800px) rotateX(-2deg) scale(1.01);
        background-position: 100% 50%;
    }
}

@keyframes contact-bg-shift {
    0%, 100% { 
        background-position: 0% 50%;
        transform: rotate(0deg);
    }
    50% { 
        background-position: 100% 50%;
        transform: rotate(0.5deg);
    }
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    background: var(--gradient-chaos);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: contact-title-chaos 5s ease-in-out infinite;
    transform: perspective(400px) rotateX(10deg) rotateZ(2deg);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

@keyframes contact-title-chaos {
    0%, 100% { 
        background-position: 0% 50%;
        transform: perspective(400px) rotateX(10deg) rotateZ(2deg) scale(1);
        filter: hue-rotate(0deg);
    }
    33% { 
        background-position: 100% 0%;
        transform: perspective(400px) rotateX(5deg) rotateZ(-1deg) scale(1.02);
        filter: hue-rotate(120deg);
    }
    66% { 
        background-position: 50% 100%;
        transform: perspective(400px) rotateX(15deg) rotateZ(1deg) scale(0.98);
        filter: hue-rotate(240deg);
    }
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-3xl);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 500px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: var(--transition-normal);
    color: inherit;
}

.contact-link:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-frame {
        width: 200px;
        height: 200px;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .section {
        padding: var(--spacing-2xl) 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .expertise-card, .details-card {
        padding: var(--spacing-md);
    }
    
    .experience-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .company-logo {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .company-logo img {
        width: 32px;
        height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
    
    .company-logo:hover {
        transform: scale(1.05);
    }
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .section {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .section:nth-child(2) { animation-delay: 0.1s; }
    .section:nth-child(3) { animation-delay: 0.2s; }
    .section:nth-child(4) { animation-delay: 0.3s; }
    .section:nth-child(5) { animation-delay: 0.4s; }
    .section:nth-child(6) { animation-delay: 0.5s; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* EXTREME ANIMATIONS */
@keyframes trail-fade {
    0% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.3) rotate(360deg);
    }
}

@keyframes explode-particle {
    0% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        opacity: 0;
        transform: translate(-50%, -50%) 
                   translateX(calc(cos(var(--angle)) * var(--velocity))) 
                   translateY(calc(sin(var(--angle)) * var(--velocity))) 
                   scale(0);
    }
}

@keyframes earthquake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px) rotate(0.5deg); }
    20% { transform: translateX(2px) rotate(-0.5deg); }
    30% { transform: translateX(-1px) rotate(0.3deg); }
    40% { transform: translateX(1px) rotate(-0.3deg); }
    50% { transform: translateX(-2px) rotate(0.2deg); }
    60% { transform: translateX(2px) rotate(-0.2deg); }
    70% { transform: translateX(-1px) rotate(0.1deg); }
    80% { transform: translateX(1px) rotate(-0.1deg); }
    90% { transform: translateX(-1px); }
}

/* Color storm mode */
.color-storm * {
    animation: color-storm-flash 0.1s infinite alternate !important;
}

@keyframes color-storm-flash {
    0% { filter: hue-rotate(0deg) saturate(3) brightness(1.5); }
    100% { filter: hue-rotate(180deg) saturate(5) brightness(2); }
}

/* Enhanced skill tags */
.skill-tag {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.skill-tag:hover::before {
    left: 0;
    opacity: 0.3;
}

.skill-tag:hover {
    background: transparent !important;
    color: var(--color-text-primary) !important;
    transform: translateY(-5px) scale(1.1) rotate(5deg) !important;
    box-shadow: 
        0 10px 20px rgba(255, 0, 110, 0.3),
        0 0 30px rgba(255, 190, 11, 0.2) !important;
} 