/* ============================================
   PATRICK OLIVEIRA - PORTFOLIO
   Dark Metal Theme - Clean Typography Edition
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - SIGNAL Theme */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0d0d0d;

    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;

    --accent-cyan: #00F0FF;
    --accent-orange: #FF4500;
    --accent-gold: #D4AF37;
    --accent-green: #00FF88;

    /* Legacy mappings for compatibility */
    --accent-primary: var(--accent-cyan);
    --accent-secondary: var(--accent-orange);
    --accent-glow: rgba(0, 240, 255, 0.5);
    --accent-glow-orange: rgba(255, 69, 0, 0.5);
    --accent-glow-gold: rgba(212, 175, 55, 0.3);

    --border-color: #1a1a1a;
    --border-glow: rgba(0, 240, 255, 0.3);

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   ANIMATED BACKGROUND PARTICLES
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: float-particle 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1.5s; }
.particle:nth-child(10) { left: 15%; animation-delay: 3.5s; }
.particle:nth-child(11) { left: 25%; animation-delay: 0.5s; }
.particle:nth-child(12) { left: 35%; animation-delay: 2.2s; }
.particle:nth-child(13) { left: 45%; animation-delay: 4.2s; }
.particle:nth-child(14) { left: 55%; animation-delay: 1.2s; }
.particle:nth-child(15) { left: 65%; animation-delay: 3.2s; }

@keyframes float-particle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Scanlines Overlay - Subtle */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.02),
        rgba(0, 0, 0, 0.02) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(10, 10, 10, 0.85) 100%);
    will-change: transform;
}

/* Enable backdrop-filter only for capable devices */
@supports (backdrop-filter: blur(10px)) {
    @media (min-width: 769px) {
        .navbar {
            background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
            backdrop-filter: blur(10px);
        }
    }
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    transition: var(--transition-medium);
}

.nav-logo:hover {
    text-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
    padding: 12px 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

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

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

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.burger div {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: var(--transition-medium);
    transform-origin: center;
}

/* ============================================
   GLITCH EFFECT - Performance Optimized
   ============================================ */
.glitch {
    position: relative;
}

/* Only enable glitch animation on hover and for non-mobile */
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
    .glitch:hover {
        animation: glitch-skew 0.5s ease;
    }

    .glitch::before,
    .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        pointer-events: none;
    }

    .glitch:hover::before {
        animation: glitch-effect 0.3s ease;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
        color: #00fff9;
        opacity: 0.8;
    }

    .glitch:hover::after {
        animation: glitch-effect 0.3s ease 0.1s;
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
        color: var(--accent-primary);
        opacity: 0.8;
    }
}

@keyframes glitch-effect {
    0% { transform: translate(0); }
    25% { transform: translate(-2px, 2px); }
    50% { transform: translate(2px, -2px); }
    75% { transform: translate(-2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-skew {
    0%, 100% { transform: skew(0deg); }
    50% { transform: skew(0.5deg); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 60px;
    position: relative;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(255, 69, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 69, 0, 0.04) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    width: 100%;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

/* Animated text reveal */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-primary);
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    animation: underline-grow 0.8s ease forwards;
    animation-delay: 1.2s;
}

@keyframes underline-grow {
    to { transform: scaleX(1); transform-origin: left; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

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

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    color: var(--accent-secondary);
    border-right: 2px solid var(--accent-primary);
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

/* Book Link in Hero */
.book-link {
    text-decoration: none;
    transition: var(--transition-fast);
}

.book-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero CTA Buttons - Magnetic Effect */
.hero-cta {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 1s;
}

.btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--bg-primary);
    box-shadow: 0 0 20px var(--accent-glow-orange);
    animation: btn-pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    background: #ff6a33;
    box-shadow: 0 0 40px var(--accent-glow-orange), 0 10px 30px rgba(0,0,0,0.3);
    transform: translateY(-3px);
}

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

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow-orange); }
    50% { box-shadow: 0 0 35px var(--accent-glow-orange); }
}

.btn-cv {
    background: transparent;
    color: #10b981;
    border: 2px solid #10b981;
    padding: 14px 28px;
}

.btn-cv:hover {
    background: #10b981;
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    flex: 0 0 300px;
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.avatar-container {
    position: relative;
    width: 280px;
    height: 280px;
    animation: float 6s ease-in-out infinite;
}

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

.avatar-frame {
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    clip-path: polygon(
        0 10%, 10% 0, 90% 0, 100% 10%,
        100% 90%, 90% 100%, 10% 100%, 0 90%
    );
    position: relative;
    z-index: 2;
    transition: var(--transition-medium);
}

.avatar-frame:hover {
    border-color: var(--accent-secondary);
    box-shadow: inset 0 0 30px var(--accent-glow);
}

.avatar-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(
        0 10%, 10% 0, 90% 0, 100% 10%,
        100% 90%, 90% 100%, 10% 100%, 0 90%
    );
}

.avatar-icon {
    font-size: 5rem;
    animation: rock 1s ease-in-out infinite;
}

@keyframes rock {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    z-index: 1;
}

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

/* Rotating border effect */
.avatar-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid transparent;
    border-image: linear-gradient(45deg, var(--accent-primary), transparent, var(--accent-primary)) 1;
    animation: rotate-border 8s linear infinite;
    clip-path: polygon(
        0 10%, 10% 0, 90% 0, 100% 10%,
        100% 90%, 90% 100%, 10% 100%, 0 90%
    );
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease forwards, bounce 2s ease-in-out infinite;
    animation-delay: 1.5s, 1.5s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(45deg);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; transform: rotate(45deg) translateY(0); }
    50% { opacity: 1; transform: rotate(45deg) translateY(5px); }
}

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

/* ============================================
   HERO BACKGROUND - Signal Lines Animation
   ============================================ */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.signal-lines {
    position: absolute;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(0, 240, 255, 0.03) 50px,
        rgba(0, 240, 255, 0.03) 51px
    );
    animation: signal-scroll 20s linear infinite;
}

@keyframes signal-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.9s;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    display: block;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 5px;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-cyan);
    animation: border-pulse 2s ease-in-out infinite;
}

.stat-card[data-color="orange"]::before {
    background: var(--accent-orange);
}

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

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow);
}

.stat-card[data-color="orange"]:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--accent-glow-orange);
}

.stat-big-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
    line-height: 1;
}

.stat-card[data-color="orange"] .stat-big-number {
    color: var(--accent-orange);
}

.stat-big-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    color: inherit;
}

.stat-card[data-color="cyan"] .stat-big-suffix { color: var(--accent-cyan); }
.stat-card[data-color="orange"] .stat-big-suffix { color: var(--accent-orange); }

.stat-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 15px 0 5px;
    color: var(--text-primary);
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Certifications Banner */
.certifications-banner {
    text-align: center;
}

.cert-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cert-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cert-badge-gold {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid var(--accent-gold);
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.cert-badge-gold:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow-gold);
}

.cert-icon-gold {
    font-size: 1.5rem;
}

.cert-name-gold {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
}

/* Stats Section Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .cert-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.title-decoration {
    color: var(--accent-primary);
    margin-right: 10px;
    font-weight: 400;
}

/* Animated underline for section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ============================================
   ABOUT SECTION - Redesigned
   ============================================ */
.about {
    background: var(--bg-primary);
    padding: var(--section-padding);
}

.about-main {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

/* Photo with animated border */
.about-photo {
    position: relative;
}

.photo-frame {
    position: relative;
    width: 300px;
    height: 300px;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.photo-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    animation: border-rotate 8s linear infinite;
}

.photo-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid transparent;
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: border-rotate 8s linear infinite reverse;
}

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

.about-text {
    max-width: 600px;
}

.about-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.about-role {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    font-weight: 500;
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.book-link-subtle {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    padding: 10px 0;
    min-height: 44px;
}

.book-link-subtle:hover {
    color: var(--accent-orange);
}

/* Mini Cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.about-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: all 0.3s ease;
}

.about-mini-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.mini-card-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.about-mini-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-mini-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Availability Banner */
.availability-banner {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 255, 136, 0.02) 100%);
    border: 1px solid var(--accent-green);
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: glow-pulse-green 3s ease-in-out infinite;
}

@keyframes glow-pulse-green {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 255, 136, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 255, 136, 0.4); }
}

.availability-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px var(--accent-green); }
    50% { opacity: 0.5; box-shadow: 0 0 15px var(--accent-green); }
}

.availability-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--accent-green);
    margin-bottom: 5px;
}

.availability-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* About Section Responsive */
@media (max-width: 1024px) {
    .about-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        justify-self: center;
    }

    .about-text {
        max-width: none;
    }

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .about-cards {
        grid-template-columns: 1fr;
    }

    .photo-frame {
        width: 200px;
        height: 200px;
    }

    .availability-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Legacy support - keep icon styles for other sections */
.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    transition: var(--transition-bounce);
}

/* 3D Printer Icon */
.icon-3d-printer {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.icon-3d-printer svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

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

.projects-category {
    margin-bottom: 80px;
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 1.5rem;
}

.category-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

/* Project Card with 3D tilt effect */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 69, 0, 0.1) 0%,
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: var(--transition-medium);
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px) rotateX(2deg) rotateY(-2deg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--accent-glow);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 69, 0, 0.05) 100%);
}

.project-card.featured::after {
    content: 'FEATURED';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 35px;
    transform: rotate(45deg);
    letter-spacing: 1px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.project-type {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.project-lang,
.project-downloads {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    min-height: 44px;
}

.project-link:hover {
    color: var(--accent-secondary);
    gap: 10px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    padding: 10px 0;
    min-height: 44px;
}

.view-all-link:hover {
    color: var(--accent-primary);
    gap: 10px;
}

/* Loading Placeholder */
.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

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

/* Empty State (error/no data) */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.empty-state p {
    margin-bottom: 10px;
}

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

.skills-container {
    display: grid;
    gap: 60px;
}

.subsection-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.subsection-title::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
}

/* Timeline with animated markers */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--border-color) 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow); }
}

.timeline-date {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 10px 0 5px;
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 10px;
}

.timeline-content p:last-child {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certifications with hover effect */
.cert-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cert-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: default;
}

.cert-badge:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cert-icon {
    font-size: 1.5rem;
    transition: var(--transition-bounce);
}

.cert-badge:hover .cert-icon {
    transform: rotate(15deg) scale(1.1);
}

.cert-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Skills Grid with animated borders */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.4s ease;
}

.skill-category:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.skill-category:hover::before {
    width: 100%;
}

.skill-category h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.skill-category li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.skill-category:hover li::before {
    left: 5px;
}

.skill-category li:hover {
    color: var(--text-primary);
    padding-left: 25px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Big CV Button */
.contact-cta {
    margin-bottom: 40px;
}

.btn-cv-big {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: var(--accent-orange);
    color: var(--bg-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 20px 40px;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: cv-glow 2s ease-in-out infinite;
}

.btn-cv-big:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 69, 0, 0.4);
}

@keyframes cv-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 69, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 69, 0, 0.6); }
}

.btn-icon {
    font-size: 1.3rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.contact-method:hover {
    border-color: var(--accent-cyan);
    transform: translateX(10px);
    box-shadow: -5px 0 20px var(--accent-glow);
}

.method-icon {
    font-size: 1.5rem;
}

.method-text {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.copy-feedback {
    position: absolute;
    right: 20px;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.contact-method.copied .copy-feedback {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links with ripple effect */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-5px) rotate(5deg);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.social-link svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0, 255, 136, 0.02) 100%);
    border: 1px solid var(--accent-green);
    padding: 30px;
    position: relative;
}

.contact-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-green);
}

.contact-card .status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}

.card-formats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.format-tag {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-green);
}

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

.contact-card .card-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
}

/* Contact Section Responsive */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .copy-feedback {
        position: static;
        margin-top: 10px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
}

.footer-tagline a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-tagline a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================
   CUSTOM CURSOR (Optional)
   ============================================ */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        flex: 0 0 auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .highlight::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    /* Mobile menu overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-medium);
        z-index: 998;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateX(100%);
        transition: var(--transition-medium);
        z-index: 999;
        border-left: 1px solid var(--border-color);
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: flex;
    }

    /* Mobile font-size improvements */
    .hero-subtitle {
        font-size: 1rem;
    }

    .project-description,
    .about-desc,
    .timeline-content p {
        font-size: 1rem;
    }

    .stat-label,
    .project-meta span,
    .cert-name,
    .footer-text {
        font-size: 0.875rem;
    }

    .project-type {
        font-size: 0.8rem;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        gap: 12px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }

    .avatar-container {
        width: 220px;
        height: 220px;
    }

    .avatar-placeholder {
        width: 160px;
        height: 160px;
    }

    .avatar-icon {
        font-size: 4rem;
    }

    .particles {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-stat {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .hero-stat {
        flex: none;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .category-subtitle {
        margin-left: 0;
    }

    .cert-grid {
        flex-direction: column;
    }

    .cert-badge {
        width: 100%;
        justify-content: center;
    }
}

/* Small mobile devices (320px - 375px) */
@media (max-width: 375px) {
    .hero {
        padding: 100px 15px 50px;
    }

    .navbar {
        padding: 15px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.85rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .project-card {
        padding: 20px 15px;
    }
}

/* ============================================
   REDUCED MOTION - Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .particles,
    .scanlines {
        display: none !important;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

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

/* Smooth page transitions */
.page-transition {
    animation: pageIn 0.5s ease forwards;
}

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

/* ============================================
   MEDIA INTEGRATION - Photos & Videos
   ============================================ */

/* Avatar Image in Hero */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.avatar-frame:hover .avatar-img {
    transform: scale(1.05);
}

/* Project Cards with Video */
.project-card.has-video {
    padding-top: 0;
    overflow: hidden;
}

.project-video {
    width: calc(100% + 40px);
    height: 180px;
    margin: -20px -20px 15px -20px;
    overflow: hidden;
    position: relative;
}

.project-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
}

.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Work Gallery */
.work-gallery {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.gallery-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.gallery-title::before {
    content: '📸 ';
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

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

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

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-video {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 12px 15px;
    min-height: 44px;
    min-width: 44px;
    transition: var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--accent-primary);
}

.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
}

.lang-separator {
    color: var(--border-color);
    font-size: 0.8rem;
}

/* Mobile lang switch */
@media (max-width: 768px) {
    .lang-switch {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
    }
}
