/* ============================================
   MELEMENT Preview - Inspired by Top Agencies
   Static grain, minimal design, subtle animations
   ============================================ */

/* ============================================
   Variables
   ============================================ */
:root {
    --black: #0a0a0a;
    --white: #ffffff;
    --gray: #888888;
    --accent: #ff6b35;
    --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============================================
   Reset & Base
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font);
    background: #0a0a0a;
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: url('images/logo-cursor.png') 24 24, auto;
}

.main-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Intro Scene with Star */
.intro-scene {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}

.star-container {
    position: relative;
    animation: starBreathe 4s ease-in-out infinite;
}

.star-graphic {
    width: 300px;
    height: 300px;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) 
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.5))
            drop-shadow(0 0 90px rgba(255, 255, 255, 0.3))
            blur(0.5px);
    animation: starGlow 3s ease-in-out infinite alternate;
}

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

@keyframes starGlow {
    0% {
        filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.8)) 
                drop-shadow(0 0 60px rgba(255, 255, 255, 0.5))
                drop-shadow(0 0 90px rgba(255, 255, 255, 0.3))
                blur(0.5px);
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.9)) 
                drop-shadow(0 0 70px rgba(255, 255, 255, 0.6))
                drop-shadow(0 0 100px rgba(255, 255, 255, 0.4))
                blur(0.5px);
    }
}

body * {
    cursor: url('images/logo-cursor.png') 24 24, auto;
}

a, button, .btn, .work-card-featured, .nav-links a {
    cursor: url('images/logo-cursor.png') 24 24, pointer !important;
}

/* ============================================
   FILM GRAIN - Grey Noise Pattern
   Static film grain texture overlay - FIXED to not affect images
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2.5' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0.33 0.33 0.33 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter2'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter2)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ============================================
   Navigation - Minimal
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
    background: var(--accent);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.mobile-menu-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 6rem;
}

.mobile-menu-links a {
    color: var(--white);
    text-decoration: none;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-links a:hover {
    color: var(--accent);
    padding-left: 1rem;
}

/* Show mobile menu toggle on smaller screens */
@media (max-width: 768px) {
    .nav {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

/* ============================================
   Hero Section - Full Width with Background
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 6rem 12rem;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 10;
    margin-bottom: 0;
}

.garden-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.fireflies-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

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

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(0%);
    position: relative;
    z-index: 0;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 20;
    will-change: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 2rem;
    opacity: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 9rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 2rem;
    opacity: 1;
    text-transform: uppercase;
    font-stretch: condensed;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 4px 40px rgba(0, 0, 0, 0.6);
}

.accent {
    color: var(--accent);
}

.hero-description {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 1);
    max-width: 800px;
    margin: 0 0 3rem 0;
    opacity: 1;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 4px 30px rgba(0, 0, 0, 0.7);
}

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

/* ============================================
   Button
   ============================================ */
.btn {
    display: inline-block;
    padding: 1.25rem 3rem;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.8s forwards;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--black);
}

.btn-large {
    padding: 1.5rem 4rem;
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: 4rem 6rem 3rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
    z-index: 50;
    gap: 4rem;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    clear: both;
}

.stat {
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat:hover {
    transform: translateY(-10px) scale(1.05);
}

.stat-number {
    font-size: clamp(3rem, 5vw, 6rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--accent);
}

.stat-label {
    font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stats-scrolling-text {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.stats-scroll-track {
    display: flex;
    gap: 3rem;
    animation: scrollLeft 35s linear infinite;
    white-space: nowrap;
}

.stats-scroll-track span {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ============================================
   Section Title
   ============================================ */
.section-title {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 5rem;
    text-align: center;
}

/* ============================================
   Work - Grid Display
   ============================================ */
.work {
    padding: 8rem 6rem;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

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

@media (min-width: 1600px) {
    .work-grid {
        gap: 4rem;
    }
}

.work-item {
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.work-item:nth-child(1) { animation-delay: 0.1s; }
.work-item:nth-child(2) { animation-delay: 0.2s; }
.work-item:nth-child(3) { animation-delay: 0.3s; }

.work-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #1a1a1a;
    margin-bottom: 1.5rem;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    position: relative;
    z-index: 2;
    isolation: isolate;
}

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

.work-info h3 {
    font-size: clamp(1.5rem, 2vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.work-item:hover .work-info h3 {
    color: var(--accent);
}

.work-info p {
    font-size: clamp(0.9375rem, 1.2vw, 1.25rem);
    color: var(--gray);
}

/* ============================================
   Services - Numbered List
   ============================================ */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    text-align: left;
    opacity: 0;
    animation: fadeInHero 1s ease-out 1.5s forwards;
}

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

.services {
    padding: 6rem 6rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    position: relative;
    min-height: 400px;
}

.service:nth-child(1) { animation-delay: 0.1s; }
.service:nth-child(2) { animation-delay: 0.2s; }
.service:nth-child(3) { animation-delay: 0.3s; }
.service:nth-child(4) { animation-delay: 0.4s; }
.service:nth-child(5) { animation-delay: 0.5s; }
.service:nth-child(6) { animation-delay: 0.6s; }

.service:hover {
    padding-left: 2rem;
}

.service-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    transition: color 0.3s ease;
}

.service:hover .service-number {
    color: var(--accent);
}

.service-content h3 {
    font-size: clamp(1.75rem, 2.5vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.service-content p {
    font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.service-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 1.5rem;
}

.service-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-image {
    width: 400px;
    height: 100%;
    overflow: hidden;
    opacity: 1;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.service:hover .service-number {
    color: var(--accent);
    transform: scale(1.1);
}

/* ============================================
   Process Section
   ============================================ */
.process {
    padding: 6rem 6rem;
    width: 100%;
    max-width: 1800px;
    position: relative;
    z-index: 50;
    margin: 0 auto;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    margin-bottom: 6rem;
}

.process-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.process-step {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 0;
    align-items: stretch;
    min-height: 400px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    transition: padding-left 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.process-visual {
    width: 400px;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    position: relative;
}

.process-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.process-step:nth-child(1) { animation-delay: 0.1s; }
.process-step:nth-child(2) { animation-delay: 0.2s; }
.process-step:nth-child(3) { animation-delay: 0.3s; }

.process-number {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.process-content {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.process-step:hover .process-content h3 {
    color: var(--accent);
}

.process-content p {
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 4rem 6rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

.cta-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-description {
    font-size: clamp(1.375rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.cta-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    transition: color 0.3s ease;
}

.cta-contact a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.1);
    background: rgba(255, 107, 53, 0.1);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 2rem 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    max-width: 1800px;
    margin: 0 auto 0.75rem;
}

.footer-brand {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 700;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding: 0.5rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.875rem, 1vw, 1rem);
    max-width: 1800px;
    margin: 0;
}

.footer-bottom p {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* ============================================
   Footer Garden Image
   ============================================ */
.footer-garden {
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
}

.footer-garden img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}

/* Scramble Text Animation with Warp Effect */
.scramble-text {
    display: inline-block;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scramble-text.warping {
    animation: warpIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes warpIn {
    0% {
        transform: scale(0.8) rotateX(20deg);
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        transform: scale(1.1) rotateX(-5deg);
        opacity: 0.7;
        filter: blur(2px);
    }
    100% {
        transform: scale(1) rotateX(0deg);
        opacity: 1;
        filter: blur(0);
    }
}

/* ============================================
   Advanced Effects - Showcase Capabilities
   ============================================ */

/* Orange Dot Cursor */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s ease, height 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    width: 50px;
    height: 50px;
}

.cursor-follower.hover {
    width: 70px;
    height: 70px;
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealText 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

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

/* Parallax Layers */
.parallax-layer {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Image Reveal Effect */
.image-reveal {
    position: relative;
    overflow: hidden;
}

.image-reveal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: 2;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.active::before {
    transform: scaleX(1);
    transform-origin: right;
}

.image-reveal img {
    transform: scale(1.2);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-reveal.active img {
    transform: scale(1);
}

/* Smooth Page Transitions */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    z-index: 10001;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active {
    transform: scaleY(1);
    transform-origin: top;
}

/* Glitch Effect on Hover */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    color: var(--accent);
    z-index: -1;
}

.glitch:hover::after {
    animation: glitch-2 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
    color: rgba(255, 255, 255, 0.5);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    33% {
        transform: translate(-2px, 2px);
        opacity: 0.8;
    }
    66% {
        transform: translate(2px, -2px);
        opacity: 0.8;
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    33% {
        transform: translate(2px, -2px);
        opacity: 0.6;
    }
    66% {
        transform: translate(-2px, 2px);
        opacity: 0.6;
    }
}

/* Liquid Distortion Effect */
.liquid-distort {
    filter: url(#liquid);
    transition: filter 0.3s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(255, 107, 53, 0.5));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Magnetic Button Effect */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Split Text Animation */
.split-text {
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%) rotate(10deg);
    animation: charReveal 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

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

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 107, 53, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 3D Tilt Effect */
.tilt-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-3d:hover {
    transform: perspective(1000px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

/* Morphing Background */
.morph-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255, 107, 53, 0.1) 0%, 
                transparent 50%);
    transition: background 0.3s ease;
    pointer-events: none;
}

/* Responsive
   ============================================ */
@media (max-width: 1200px) {
    .service {
        grid-template-columns: 120px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .nav,
    .hero,
    .stats,
    .work,
    .services,
    .cta,
    .footer {
        padding-left: 3rem;
        padding-right: 3rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
        padding: 6rem 3rem;
    }
    
    .work {
        padding: 8rem 3rem;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .process {
        padding: 8rem 3rem;
    }
    
    .process-step {
        grid-template-columns: 300px 1fr;
        min-height: 350px;
    }
    
    .process-visual {
        width: 300px;
    }
    
    .process-content {
        padding: 3rem;
    }
    
    .services {
        padding: 8rem 3rem;
    }
    
    .service {
        grid-template-columns: 1fr 300px;
        min-height: 350px;
    }
    
    .service-image {
        width: 300px;
    }
    
    .service-content {
        padding: 3rem;
    }
    
    .cta {
        padding: 10rem 3rem;
    }
    
    .footer {
        padding: 4rem 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero,
    .stats,
    .work,
    .services,
    .cta,
    .footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .service {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .service-content {
        padding: 2rem;
    }
    
    .service-image {
        width: 100%;
        height: 250px;
    }
    
    .service-number {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-contact {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .process {
        padding: 6rem 1.5rem;
    }
    
    .process-step {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .process-visual {
        width: 100%;
        height: 250px;
    }
    
    .process-content {
        padding: 2rem;
    }
    
    .process-number {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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