/* =========================================
   VARIABLES & COLOR PALETTE (APPLE GLASS w/ SUBTLE GLOW)
   ========================================= */
:root {
    /* Pure Black/Deep Gray Base */
    --clr-bg-dark: #000000;
    --clr-bg-surface: #050505;

    /* Clean, Subtle Accents */
    --clr-light: #ffffff;
    --clr-text-muted: #86868b;
    --clr-accent: #ffffff;

    /* VERY SUBTLE Glowing Accent Colors */
    --clr-glow-blue: rgba(10, 132, 255, 0.4);
    --clr-glow-purple: rgba(191, 90, 242, 0.4);

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(24px);

    /* Typography */
    /* Using Inter to mimic SF Pro closely for a clean Apple look */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing & Layout */
    --nav-height: 70px;
    --container-width: 1200px;

    --transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--clr-bg-dark);
    color: var(--clr-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
    /* Keep ambient color visible */
}

/* Animated Glow Background for more color */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 210, 255, 0.12), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(110, 0, 255, 0.12), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(0, 255, 130, 0.1), transparent 35%);
    animation: ambientGlow 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ambientGlow {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1) rotate(3deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(-3deg);
        opacity: 0.8;
    }
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
}

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

.section-padding {
    padding: 10rem 0;
    /* Increased padding for more breathing room/scroll length */
}

/* =========================================
   TYPOGRAPHY & HIGHLIGHTS
   ========================================= */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle,
.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--clr-text-muted);
    font-weight: 400;
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem auto;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #86868b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight-text {
    color: #fff;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.glow-text {
    background: linear-gradient(135deg, #a8c0ff, #3f2b96);
    /* Very subtle purple/blue */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* =========================================
   HEADER LOGO & ANIMATION
   ========================================= */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.site-logo {
    display: block;
    height: 32px;
    width: auto;
    min-width: 32px;
    object-fit: contain;
    border-radius: 0;
    /* Verhindert das Abschneiden als Kreis */
    /* Intermittent brief spin every 8 seconds */
    animation: logoSpin 8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    pointer-events: none;
}

@keyframes logoSpin {

    0%,
    85% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   SPARKLE TEXT HOVER EFFECT
   ========================================= */
.sparkle-text {
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    z-index: 1;
    /* Establishes stacking context for particles to sit firmly on top */
}

.sparkle-text:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(10, 132, 255, 0.3),
        0 0 30px rgba(191, 90, 242, 0.3);
}

.spark-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    /* Glow effect is now handled dynamically in Javascript animation */
}

.glow-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #cfcfd6;
    backdrop-filter: blur(10px);
}

/* =========================================
   BUTTONS (APPLE STYLE)
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--clr-light);
    color: var(--clr-bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
    /* Subtle white glow */
}

.btn-secondary {
    display: inline-block;
    background-color: var(--glass-bg);
    color: var(--clr-light);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-highlight);
}

/* =========================================
   NAVIGATION (MAC OS STYLE)
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--clr-text-muted);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--clr-light);
}

/* =========================================
   HERO & SCROLL INDICATOR
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.scroll-prompt {
    position: absolute;
    bottom: 40px;
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: floating 2s ease-in-out infinite;
}

.scroll-prompt i {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
}

@keyframes floating {
    0% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
}

/* =========================================
   GLASS CARD COMPONENT
   ========================================= */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Base extremely subtle glow element behind cards */
.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

/* =========================================
   ABOUT / STATEMENT
   ========================================= */
.statement-section {
    position: relative;
    background: linear-gradient(to bottom, transparent, var(--clr-bg-surface) 15%, var(--clr-bg-surface) 85%, transparent);
}

.statement-text {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
    line-height: 1.3;
    font-weight: 500;
    color: var(--clr-text-muted);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem auto;
}

.statement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 4rem;
}

.statement-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.statement-item p {
    color: var(--clr-text-muted);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

/* Very subtle hover glows for icons */
.service-card:hover .marketing-icon {
    color: #0a84ff;
    border-color: rgba(10, 132, 255, 0.3);
    box-shadow: 0 0 20px rgba(10, 132, 255, 0.15);
}

.service-card:hover .video-icon {
    color: #bf5af2;
    border-color: rgba(191, 90, 242, 0.3);
    box-shadow: 0 0 20px rgba(191, 90, 242, 0.15);
}

.service-card:hover .web-icon {
    color: #32d74b;
    border-color: rgba(50, 215, 75, 0.3);
    box-shadow: 0 0 20px rgba(50, 215, 75, 0.15);
}

.service-card:hover .brand-icon {
    color: #ff9f0a;
    border-color: rgba(255, 159, 10, 0.3);
    box-shadow: 0 0 20px rgba(255, 159, 10, 0.15);
}

.service-card:hover .automation-icon {
    color: #ff375f;
    border-color: rgba(255, 55, 95, 0.3);
    box-shadow: 0 0 20px rgba(255, 55, 95, 0.15);
}

.service-card:hover .content-icon {
    color: #64d2ff;
    border-color: rgba(100, 210, 255, 0.3);
    box-shadow: 0 0 20px rgba(100, 210, 255, 0.15);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.service-features li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #d1d1d6;
}

.service-features i {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* =========================================
   PROCESS SECTION (CINEMATIC CAROUSEL)
   ========================================= */
.process-section {
    position: relative;
    background: linear-gradient(to bottom, transparent, #020202 15%, #020202 85%, transparent);
    overflow: hidden;
    padding-bottom: 8rem;
}

.process-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    margin-bottom: 3rem;
}

.carousel-card {
    position: absolute;
    width: 400px;
    height: 350px;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    /* Default state (hidden far away) */
    transform: translateX(0) scale(0.6) translateZ(-400px) rotateY(0deg);
    filter: blur(8px) brightness(0.3);
}

/* Glass Panel Inside Card */
.glass-panel {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3rem 2.5rem;
    border-radius: 24px;
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    z-index: 2;
}

/* Contained Inner "Smoke" Glow */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

/* Beautiful, ultra-soft, slow-drifting colored orbs inside the card */
.card-glow::before,
.card-glow::after {
    content: '';
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: radial-gradient(circle at center, var(--card-color), transparent 70%);
    opacity: 0.7;
    mix-blend-mode: screen;
    filter: blur(40px);
}

.card-glow::before {
    animation: smokeDrift1 12s infinite alternate ease-in-out;
}

.card-glow::after {
    background: radial-gradient(circle at center, var(--card-color), transparent 60%);
    opacity: 0.5;
    animation: smokeDrift2 15s infinite alternate-reverse ease-in-out;
}

@keyframes smokeDrift1 {
    0% {
        transform: translate(15%, 15%) scale(1);
    }

    100% {
        transform: translate(-10%, -15%) scale(1.1);
    }
}

@keyframes smokeDrift2 {
    0% {
        transform: translate(-15%, 20%) scale(1.1);
    }

    100% {
        transform: translate(20%, -10%) scale(0.9);
    }
}

/* Aurora Glow for the final contact card, mixing all 4 colors */
.card-glow.aurora-glow::before {
    background:
        radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.4), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.4), transparent 60%);
    opacity: 0.6;
    animation: smokeDrift1 15s infinite alternate ease-in-out, auroraShift 10s infinite alternate linear;
}

.card-glow.aurora-glow::after {
    background:
        radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.4), transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.4), transparent 60%);
    opacity: 0.5;
    animation: smokeDrift2 18s infinite alternate-reverse ease-in-out;
}

@keyframes auroraShift {
    0% {
        filter: blur(40px) hue-rotate(0deg);
    }

    100% {
        filter: blur(40px) hue-rotate(45deg);
    }
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(20px);
}

.card-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
    transform: translateY(20px);
    opacity: 0.5;
    transition: all 0.5s ease 0.1s;
}

.card-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0.5;
    transition: all 0.5s ease 0.2s;
}

/* CAROUSEL STATES */

/* State: Active (Center) */
@keyframes breatheGlow {

    0%,
    100% {
        box-shadow:
            0 0 15px rgba(255, 255, 255, 0.1),
            inset 0 0 10px rgba(255, 255, 255, 0.05),
            0 0 30px var(--card-color);
    }

    50% {
        box-shadow:
            0 0 30px rgba(255, 255, 255, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.1),
            0 0 60px var(--card-color),
            0 0 100px var(--card-color);
        /* Stronger outer spread */
    }
}

.carousel-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
    transform: translateX(0) scale(1) translateZ(0) rotateY(0deg);
    filter: blur(0px) brightness(1);
    /* Remove static shadow to avoid clashing with the glass-panel shadow */
}

.carousel-card.active .glass-panel {
    border-color: var(--card-color);
    /* Stronger breathing animation */
    animation: breatheGlow 4s ease-in-out infinite;
    transition: all 0.5s ease;
}

.carousel-card.active .card-glow {
    opacity: 1;
}

/* Active Text Animations */
.carousel-card.active .step-number {
    transform: translateY(0);
    -webkit-text-stroke: 0px;
    background: linear-gradient(135deg, #fff, var(--card-color, #ccc));
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px var(--card-color);
}

.carousel-card.active .card-content h3,
.carousel-card.active .card-content p,
.carousel-card.active #carousel-cta {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Glass Button Styling for Kontakt */
#carousel-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#carousel-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 255, 255, 0.2);
}


/* State: Prev (Left 1) */
.carousel-card.prev {
    opacity: 0.6;
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(-60%) scale(0.8) translateZ(-100px) rotateY(15deg);
    filter: blur(2px) brightness(0.5);
}

/* State: Next (Right 1) */
.carousel-card.next {
    opacity: 0.6;
    z-index: 5;
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(60%) scale(0.8) translateZ(-100px) rotateY(-15deg);
    filter: blur(2px) brightness(0.5);
}

/* Base state for cards far left/right (handled by JS inline styles, but providing fallback structure) */
.carousel-card.far-prev {
    opacity: 0.3;
    z-index: 2;
    transform: translateX(-90%) scale(0.6) translateZ(-250px) rotateY(25deg);
    filter: blur(4px) brightness(0.2);
}

.carousel-card.far-next {
    opacity: 0.3;
    z-index: 2;
    transform: translateX(90%) scale(0.6) translateZ(-250px) rotateY(-25deg);
    filter: blur(4px) brightness(0.2);
}

/* Hover effects for side cards */
.carousel-card.prev:hover,
.carousel-card.next:hover {
    opacity: 0.8;
    filter: blur(1px) brightness(0.7);
    transform: translateX(calc(var(--hover-dir, -60%))) scale(0.82) translateZ(-80px) rotateY(10deg);
}

.carousel-card.next:hover {
    transform: translateX(60%) scale(0.82) translateZ(-80px) rotateY(-10deg);
}


/* CONTROLS */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    z-index: 20;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.carousel-indicators {
    display: flex;
    gap: 1rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Card 5 Specific Aurora Border & Kugel Effect --- */

@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.carousel-card[data-step="5"].active .glass-panel {
    border: 2px solid transparent !important;
    background:
        linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.8)) padding-box,
        conic-gradient(from var(--border-angle),
            rgba(56, 189, 248, 1),
            rgba(99, 102, 241, 1),
            rgba(168, 85, 247, 1),
            rgba(236, 72, 153, 1),
            rgba(56, 189, 248, 1)) border-box !important;
    animation: rotateGradientBorder 4s linear infinite;
}

@keyframes rotateGradientBorder {
    0% {
        --border-angle: 0deg;
    }

    100% {
        --border-angle: 360deg;
    }
}

.card-kugel {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    margin: -3px 0 0 -3px;
    /* center it on the boundary */
    box-shadow: 0 0 10px #fff, 0 0 20px rgba(56, 189, 248, 1), 0 0 30px rgba(236, 72, 153, 1);
    offset-path: inset(0px round 24px);
    animation: kugelTravel 4s linear infinite;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease 0.5s;
}

.carousel-card[data-step="5"].active .card-kugel {
    opacity: 1;
}

@keyframes kugelTravel {
    0% {
        offset-distance: 0%;
    }

    100% {
        offset-distance: 100%;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-track {
        height: 400px;
    }

    .carousel-card {
        width: 300px;
        height: 380px;
    }

    /* Stack cards more tightly on mobile */
    .carousel-card.prev {
        transform: translateX(-20%) scale(0.75) translateZ(-150px) rotateY(10deg);
        opacity: 0.3;
    }

    .carousel-card.next {
        transform: translateX(20%) scale(0.75) translateZ(-150px) rotateY(-10deg);
        opacity: 0.3;
    }

    .glass-panel {
        padding: 2rem 1.5rem;
    }

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

    .card-content h3 {
        font-size: 1.3rem;
    }
}

/* =========================================
   PORTFOLIO / REFERENCES
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    background: #0a0a0c;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: grayscale(40%) brightness(0.7);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0.8;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(0.9);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    width: max-content;
}

.portfolio-overlay h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* =========================================
   BANNER SECTION
   ========================================= */
.banner-section {
    padding: 0 2rem;
}

.banner-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.15);
}

.banner-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.banner-content p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

/* =========================================
   TEAM SECTION
   ========================================= */
.team-section {
    background: var(--clr-bg-surface);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    padding: 3.5rem 3rem;
}

.team-img-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.team-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.team-role {
    color: #a8c0ff;
    /* Very subtle blue highlight */
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.team-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: transparent;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.hover-glow:hover {
    padding-left: 1rem;
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--clr-text-muted);
    transition: color 0.3s;
}

.hover-glow:hover i {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--clr-text-muted);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--clr-light);
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    font-family: var(--font-main);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6rem 0 3rem;
    background-color: var(--clr-bg-surface);
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

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

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

.footer-bottom {
    color: #444;
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    padding-top: 3rem;
}

/* =========================================
   ANIMATIONS (SCROLL REVEAL)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* =========================================
   BRAND SLIDER
   ========================================= */
.brand-slider-section {
    padding: 2rem 0 2rem;
    overflow: hidden;
}

.brand-slider-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--clr-text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.brand-slider-title .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--clr-text-muted);
    opacity: 0.5;
}

.brand-slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.brand-slider-track {
    display: flex;
    align-items: center;
    gap: 6rem;
    width: max-content;
    animation: scroll-brand 35s linear infinite;
}

.brand-slider-track:hover {
    animation-play-state: paused;
}

.brand-logo-img {
    height: 45px;
    object-fit: contain;
    /* semi-transparent to blend, but keeping original colors */
    opacity: 0.6;
    transition: var(--transition);
    cursor: default;
}

.brand-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-brand {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 3rem));
    }
}

/* =========================================
   DYNAMIC TEXT SCROLL ANIMATION
   ========================================= */
.dynamic-headline-section {
    padding: 6rem 0 8rem;
}

.dynamic-headline-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: nowrap;
    width: fit-content;
    margin: 0 auto;
}

.dynamic-headline-static h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: var(--clr-light);
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.cursor-icon {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    width: 20px;
    height: 20px;
    vertical-align: bottom;
    margin-bottom: 0.35em;
    margin-left: 0.1em;
}

.cursor-icon .sq {
    background-color: var(--clr-text-muted);
}

.cursor-icon .sq-hidden {
    background-color: transparent;
}

.dynamic-headline-scroller-window {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    height: 4.5em;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.dynamic-headline-words {
    display: flex;
    flex-direction: column;
    animation: scroll-words 12s infinite cubic-bezier(0.5, 0, 0.5, 1);
}

.dynamic-headline-words .word {
    font-size: 1em;
    font-weight: 700;
    line-height: 1.5em;
    height: 1.5em;
    white-space: nowrap;
}

.base-layer {
    color: var(--clr-text-muted);
}

.base-layer .word {
    opacity: 0.3;
}

.colored-layer-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(33.33% 0 33.33% 0);
    -webkit-clip-path: inset(33.33% 0 33.33% 0);
    pointer-events: none;
}

.colored-layer {
    width: 100%;
}

.colored-layer .word {
    background: linear-gradient(90deg, #0a84ff, #bf5af2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 1;
}

@keyframes scroll-words {

    0%,
    15% {
        transform: translateY(1.5em);
    }

    20%,
    35% {
        transform: translateY(0em);
    }

    40%,
    55% {
        transform: translateY(-1.5em);
    }

    60%,
    75% {
        transform: translateY(-3.0em);
    }

    80%,
    95% {
        transform: translateY(-4.5em);
    }

    100% {
        transform: translateY(-6.0em);
    }
}


/* =========================================
   PORTFOLIO BROWSER WINDOW
   ========================================= */
.portfolio {
    position: relative;
}

/* Mobile Swipe Hint */
.mobile-swipe-hint {
    display: none;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: -15px;
    margin-bottom: 30px;
}

.mobile-swipe-hint i {
    margin-right: 8px;
    animation: swipeAnim 2s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes swipeAnim {
    0% {
        transform: translateX(-10px) rotate(-15deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(10px) rotate(15deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .mobile-swipe-hint {
        display: block;
    }
}

.portfolio-browser {
    background: rgba(20, 20, 22, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    margin-top: 3rem;
}

/* ── Browser Header ── */
.portfolio-browser-header {
    background: linear-gradient(to bottom, rgba(50, 50, 53, 0.95), rgba(38, 38, 41, 0.95));
    border-bottom: 1px solid rgba(0, 0, 0, 0.6);
}

.portfolio-browser-top-bar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 0;
}

.portfolio-browser-top-bar .mac-buttons {
    flex-shrink: 0;
    width: auto;
    min-width: 55px;
}

/* ── Tab Bar ── */
.portfolio-tab-bar {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 2px;
}

.portfolio-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.portfolio-tab i {
    font-size: 0.75rem;
    transition: color 0.3s ease;
}

.portfolio-tab:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
}

.portfolio-tab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.12);
}

.portfolio-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    border-radius: 1px;
}

.portfolio-tab-spacer {
    min-width: 55px;
    flex-shrink: 0;
}

/* ── URL Bar ── */
.portfolio-browser-urlbar {
    padding: 6px 16px 10px;
}

.urlbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.urlbar-inner i {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.urlbar-inner span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

/* ── Browser Content ── */
.portfolio-browser-content {
    padding: 2rem;
    min-height: 400px;
    position: relative;
    background: rgba(10, 10, 12, 0.6);
}

/* ── Tab Panels ── */
.portfolio-tab-panel {
    display: none;
    animation: portfolioFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.portfolio-tab-panel.active {
    display: block;
}

@keyframes portfolioFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ── Projects Grid ── */
.portfolio-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-projects-grid.logos-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Project Card ── */
.portfolio-project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.03);
}

/* Card Image */
.portfolio-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-project-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

/* Placeholder gradient when no image */
.portfolio-card-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-image.no-image i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.15);
}

/* Card Info */
.portfolio-card-info {
    padding: 1rem 1.2rem;
}

.portfolio-card-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.portfolio-card-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
    line-height: 1.4;
}

/* Tag Badges */
.portfolio-card-tags {
    display: flex;
    gap: 6px;
    padding: 0 1.2rem 1rem;
    flex-wrap: wrap;
}

.portfolio-card-tag {
    font-size: 0.65rem;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Logo Card (special styling) ── */
.logo-project-card .portfolio-card-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 15, 18, 0.8);
    padding: 2rem;
}

.logo-project-card .portfolio-card-image img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: brightness(1.1);
}

/* ── Video Card (play button overlay) ── */
.video-project-card .portfolio-card-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-project-card .portfolio-card-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-45%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    z-index: 3;
    transition: all 0.3s ease;
}

.video-project-card:hover .portfolio-card-image::after {
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── External Link Icon for Webseiten Cards ── */
.portfolio-card-link-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 5;
}

.portfolio-card-link-icon i {
    font-size: 0.75rem;
    color: #fff;
}

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

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

    .portfolio-projects-grid.logos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-browser-top-bar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .portfolio-browser-top-bar .mac-buttons {
        order: 0;
    }

    .portfolio-tab-bar {
        order: 1;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px;
    }

    .portfolio-tab-spacer {
        display: none;
    }

    .portfolio-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .portfolio-tab i {
        font-size: 0.65rem;
    }

    .portfolio-browser-content {
        padding: 1rem;
    }

    .portfolio-projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-projects-grid.logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   PORTFOLIO DETAIL MODAL
   ========================================= */
.portfolio-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-detail-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.portfolio-detail-window {
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    width: 92%;
    max-width: 900px;
    max-height: 88vh;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.93) translateY(25px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-detail-overlay.active .portfolio-detail-window {
    transform: scale(1) translateY(0);
}

.portfolio-detail-header {
    background: linear-gradient(to bottom, rgba(50, 50, 53, 0.95), rgba(38, 38, 41, 0.95));
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.portfolio-detail-title-bar {
    color: #c8c8c8;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 50px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

.portfolio-detail-body {
    padding: 2.5rem;
    overflow-y: auto;
    flex: 1;
    color: #e5e5ea;
}

/* ── Detail Sections ── */
.detail-hero-image {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.detail-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    font-weight: 300;
}

.detail-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Screenshots Gallery ── */
.detail-screenshots {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.detail-screenshots::-webkit-scrollbar {
    height: 4px;
}

.detail-screenshots::-webkit-scrollbar-track {
    background: transparent;
}

.detail-screenshots::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.detail-screenshot-item {
    flex: 0 0 auto;
    width: 85%;
    min-width: 280px;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.detail-screenshot-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.detail-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* ── Color Swatches ── */
.detail-colors {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.detail-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.detail-color-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.detail-color-circle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.detail-color-circle.copied::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.detail-color-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.detail-color-hex {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 0.5px;
}

/* ── Logo Versions Grid ── */
.detail-versions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-version-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.detail-version-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.detail-version-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 10, 12, 0.5);
}

.detail-version-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 0;
}

.detail-version-label {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Features List ── */
.detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2rem;
}

.detail-feature-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.detail-feature-tag i {
    font-size: 0.6rem;
    color: #32d74b;
}

/* ── Detail CTA ── */
.detail-cta {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1rem;
}

.detail-cta .btn-primary {
    font-size: 0.95rem;
    padding: 0.9rem 2.5rem;
}

/* ── Detail URL Button ── */
.detail-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 2rem;
}

.detail-visit-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.detail-visit-btn i {
    font-size: 0.75rem;
}

/* ── Detail Modal Responsive ── */
@media (max-width: 768px) {
    .portfolio-detail-window {
        width: 96%;
        max-height: 92vh;
    }

    .portfolio-detail-body {
        padding: 1.5rem;
    }

    .detail-title {
        font-size: 1.4rem;
    }

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

    .detail-color-circle {
        width: 44px;
        height: 44px;
    }

    .detail-screenshot-item {
        width: 92%;
    }

    .portfolio-detail-title-bar {
        padding: 5px 20px;
        font-size: 0.75rem;
    }
}

/* =========================================
   SAFARI-STYLE SERVICE MODAL
   ========================================= */
.safari-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.safari-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.safari-window {
    background: rgba(20, 20, 20, 0.85);
    /* Dark Apple glass */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.safari-overlay.active .safari-window {
    transform: scale(1) translateY(0);
}

.safari-header {
    background: linear-gradient(to bottom, rgba(45, 45, 45, 0.9), rgba(35, 35, 35, 0.9));
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mac-buttons {
    display: flex;
    gap: 8px;
    width: 60px;
    /* fixed width to center title perfectly */
}

.mac-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.mac-btn.close {
    background-color: #ff5f56;
}

.mac-btn.close:hover {
    background-color: #ff3b30;
}

.mac-btn.minimize {
    background-color: #ffbd2e;
    cursor: default;
}

.mac-btn.expand {
    background-color: #27c93f;
    cursor: default;
}

.safari-title {
    color: #dfdfdf;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 60px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.3);
}

.safari-content {
    padding: 3rem;
    overflow-y: auto;
    color: #e5e5ea;
}

.safari-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.modal-body-text .modal-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.modal-blog-content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.modal-blog-content .modal-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 300;
    color: #fff;
    margin: 0;
}

.modal-highlight-block {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(255, 255, 255, 0.5);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.modal-highlight-block i {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.8;
    margin-top: 0.2rem;
}

.modal-highlight-block p {
    font-size: 1.05rem;
    font-style: italic;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.modal-text-section h4 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-text-section p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: var(--clr-text-muted);
}

.modal-conclusion {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.modal-conclusion p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
}

/* Make service cards explicitly clickable */
.service-card {
    cursor: pointer;
}

.service-card:active {
    transform: scale(0.98);
}


/* =========================================
   INTERACTIVE CONTACT WIZARD
   ========================================= */
.wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Explosion Particles */
.modal-explosion-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3100;
    /* Above the modal */
    background: var(--particle-color);
    box-shadow: 0 0 10px var(--particle-color), 0 0 20px var(--particle-color);
    mix-blend-mode: screen;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: explodeFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes explodeFade {
    0% {
        opacity: 1;
        transform: translate(var(--start-x), var(--start-y)) scale(0.5);
    }

    100% {
        opacity: 0;
        transform: translate(var(--end-x), var(--end-y)) scale(1.5);
    }
}

.wizard-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.wizard-container {
    width: 90%;
    max-width: 650px;
    background: rgba(15, 15, 15, 0.85);
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.wizard-overlay.active .wizard-container {
    transform: scale(1) translateY(0);
}

.wizard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wizard-progress {
    flex-grow: 1;
    margin: 0 2rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00D2FF, #6E00FF);
    transition: width 0.4s ease;
}

.wizard-body {
    padding: 2.5rem 2rem;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.wizard-step {
    position: absolute;
    top: 2.5rem;
    left: 2rem;
    right: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.wizard-overlay.active .wizard-step.active {
    pointer-events: all;
}

.wizard-step.exit-left {
    transform: translateX(-30px);
    opacity: 0;
}

.wizard-step h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-subtitle {
    text-align: center;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.wizard-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.wizard-service-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    /* Keep content above smoke */
}

/* Fix clickability bug: Ignore clicks on inner children so the entire card is a solid click target */
.wizard-service-option * {
    pointer-events: none;
}

/* =========================================
   ANIMATED SMOKE BACKGROUND (HOVER)
   ========================================= */
.smoke-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    /* Keep particles strictly inside the card */
}

/* Individual smoke particles spawned via JS */
.smoke-puff {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--smoke-color, rgba(255, 255, 255, 0.2)) 0%, transparent 65%);
    mix-blend-mode: screen;
    filter: blur(15px);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.3);
    will-change: transform, opacity;
}

.smoke-puff.active {
    animation: puffFade 1.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes puffFade {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    15% {
        opacity: 0.6;
        /* Fade in quickly */
        transform: scale(1);
        /* Reach natural size */
    }

    100% {
        opacity: 0;
        /* Slowly fade out */
        transform: scale(1.8);
        /* Slowly expand and dissipate */
    }
}

.wizard-service-option i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.wizard-service-option span {
    font-size: 0.85rem;
    font-weight: 500;
}

.wizard-service-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.wizard-service-option.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.wizard-service-option.selected i {
    color: #fff;
}

.wizard-service-option.selected span {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.wizard-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.5);
}

.wizard-footer button {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

/* Base style for dynamic custom questions input */
.dynamic-question-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    animation: questionFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

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

.dynamic-question-group label {
    display: block;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
}

/* Dropdown menu specific styles for the wizard */
select.wizard-select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

select.wizard-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

select.wizard-select option {
    background-color: #1a1a1e;
    color: #ffffff;
    padding: 1rem;
    font-size: 1rem;
}

/* Attempting to add hover glowing effect on options (mostly works in Firefox, partly Chrome) */
select.wizard-select option:hover,
select.wizard-select option:focus,
select.wizard-select option:checked {
    background-color: rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(90deg, #00D2FF 0%, #6E00FF 100%) !important;
    color: #fff !important;
}


/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {

    .statement-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .banner-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .banner-content p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 6rem 0;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 4rem 0;
        gap: 2.5rem;
        height: calc(100vh - var(--nav-height));
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        align-items: center;
    }
}

/* =========================================
   PORTFOLIO IFRAME PREVIEW
   ========================================= */
.iframe-preview-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 300px;
}

.iframe-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
}

.iframe-preview-container.native-loaded:hover .iframe-preview-overlay {
    opacity: 1;
}

.iframe-preview-container:not(.native-loaded):hover .iframe-preview-overlay {
    opacity: 1;
    /* Keep old logic for backwards compatibility if needed */
}

.portfolio-iframe-preview {
    width: 100%;
    height: 60vh;
    min-height: 480px;
    border: none;
    background: #ffffff;
    display: block;
}

.native-loaded .portfolio-iframe-preview {
    pointer-events: none;
    /* Prevent scrolling inside iframe until clicked */
}

/* =========================================
   STARTUP LOADING SCREEN (APPLE AURORA)
   ========================================= */
.startup-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1;
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.loader-aurora-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 40vh;
    background: radial-gradient(circle at center, rgba(10, 132, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    z-index: 2;
    filter: blur(60px);
    animation: auroraGlow 2s ease forwards;
}

@keyframes auroraGlow {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.2);
        background: radial-gradient(circle at center, rgba(191, 90, 242, 0.8) 0%, transparent 60%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

.loader-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-aurora-text {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: 20px;
    color: #ffffff;
    opacity: 0;
    filter: blur(10px);
    transform: scale(1.05);
    animation: auroraTextIn 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes auroraTextIn {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(1.05) translateY(10px);
    }

    30% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1) translateY(0);
    }

    70% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(0.98) translateY(-10px);
    }
}

.startup-loader.loader-open .loader-bg {
    opacity: 0;
}

.startup-loader.loader-hidden {
    display: none;
}

@media (max-width: 768px) {
    .loader-aurora-text {
        font-size: 40px;
        letter-spacing: 10px;
    }
}

/* =========================================
   HUD COOKIE BANNER (Glassmorphism)
   ========================================= */
.hud-cookie-banner {
    position: fixed;
    bottom: -150px;
    /* Hidden initially */
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    width: 90%;
    max-width: 650px;
    background: rgba(15, 15, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px 25px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: none;
    /* Only set to flex if needed */
    align-items: center;
    gap: 20px;
}

.hud-cookie-banner.show {
    display: flex;
    bottom: 30px;
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Hide effect on click */
.hud-cookie-banner.hide {
    bottom: -150px;
    transform: translateX(-50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.hud-cookie-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hud-cookie-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.hud-cookie-icon {
    font-size: 1.8rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
}

.hud-cookie-icon i {
    transition: transform 0.1s linear;
    /* Smooth mouse tracking */
    transform-origin: center center;
}

.icon-pulse {
    animation: softPulse 3s infinite ease-in-out;
}

@keyframes softPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.hud-cookie-text {
    flex: 1;
}

.hud-cookie-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.hud-cookie-text p {
    margin: 4px 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.hud-cookie-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 0.7;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hud-cookie-link:hover {
    opacity: 1;
    text-decoration-color: #ffffff;
}

.hud-cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.hud-btn-reject {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hud-btn-reject:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.hud-btn-accept {
    position: relative;
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.hud-btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

/* Charging Effect */
.hud-btn-charge {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    /* Darkens the white button slightly on charge */
    z-index: 1;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hud-btn-accept:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hud-btn-accept:hover .hud-btn-charge {
    width: 100%;
}


/* Responsiveness */
@media (max-width: 768px) {
    .hud-cookie-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hud-cookie-actions {
        width: 100%;
    }

    .hud-btn-reject,
    .hud-btn-accept {
        flex: 1;
    }
}