:root {
    --pink-purple: #A529A8;
    --purple: #5C46AC;
    --blue-purple: #4C5FB7;
    --blue: #5CA4D8;
    --turquoise: #68AFB9;
    --dark-bg: #08080c;
    --darker-bg: #040406;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --gradient: linear-gradient(135deg, var(--pink-purple), var(--purple), var(--blue-purple), var(--blue), var(--turquoise));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'IBM Plex Sans', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

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

.bg-mesh { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.mesh-gradient { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; }
.mesh-1 { width: 800px; height: 800px; background: var(--pink-purple); top: -400px; left: -200px; animation: drift 30s ease-in-out infinite; }
.mesh-2 { width: 600px; height: 600px; background: var(--blue-purple); top: 40%; right: -200px; animation: drift 25s ease-in-out infinite reverse; }
.mesh-3 { width: 500px; height: 500px; background: var(--turquoise); bottom: -200px; left: 20%; animation: drift 35s ease-in-out infinite; animation-delay: -10s; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1.5rem 5%; display: flex; justify-content: space-between; align-items: center; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
nav.scrolled { padding: 1rem 5%; background: rgba(8, 8, 12, 0.9); backdrop-filter: blur(30px); border-bottom: 1px solid var(--card-border); }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.03); }

.nav-links { display: flex; gap: 3.5rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding: 0.5rem 0; transition: color 0.3s ease; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--blue); transition: width 0.3s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-menu-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; padding: 10px; z-index: 1001; }
.mobile-menu-btn span { width: 24px; height: 1.5px; background: var(--text-primary); transition: all 0.3s ease; transform-origin: center; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 8rem 5% 4rem; }
.hero-content { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 100px; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--turquoise); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-logo { margin-bottom: 2.5rem; }
.hero-logo img { width: 140px; height: auto; }
.hero-title { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero-title .gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 580px; margin: 0 auto 3rem; font-weight: 300; line-height: 1.8; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.page-header { min-height: 50vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 8rem 5% 4rem; text-align: center; }
.page-header-content { position: relative; z-index: 1; max-width: 700px; }
.page-title { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.page-description { font-size: 1.125rem; color: var(--text-secondary); font-weight: 300; line-height: 1.8; }

.btn { padding: 1rem 2rem; border-radius: 8px; font-family: 'IBM Plex Sans', sans-serif; font-weight: 500; font-size: 0.9rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: inline-block; }
.btn-primary { background: var(--text-primary); color: var(--dark-bg); border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--card-border); }
.btn-secondary:hover { border-color: var(--text-secondary); background: rgba(255, 255, 255, 0.03); }

section { position: relative; z-index: 1; padding: 8rem 5%; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-label { font-size: 0.75rem; color: var(--blue); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1rem; font-weight: 500; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; }

.services-section { background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 50%, var(--dark-bg) 100%); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 1200px; margin: 0 auto; }
a.service-card { text-decoration: none; color: inherit; display: block; }
.service-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; padding: 2.5rem; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; }
.service-card::before { content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s ease; }
.service-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.03); border-color: rgba(255, 255, 255, 0.1); }
.service-card:hover::before { opacity: 1; }
.service-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.service-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.service-card.xr .service-icon { background: linear-gradient(135deg, rgba(165, 41, 168, 0.15), rgba(92, 70, 172, 0.15)); }
.service-card.xr .service-icon svg { stroke: var(--pink-purple); }
.service-card.modeling .service-icon { background: linear-gradient(135deg, rgba(76, 95, 183, 0.15), rgba(92, 164, 216, 0.15)); }
.service-card.modeling .service-icon svg { stroke: var(--blue); }
.service-card.painting .service-icon { background: linear-gradient(135deg, rgba(92, 164, 216, 0.15), rgba(104, 175, 185, 0.15)); }
.service-card.painting .service-icon svg { stroke: var(--turquoise); }
.service-card h3 { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--text-primary); }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service-tag { font-size: 0.7rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.04); padding: 0.35rem 0.7rem; border-radius: 4px; letter-spacing: 0.03em; border: 1px solid rgba(255, 255, 255, 0.04); }

.service-detail { max-width: 900px; margin: 0 auto 4rem; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-content h3 { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 600; margin-bottom: 1rem; }
.service-detail-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.service-detail-content ul { list-style: none; color: var(--text-secondary); }
.service-detail-content ul li { padding: 0.5rem 0; padding-left: 1.5rem; position: relative; }
.service-detail-content ul li::before { content: '→'; position: absolute; left: 0; color: var(--blue); }
.service-detail-visual { aspect-ratio: 4/3; background: linear-gradient(135deg, rgba(92, 70, 172, 0.1), rgba(92, 164, 216, 0.1)); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.service-detail-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: transform 0.6s ease, opacity 0.4s ease; }
.service-detail:hover .service-detail-visual img { transform: scale(1.05); opacity: 1; }
.service-detail-visual svg { width: 80px; height: 80px; stroke-width: 1; opacity: 0.5; }

/* Image Card Variant */
.service-card-image { position: relative; overflow: hidden; padding: 0; min-height: 380px; display: flex; flex-direction: column; }
.service-card-image .card-image { height: 180px; overflow: hidden; position: relative; }
.service-card-image .card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, var(--dark-bg) 100%); }
.service-card-image .card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card-image:hover .card-image img { transform: scale(1.1); }
.service-card-image .card-content { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.service-card-image .card-content h3 { margin-bottom: 0.5rem; }
.service-card-image .card-content p { flex: 1; }

/* Hero with Background Image */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.15; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--dark-bg) 0%, transparent 30%, transparent 70%, var(--dark-bg) 100%); }

/* Featured Image Section */
.featured-image { width: 100%; max-width: 1200px; margin: 3rem auto; border-radius: 20px; overflow: hidden; position: relative; aspect-ratio: 21/9; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(165, 41, 168, 0.3), rgba(92, 164, 216, 0.3)); pointer-events: none; }

/* Image Gallery Grid */
.image-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1200px; margin: 3rem auto; padding: 0 5%; }
.gallery-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 12, 0.7) 0%, transparent 50%); opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover::after { opacity: 1; }

@media (max-width: 768px) {
    .image-gallery { grid-template-columns: 1fr; }
    .featured-image { aspect-ratio: 16/9; margin: 2rem auto; }
}

.portfolio-section { background: var(--dark-bg); }
.portfolio-container { max-width: 1000px; margin: 0 auto; }
.coming-soon-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 4rem; text-align: center; position: relative; overflow: hidden; }
.coming-soon-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gradient); opacity: 0.5; }
.coming-soon-icon { width: 80px; height: 80px; margin: 0 auto 2rem; border-radius: 50%; background: linear-gradient(135deg, rgba(92, 70, 172, 0.1), rgba(92, 164, 216, 0.1)); display: flex; align-items: center; justify-content: center; }
.coming-soon-icon svg { width: 36px; height: 36px; stroke: var(--blue); stroke-width: 1.5; }
.coming-soon-card h3 { font-family: 'Syne', sans-serif; font-size: 1.75rem; font-weight: 600; margin-bottom: 1rem; }
.coming-soon-card p { color: var(--text-secondary); font-size: 1rem; max-width: 450px; margin: 0 auto; }

.embed-showcase { margin-top: 3rem; }
.embed-label { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1.5rem; text-align: center; }
.embed-container { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; max-width: 900px; margin: 0 auto; }
.embed-container iframe { width: 100%; height: 100%; border: none; }

footer { position: relative; z-index: 1; background: var(--darker-bg); padding: 4rem 5% 2rem; border-top: 1px solid var(--card-border); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--card-border); }
.footer-brand { max-width: 320px; }
.footer-brand img { height: 36px; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.footer-nav { display: flex; gap: 4rem; }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.25rem; color: var(--text-primary); font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); text-decoration: none; font-size: 0.75rem; font-weight: 500; transition: all 0.3s ease; }
.social-links a:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.15); color: var(--text-primary); }

/* SCROLL ANIMATIONS */
[data-animate] { opacity: 0; transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
[data-animate].animated { opacity: 1; transform: translate(0, 0) scale(1) rotate(0); }
[data-animate="fade-up"] { transform: translateY(60px); }
[data-animate="fade-down"] { transform: translateY(-40px); }
[data-animate="fade-left"] { transform: translateX(60px); }
[data-animate="fade-right"] { transform: translateX(-60px); }
[data-animate="scale-up"] { transform: scale(0.85); }
[data-animate="zoom-in"] { transform: scale(0.9); }
[data-animate="flip"] { transform: perspective(1000px) rotateX(15deg); transform-origin: center bottom; }
[data-animate="blur-in"] { filter: blur(12px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), filter 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
[data-animate="blur-in"].animated { filter: blur(0); }
[data-animate="slide-rotate"] { transform: translateY(40px) rotate(-3deg); }

[data-stagger] > * { opacity: 0; transform: translateY(40px); transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
[data-stagger].animated > * { opacity: 1; transform: translateY(0); }
[data-stagger].animated > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].animated > *:nth-child(2) { transition-delay: 0.15s; }
[data-stagger].animated > *:nth-child(3) { transition-delay: 0.3s; }
[data-stagger].animated > *:nth-child(4) { transition-delay: 0.45s; }
[data-stagger].animated > *:nth-child(5) { transition-delay: 0.6s; }
[data-stagger].animated > *:nth-child(6) { transition-delay: 0.75s; }

[data-delay="100"] { transition-delay: 0.1s !important; }
[data-delay="200"] { transition-delay: 0.2s !important; }
[data-delay="300"] { transition-delay: 0.3s !important; }
[data-delay="400"] { transition-delay: 0.4s !important; }
[data-delay="500"] { transition-delay: 0.5s !important; }

[data-parallax] { transition: transform 0.1s linear; will-change: transform; }

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: 1fr; max-width: 500px; }
    .service-detail { grid-template-columns: 1fr; text-align: center; }
    .service-detail:nth-child(even) { direction: ltr; }
    .service-detail-content ul { text-align: left; max-width: 300px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    .nav-links { position: fixed; inset: 0; background: var(--darker-bg); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links a { font-size: 1.25rem; }
    .hero { padding: 6rem 5% 4rem; }
    .hero-logo img { width: 100px; }
    section { padding: 5rem 5%; }
    .page-header { min-height: 40vh; padding: 6rem 5% 3rem; }
    .coming-soon-card { padding: 3rem 2rem; }
    .footer-content { flex-direction: column; }
    .footer-nav { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    [data-animate="fade-up"], [data-animate="fade-down"] { transform: translateY(30px); }
    [data-animate="fade-left"], [data-animate="fade-right"] { transform: translateX(30px); }
}
