@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Base */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14b8a6;
}

/* ===== HERO ANIMATIONS (UNTOUCHED) ===== */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate-shimmer {
    background-size: 200% auto;
    animation: shimmer 4s linear infinite;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1.0);
    }

    100% {
        transform: scale(1.03);
    }
}

.animate-subtle-zoom {
    animation: subtle-zoom 20s alternate infinite ease-in-out;
}

.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

/* Glass Effects */
.glass-lens {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mouse Scroll */
@keyframes scroll-mouse {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(12px);
        opacity: 0;
    }
}

.mouse-scroll {
    width: 26px;
    height: 44px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    position: relative;
    display: flex;
    justify-content: center;
}

.mouse-scroll::after {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    margin-top: 8px;
    border-radius: 2px;
    animation: scroll-mouse 2s infinite ease-out;
}

.deco-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.8), transparent);
}

/* Logo Reveal */
.logo-reveal-group .logo-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.logo-reveal-group:hover .logo-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 0.75rem;
}

/* Mobile Menu */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lightbox */
.lightbox {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== ENHANCED SCROLL REVEAL SYSTEM ===== */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: none !important;
}

.reveal-up {
    transform: translateY(60px);
}

.reveal-down {
    transform: translateY(-60px);
}

.reveal-left {
    transform: translateX(-80px);
}

.reveal-right {
    transform: translateX(80px);
}

.reveal-scale {
    transform: scale(0.85);
}

.reveal-rotate {
    transform: perspective(800px) rotateY(15deg);
}

/* Text Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Legacy support */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== MOBILE HERO POLISH ===== */
@media (max-width: 768px) {
    /* small shift of background and a light boost for a more cinematic feel */
    .hero-bg {
        background-position: center 25%;
        filter: contrast(1.04) saturate(1.05);
    }

    /* ensure hero remains full viewport even when chrome UI hides/shows */
    section.relative.h-[100svh] {
        height: 100svh;
    }
}

/* respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-bg {
        animation: none !important;
    }
}


.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-0 {
    transition-delay: 0ms;
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

.delay-3 {
    transition-delay: 300ms;
}

.delay-4 {
    transition-delay: 400ms;
}

.delay-5 {
    transition-delay: 500ms;
}

.delay-6 {
    transition-delay: 600ms;
}

.delay-7 {
    transition-delay: 700ms;
}

.reveal-delay-100 {
    transition-delay: 100ms;
}

.reveal-delay-200 {
    transition-delay: 200ms;
}

.reveal-delay-300 {
    transition-delay: 300ms;
}

.reveal-delay-400 {
    transition-delay: 400ms;
}

.reveal-delay-500 {
    transition-delay: 500ms;
}

.reveal-delay-600 {
    transition-delay: 600ms;
}

.reveal-delay-700 {
    transition-delay: 700ms;
}

/* ===== ANIMATED GRADIENT BORDER ===== */
@keyframes border-spin {
    0% {
        --angle: 0deg;
    }

    100% {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.glow-border {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: conic-gradient(from var(--angle), #0d9488, #1e293b, #14b8a6, #1e293b, #0d9488);
    animation: border-spin 4s linear infinite;
    border-radius: inherit;
    z-index: -1;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

/* ===== 3D TILT CARD ===== */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.tilt-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(13, 148, 136, 0.15);
}

.tilt-card .card-content {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.tilt-card:hover .card-content {
    transform: translateZ(40px);
}

/* ===== SERVICE CARD ICON GLOW ===== */
.icon-glow {
    position: relative;
}

.icon-glow::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.tilt-card:hover .icon-glow::after {
    opacity: 0.5;
}

/* ===== ANIMATED UNDERLINE ===== */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animated-underline.visible::after {
    width: 80px;
}

/* ===== COUNTER ANIMATION ===== */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===== FLOATING SHAPES ===== */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@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);
    }
}

.float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.float-medium {
    animation: float-medium 6s ease-in-out infinite;
}

.float-fast {
    animation: float-fast 4s ease-in-out infinite;
}

/* ===== MARQUEE ===== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-track {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

/* ===== PARALLAX IMAGE ===== */
.parallax-container {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    transition: transform 0.1s linear;
    will-change: transform;
}

/* ===== GLOWING PULSE ===== */
@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(13, 148, 136, 0.3), 0 0 40px rgba(13, 148, 136, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(13, 148, 136, 0.5), 0 0 60px rgba(13, 148, 136, 0.2);
    }
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, transparent);
    border-radius: 2px;
    margin: 0 auto;
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.magnetic-btn:hover::before {
    opacity: 1;
}

/* ===== TEXT GRADIENT ANIMATION ===== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.text-gradient-animated {
    background: linear-gradient(270deg, #0d9488, #14b8a6, #2dd4bf, #0d9488);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

/* ===== PROCESS STEP LINE ===== */
@keyframes line-grow {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

.process-line {
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-line.visible {
    transform: scaleX(1);
}

/* ===== STEP ICON BOUNCE ===== */
@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.step-icon-animated.visible {
    animation: icon-bounce 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== PORTFOLIO OVERLAY ===== */
.portfolio-card .overlay {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .overlay {
    clip-path: inset(0 0 0 0);
}

.portfolio-card .portfolio-img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.12);
}

/* ===== STATS SECTION ===== */
.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0d9488, transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.stat-card:hover::before {
    transform: translateX(0);
}

/* ===== WHY US IMAGE FRAME ===== */
@keyframes frame-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(13, 148, 136, 0.2),
            inset 0 0 20px rgba(13, 148, 136, 0.05);
    }

    50% {
        box-shadow: 0 0 40px rgba(13, 148, 136, 0.4),
            inset 0 0 30px rgba(13, 148, 136, 0.1);
    }
}

.image-frame {
    border: 2px solid rgba(13, 148, 136, 0.3);
    border-radius: 1.5rem;
    animation: frame-glow 4s ease-in-out infinite;
}

/* ===== CHECK ITEM SLIDE ===== */
.check-item {
    position: relative;
    padding-left: 2rem;
}

.check-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 0;
    background: #0d9488;
    border-radius: 3px;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.check-item.visible::before {
    height: 100%;
}

/* ===== CTA SECTION ===== */
@keyframes particle-float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    25% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-50px) translateX(-5px);
        opacity: 0.3;
    }

    75% {
        transform: translateY(-20px) translateX(15px);
        opacity: 0.5;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.5);
    animation: particle-float 6s ease-in-out infinite;
}

/* ===== FOOTER LINK UNDERLINE ===== */
.footer-link {
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #14b8a6;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== SOCIAL ICON HOVER ===== */
.social-icon {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

/* ===== SMOOTH SECTION TRANSITIONS ===== */
section {
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: translateY(40px);
    }

    .tilt-card {
        transform: none !important;
    }
}

/* ===== SERVICE CARDS (PREMIUM) ===== */
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(13, 148, 136, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Stagger scroll-reveal animation --- */
.service-card-stagger {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card-stagger.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Image area --- */
.service-card-img {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img img {
    transform: scale(1.08);
}

/* --- Numbered badge --- */
.service-card-number {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.08);
    user-select: none;
    pointer-events: none;
    transition: color 0.5s ease;
    z-index: 3;
}

.service-card:hover .service-card-number {
    color: rgba(255, 255, 255, 0.15);
}

/* --- Floating icon badge --- */
.service-card-img-icon {
    position: absolute;
    bottom: -22px;
    left: 24px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    color: var(--icon-color, #14b8a6);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s ease,
        border-color 0.5s ease;
}

.service-card:hover .service-card-img-icon {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.25);
}

/* --- Card body --- */
.service-card-body {
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem 1.5rem;
    flex-grow: 1;
}

/* --- CTA link with animated arrow --- */
.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    position: relative;
    transition: gap 0.3s ease;
}

.service-card-cta i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-cta {
    gap: 0.75rem;
}

.service-card:hover .service-card-cta i {
    transform: translateX(4px);
}

.service-card-cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: currentColor;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-cta::after {
    width: 100%;
}

/* ===== LOADING STATE ===== */
.page-loaded .reveal {
    transition-duration: 1s;
}