/* ===================================
   BOGGART.GAMES - Main Stylesheet
   Modern Minimalist Design with Liquid Glass Effect
   =================================== */

/* === CUSTOM FONTS === */
@font-face {
    font-family: 'PPNeueMachina';
    src: url('../img/font/PPNeueMachina-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PPNeueMachina';
    src: url('../img/font/PPNeueMachina-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PPNeueMachina';
    src: url('../img/font/PPNeueMachina-Ultrabold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* === ROOT VARIABLES === */
:root {
    /* Purple Accent Colors */
    --primary-purple: #8b5cf6;
    --primary-purple-dark: #7c3aed;
    --primary-purple-light: #a78bfa;
    --primary-purple-lighter: #c4b5fd;
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #F9FAF7;
    --light-gray: #f5f5f5;
    --gray: #e5e5e5;
    --text-gray: #6b7280;
    --text-dark: #1f2937;
    --black: #111827;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --section-padding: 100px;
    --container-padding: 20px;
    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'PPNeueMachina', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --h1-size: clamp(7.8rem, 6.5vw, 7.8rem);
    --h2-size: clamp(2rem, 4vw, 3rem);
    --h3-size: clamp(1.5rem, 3vw, 2rem);
    --h4-size: 1.25rem;
    --body-size: 1rem;
    --small-size: 0.875rem;
    --large-size: 1.125rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Border Radius */
    --border-radius-sm: 16px;
    --border-radius-md: 20px;
    --border-radius-lg: 24px;
}

/* === ACCESSIBILITY === */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-purple);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* === GLOBAL STYLES === */
* {
    margin: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--off-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    min-height: 100vh;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }
h4 { font-size: var(--h4-size); }

p {
    margin-bottom: 1rem;
    color: var(--text-gray);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Image protection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: auto;
}

video {
    /* Video protection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

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

/* === GLASS EFFECT === */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                0 1px 0 rgba(255, 255, 255, 0.5) inset,
                0 -1px 0 rgba(0, 0, 0, 0.05) inset;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(139, 92, 246, 0.2),
                0 1px 0 rgba(255, 255, 255, 0.6) inset;
    border-color: rgba(139, 92, 246, 0.3);
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 66px;
    padding: 0 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0;
    width: calc(100% - 4rem);
    max-width: 1400px;
    transition: var(--transition-smooth);
}

.navbar .container {
    width: 100%;
    max-width: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 3rem;
    padding: 0.5rem 1.5rem !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    padding: 0.25rem 0;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo:hover .logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-purple-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .nav-menu {
        position: static !important;
        transform: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        height: auto !important;
        width: auto !important;
        padding: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-purple);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-purple);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

.mobile-menu-close {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 1001;
    color: var(--primary-purple);
}

.mobile-menu-close:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: rotate(90deg);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
}

.hero-container::before,
.hero-container::after {
    content: '';
    position: absolute;
    width: 180vh;
    height: 180vh;
    max-width: 1170px;
    max-height: 1170px;
    background-image: url('../img/circle.webp');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.hero-container::before {
    left: var(--circle-offset, -35%);
    top: 50%;
    transform: translate(-50%, -50%);
    animation: rotateLeftPulse 9s ease-in-out infinite;
    transition: left 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-container::after {
    right: var(--circle-offset, -40%);
    top: 50%;
    transform: translate(50%, -50%);
    animation: rotateRightPulse 11s ease-in-out infinite;
    transition: right 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

@keyframes rotateLeftPulse {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(20deg) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1.3);
    }
}

@keyframes rotateRightPulse {
    0%, 100% {
        transform: translate(50%, -50%) rotate(0deg) scale(1.4);
    }
    50% {
        transform: translate(50%, -50%) rotate(-20deg) scale(1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #F9FAF7;
    z-index: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 3.5fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
    max-height: 100vh;
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--black);
    font-size: var(--h2-size);
}

.hero-subtitle {
    font-size: var(--large-size);
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    max-height: 95vh;
    height: 1200px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0s 0.8s;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-in-out, visibility 0s 0s;
    z-index: 1;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: block;
    width: 30px;
    height: 30px;
    border-left: 3px solid var(--white);
    border-bottom: 3px solid var(--white);
    transform: rotate(-45deg);
}

/* === SECTIONS === */
.section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.section::after {
    content: '';
    position: absolute;
    width: 1080px;
    height: 1080px;
    background-image: url('../img/circle.webp');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
    animation: floatScale 5s ease-out infinite alternate;
}

@keyframes floatScale {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(20px, -20px) scale(1.05);
    }
}

.section:nth-child(odd)::after {
    top: 15%;
    right: -500px;
}

.section:nth-child(even)::after {
    bottom: 15%;
    left: -500px;
    background-image: url('../img/circle-1.webp');
    animation: floatScaleReverse 5s ease-out infinite alternate;
}

@keyframes floatScaleReverse {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-20px, 20px) scale(1.05);
    }
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-purple-light));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
}

/* === SERVICES SECTION === */
.services {
    background: var(--off-white);
}

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

.service-card {
    text-align: center;
    transition: var(--transition-smooth);
}

#realEstateCard {
    cursor: pointer;
}

#realEstateCard:hover {
    transform: translateY(-8px) scale(1.02);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple-lighter), var(--primary-purple-light));
    border-radius: var(--border-radius-md);
    color: var(--primary-purple-dark);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.service-title {
    margin-bottom: 1rem;
    color: var(--black);
    font-size: 1.25rem;
    text-align: center;
    font-weight: 700;
}

.service-description {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.service-link {
    color: var(--primary-purple);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.service-link:hover {
    color: var(--primary-purple-dark);
    transform: translateX(5px);
}

/* === ABOUT SECTION === */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-subtitle {
    color: var(--primary-purple);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-list {
    list-style: none;
    margin: 1.5rem 0;
}

.about-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-gray);
}

.about-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-weight: bold;
    font-size: 1.2rem;
}

.image-wrapper {
    overflow: hidden;
    height: 100%;
    padding: 0;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

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

/* === GALLERY SECTION === */
.gallery {
    background: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.gallery-overlay h4 {
    color: var(--white);
    margin: 0;
}

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

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-cta {
    text-align: center;
}

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

.review-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-rating {
    display: flex;
    gap: 5px;
}

.star {
    color: #fbbf24;
    font-size: 1.5rem;
}

.review-text {
    font-style: italic;
    color: var(--text-gray);
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-author h4 {
    margin: 0;
    font-size: 1rem;
}

.review-author p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* === PORTFOLIO SECTION === */
.portfolio {
    background: var(--white);
}

.portfolio-content {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    text-align: center;
    padding: 0 2rem;
}

.portfolio-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-link-wrapper {
    text-align: center;
    margin-top: 0;
}

/* === GAMES SECTION === */
.games {
    background: var(--off-white);
    overflow: visible;
    padding: 40px 0 0;
}

.games .container {
    max-width: 100%;
    overflow: visible;
}

.games .section-header {
    max-width: 1400px;
    margin: 0 auto 0;
    padding: 0 var(--container-padding);
}

.games .section-title {
    color: var(--black);
}
.games .section-subtitle {
    color: var(--text-gray);
}

/* Portfolio сразу после галереи */
.portfolio {
    padding-top: 20px;
    background: var(--off-white);
}

.portfolio .section-header {
    margin-bottom: 1.5rem;
}

.portfolio .section-subtitle {
    margin-bottom: 0;
}

.games-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px 120px;
}

.carousel-track {
    position: relative;
    width: 100%;
    min-height: 750px;
}

.game-slide {
    display: none;
    animation: fadeIn 0.8s ease;
}

.game-slide.active {
    display: block;
}

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

.game-slide-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}

.game-slide-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 80px rgba(139, 92, 246, 0.3);
}

.game-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.game-slide-number {
    font-size: var(--small-size);
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.game-slide-title {
    font-size: var(--h4-size);
    margin-bottom: 1rem;
    color: var(--black);
    font-weight: 800;
}

.game-slide-description {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-slide-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-purple-lighter), var(--primary-purple-light));
    color: var(--primary-purple-dark);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.2);
}

/* === SWIPER CUSTOM STYLES === */

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 56px !important;
    height: 56px !important;
    border: 2px solid var(--primary-purple);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--primary-purple) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 900;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-purple) !important;
    color: var(--white) !important;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.swiper-button-prev {
    left: -80px;
}

.swiper-button-next {
    right: -80px;
}

.swiper-button-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

/* Swiper Pagination */
.swiper-pagination {
    bottom: -60px !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background: rgba(139, 92, 246, 0.25) !important;
    opacity: 1 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 6px !important;
}

.swiper-pagination-bullet:hover {
    background: rgba(139, 92, 246, 0.5) !important;
    transform: scale(1.3);
}

.swiper-pagination-bullet-active {
    width: 32px !important;
    border-radius: 5px !important;
    background: var(--primary-purple) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

/* Dynamic Bullets */
.swiper-pagination-bullet-active-main {
    background: var(--primary-purple) !important;
}

.swiper-pagination-bullet-active-prev,
.swiper-pagination-bullet-active-next {
    background: rgba(139, 92, 246, 0.5) !important;
}

/* === STATS SECTION === */
.stats {
    background: var(--white);
    min-height: 20vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.stat-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-purple);
    margin-bottom: 1rem;
    font-family: var(--font-family);
    display: inline-block;
    transition: var(--transition-smooth);
    text-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.stat-label {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 500;
    text-transform: lowercase;
}

.stat-item:hover .stat-number {
    transform: scale(1.15);
    text-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

/* === OUR ART SECTION === */
.our-art {
    background: var(--white);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 3rem;
    width: 100%;
}

.art-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.art-item img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: grayscale(100%) opacity(0.6);
}

.art-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

/* === PARTNERS SECTION === */
.partners {
    background: var(--off-white);
}

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

.partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.partner-item img {
    width: 65%;
    height: auto;
    max-width: 65%;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: grayscale(100%) opacity(0.5);
}

.partner-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.15);
}

/* === CONTACT SECTION === */
.contact {
    background: var(--white);
}

.contact-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.contact-main {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
}

.contact-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple-lighter), var(--primary-purple-light));
    border-radius: 50%;
    color: var(--primary-purple-dark);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4),
                inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.contact-main h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple-dark);
}

/* === FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

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

.form-note {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

/* === FOOTER === */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.footer-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-address svg {
    flex-shrink: 0;
    color: var(--primary-purple);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: var(--primary-purple-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-purple);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}

.heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

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

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

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modal.active {
    display: flex;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    pointer-events: auto;
}

.modal-content {
    position: relative;
    width: 95vw;
    max-width: 95vw;
    aspect-ratio: 16 / 9;
    max-height: 95vh;
    z-index: 10001;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10002;
}

.modal-close:hover {
    background: var(--primary-purple);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-iframe-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* === RESPONSIVE === */

/* Large screens (4K+) */
@media (min-width: 2560px) {
    html {
        font-size: 150%;
    }
    
    .container {
        max-width: 1800px;
    }
    
    .hero-slider {
        max-height: 95vh;
    }
}

/* Extra large screens (QHD) */
@media (min-width: 1920px) and (max-width: 2559px) {
    html {
        font-size: 112.5%;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* iPad / Tablet (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --section-padding: 70px;
        --container-padding: 20px;
    }
    
    .container {
        max-width: 900px;
    }
    
    .hero-container {
        gap: 2rem;
        padding: 5rem 1.5rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-slider {
        height: 550px;
        max-height: 60vh;
    }
    
    .hero-container::before,
    .hero-container::after {
        display: none;
    }
    
    .navbar .container {
        padding: 0.5rem 1rem !important;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }
    
    .hero {
        min-height: 100vh;
    }
    
    .stats {
        min-height: auto;
        padding: var(--section-padding) 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .games-carousel {
        padding: 0 60px 100px;
    }
    
    .game-slide-title {
        font-size: 1.75rem;
    }
    
    .portfolio-grid,
    .art-grid,
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-main {
        padding: 2.5rem 2rem;
        max-width: 700px;
    }
    
    .contact-email {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

/* Tablet and below */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }
    
    .hero {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-height: none;
        padding: 5rem 1rem 2rem;
    }
    
    .hero-content {
        text-align: center;
        padding: 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .hero-slider {
        height: 450px;
        max-height: 55vh;
    }
    
    .hero-container::before,
    .hero-container::after {
        display: none;
    }
    
    .section::after {
        width: 720px;
        height: 720px;
        opacity: 0.9;
    }
    
    .section:nth-child(odd)::after {
        top: 20%;
        right: -400px;
    }
    
    .section:nth-child(even)::after {
        bottom: 20%;
        left: -400px;
    }
    
    .navbar {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 2rem);
        padding: 0;
        top: 0.75rem;
    }
    
    .navbar .container {
        padding: 0.5rem !important;
        border-radius: 1.5rem;
        width: 100%;
        margin: 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .nav-content {
        gap: 1rem;
        justify-content: center;
        position: relative;
    }
    
    .logo {
        padding: 0.25rem;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        right: 0;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        margin: 0 !important;
        background: rgba(255, 255, 255, 0);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.4s, background 0.4s ease;
        transform: translateY(-100%);
        visibility: hidden;
        gap: 1.5rem;
        z-index: 10000;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: center;
        justify-content: flex-start;
        box-shadow: none !important;
        pointer-events: none;
        border-radius: 0 !important;
        box-sizing: border-box;
    }
    
    .mobile-menu-close {
        display: flex;
        z-index: 10001;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        visibility: visible;
        background: rgba(255, 255, 255, 0.98);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s, background 0.4s ease;
        pointer-events: auto;
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .about-content,
    .contact-content,
    .contact-content-centered {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-main {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .gallery-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        min-height: auto;
        padding: var(--section-padding) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stat-number {
        font-size: 4.5rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .art-item img {
        filter: grayscale(0%) opacity(1);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1.5rem;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .games-carousel {
        padding: 0 20px 120px;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 0 1rem;
    }
    
    .portfolio-description {
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px;
        --container-padding: 12px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 0.95rem;
    }
    
    .section::after {
        width: 540px;
        height: 540px;
        opacity: 0.9;
    }
    
    .section:nth-child(odd)::after {
        top: 25%;
        right: -300px;
    }
    
    .section:nth-child(even)::after {
        bottom: 25%;
        left: -300px;
    }
    
    .navbar {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 1.5rem);
        top: 0.5rem;
    }
    
    .navbar .container {
        width: 100%;
        margin: 0;
        padding: 0.4rem !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    
    .nav-content {
        gap: 0.5rem;
        justify-content: center;
        position: relative;
    }
    
    .logo {
        padding: 0.25rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .mobile-menu-toggle {
        position: absolute;
        right: 0;
    }
    
    .stats {
        min-height: auto;
        padding: var(--section-padding) 0;
    }
    
    .stats-grid {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .stat-label {
        font-size: 0.95rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        margin: 0 auto;
        padding: 0;
    }
    
    .art-item {
        padding: 0.5rem;
    }
    
    .art-item img {
        filter: grayscale(0%) opacity(1);
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
        margin: 0 auto;
        padding: 0;
    }
    
    .partner-item {
        padding: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-container {
        gap: 1rem;
        padding: 4.5rem 1rem 1.5rem;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-slider {
        height: 380px;
        max-height: 50vh;
    }
    
    .hero-container::before,
    .hero-container::after {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .games {
        padding-bottom: 4rem;
    }
    
    .games-carousel {
        padding: 0 50px 120px;
    }
    
    .game-slide-image {
        border-radius: 16px;
        margin-bottom: 1.5rem;
    }
    
    .game-slide-content {
        padding: 0 0.5rem;
    }
    
    .game-slide-title {
        font-size: 1.25rem;
    }
    
    .game-slide-description {
        font-size: 0.95rem;
    }
    
    .tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 44px !important;
        height: 44px !important;
    }
    
    .swiper-button-prev {
        left: 10px !important;
    }
    
    .swiper-button-next {
        right: 10px !important;
    }
    
    .swiper-pagination {
        bottom: -50px !important;
    }
    
    .slider-pagination {
        margin-top: 2rem;
        gap: 0.75rem;
    }
    
    .pagination-dot {
        width: 10px;
        height: 10px;
    }
    
    .pagination-dot.active {
        width: 35px;
    }
    
    .contact-main {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .contact-email {
        font-size: 1.1rem;
        word-break: break-word;
    }
    
    .contact-main h3 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 10px 14px;
    }
    
    .footer-content {
        padding: 0 0.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-purple { color: var(--primary-purple); }
.bg-purple { background: var(--primary-purple); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* === 3D GALLERY STYLES === */
.gallery-3d-scene,
.gallery-3d-assembly,
.gallery-3d-item,
.gallery-3d-item figure {
    display: grid;
}

.gallery-3d-scene {
    position: relative;
    min-height: 35vh;
    height: 35vh;
    overflow: visible;
    perspective: 90em;
    margin: 0;
    width: 100%;
    cursor: grab;
    user-select: none;
}

.gallery-3d-scene:active {
    cursor: grabbing;
}

.gallery-3d-assembly,
.gallery-3d-item {
    transform-style: preserve-3d;
}

.gallery-3d-assembly {
    --r: 16 / 9;
    --w: clamp(12em, min(60vh, 45vw), 46em);
    --z: calc(var(--f, 1.25) * -0.5 * var(--w) / tan(0.5turn / var(--n)));
    place-self: center;
    translate: 0 0 var(--z);
    animation: gallery3dAutoRotate 300s linear infinite;
}

@keyframes gallery3dAutoRotate {
    from {
        rotate: 0 1 0 0turn;
    }
    to {
        rotate: 0 1 0 1turn;
    }
}

.gallery-3d-assembly.paused {
    animation-play-state: paused;
}

.gallery-3d-item,
.gallery-3d-item figure {
    grid-area: 1 / 1;
}

.gallery-3d-item {
    --j: calc(var(--i) / var(--n));
    --dif-lin: calc(var(--j) - mod(var(--k, 0) + 1, 1));
    --abs-lin: abs(var(--dif-lin));
    --dif-mid: calc(0.5 - var(--abs-lin));
    --abs-mid: abs(var(--dif-mid));
    --dif-arc: calc(2 * (0.5 - var(--abs-mid)));
    --lim: 0.35;
    --sel: max(0, calc((var(--lim) - var(--dif-arc)) / var(--lim)));
    --out: calc(1 - var(--sel));
    width: var(--w);
    aspect-ratio: var(--r);
    transform: rotate3d(0, 1, 0, calc(var(--j) * 1turn)) translatez(var(--z));
}

.gallery-3d-item figure {
    --ang: 0deg;
    overflow: hidden;
    position: relative;
    border: solid 3px rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    backface-visibility: visible;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
    background: var(--url) 50% / cover padding-box;
    pointer-events: none;
    transition: all 0.35s ease-out;
}

.gallery-3d-item figure::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: calc(var(--out) * 0.3);
    background: #000;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.gallery-3d-item img {
    pointer-events: auto;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--r);
    object-fit: cover;
    object-position: center;
    transform: scaleX(-1);
}

/* iPad Portrait (vertical orientation) */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: portrait) {
    .gallery-3d-scene {
        min-height: 70vh;
        height: 70vh;
        perspective: 120em;
        touch-action: pan-x;
    }
    
    .gallery-3d-assembly {
        --w: clamp(10em, 60vw, 32em);
    }
}

/* iPad Landscape (horizontal orientation) */
@media (max-width: 1024px) and (min-width: 769px) and (orientation: landscape) {
    .gallery-3d-scene {
        min-height: 50vh;
        height: 50vh;
        perspective: 80em;
        touch-action: pan-x;
    }
    
    .gallery-3d-assembly {
        --w: clamp(12em, 45vw, 30em);
    }
}

/* Mobile optimizations for 3D Gallery */
@media (max-width: 768px) {
    .games {
        overflow: visible;
        padding: 30px 0 20px;
    }
    
    .games .section-header {
        margin-bottom: 0;
    }
    
    .gallery-3d-scene {
        min-height: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        perspective: 70em;
        touch-action: pan-x;
        margin: 0;
        overflow: visible;
    }
    
    .gallery-3d-assembly {
        --w: clamp(10em, 75vw, 30em);
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .games {
        padding: 20px 0 15px;
    }
    
    .games .section-header {
        margin-bottom: 0;
    }
    
    .games .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .games .section-subtitle {
        font-size: 0.85rem;
    }
    
    .gallery-3d-scene {
        min-height: auto;
        height: auto;
        aspect-ratio: 16 / 9;
        perspective: 70em;
        touch-action: pan-x;
        overflow: visible;
    }
    
    .gallery-3d-assembly {
        --w: clamp(12em, 80vw, 32em);
    }
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: calc(100% - 2rem);
    max-width: 600px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 2rem;
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--primary-purple);
}

.cookie-text {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.cookie-accept {
    flex-shrink: 0;
    background: var(--primary-purple);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-family);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.cookie-accept:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.cookie-accept:active {
    transform: translateY(0);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cookie-banner {
        width: calc(100% - 1.5rem);
        max-width: none;
    }
    
    .cookie-banner.show {
        bottom: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .cookie-icon {
        width: 28px;
        height: 28px;
    }
    
    .cookie-text {
        font-size: 0.9rem;
    }
    
    .cookie-accept {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner.show {
        bottom: 0.75rem;
    }
    
    .cookie-content {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .cookie-text {
        font-size: 0.85rem;
    }
    
    .cookie-accept {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}
