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

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--darker, #0f0f1e);
}

::-webkit-scrollbar-thumb {
    background: var(--primary, #558BC2);
    border-radius: 6px;
    border: 2px solid var(--darker, #0f0f1e);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary, #7B9FD4);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #558BC2 #0f0f1e;
}

:root {
    /* Colors */
    --primary: #558BC2;
    --secondary: #7B9FD4;
    --accent: #4A7AB8;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-gradient-start: #0f0f1e;
    --bg-gradient-mid: #1a1a2e;
    --bg-gradient-end: #16213e;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --particle-color: rgba(85, 139, 194, 0.25);
    --particle-line-color: rgba(85, 139, 194, 0.15);

    /* Spacing & Sizing */
    --border-radius: 20px;
    --border-radius-sm: 15px;
    --border-radius-xs: 6px;

    /* Shadows */
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2);
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #0f0f1e linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Light Theme */
html.light-theme {
    --primary: #558BC2;
    --secondary: #7B9FD4;
    --accent: #4A7AB8;
    --dark: #f5f5f5;
    --darker: #ffffff;
    --text: #2a2a3e;
    --text-muted: rgba(42, 42, 62, 0.7);
    --bg-gradient-start: #ffffff;
    --bg-gradient-mid: #f0f4f8;
    --bg-gradient-end: #e1e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(85, 139, 194, 0.3);
    --particle-color: rgba(85, 139, 194, 0.225);
    --particle-line-color: rgba(85, 139, 194, 0.12);
    background: #ffffff linear-gradient(135deg, #ffffff 0%, #f0f4f8 50%, #e1e8f0 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    transition: color 0.3s ease;
}

/* Animated Background Particles */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none !important;
}

#particles-canvas.clickable {
    pointer-events: auto !important;
    cursor: pointer;
}

/* Boost Mode Overlay */
#boost-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark mode: black overlay */
    z-index: 1; /* Between particles (0) and content (10+) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.light-theme #boost-overlay {
    background-color: rgba(255, 255, 255, 0.85); /* Light mode: white overlay */
}

#boost-overlay.active {
    opacity: 1;
}

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 20px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

html.light-theme .scroll-progress-container {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.scroll-progress-container.visible {
    opacity: 1;
}

.scroll-progress-container.rocket-landed {
    pointer-events: auto;
}

.scroll-progress-gears {
    position: relative;
    width: 35px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-progress-gears i {
    position: absolute;
    color: var(--text);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.scroll-progress-gears .gear-1 {
    font-size: 19px;
    top: 0;
    left: 0;
    animation: rotateClockwise linear infinite;
    animation-play-state: paused;
}

.scroll-progress-gears .gear-2 {
    font-size: 12px;
    bottom: -1px;
    right: 5px;
    animation: rotateCounterClockwise linear infinite;
    animation-play-state: paused;
}

@keyframes rotateClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCounterClockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.scroll-progress-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.scroll-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--primary);
}

.scroll-progress-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.scroll-progress-percentage {
    font-variant-numeric: tabular-nums;
    min-width: 35px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-progress-percentage.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-progress-rocket {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateY(10px) scale(0.5) rotate(-45deg);
    opacity: 0;
    color: var(--text);
    font-size: 24px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    cursor: pointer;
}

.scroll-progress-rocket.visible {
    pointer-events: auto;
    opacity: 1;
    animation:
        rocketFadeIn 0.3s ease-out forwards,
        rocketLoop 2.5s linear 0.3s forwards;
}

.scroll-progress-rocket::after {
    content: '\f06d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-10px, 10px) rotate(225deg);
    font-size: 14px;
    opacity: 0;
    color: var(--primary);
    animation: fireFlicker 0.15s infinite alternate;
    z-index: -1;
}

.scroll-progress-rocket.visible::after {
    opacity: 1;
    animation: fireFlicker 0.15s infinite alternate, fireHide 2.5s linear 0.3s forwards;
    /* Safari fix: Force animation fill mode */
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.scroll-progress-rocket .rocket-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 8px;
    height: 8px;
    z-index: 1;
    pointer-events: none;
}

@keyframes rocketFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateY(-15px) scale(0.95) rotate(-60deg);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateY(-25px) scale(1.03) rotate(-70deg);
    }
}

@keyframes rocketLoop {
    0% {
        transform: translateY(-50%) translateY(-25px) rotate(-70deg) scale(1.03);
    }
    10% {
        transform: translateY(-50%) translateY(-45px) rotate(-110deg) scale(1.08);
    }
    20% {
        transform: translateY(-50%) translateY(-55px) rotate(-150deg) scale(1.1);
    }
    30% {
        transform: translateY(-50%) translateY(-50px) rotate(-190deg) scale(1.08);
    }
    40% {
        transform: translateY(-50%) translateY(-35px) rotate(-225deg) scale(1.03);
    }
    50% {
        transform: translateY(-50%) translateY(-25px) rotate(-270deg) scale(1.02);
    }
    60% {
        transform: translateY(-50%) translateY(-18px) rotate(-315deg) scale(1.01);
    }
    70% {
        transform: translateY(-50%) translateY(-12px) rotate(-360deg) scale(1);
    }
    80% {
        transform: translateY(-50%) translateY(-6px) rotate(-405deg) scale(1);
    }
    90% {
        transform: translateY(-50%) translateY(2px) rotate(-405deg) scale(1);
    }
    100% {
        transform: translateY(-50%) translateY(2px) rotate(-405deg) scale(1);
    }
}

@keyframes fireFlicker {
    from {
        transform: translate(-50%, -50%) translate(-10px, 10px) rotate(225deg) scale(0.9);
        opacity: 0.8;
    }
    to {
        transform: translate(-50%, -50%) translate(-10px, 10px) rotate(225deg) scale(1.1);
        opacity: 1;
    }
}

@-webkit-keyframes fireHide {
    0% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fireHide {
    0% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Theme Toggle (Fixed Position) */
.theme-toggle-fixed {
    position: fixed;
    top: 17px;
    left: 30px;
    z-index: 2001;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.theme-toggle-fixed:hover {
    background: rgba(85, 139, 194, 0.3);
    border-color: var(--primary);
    transform: rotate(360deg);
}

.theme-toggle-fixed:hover .fa-moon::before {
    content: "\f185";
}

.theme-toggle-fixed:hover .fa-sun::before {
    content: "\f186";
}

/* Hamburger Menu */
.hamburger-menu {
    position: fixed;
    top: 17px;
    right: 30px;
    z-index: 2003;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu:hover {
    background: rgba(85, 139, 194, 0.3);
    border-color: var(--primary);
}

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

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

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

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(20, 25, 35, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2002;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* iOS safe area fix for notch/home indicator */
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
    right: 0;
}

.light-theme .nav-menu {
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.nav-menu > ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu > ul:first-of-type {
    flex: 0 0 auto;
}

.menu-spacer {
    flex: 1;
}

.nav-menu li {
    border-bottom: 1px solid var(--glass-border);
}

.nav-menu .nav-link {
    display: block;
    padding: 20px 30px;
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-menu .nav-link:hover {
    background: rgba(85, 139, 194, 0.2);
    color: var(--primary);
    padding-left: 40px;
}

/* Language Switcher in Menu */
.lang-switcher-menu {
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
}

.lang-btn {
    padding: 8px 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    min-width: 85px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-sizing: border-box;
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(85, 139, 194, 0.3);
    border-color: var(--primary);
}

/* Social Links Section in Menu */
.social-links-section {
    list-style: none;
    padding: 20px 0;
    margin: 0;
    border-top: 1px solid var(--glass-border);
}

.social-links-section li {
    margin: 0;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 30px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    position: relative;
}

.social-link i {
    width: 20px;
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(85, 139, 194, 0.1);
    color: var(--text);
    padding-left: 35px;
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Glass Card */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: background 0.3s ease, border 0.3s ease;
}

body.light-theme .glass {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-strong {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    transition: background 0.3s ease, border 0.3s ease;
}

/* === Base Card Styles === */
/* Shared styles for all card components to reduce duplication */

.card-base {
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.card-base:hover::before {
    opacity: 0.1;
}

/* Card hover effect */
.card-hover-lift:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

/* === Utility Classes === */
/* Reusable transition classes to reduce duplication */

.transition-smooth {
    transition: all 0.3s ease;
}

.transition-smooth-slow {
    transition: all 0.4s ease;
}

.transition-bounce {
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Display utilities */
.d-block {
    display: block;
}

.d-none {
    display: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    position: relative;
    /* Safari fix: Prevent shadow clipping */
    overflow: visible;
}

/* Split Logo Effect */
.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -5px;
    /* Safari fix: Prevent shadow clipping */
    padding: 60px;
    margin: 0 -60px 40px -60px;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.logo-part {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(85, 139, 194, 0.5));
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: floatLogo 6s ease-in-out infinite;
    /* Safari fix: Ensure filter effects aren't clipped */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logo-part-left {
    animation-delay: 0s;
}

.logo-part-right {
    animation-delay: 0s;
    margin-left: -32px;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0deg);
    }
}

.hero:hover .logo-part-left,
.hero:hover .logo-part-right {
    animation: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #E6E6E6 0%, #43AEB6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.2s both;
}

html.light-theme .hero h1 {
    background: linear-gradient(135deg, #B3B3B3 0%, #43AEB6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-width: 85px;
    text-align: center;
    font-size: 14px;
    height: 36px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    border: 1px solid var(--glass-border);
}

html.light-theme .feature-icon,
html.light-theme .scroll-indicator,
html.light-theme .section-title {
    background: linear-gradient(135deg, #5a5a7a 0%, #4A7AB8 40%, var(--primary) 70%, #7B9FD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background: rgba(85, 139, 194, 0.3);
    border-color: var(--primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(85, 139, 194, 0.3);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Section */
section {
    padding: 100px 20px;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
    text-align: center;
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 60px;
    animation: fadeInUp 1s ease 0.2s both;
}

/* Features Grid */
.features-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    margin-top: 60px;
    max-width: 100%;
}

.feature-card {
    /* Using card-base and card-hover-lift for shared styles */
    width: auto !important;
    flex: none !important;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

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

.feature-card:hover .feature-icon {
    animation: spin 0.6s ease;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Gallery */
.gallery {
    max-width: 1200px;
    margin: 60px auto;
    animation: fadeInUp 1s ease;
}

.gallery-main {
    position: relative;
    width: 100%;
    /* Safari fix: Use padding-bottom hack instead of aspect-ratio */
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 20px;
    overflow: hidden;
}

.gallery-main-img {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-main-img:hover {
    transform: scale(1.02);
}

.gallery-video-container,
.gallery-3d-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.gallery-video-container .video-placeholder {
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.gallery-video-container iframe {
    width: 100%;
    height: 100%;
}

#gallery-3d-canvas,
#gallery-3d-canvas-en {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--border-radius-sm);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.gallery-3d-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text);
    font-size: 1.2rem;
    min-width: 300px;
    z-index: 10;
}

.gallery-3d-loading .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-3d-loading .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 4px;
}

.gallery-3d-loading .progress-percentage {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

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

.gallery-thumb {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    /* Safari fix: Use padding-bottom hack instead of aspect-ratio */
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.gallery-thumb img {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: translateY(-5px);
}

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

.gallery-thumb.active {
    border: 2px solid var(--primary);
}

.gallery-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Screenshot Section (Fallback - deprecated) */
.screenshot-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 40px;
    animation: fadeInUp 1s ease;
}

.screenshot-container img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.5s ease;
    cursor: pointer;
}

.screenshot-container:hover img {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(85, 139, 194, 0.9);
    border-color: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(85, 139, 194, 0.5);
}

.light-theme .lightbox-close {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.light-theme .lightbox-close:hover,
.light-theme .lightbox-close:focus {
    background: rgba(85, 139, 194, 0.9);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(85, 139, 194, 0.5);
}

/* 3D Viewer in Lightbox */
.lightbox-3d-container {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    animation: zoomIn 0.3s ease;
}

#lightbox-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.lightbox-3d-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text);
    font-size: 1.2rem;
    min-width: 300px;
}

.lightbox-3d-loading .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox-3d-loading .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    border-radius: 4px;
}

.lightbox-3d-loading .progress-percentage {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin: 0.5rem 0 0 0;
}

/* Markdown Lightbox */
.markdown-lightbox-content {
    display: none;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 0;
    padding: 40px;
    box-sizing: border-box;
    animation: zoomIn 0.3s ease;
}

.light-theme .markdown-lightbox-content {
    background: white;
}

.markdown-lightbox-content h1,
.markdown-lightbox-content h2,
.markdown-lightbox-content h3,
.markdown-lightbox-content h4,
.markdown-lightbox-content h5,
.markdown-lightbox-content h6 {
    color: var(--primary);
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.markdown-lightbox-content h1 { font-size: 2.5rem; }
.markdown-lightbox-content h2 { font-size: 2rem; }
.markdown-lightbox-content h3 { font-size: 1.75rem; }
.markdown-lightbox-content h4 { font-size: 1.5rem; }
.markdown-lightbox-content h5 { font-size: 1.25rem; }
.markdown-lightbox-content h6 { font-size: 1.1rem; }

.markdown-lightbox-content p {
    margin: 1em 0;
    line-height: 1.8;
    color: var(--text);
    font-size: 1.1rem;
}

.markdown-lightbox-content ul,
.markdown-lightbox-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.markdown-lightbox-content li {
    margin: 0.5em 0;
    color: var(--text);
    line-height: 1.6;
}

.markdown-lightbox-content code {
    background: rgba(0, 0, 0, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.light-theme .markdown-lightbox-content code {
    background: rgba(0, 0, 0, 0.15);
}

.markdown-lightbox-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.light-theme .markdown-lightbox-content pre {
    background: rgba(0, 0, 0, 0.15);
}

.markdown-lightbox-content blockquote {
    border-left: 4px solid var(--primary);
    margin: 1.5em 0;
    padding-left: 1.5em;
    color: var(--text-muted);
    font-style: italic;
}

.markdown-lightbox-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.markdown-lightbox-content th,
.markdown-lightbox-content td {
    border: 1px solid var(--glass-border);
    padding: 12px;
    text-align: left;
}

.markdown-lightbox-content th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary);
    font-weight: 600;
}

.light-theme .markdown-lightbox-content th {
    background: rgba(0, 0, 0, 0.1);
}

.markdown-lightbox-content::-webkit-scrollbar {
    width: 10px;
}

.markdown-lightbox-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.markdown-lightbox-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

.markdown-lightbox-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Addons Section */
.addons-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.addon-card {
    /* Using card-base and card-hover-subtle for shared styles */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
    align-items: center;
}

.addon-video,
.addon-image {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.addon-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.addon-video .video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.addon-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-sm);
}

.addon-content {
    padding: 20px;
}

.addon-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text);
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html.light-theme .addon-content h3 {
    background: linear-gradient(135deg, #5a5a7a 0%, #4A7AB8 40%, var(--primary) 70%, #7B9FD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.addon-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* Video Container (deprecated - kept for compatibility) */
.video-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)) !important;
    gap: 30px;
    margin-top: 60px;
}

.video-card {
    padding: 30px;
    position: relative;
    width: auto !important;
    flex: none !important;
}

.video-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--text);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-sm);
}

/* Video Click-to-Play Placeholder */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.4) 0%, rgba(15, 15, 30, 0.4) 100%);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    z-index: 1;
}

.video-placeholder:hover::before {
    background: linear-gradient(135deg, rgba(85, 139, 194, 0.5) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.video-play-button {
    font-size: 4rem;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.video-placeholder:hover .video-play-button {
    transform: scale(1.1);
    color: var(--primary);
}

.video-privacy-notice {
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    padding: 0 20px;
    max-width: 300px;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Enabler Section */
.enabler-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: stretch;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.enabler-configurator {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: 100%;
}

.configurator-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.configurator-group label {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 500;
}

.configurator-select {
    padding: 12px 16px;
    padding-right: 16px;
    font-size: 1rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    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 16px center;
    background-size: 16px;
}

.configurator-select:hover {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.4);
}

.configurator-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(85, 139, 194, 0.2);
}

.configurator-select option {
    background: var(--dark);
    color: var(--text);
}

.light-theme .configurator-select {
    background-color: rgba(255, 255, 255, 0.5);
    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='%231a1a2e' 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");
    color: #1a1a2e;
}

.light-theme .configurator-select:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.light-theme .configurator-select option {
    background: #ffffff;
    color: #1a1a2e;
}

/* Enabler Cards */
.enabler-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    align-items: stretch;
}

.enabler-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.enabler-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(85, 139, 194, 0.3);
}

.enabler-card h3 {
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.light-theme .enabler-card h3 {
    background: rgba(255, 255, 255, 0.3);
}

.enabler-card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.enabler-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.enabler-card-content.enabler-markdown-content {
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: transparent;
}

.markdown-wrapper {
    background: white;
    padding: 5px 15px 5px 15px;
    border-radius: 8px;
    width: 100%;
    height: 308px;
    overflow: hidden;
    color: #000000;
    font-size: 0.625rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.markdown-wrapper:hover {
    transform: scale(1.05);
}

.light-theme .markdown-wrapper {
    background: white;
    color: #000000;
}

.enabler-card-img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.enabler-card-img:hover {
    transform: scale(1.05);
}

/* Markdown Content */
.enabler-markdown-content {
    max-height: none;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: block;
}


.enabler-markdown-content h1,
.enabler-markdown-content h2,
.enabler-markdown-content h3,
.enabler-markdown-content h4,
.enabler-markdown-content h5,
.enabler-markdown-content h6 {
    color: var(--primary);
    margin-top: 0.8em;
    margin-bottom: 0.4em;
}

.enabler-markdown-content h1 { font-size: 0.78125rem; font-weight: 700; }
.enabler-markdown-content h2 { font-size: 0.68359375rem; font-weight: 700; }
.enabler-markdown-content h3 { font-size: 0.5859375rem; font-weight: 600; }
.enabler-markdown-content h4 { font-size: 0.537109375rem; font-weight: 600; }
.enabler-markdown-content h5 { font-size: 0.48828125rem; font-weight: 600; }
.enabler-markdown-content h6 { font-size: 0.439453125rem; font-weight: 600; }

.enabler-markdown-content p {
    margin: 0.5em 0;
    line-height: 1.6;
    color: inherit;
    position: relative;
    z-index: 1;
}

.enabler-markdown-content ul,
.enabler-markdown-content ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.enabler-markdown-content li {
    margin: 0.3em 0;
    color: inherit;
}

.enabler-markdown-content code {
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.light-theme .enabler-markdown-content code {
    background: #f0f0f0;
}

.enabler-markdown-content pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.light-theme .enabler-markdown-content pre {
    background: rgba(0, 0, 0, 0.1);
}

.enabler-markdown-content blockquote {
    border-left: 3px solid var(--primary);
    margin: 1em 0;
    padding-left: 1em;
    color: var(--text-muted);
}

.enabler-markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.enabler-markdown-content th,
.enabler-markdown-content td {
    border: 1px solid var(--glass-border);
    padding: 8px;
    text-align: left;
}

.enabler-markdown-content th {
    background: rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

.light-theme .enabler-markdown-content th {
    background: rgba(0, 0, 0, 0.1);
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
    margin-top: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 0;
}

.carousel-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-track {
    position: relative;
    width: 100%;
}

.testimonial {
    /* Using card-base for shared styles */
    width: 100%;
    position: absolute !important;
    top: 0;
    left: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    opacity: 0 !important;
    transform: translateX(100%) !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

.testimonial.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    position: relative !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

.testimonial.slide-out-left {
    opacity: 0 !important;
    transform: translateX(-100%) !important;
}

.testimonial.slide-out-right {
    opacity: 0 !important;
    transform: translateX(100%) !important;
}

.testimonial h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.testimonial h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.testimonial p {
    color: var(--text-muted);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.carousel-dot:hover {
    background: var(--secondary);
}

/* Workflow Diagram */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 80px;
    padding: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 40px;
    color: var(--text);
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 400px;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease;
    position: relative;
    border: 2px solid rgba(85, 139, 194, 0.3);
}

.workflow-box.visible {
    opacity: 1;
    transform: scale(1);
}

.workflow-box:hover {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(85, 139, 194, 0.4);
}

/* MD3 Editor - Blue Box */
.workflow-editor {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1.2rem;
    max-width: 500px;
}

.workflow-editor:hover {
    box-shadow: 0 0 30px rgba(85, 139, 194, 0.6);
}

.workflow-connector {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.workflow-connector.animate {
    opacity: 1;
    animation: drawLine 0.6s ease forwards;
}

@keyframes drawLine {
    from {
        height: 0;
    }
    to {
        height: 40px;
    }
}

.workflow-connector-horizontal {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    margin: 10px 0;
}

.workflow-connector-horizontal.animate {
    opacity: 1;
    animation: drawLineHorizontal 0.6s ease forwards;
}

@keyframes drawLineHorizontal {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.workflow-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.workflow-group-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-align: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.workflow-group-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.addon-box {
    background: linear-gradient(135deg, rgba(85, 139, 194, 0.15), rgba(123, 159, 212, 0.1));
    max-width: 450px;
}

/* Addons Grid - 3 columns */
.workflow-addons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin-top: 20px;
}

/* Addon Group Container */
.workflow-addon-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.workflow-addon-group .workflow-box {
    max-width: none;
    width: 100%;
}

/* Output Group - vertical layout for small boxes */
.workflow-output-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 2-Column Layout for Core Process */
.workflow-output-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
}

/* MD3 API - Full width */
.workflow-api-wide {
    max-width: 100% !important;
}

.workflow-box-small {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px 25px;
    color: var(--text);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s ease;
    flex: 0 1 auto;
    position: relative;
    border: 1px solid rgba(85, 139, 194, 0.2);
}

.workflow-box-small.visible {
    opacity: 1;
    transform: scale(1);
}

.workflow-box-small:hover {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 0 8px rgba(85, 139, 194, 0.3);
}

/* Footer */
.footer {
    padding: 60px 20px 40px;
    text-align: center;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 30px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.footer-logo.md3-logo {
    max-width: 600px;
    filter: drop-shadow(0 10px 30px rgba(85, 139, 194, 0.5));
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    transition: transform 0.4s ease;
}

.footer-logo.md3-logo:hover {
    transform: scale(1.20);
}

.footer-logo.ibkastl-logo {
    max-width: 150px;
    margin: 20px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 30px 0;
    align-content: center;
    row-gap: 30px;
}

.footer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 120px;
}

.footer-link i {
    font-size: 2rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.footer-link span {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover i {
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-link:hover span {
    color: var(--primary);
}

.footer-credits {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.trademark {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    opacity: 0.7;
}

.made-with-love {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    margin-bottom: 8px;
}

.made-with-love .fa-heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    margin-bottom: 8px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease infinite;
    font-size: 2rem;
    color: var(--primary);
    display: block;
    text-align: center;
    cursor: pointer;
}

.scroll-indicator::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: '\f063';
    display: inline-block;
    transition: transform 0.3s ease;
}

.scroll-indicator:hover {
    animation: none;
}

.scroll-indicator:hover::before {
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 1200px) and (min-width: 769px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .scroll-progress-container {
        padding: 15px 10px;
        gap: 10px;
    }

    .scroll-progress-gears {
        width: 30px;
        height: 30px;
    }

    .scroll-progress-gears .gear-1 {
        font-size: 18px;
    }

    .scroll-progress-gears .gear-2 {
        font-size: 12px;
    }

    .scroll-progress-bar {
        width: 120px;
        height: 3px;
    }

    .scroll-progress-text {
        font-size: 12px;
    }

    .theme-toggle-fixed {
        top: 12px;
        left: 20px;
    }

    .hamburger-menu {
        top: 12px;
        right: 20px;
    }


    .social-link {
        padding: 12px 20px;
        font-size: 14px;
    }

    .social-link:hover {
        padding-left: 25px;
    }

    .footer-links {
        gap: 30px;
        row-gap: 25px;
        padding: 0 10px;
    }

    .footer-link {
        flex: 0 0 auto;
        width: 100px;
    }

    .hero {
        padding: 80px 20px;
        overflow-x: hidden;
        width: 100%;
    }

    section {
        padding: 60px 0;
        height: auto;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
        height: auto;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 40px;
        width: 100%;
        padding: 0;
        overflow: visible;
    }

    .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
        margin-top: 40px;
    }

    .addons-grid {
        gap: 30px;
    }

    .addon-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .addon-content {
        padding: 10px 0;
    }

    .addon-content h3 {
        font-size: 1.5rem;
    }

    .addon-content p {
        font-size: 0.95rem;
    }

    /* Enabler Mobile */
    .enabler-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .enabler-configurator {
        padding: 20px;
        gap: 20px;
        height: auto;
    }

    .configurator-group label {
        font-size: 1rem;
    }

    .configurator-select {
        padding: 10px 14px;
        padding-right: 14px;
        font-size: 0.95rem;
        background-position: right 14px center;
        background-size: 14px;
    }

    .enabler-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .enabler-card-content {
        padding: 10px;
    }

    .enabler-markdown-content {
        max-height: 300px;
    }

    .btn {
        text-align: center;
    }

    .logo-part {
        max-width: 120px;
    }

    .feature-card {
        padding: 30px;
    }

    .video-card {
        padding: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-thumb img {
        top: 5px;
        left: 5px;
        right: 5px;
        bottom: 5px;
        width: calc(100% - 10px);
        height: calc(100% - 10px);
    }

    .gallery-thumb-overlay {
        font-size: 2rem;
    }

    .gallery-main {
        margin-bottom: 15px;
    }

    .gallery-main-img,
    .gallery-video-container,
    .gallery-3d-container {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: calc(100% - 20px);
        height: calc(100% - 20px);
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Testimonials Carousel Mobile */
    .testimonial {
        padding: 30px 25px;
    }

    .testimonial::before {
        font-size: 50px;
        left: 15px;
        top: 5px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    /* Workflow Mobile */
    .workflow-diagram {
        padding: 20px;
        margin-top: 40px;
        gap: 15px;
    }

    .workflow-output-columns {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .workflow-api {
        font-size: 1.1rem;
        padding: 15px 30px;
    }

    .workflow-addons-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 15px;
    }

    .workflow-box {
        padding: 15px 25px;
        font-size: 0.9rem;
        max-width: 100%;
    }

    .workflow-editor {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .workflow-addon-group .workflow-box {
        max-width: 100%;
    }

    .workflow-box-small {
        padding: 10px 15px;
        font-size: 0.85rem;
    }

    .workflow-connector {
        height: 25px;
    }

    .screenshot-container {
        padding: 20px;
    }

    .scroll-indicator {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        margin: 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Content Visibility on Load */
[data-lang] {
    display: none;
}

[data-lang].active {
    display: block;
}

/* 3D Viewer Context Menu */
.viewer-context-menu {
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: none;
}

.light-theme .viewer-context-menu {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.viewer-context-menu-item {
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text);
    font-size: 0.9rem;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.viewer-context-menu-item:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .viewer-context-menu-item:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.viewer-context-menu-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.viewer-context-menu-item i {
    width: 16px;
    text-align: center;
}

/* 3D Viewer Fullscreen Button */
.viewer-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1.2rem;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.viewer-fullscreen-btn:hover {
    background: rgba(85, 139, 194, 0.3);
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.1);
}

.light-theme .viewer-fullscreen-btn {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Easter Egg Game Trigger (keep this for the gift icon styling) */
.easter-egg-trigger {
    margin: 15px 0;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

.easter-egg-trigger i {
    font-size: 1.2rem;
    color: var(--primary);
    animation: giftShake 5s ease-in-out infinite;
    transition: transform 1s ease;
}

.easter-egg-trigger i:hover {
    transform: scale(1.2);
}

@keyframes giftShake {
    0%, 90%, 100% { transform: rotate(0deg); }
    91% { transform: rotate(-10deg); }
    92% { transform: rotate(10deg); }
    93% { transform: rotate(-10deg); }
    94% { transform: rotate(10deg); }
    95% { transform: rotate(-5deg); }
    96% { transform: rotate(5deg); }
    97% { transform: rotate(0deg); }
}

.game-rocket.boost-active svg {
    animation: rocketShake 0.1s infinite;
}

@keyframes rocketShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}
