/* ============================================
   WILLIAM GRADEL PORTFOLIO
   Moderne & Audacieux
   ============================================ */

/* Variables */
:root {
    /* Colors - Light Theme with Violet/Indigo Accent */
    --color-bg: #ffffff;
    --color-bg-light: #f8f9fc;
    --color-bg-card: #ffffff;
    --color-bg-elevated: #f1f3f9;

    --color-white: #ffffff;
    --color-dark: #0f0f1a;
    --color-text: #1f2937;
    --color-text-muted: #6B7280;
    --color-text-dim: #9CA3AF;

    /* Accent - Violet/Indigo */
    --color-accent: #4F46E5;
    --color-accent-rgb: 79, 70, 229;
    --color-accent-light: #6366F1;
    --color-accent-dark: #4338CA;

    /* Secondary - Purple */
    --color-secondary: #7C3AED;
    --color-secondary-rgb: 124, 58, 237;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(var(--color-accent-rgb), 0.15) 0%, transparent 70%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(124, 58, 237, 0.08) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(79, 70, 229, 0.06) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(124, 58, 237, 0.06) 0px, transparent 50%);

    /* Typography - Distinctive fonts */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 10rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

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

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-follower,
.cursor-dot {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition);
}

body:hover .cursor-follower,
body:hover .cursor-dot {
    opacity: 1;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(var(--color-accent-rgb), 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

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

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-stroke {
    -webkit-text-stroke: 1px var(--color-text-muted);
    -webkit-text-fill-color: transparent;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn i {
    font-size: 0.85rem;
    transition: transform var(--transition);
}

.btn:hover i {
    transform: translateX(4px);
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(var(--color-accent-rgb), 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--color-dark);
    border: 1px solid var(--color-text-dim);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-light {
    background: var(--color-dark);
    color: var(--color-white);
}

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

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-dark);
    letter-spacing: -0.03em;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(var(--color-accent-rgb), 0);
    }
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: var(--gradient-glow);
    filter: blur(80px);
    opacity: 0.6;
    animation: float-gradient 15s ease-in-out infinite;
}

@keyframes float-gradient {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, 10%) scale(1.1); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--color-accent-rgb), 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--color-accent-rgb), 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1rem;
    background: rgba(var(--color-accent-rgb), 0.1);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.tag-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title .title-line {
    display: block;
}

.hero-title .highlight {
    position: relative;
    display: inline-block;
}

.hero-title .highlight::before {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background: var(--color-accent);
    opacity: 0.3;
    z-index: -1;
    transform: skewX(-5deg);
}

.hero-title .title-small {
    font-size: 0.5em;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: var(--space-xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

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

.stat-plus,
.stat-percent {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.stat-label {
    width: 100%;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

/* ============================================
   MARQUEE BAND
   ============================================ */
.marquee-band {
    background: var(--color-accent);
    padding: 1rem 0;
    overflow: hidden;
    transform: rotate(-1deg) scale(1.02);
    margin: -1rem 0;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-star {
    font-size: 0.75rem !important;
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-header-center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: var(--space-sm);
}

.section-title {
    line-height: 1.1;
}

/* ============================================
   WORK / PROJECTS SECTION - SHOWCASE STYLE
   ============================================ */
.section-work {
    background: var(--color-bg);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-top: var(--space-sm);
}

/* Showcase Projects Container */
.showcase-projects {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Individual Showcase Item */
.showcase-item {
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.showcase-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.showcase-link {
    display: grid;
    grid-template-columns: 80px 1fr 400px;
    gap: var(--space-xl);
    align-items: center;
    padding: var(--space-xl) 0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-item:hover .showcase-link {
    padding-left: var(--space-lg);
}

/* Showcase Number */
.showcase-number {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dim);
    opacity: 0.5;
    transition: var(--transition);
}

.showcase-item:hover .showcase-number {
    color: var(--color-accent);
    opacity: 1;
}

/* Showcase Content */
.showcase-content {
    position: relative;
    z-index: 2;
}

.showcase-header {
    margin-bottom: var(--space-sm);
}

.showcase-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-xs);
}

.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-dark);
    transition: var(--transition);
    line-height: 1.2;
}

.showcase-item:hover .showcase-title {
    color: var(--color-accent);
}

.showcase-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 500px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-bottom: var(--space-sm);
}

.showcase-item:hover .showcase-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Showcase CTA */
.showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0.1s;
}

.showcase-cta i {
    transition: transform 0.3s ease;
}

.showcase-item:hover .showcase-cta {
    opacity: 1;
    transform: translateX(0);
}

.showcase-item:hover .showcase-cta i {
    transform: translateX(5px);
}

/* Showcase Visual */
.showcase-visual {
    position: relative;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-elevated) 100%);
    transform: scale(0.95) translateX(20px);
    opacity: 0.7;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-item:hover .showcase-visual {
    transform: scale(1) translateX(0);
    opacity: 1;
}

.showcase-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.showcase-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-item:hover .showcase-image-wrapper img {
    transform: scale(1.05);
}

/* Visual variants for logos */
.showcase-visual-logo {
    background: linear-gradient(135deg, #1a1a2e 0%, #252545 100%);
}

.showcase-visual-logo .showcase-image-wrapper img {
    width: auto;
    height: auto;
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.showcase-visual-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.showcase-visual-light .showcase-image-wrapper img {
    width: auto;
    height: auto;
    max-width: 55%;
    max-height: 55%;
    object-fit: contain;
}

.showcase-visual-warm {
    background: linear-gradient(135deg, #fef7ed 0%, #fdecd4 100%);
}

.showcase-visual-warm .showcase-image-wrapper img {
    width: auto;
    height: auto;
    max-width: 50%;
    max-height: 50%;
    object-fit: contain;
}

/* Showcase Glow Effect */
.showcase-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(var(--color-accent-rgb), 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.showcase-item:hover .showcase-glow {
    opacity: 1;
}

/* Background line animation on hover */
.showcase-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-item:hover::before {
    transform: scaleY(1);
}

/* Responsive Showcase */
@media (max-width: 1024px) {
    .showcase-link {
        grid-template-columns: 60px 1fr;
        gap: var(--space-lg);
    }

    .showcase-visual {
        display: none;
    }

    .showcase-desc {
        opacity: 1;
        transform: translateY(0);
    }

    .showcase-cta {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .showcase-link {
        grid-template-columns: 1fr;
        padding: var(--space-lg) 0;
    }

    .showcase-number {
        position: absolute;
        top: var(--space-lg);
        right: 0;
        font-size: 3rem;
        opacity: 0.1;
    }

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

    .showcase-item:hover .showcase-link {
        padding-left: var(--space-sm);
    }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.section-services {
    background: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.service-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.service-card:hover {
    border-color: rgba(var(--color-accent-rgb), 0.2);
    transform: translateY(-4px);
}

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

.service-number {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(var(--color-accent-rgb), 0.08);
    line-height: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    font-size: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
    color: var(--color-white);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.service-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.service-features li::before {
    content: '→';
    color: var(--color-accent);
    font-weight: 600;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
    background: var(--color-bg);
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
}

.about-text {
    margin-bottom: var(--space-xl);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-dark);
}

.about-badges {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.25rem;
    background: var(--color-bg-light);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    color: var(--color-dark);
}

.badge i {
    color: var(--color-accent);
}

.badge:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

/* About visual - 3D Scene */
.about-visual {
    position: relative;
    perspective: 1000px;
}

.about-3d-scene {
    position: relative;
    width: 100%;
    height: 450px;
    transform-style: preserve-3d;
}

/* Central Orb */
.central-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.orb-core {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(var(--color-accent-rgb), 0.4),
        0 0 120px rgba(var(--color-accent-rgb), 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: orb-pulse 3s ease-in-out infinite;
}

.orb-core span {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(var(--color-accent-rgb), 0.4), 0 0 120px rgba(var(--color-accent-rgb), 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 0 80px rgba(var(--color-accent-rgb), 0.5), 0 0 150px rgba(var(--color-accent-rgb), 0.3); }
}

.orb-ring {
    position: absolute;
    inset: -30px;
    border: 2px solid rgba(var(--color-accent-rgb), 0.3);
    border-radius: 50%;
    animation: ring-rotate 10s linear infinite;
}

.orb-ring.ring-1 {
    inset: -40px;
    border-color: rgba(var(--color-accent-rgb), 0.2);
    animation-duration: 15s;
}

.orb-ring.ring-2 {
    inset: -60px;
    border-color: rgba(var(--color-secondary-rgb), 0.15);
    animation-duration: 20s;
    animation-direction: reverse;
}

.orb-ring.ring-3 {
    inset: -85px;
    border-color: rgba(var(--color-accent-rgb), 0.1);
    animation-duration: 25s;
}

@keyframes ring-rotate {
    from { transform: rotateX(70deg) rotateZ(0deg); }
    to { transform: rotateX(70deg) rotateZ(360deg); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    z-index: 2;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.floating-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-dark);
}

.floating-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--color-accent);
    box-shadow: 0 25px 50px rgba(var(--color-accent-rgb), 0.2);
}

.floating-card.card-1 {
    top: 10%;
    left: 5%;
    animation: float-card-1 6s ease-in-out infinite;
}

.floating-card.card-2 {
    top: 5%;
    right: 10%;
    animation: float-card-2 7s ease-in-out infinite;
}

.floating-card.card-3 {
    bottom: 15%;
    left: 0;
    animation: float-card-3 5s ease-in-out infinite;
}

.floating-card.card-4 {
    bottom: 10%;
    right: 5%;
    animation: float-card-4 8s ease-in-out infinite;
}

@keyframes float-card-1 {
    0%, 100% { transform: translate(0, 0) rotate(-3deg); }
    50% { transform: translate(10px, -15px) rotate(2deg); }
}

@keyframes float-card-2 {
    0%, 100% { transform: translate(0, 0) rotate(3deg); }
    50% { transform: translate(-15px, 10px) rotate(-2deg); }
}

@keyframes float-card-3 {
    0%, 100% { transform: translate(0, 0) rotate(2deg); }
    50% { transform: translate(15px, -10px) rotate(-3deg); }
}

@keyframes float-card-4 {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    50% { transform: translate(-10px, -20px) rotate(3deg); }
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.section-process {
    background: var(--color-bg-light);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.process-step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    position: relative;
}

.step-marker {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-marker span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
}

.process-step:hover .step-marker {
    background: var(--color-accent);
}

.process-step:hover .step-marker span {
    color: var(--color-white);
}

.step-content {
    padding-top: var(--space-sm);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

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

/* ============================================
   CTA SECTION
   ============================================ */
.section-cta {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
}

.cta-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, var(--color-accent) 0%, #9EF01A 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 400px;
}

.cta-content {
    padding: var(--space-2xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: var(--space-lg);
    line-height: 1.7;
}

.cta-actions {
    margin-bottom: var(--space-sm);
}

.cta-note {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.5);
}

.cta-visual {
    position: relative;
}

.cta-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 20%;
    animation: float 4s ease-in-out infinite;
}

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

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

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.contact-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

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

.method-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-accent-rgb), 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

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

.method-value {
    font-weight: 600;
    color: var(--color-dark);
}

.contact-socials {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-4px);
}

/* Contact form */
.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    background: var(--color-bg-elevated);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(var(--color-accent-rgb), 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-light);
    padding: var(--space-2xl) 0 var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: var(--space-xs);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.footer-legal-btn {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-legal-btn:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-lg);
    text-align: center;
}

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

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modal-in 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-dark);
}

.modal-content h3 {
    margin-bottom: var(--space-md);
    padding-right: 40px;
}

.modal-body p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.modal-body strong {
    color: var(--color-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-featured,
    .project-wide {
        grid-column: span 1;
    }
}

@media (max-width: 1024px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 5rem;
        --space-3xl: 7rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-template-columns: 1fr;
    }

    .cta-visual {
        display: none;
    }
}

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

    .nav-links,
    .nav > .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        justify-content: center;
        align-items: center;
        gap: var(--space-lg);
        z-index: 999;
    }

    .nav-links.active a {
        font-size: 1.5rem;
        color: var(--color-dark);
    }

    .hero {
        min-height: auto;
        padding: calc(var(--space-2xl) + 60px) 0 var(--space-xl);
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .stat-divider {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

    .marquee-band {
        transform: rotate(0) scale(1);
    }

    .process-line {
        left: 25px;
    }

    .step-marker {
        width: 50px;
        height: 50px;
    }

    .step-marker span {
        font-size: 1rem;
    }

    .about-float-card {
        left: var(--space-sm);
        bottom: var(--space-sm);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
    }

    .container {
        padding: 0 var(--space-sm);
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .project-image,
    .project-featured .project-image {
        height: 200px;
    }

    .service-card {
        padding: var(--space-lg);
    }

    .service-number {
        font-size: 3rem;
    }

    .contact-form-wrapper {
        padding: var(--space-lg);
    }

    .cta-content {
        padding: var(--space-lg);
    }
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

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

    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .header,
    .hero-actions,
    .section-cta,
    .contact-form-wrapper,
    .footer,
    .noise-overlay,
    .cursor-follower,
    .cursor-dot {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* ============================================
   ADVANCED 3D SCROLL ANIMATIONS
   ============================================ */

/* Scroll-triggered parallax layers */
.parallax-layer {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* 3D Card transforms on scroll */
.scroll-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.scroll-3d-item {
    transform: translateZ(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-3d-item.in-view {
    transform: translateZ(50px) rotateX(0deg);
}

/* Stagger reveal animation */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(60px) rotateX(-15deg);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-reveal.in-view > *:nth-child(1) { transition-delay: 0s; }
.stagger-reveal.in-view > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-reveal.in-view > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-reveal.in-view > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-reveal.in-view > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-reveal.in-view > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-reveal.in-view > * {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Magnetic effect for buttons */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Glowing border animation */
.glow-border {
    position: relative;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
        var(--color-accent),
        var(--color-secondary),
        var(--color-accent-light),
        var(--color-accent));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    animation: glow-rotate 3s linear infinite;
    transition: opacity 0.3s ease;
}

.glow-border:hover::before {
    opacity: 1;
}

@keyframes glow-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles background */
.particles-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(720deg);
        opacity: 0;
    }
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.text-reveal.in-view span {
    transform: translateY(0);
}

/* Split text character animation */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(-90deg);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.split-text.in-view .char {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Smooth scale on scroll */
.scale-on-scroll {
    transform: scale(0.9);
    opacity: 0.5;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.scale-on-scroll.in-view {
    transform: scale(1);
    opacity: 1;
}

/* Horizontal scroll section */
.horizontal-scroll-section {
    overflow: hidden;
}

.horizontal-scroll-wrapper {
    display: flex;
    gap: var(--space-lg);
    transition: transform 0.1s linear;
}

/* Morphing blob background */
.morph-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(var(--color-accent-rgb), 0.1), rgba(var(--color-secondary-rgb), 0.1));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(60px);
    animation: morph 15s ease-in-out infinite;
    z-index: 0;
}

@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
        transform: rotate(180deg) scale(1);
    }
    75% {
        border-radius: 60% 30% 70% 40% / 60% 40% 30% 70%;
        transform: rotate(270deg) scale(1.1);
    }
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Mouse trail effect container */
.mouse-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
}

.trail-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s, transform 0.3s;
}

/* Perspective tilt container */
.perspective-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.perspective-tilt-inner {
    transition: transform 0.3s ease-out;
    transform: rotateX(0) rotateY(0);
}

/* Glitch text effect */
.glitch-text {
    position: relative;
}

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

.glitch-text:hover::before {
    animation: glitch-1 0.3s infinite;
    color: var(--color-accent);
    opacity: 0.8;
}

.glitch-text:hover::after {
    animation: glitch-2 0.3s infinite;
    color: var(--color-secondary);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(3px, -3px); }
    40% { transform: translate(3px, 3px); }
    60% { transform: translate(-3px, -3px); }
    80% { transform: translate(-3px, 3px); }
}

/* Smooth 3D card flip */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    backface-visibility: hidden;
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Elastic bounce animation */
.elastic-bounce {
    animation: elastic-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes elastic-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Wave animation for decorative elements */
.wave-animation {
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    75% { transform: translateY(10px) rotate(-2deg); }
}

/* Responsive 3D scene */
@media (max-width: 768px) {
    .about-3d-scene {
        height: 350px;
    }

    .central-orb {
        width: 100px;
        height: 100px;
    }

    .orb-core span {
        font-size: 1.75rem;
    }

    .orb-ring.ring-1 { inset: -25px; }
    .orb-ring.ring-2 { inset: -40px; }
    .orb-ring.ring-3 { inset: -60px; }

    .floating-card {
        padding: 1rem;
    }

    .floating-card i {
        font-size: 1.25rem;
    }

    .floating-card span {
        font-size: 0.75rem;
    }
}
