/* === Sitezet - Shared Global Styles === */

/* Global Responsive Scaling */
html {
    font-size: 13px; /* Smaller base font for mobile */
}
@media (min-width: 640px) {
    html {
        font-size: 14px; /* Tablet */
    }
}
@media (min-width: 1024px) {
    html {
        font-size: 16px; /* Desktop (Tailwind default) */
    }
}

/* Language fade transition */
.fade-lang {
    transition: opacity 0.3s ease-in-out;
}
.fade-out {
    opacity: 0;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    z-index: 9998;
    width: 0%;
    transition: width 0.1s linear;
}

/* Mobile Menu */
#mobile-menu-overlay {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#mobile-menu-overlay.open {
    visibility: visible;
    opacity: 1;
}
#mobile-menu-drawer {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#mobile-menu-drawer.open {
    transform: translateX(0);
}
body.menu-open {
    overflow: hidden;
}

/* Marquee hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Glass panels */
.glass-panel-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}
.glass-card-light {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.glass-card-light:hover {
    border-color: rgba(20, 184, 166, 0.2);
    box-shadow: 0 15px 40px -10px rgba(20, 184, 166, 0.15);
    transform: translateY(-5px);
}

/* Button shine effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-shine:hover::after { left: 150%; }

/* Magnetic hover */
.magnetic-hover {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.magnetic-hover:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 20;
}

/* Hover arrow slide */
.hover-arrow-slide i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-arrow-slide:hover i { transform: translateX(6px); }

/* Counter numbers */
.counter-num { font-variant-numeric: tabular-nums; }

/* Tilt card hover */
.tilt-card {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}
.tilt-card:hover {
    transform: perspective(800px) rotateY(-4deg) rotateX(3deg) translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Floating animations */
@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.animate-float-slow { animation: float-slow 7s ease-in-out infinite; }
.animate-float-medium { animation: float-medium 5s ease-in-out infinite; }
.animate-float-fast { animation: float-fast 4s ease-in-out infinite; }

/* Typing cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #0d9488;
    font-weight: 300;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Curve divider */
.curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}
.curve-divider .shape-fill { fill: #ffffff; }

/* Lang toggle active state */
.lang-btn.text-teal-600 { color: #0d9488; }

/* === Mobile Menu Enhanced === */

/* Staggered slide-in animation for nav links */
@keyframes slideInLink {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}
.mobile-nav-link {
    opacity: 0;
    transform: translateX(30px);
    transition: background 0.3s ease, color 0.3s ease;
}
.mobile-nav-link.animate-in {
    animation: slideInLink 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active nav link indicator */
.mobile-nav-link.active {
    background: rgba(20, 184, 166, 0.08);
    color: #0d9488;
    border-left: 3px solid #0d9488;
    border-radius: 0 12px 12px 0;
    padding-left: calc(1rem - 3px);
}
.mobile-nav-link.active i {
    color: #0d9488;
}
.mobile-nav-link.active .nav-dot {
    opacity: 1;
    background: #0d9488;
}

/* Nav link hover effect - sliding accent bar */
.mobile-nav-link .nav-accent {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-link:hover .nav-accent {
    width: 100%;
}

/* Decorative floating circles in drawer */
.drawer-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.15;
}
@keyframes drawerFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}
@keyframes drawerFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-15px, 10px) scale(0.9); }
}
.drawer-circle-1 {
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.25), transparent 70%);
    animation: drawerFloat1 8s ease-in-out infinite;
}
.drawer-circle-2 {
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2), transparent 70%);
    animation: drawerFloat2 6s ease-in-out infinite;
}

/* Drawer glow dot on active nav */
.nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
}
.mobile-nav-link:hover .nav-dot {
    background: #0d9488;
    box-shadow: 0 0 8px rgba(20, 184, 166, 0.5);
}
/* Mobile nav hover effect - icon slide + accent glow */
.mobile-nav-link {
    position: relative;
    overflow: hidden;
}
.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #0d9488;
    border-radius: 0 4px 4px 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-link:hover::before {
    transform: translateX(0);
}
.mobile-nav-link i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-nav-link:hover i {
    transform: translateX(4px);
}
.mobile-nav-link span {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-nav-link:hover span {
    transform: translateX(4px);
}

/* Desktop nav active indicator dot */
.desktop-nav-link.active {
    color: #0d9488 !important;
    position: relative;
}

/* Mobile mockup responsive fixes */
@media (max-width: 640px) {
    .works-mockup-wrap {
        min-height: 420px !important;
        height: 420px !important;
    }
    .works-mockup-laptop {
        width: 90% !important;
        height: 72% !important;
    }
    .works-mockup-phone {
        width: 30% !important;
        height: 58% !important;
        bottom: -5px !important;
    }
    .hero-mockup-wrap {
        max-width: 100% !important;
    }
    .hero-mockup-inner {
        width: 98% !important;
        right: 1% !important;
    }
}

/* Horizontal Expanding Cards (Flex Accordion) */
/* Horizontal Expanding Cards (Flex Accordion) */
.flex-card {
    transition: all 0.8s cubic-bezier(0.25, 1.05, 0.5, 1);
    display: flex;
    overflow: hidden;
    transform: translateZ(0); /* Hardware acceleration for smoother animations */
}

@media (min-width: 768px) {
    /* Desktop / Tablet Horizontal Accordion */
    .flex-card {
        flex: 1;
        align-items: stretch;
        height: 280px; /* Fixed height so it doesn't change when widening */
        flex-direction: row;
    }
    .flex-card.active {
        flex: 2.5; /* Expand width significantly to fit side-by-side */
    }
    .card-left {
        width: 100%;
        flex: 0 0 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.8s cubic-bezier(0.25, 1.05, 0.5, 1);
    }
    .flex-card.active .card-left {
        width: 40%;
        flex: 0 0 40%;
    }
    .flex-card.active .flex-card-title {
        margin-top: 0;
    }
    .flex-card-content {
        opacity: 0;
        width: 0;
        padding-left: 0;
        white-space: normal;
        transition: all 0.8s cubic-bezier(0.25, 1.05, 0.5, 1);
        border-left: 1px solid transparent;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
        transform: translateX(30px) scale(0.95);
        transform-origin: left center;
    }
    .flex-card.active .flex-card-content {
        opacity: 1;
        width: 60%;
        padding-left: 2rem;
        margin-left: 2rem;
        border-left-color: #f1f5f9; /* Tailwind slate-100 */
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 767px) {
    /* Mobile Vertical Accordion */
    .flex-card {
        flex-direction: column;
        height: auto;
    }
    .card-left {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: all 0.8s cubic-bezier(0.25, 1.05, 0.5, 1);
    }
    .flex-card-content {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: all 0.8s cubic-bezier(0.25, 1.05, 0.5, 1);
        border-top: 1px solid transparent;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transform: translateY(20px) scale(0.95);
        transform-origin: top center;
    }
    .flex-card.active .flex-card-content {
        opacity: 1;
        max-height: 500px; /* Large enough to fit content */
        padding-top: 1.5rem;
        margin-top: 1.5rem;
        border-top-color: #f1f5f9;
        transform: translateY(0) scale(1);
    }
}

/* Title orientation logic */
.flex-card-title {
    transition: all 0.8s cubic-bezier(0.25, 1.05, 0.5, 1);
    transform-origin: left center;
}

/* Workflow Animations */
@keyframes flow-line {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.animate-flow-line {
    background-size: 200% auto;
    animation: flow-line 3s linear infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

/* Marquee Animations */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

.animate-marquee {
    animation: marquee 40s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 40s linear infinite;
}


/* Sequential Flow Line Animation */
@keyframes flow-sequence {
    0%, 12.5% { transform: translateX(-100%); opacity: 0; }
    12.6% { transform: translateX(-100%); opacity: 1; }
    25% { transform: translateX(100%); opacity: 1; }
    25.1%, 100% { transform: translateX(100%); opacity: 0; }
}
.animate-flow-sequence {
    animation: none;
}
.aos-animate .animate-flow-sequence {
    animation: flow-sequence 8s linear infinite;
}

/* Sequential Icon Pulse Animation */
@keyframes icon-pulse-sequence {
    0%, 5% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
    12.5% { transform: scale(1.15); box-shadow: 0 0 30px rgba(45,212,191,0.4); }
    25%, 100% { transform: scale(1); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
}
.aos-animate .animate-icon-sequence {
    animation: icon-pulse-sequence 8s ease-in-out infinite;
}

/* For the final card (Step 4) which has different base styling */
@keyframes icon-pulse-sequence-final {
    0%, 5% { transform: scale(1); box-shadow: 0 20px 25px -5px rgba(20,184,166,0.4); }
    12.5% { transform: scale(1.15); box-shadow: 0 0 40px rgba(16,185,129,0.6); }
    25%, 100% { transform: scale(1); box-shadow: 0 20px 25px -5px rgba(20,184,166,0.4); }
}
.aos-animate .animate-icon-sequence-final {
    animation: icon-pulse-sequence-final 8s ease-in-out infinite;
}
