/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */

:root {
    /* Colors - Dark Premium Theme */
    --clr-bg: #0a0a0c;
    --clr-bg-surface: #121216;
    --clr-text: #e2e2e5;
    --clr-text-muted: #9fa0a5;
    --clr-primary: #F97316;
    /* Orange Accent */
    --clr-primary-glow: rgba(249, 115, 22, 0.4);
    --clr-primary-hover: #EA580C;
    --clr-accent: #FDBA74;
    /* Soft Orange */
    --clr-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.section-title span {
    color: var(--clr-primary);
}

.section-description {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   Typography & Buttons
   ========================================================================== */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: #ffffff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: #000;
    box-shadow: 0 4px 20px var(--clr-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--clr-primary-glow);
    background-color: var(--clr-primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    background-color: var(--clr-bg-surface);
    border-color: var(--clr-primary);
}

.btn-outline {
    border: 1px solid var(--clr-border);
    background-color: transparent;
    transition: border-color var(--transition-fast);
}

.btn-outline:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    margin: 0 auto;
    width: auto;
    max-width: 1160px;
    z-index: 10000;
    padding: 0.5rem 0;
    transition: all var(--transition-smooth);
    background-color: rgba(20, 20, 25, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Darker edge */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(20, 20, 25, 0.65);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--clr-primary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: #fff;
}

.nav-contact-btn {
    background-color: var(--clr-primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.nav-contact-btn:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 10001;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--spacing-2xl);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--clr-bg), transparent);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Background Video Styles */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 1.5s ease;
}

/* Embedded Team Background */
.hero-team-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    /* Show more of the top area (faces/whiteboard) */
    z-index: 1;
    /* Sits right above the underlying video */
    opacity: 0;
    /* Hidden by default, faded in via physics.js */
    pointer-events: none;
    mix-blend-mode: luminosity;
    /* Subtle shading blend */
}

/* Hero Overlay to darken the video / blend with background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--clr-bg) 100%),
        rgba(10, 10, 12, 0.4);
    /* Dark wash over video */
    z-index: 1;
    transition: background 1.5s ease;
}

.hero.sorted::before {
    background: radial-gradient(circle at center, transparent 0%, var(--clr-bg) 100%),
        rgba(10, 10, 12, 0.1);
    /* Much brighter once letters form */
}


.physics-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.physics-letter {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #fff;
    user-select: none;
    cursor: pointer;
    /* or grab */
    will-change: transform;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1;
    transform-origin: center center;
    white-space: pre;
}

.physics-letter.secondary-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(1.4rem, 2.8vw, 2.4rem);
    /* Slightly smaller to fit 2 lines perfectly */
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--clr-primary);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--clr-accent);
    bottom: -200px;
    left: -200px;
}

/* ==========================================================================
   Process Section (Scroll Animation)
   ========================================================================== */

.process-section {
    position: relative;
}

.process-container {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: flex-start;
    padding-top: var(--spacing-xl);
}

.process-images {
    flex: 1;
    position: sticky;
    top: 15vh;
    /* Moved slightly up */
}

.sticky-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    /* Optimized for the tall images you uploaded */
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--clr-border);
}

.process-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Ensures the top of the design is never cut off */
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.05);
}

.process-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.process-texts {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 20vh;
    /* Extra space to scroll past */
}

.process-step {
    min-height: 80vh;
    /* Triggers the scroll properly */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.process-step.active {
    opacity: 1;
}

.step-number {
    font-family: var(--font-heading);
    color: var(--clr-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.process-step h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.process-step p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    line-height: 1.8;
}

/* ==========================================================================
   Services Section
   ========================================================================== */

.orbit-section {
    position: relative;
    min-height: 120vh;
    padding-bottom: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--clr-bg);
}

.orbit-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 350px;
    background: linear-gradient(to bottom, transparent, var(--clr-bg));
    pointer-events: none;
    z-index: 20;
}

.orbit-container {
    position: relative;
    width: 740px;
    height: 740px;
    /* Track visual (optional, could be removed for cleaner look) */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, var(--clr-primary) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(5px);
}

.magic-rings-container {
    width: 100%;
    height: 100%;
}

.orbit-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.orbit-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 280px;
    height: 200px;
    margin-left: -140px;
    margin-top: -100px;
    background: rgba(20, 20, 22, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
    z-index: 2;
    will-change: transform;
}

.orbit-box .box-content {
    padding: 2rem;
    pointer-events: none;
    /* Let box handle hover entirely */
}

.orbit-box h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #fff;
}

.orbit-box p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 300;
}

/* Generic Hover Fallback */
.orbit-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.03);
}

/* Luxurious Box Colors & Hover Glows */
.orbit-box[data-service="webdesign"] {
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.8) 40%, rgba(10, 35, 66, 0.5) 100%);
    border-color: rgba(60, 100, 150, 0.15);
}

.orbit-box[data-service="webdesign"]:hover {
    box-shadow: 0 15px 50px rgba(10, 35, 66, 0.6), inset 0 0 20px rgba(60, 100, 150, 0.1);
    border-color: rgba(60, 100, 150, 0.3);
}

.orbit-box[data-service="marketing"] {
    /* Purpur / Deep Red */
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.8) 40%, rgba(85, 10, 25, 0.5) 100%);
    border-color: rgba(180, 40, 60, 0.15);
}

.orbit-box[data-service="marketing"]:hover {
    box-shadow: 0 15px 50px rgba(85, 10, 25, 0.6), inset 0 0 20px rgba(180, 40, 60, 0.1);
    border-color: rgba(180, 40, 60, 0.3);
}

.orbit-box[data-service="content-creation"] {
    /* Dark Luxury Emerald Green */
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.8) 40%, rgba(11, 46, 25, 0.5) 100%);
    border-color: rgba(40, 120, 60, 0.15);
}

.orbit-box[data-service="content-creation"]:hover {
    box-shadow: 0 15px 50px rgba(11, 46, 25, 0.6), inset 0 0 20px rgba(40, 120, 60, 0.1);
    border-color: rgba(40, 120, 60, 0.3);
}

.orbit-box[data-service="design"] {
    /* Subtle Gold */
    background: linear-gradient(135deg, rgba(20, 20, 22, 0.8) 40%, rgba(130, 100, 20, 0.4) 100%);
    border-color: rgba(184, 147, 53, 0.15);
}

.orbit-box[data-service="design"]:hover {
    box-shadow: 0 15px 50px rgba(130, 100, 20, 0.6), inset 0 0 20px rgba(184, 147, 53, 0.1);
    border-color: rgba(184, 147, 53, 0.3);
}

/* ==========================================================================
   Portal Overlay
   ========================================================================== */

.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Better than 100vw for scrollbar safety */
    height: 100vh;
    background-color: var(--clr-bg);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    /* toggled by GSAP */
}

/* Background Image Collage for Portal */
.portal-bg-collage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Safer than 100vw */
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 5px;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    /* Subtle background presence added by GSAP */
    filter: grayscale(30%) contrast(1.2);
    /* Optional: uncomment blend mode if you want it even darker */
    /* mix-blend-mode: luminosity; */
}

.portal-bg-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.portal-back-btn {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    z-index: 101;
}

.portal-back-btn:hover {
    color: #fff;
}

.portal-back-btn span {
    font-size: 1.5rem;
}

.portal-content-wrapper {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    position: relative;
    display: grid;
    place-items: center;
    height: 100vh;
}

.portal-content {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-height: 90vh;
    /* Allow it to be contained within the screen */
    overflow-y: auto;
    /* Scroll if content is too tall */
    opacity: 0;
    visibility: hidden;
    text-align: center;
    padding: 1rem;
}

.portal-content h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

#content-webdesign h2 {
    background: linear-gradient(135deg, #ffffff 0%, rgb(60, 100, 150) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#content-marketing h2 {
    background: linear-gradient(135deg, #ffffff 0%, rgb(180, 40, 60) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#content-content-creation h2 {
    background: linear-gradient(135deg, #ffffff 0%, rgb(40, 120, 60) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

#content-design h2 {
    background: linear-gradient(135deg, #ffffff 0%, rgb(184, 147, 53) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.portal-lead {
    font-size: 1.5rem;
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.portal-bullets {
    list-style: none;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.portal-bullets li {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-bullets li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--clr-primary);
}

/* ==========================================================================
   Team Section
   ========================================================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.team-card {
    background-color: var(--clr-bg-surface);
    border: 1px solid var(--clr-border);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.team-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--clr-border);
}

.team-info {
    padding: var(--spacing-lg);
}

.team-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

/* ==========================================================================
   Expandable Blob CTA Section
   ========================================================================== */

.blob-cta {
    position: relative;
    padding: var(--spacing-3xl) 0;
    overflow: hidden;
    background-color: var(--clr-bg);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient fade at the top to blend into the section above */
.blob-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background: linear-gradient(to bottom,
            rgba(10, 10, 12, 1) 0%,
            rgba(10, 10, 12, 0.9) 15%,
            rgba(10, 10, 12, 0.6) 40%,
            rgba(10, 10, 12, 0.2) 70%,
            transparent 100%);
    z-index: 1;
    /* Above the canvas but below the content */
    pointer-events: none;
}

.blob-container-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.cta-header {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cta-header h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Helps readability over bright blobs */
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.85);
    /* Slightly muted white */
    font-weight: 500;
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* The Central Interactive Area */
.blob-interactive-area {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px;
    /* Provides space for floating bubbles */
    margin: var(--spacing-2xl) auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The Canvas Container for WebGL Blob */
.center-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    /* transition for when panels open to dim it */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.center-blob canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.center-blob.dimmed {
    transform: scale(0.95);
    opacity: 0.4;
}



/* Floating Orbiting Bubbles */
.floating-bubble {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(15, 15, 20, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 2;
    text-decoration: none;
    box-shadow: 0 0 30px rgba(204, 51, 204, 0.3), inset 0 0 20px rgba(46, 216, 167, 0.15);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-bubble:hover {
    box-shadow: 0 0 35px rgba(46, 216, 167, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

.bubble-icon {
    width: 32px;
    height: 32px;
    color: #fff;
    margin-bottom: -2px;
}

.floating-bubble span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    max-width: 90%;
    line-height: 1.2;
}

/* Initial Absolute Placements before GSAP takes over */
.bubble-portfolio {
    top: 60%;
    left: 20%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 107, 0, 0.4);
    /* Brand Orange */
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.15), inset 0 0 20px rgba(255, 107, 0, 0.1);
}

.bubble-consultation {
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 107, 0, 0.6);
    /* Slightly stronger Orange for center */
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.2), inset 0 0 20px rgba(255, 107, 0, 0.15);
}

.bubble-message {
    top: 60%;
    left: 80%;
    transform: translate(-50%, -50%);
    border-color: rgba(255, 107, 0, 0.4);
    /* Brand Orange */
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.15), inset 0 0 20px rgba(255, 107, 0, 0.1);
}

/* Expansion Layer Content (Contact / Calendar) */
.blob-expansion-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through when hidden */
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob-panel {
    position: absolute;
    width: 90%;
    max-width: 400px;
    background: rgba(15, 15, 20, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Clean, simple thin border */
    border-radius: 24px;
    padding: 32px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    /* Re-enable clicks inside the panel */
    /* Removed heavy glowing box-shadows */
    /* Removed overflow: hidden so close button is visible */
    /* Removed transition so GSAP can handle FLIP fully */
}

/* Helper class used strictly for measuring final expanded height correctly */
.blob-panel.measuring-state {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    display: block !important;
    border-radius: 24px !important;
    height: auto !important;
    padding: 32px !important;
}

.blob-panel-content {
    opacity: 0;
    visibility: hidden;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.blob-close-btn {
    position: absolute;
    top: -4px;
    right: -4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease, background 0.3s ease;
    z-index: 20;
}

.blob-close-btn:hover {
    color: #fff;
}

.blob-panel h3 {
    margin: 0 0 var(--spacing-lg) 0;
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

.blob-contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.blob-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1.25rem;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blob-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.blob-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.blob-hint {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-lg);
}

.calendar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: var(--spacing-md);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    width: 100%;
    box-sizing: border-box;
}

.cal-icon {
    font-size: 2rem;
}

/* Custom Booking Form Styles */
.panel-large {
    max-width: 500px;
    /* Wider panel for the form */
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: left;
}

.booking-form .form-row {
    display: flex;
    gap: var(--spacing-md);
}

.booking-form input {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.booking-form input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: rgba(255, 255, 255, 0.06);
}

/* Webkit specific styling for date picker to fit the dark theme */
.date-picker-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.date-picker-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.magnetic-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   Portfolio Teaser Section (Homepage Replacement)
   ========================================================================== */

.portfolio-teaser-section {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    background-color: var(--clr-bg);
}

/* Header Split Layout */
.pt-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--clr-border);
}

.pt-kicker {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--clr-primary);
    display: block;
    margin-bottom: 1rem;
}

.pt-title-main {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
}

.pt-description {
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 500px;
}

/* 3-Column Project Grid */
.pt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pt-card {
    display: flex;
    flex-direction: column;
}

.pt-devices-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
    /* Subtle glow effect behind images on hover */
    transition: transform 0.4s ease;
}

.pt-devices-wrapper::before {
    content: '';
    position: absolute;
    inset: -10%;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.25) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.pt-card:hover .pt-devices-wrapper::before {
    opacity: 1;
}

.pt-card:hover .pt-devices-wrapper {
    transform: translateY(-4px);
}

.pt-device-desktop {
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    background: #0a0a0c;
}

.pt-device-desktop img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.pt-device-mobile {
    width: 30%;
    position: absolute;
    right: 0;
    bottom: -10%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.5);
    z-index: 2;
    background: #0a0a0c;
}

.pt-device-mobile img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 9/19;
    object-fit: cover;
}

.pt-proj-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-proj-desc {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Glowing Button */
.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    width: fit-content;
    text-decoration: none;
    align-self: flex-start;
}

/* The actual glow underneath the button */
.btn-glow::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 50%, #4facfe 100%);
    border-radius: 55px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-glow:hover {
    transform: translateY(-2px);
    background: #fff;
}

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

/* Responsive */
@media (max-width: 900px) {
    .pt-header-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .pt-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================================================
   Unsere Story Section (Homepage)
   ========================================================================== */

.story-section {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

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

.story-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.story-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle inner shadow / gradient overlay to make it look premium */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.story-image img {
    width: 100%;
    max-height: 480px; /* Constrains height to perfectly match the adjacent text block */
    object-fit: cover; /* Do not distort, crop intelligently */
    display: block;
    aspect-ratio: auto; /* Default aspect ratio to uncrop sides */
    /* Flatter landscape feel to reduce height */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.story-image:hover img {
    transform: scale(1.03);
    /* Subtle zoom on hover */
}

.story-content {
    padding-left: var(--spacing-2xl);
    /* More distance from the picture */
    padding-right: 0;
}

.story-content .section-title {
    margin-bottom: var(--spacing-md);
    text-align: left;
    /* Override any center defaults */
}

.story-action {
    margin-top: var(--spacing-xl);
    /* More distance from the text to the button */
}

.story-text p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.story-text strong {
    color: #fff;
    font-weight: 500;
}

.btn-orange {
    background-color: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
}

.btn-orange:hover {
    background-color: #e66610;
    /* Slightly darker orange */
    border-color: #e66610;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}

/* ==========================================================================
   Über Uns Page (Team Grid)
   ========================================================================== */

.ueber-uns-page {
    /* Immersive dark background with bottom-left warm orange glow matching the design */
    background: #0A0A0B radial-gradient(circle at 15% 85%, rgba(249, 115, 22, 0.15) 0%, rgba(10, 10, 11, 0) 60%) no-repeat fixed;
    min-height: 100vh;
}

.team-hero {
    /* Pushes the title far down, safely clearing the sticky navigation bar */
    padding-top: calc(var(--header-height, 100px) + 150px);
    padding-bottom: var(--spacing-xl);
}

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

.team-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.team-interactive-grid.three-col-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 7rem 4rem;
    /* Increased gap slightly for more breathing room */
    max-width: 1100px;
    margin: 0 auto;
}

/* Center Logo Slot */
.team-logo-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

@media (max-width: 768px) {
    .team-logo-center {
        display: none !important;
    }
}

.m-logo-glow {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.4));
    animation: logoPulse 4s infinite alternate ease-in-out;
}

@keyframes logoPulse {
    0% {
        filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.3));
        transform: scale(0.98);
    }

    100% {
        filter: drop-shadow(0 0 35px rgba(249, 115, 22, 0.8));
        transform: scale(1.02);
    }
}

.team-card-interactive {
    position: relative;
    width: 100%;
    height: 480px;
    perspective: 1000px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    /* Premium Saas easing */
    transform-style: preserve-3d;
}

/* Hover effect for desktop (or tap for mobile) */
.team-card-interactive:hover .card-inner,
.team-card-interactive.flipped .card-inner {
    transform: rotateY(180deg);
}

.pinboard-card {
    /* Physical rotation happens inline in HTML */
    transform-origin: center top;
}

/* The realistic pin at the top */
.pin {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 35% 35%, #facc15, #f97316);
    /* Orange accent */
    border-radius: 50%;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.7), inset -2px -2px 4px rgba(0, 0, 0, 0.4);
    z-index: 20;
    pointer-events: none;
}

.pin::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 2px;
    /* Straight corners like real photo paper */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* Soft realistic shadow */
}

/* Front Side: Polaroid / Printed Photo Style */
.card-front {
    background: #fdfdfd;
    /* Subtle paper texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    padding: 12px;
    padding-bottom: 74px;
    /* Space for text at bottom */
}

.member-image {
    position: relative;
    width: 100%;
    height: 100%;
    /* Fill the padded area */
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: contrast(1.05) saturate(1.05);
    /* Print color pop */
}

.image-overlay {
    display: none;
    /* No dark overlay on printed photo */
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 74px;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.member-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
    color: #111;
    /* Dark text on white paper */
    font-family: var(--font-heading);
    font-weight: 800;
}

.member-info .role {
    font-size: 0.85rem;
    color: var(--clr-primary);
    /* Subtle orange accent on front */
    font-weight: 600;
}

/* Back Side: Glassmorphism Dark Card */
.card-back.glass-back {
    background: rgba(15, 15, 17, 0.95);
    border: 1px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.15), inset 0 0 20px rgba(249, 115, 22, 0.05);
    transform: rotateY(180deg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center everything vertically */
    align-items: flex-start;
    background-image: none;
    /* remove paper texture */
}

.back-content {
    width: 100%;
}

.back-content .description {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--spacing-md);
    text-align: center;
}

.fun-facts h4 {
    font-size: 0.9rem;
    color: var(--clr-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.fun-facts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fun-facts li {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    border-top: 1px solid var(--clr-border);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    background-color: #050505;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.footer-brand {
    flex: 1;
}

.footer-center-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.footer-center-logo img {
    height: 48px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-center-logo img:hover {
    opacity: 1;
}

.footer-brand p {
    color: var(--clr-text-muted);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    flex: 1;
}

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

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--clr-border);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 900px) {
    .blob-interactive-area {
        height: 600px;
        transform: scale(0.9);
    }
    .blob-cta {
        padding-top: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .portal-bg-collage {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    /* Custom Mobile Ordering for Marketing Collage */
    #bg-collage-marketing img:nth-child(1) {
        order: 1;
    }

    #bg-collage-marketing img:nth-child(4) {
        order: 2;
    }

    /* Top Right */
    #bg-collage-marketing img:nth-child(2) {
        order: 3;
    }

    #bg-collage-marketing img:nth-child(3) {
        order: 4;
    }

    #bg-collage-marketing img:nth-child(6) {
        order: 5;
    }

    #bg-collage-marketing img:nth-child(7) {
        order: 6;
    }

    #bg-collage-marketing img:nth-child(5) {
        order: 7;
    }

    /* Bottom Left */
    #bg-collage-marketing img:nth-child(8) {
        order: 8;
    }

    /* Bottom Right */

    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: -150vh;
        /* completely push off screen vertically */
        left: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: top var(--transition-smooth);
        /* Use top for transition */
        /* Mobile menu layout tweaks */
        flex-direction: column;
        z-index: 999;
    }

    .nav.active {
        top: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        font-size: 1.5rem;
    }

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

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

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

    .footer-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    /* Mobile specific adjustments for the heavily floating typography */
    .physics-letter {
        font-size: clamp(1.1rem, 6vw, 1.6rem);
        /* Significantly smaller to fit on exactly one line */
    }

    .physics-letter.secondary-text {
        font-size: clamp(0.75rem, 3.5vw, 1.1rem);
        /* Reduced to fit two lines easily */
        margin-top: 0.2rem;
    }

    /* Mobile Service Orbit Adjustments */
    .orbit-section {
        min-height: auto;
        padding-top: var(--spacing-lg);
        padding-bottom: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    /* Target the inline-styled absolute header to flow normally on mobile */
    .orbit-section>div[style*="position: absolute"] {
        position: relative !important;
        top: auto !important;
        margin-bottom: var(--spacing-xl) !important;
    }

    /* Mobile Service Layout (2x2 Grid) */
    .orbit-container {
        width: 100%;
        height: auto;
        border: none;
        margin-top: 0 !important;
    }

    .orbit-center {
        display: none;
    }

    .orbit-track {
        position: relative;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
        height: auto;
        padding: 0 1rem;
    }

    .orbit-box {
        position: relative;
        top: auto !important;
        left: auto !important;
        width: 100%;
        height: 100%;
        min-height: 140px;
        margin: 0 !important;
    }

    .orbit-box .box-content {
        padding: 1rem;
    }

    .orbit-box h3 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .orbit-box p {
        font-size: 0.75rem;
    }

    /* Portal Content Mobile Typography */
    .portal-content-wrapper {
        padding: 1rem;
    }

    .portal-content h2 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .portal-lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .portal-bullets li {
        font-size: 0.9rem;
    }

    /* Über Uns Team Grid Mobile */
    .team-interactive-grid.three-col-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem 2.2rem !important;
        padding: 0 !important;
    }

    .team-card-interactive {
        height: 260px !important;
    }

    .card-front {
        padding: 6px !important;
        padding-bottom: 50px !important;
    }

    .member-info {
        height: 50px !important;
    }

    .member-info h3 {
        font-size: 0.9rem !important;
    }

    .member-info .role {
        font-size: 0.65rem !important;
    }

    .card-back.glass-back {
        padding: 0.6rem !important;
    }

    .back-content h4 {
        font-size: 0.7rem !important;
        margin-bottom: 0.2rem !important;
    }

    .back-content .description {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.4rem !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
        -webkit-hyphens: auto !important;
    }

    .fun-facts li {
        font-size: 0.6rem !important;
        padding: 0.1rem 0 !important;
        line-height: 1.2 !important;
    }

    /* Reduce excessive vertical space around "Unser Kernteam." on mobile */
    .team-hero {
        padding-top: calc(var(--header-height, 80px) + 20px) !important;
        padding-bottom: 0 !important;
    }

    .team-interactive-grid.three-col-grid {
        margin-top: -2rem !important;
        /* Pull polaroids closer to title */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

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

    /* ==========================================================================
   Pakete Section (Mobile Card Deck)
   ========================================================================== */
    .pakete-deck {
        display: block;
        position: relative;
        height: 520px;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        overflow-x: hidden;
        /* Force prevent horizontal scroll on iOS */
        perspective: 1000px;
        margin-top: 5px;
    }

    .paket-card {
        position: absolute;
        top: 0;
        left: 12.5%;
        width: 75%;
        height: 100%;
        max-height: 520px;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        transform-origin: center center;
        cursor: pointer;
        padding: 1.5rem;
    }

    .paket-header h3 {
        font-size: 1.3rem;
    }

    .paket-price h4 {
        font-size: 1.8rem;
    }

    .paket-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* Deck Positioning Classes added by JS */
    .paket-card.active-card {
        transform: translateX(0) scale(1);
        z-index: 3;
        opacity: 1;
        filter: blur(0);
        pointer-events: auto;
    }

    .paket-card.deck-right {
        transform: translateX(60%) scale(0.75);
        z-index: 1;
        opacity: 0.4;
        filter: blur(3px);
        pointer-events: auto;
    }

    .paket-card.deck-left {
        transform: translateX(-60%) scale(0.75);
        z-index: 1;
        opacity: 0.4;
        filter: blur(3px);
        pointer-events: auto;
    }

    .pakete-individual {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .individual-content p {
        margin-bottom: var(--spacing-md);
    }

    /* Unsere Story Mobile */
    .story-section {
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-sm);
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .story-content {
        padding: 0;
    }

    .story-content .section-title {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }

    .story-image img {
        aspect-ratio: 16/9;
        /* Switch to landscape on mobile for better fit */
    }

    .story-action {
        display: flex;
        justify-content: center;
    }
    /* Interactive CTA Bubbles Mobile Adjustments */
    .bubble-portfolio {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .bubble-consultation {
        top: 75%;
        left: 25%;
        transform: translate(-50%, -50%);
    }

    .bubble-message {
        top: 75%;
        left: 75%;
        transform: translate(-50%, -50%);
    }

    .blob-cta {
        margin-top: -120px;
    }
}

.pakete-section {
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    background-color: var(--clr-bg);
}

@media (max-width: 480px) {
    .pakete-section {
        padding-top: var(--spacing-md);
        padding-bottom: var(--spacing-md);
    }
    
    .pakete-guarantee {
        margin-bottom: 0 !important;
    }
}

.pakete-container {
    margin-top: var(--spacing-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .pakete-container {
        margin-top: 0;
    }
}

.pakete-deck {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    align-items: stretch;
}

.paket-card {
    background: rgba(20, 20, 22, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.3); /* Uniform orange border for all */
    border-radius: 20px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.paket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--primary-orange-glow);
    border-color: var(--primary-orange);
}


.paket-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--clr-primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.paket-header {
    margin-bottom: var(--spacing-md);
}

.paket-header h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.paket-positioning {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
    min-height: 48px;
}

.paket-price {
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.paket-price span {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

.paket-price h4 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
}

.paket-features {
    list-style: none;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    margin-bottom: var(--spacing-lg);
}

.paket-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.paket-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-primary);
    font-weight: bold;
}

.paket-cta {
    margin-top: auto;
}

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

/* Individual Request Section underneath */
.pakete-individual {
    margin-top: calc(var(--spacing-2xl) * 1.5);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.individual-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.individual-content p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    max-width: 600px;
}

.individual-action {
    flex-shrink: 0;
}

/* ==========================================================================
   Pakete Section (Mobile Card Deck)
   ========================================================================== */
@media (max-width: 480px) {
    .pakete-deck {
        display: block;
        position: relative;
        height: 520px;
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        overflow-x: hidden;
        /* Force prevent horizontal scroll on iOS */
        perspective: 1000px;
        margin-top: 5px;
    }

    .paket-card {
        position: absolute;
        top: 0;
        left: 12.5%;
        width: 75%;
        height: 100%;
        max-height: 520px;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        transform-origin: center center;
        cursor: pointer;
        padding: 1.5rem;
    }

    .paket-header h3 {
        font-size: 1.3rem;
    }

    .paket-price h4 {
        font-size: 1.8rem;
    }

    .paket-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* Deck Positioning Classes added by JS */
    .paket-card.active-card {
        transform: translateX(0) scale(1);
        z-index: 3;
        opacity: 1;
        filter: blur(0);
        pointer-events: auto;
    }

    .paket-card.deck-right {
        transform: translateX(60%) scale(0.75);
        z-index: 1;
        opacity: 0.4;
        filter: blur(3px);
        pointer-events: auto;
    }

    .paket-card.deck-left {
        transform: translateX(-60%) scale(0.75);
        z-index: 1;
        opacity: 0.4;
        filter: blur(3px);
        pointer-events: auto;
    }

    .pakete-individual {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
        margin-top: var(--spacing-xl);
    }

    .individual-content p {
        margin-bottom: var(--spacing-md);
    }

    /* Unsere Story Mobile */
    .story-section {
        padding-top: var(--spacing-2xl);
        padding-bottom: var(--spacing-2xl);
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }

    .story-content {
        padding: 0;
    }

    .story-content .section-title {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }

    .story-image img {
        aspect-ratio: 16/9;
        /* Switch to landscape on mobile for better fit */
    }

    .story-action {
        display: flex;
        justify-content: center;
    }
}@media (max-width: 768px) {
    .story-image {
        aspect-ratio: auto;
        height: 60vh;
    }
    .story-image img {
        height: 100%;
        object-position: 50% 65% !important;
    }
}

/* Hero subtitle adjustments for mobile */
@media (max-width: 768px) {
    .physics-letter.secondary-text {
        font-size: clamp(0.75rem, 4.3vw, 1.05rem); /* Fits comfortably in about 3 lines */
        white-space: nowrap; /* Keep words intact */
    }
}

/* Group letters in words to prevent breaking mid-word */
.word-group {
    display: inline-block;
    white-space: nowrap;
}
