:root {
    --page-margin: 260px;
    --gutter: 40px;
    --brand-orange: #F26522;
    --brand-gray: #625852;
    --text-stone: #57534E;
}

@font-face {
    font-family: 'Mont';
    font-weight: 400;
    src: url('font/Mont-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Mont';
    font-weight: 500;
    src: url('font/Mont-SemiBold%20-%20Copy.otf') format('opentype');
}

@font-face {
    font-family: 'Mont';
    font-weight: 600;
    src: url('font/Mont-SemiBold%20-%20Copy.otf') format('opentype');
}

@font-face {
    font-family: 'Mont';
    font-weight: 700;
    src: url('font/Mont-Bold%20-%20Copy.otf') format('opentype');
}

@font-face {
    font-family: 'Mont';
    font-weight: 800;
    src: url('font/Mont-Black.otf') format('opentype');
}

@font-face {
    font-family: 'Mont';
    font-weight: 900;
    src: url('font/Mont-Black.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Using Mont as requested, fallback to Montserrat/sans-serif */
    font-family: 'Mont', 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

/* 
    The following styles are kept because they require highly specific logic
    that is difficult or impossible to achieve cleanly with basic Tailwind utility classes,
    such as the custom text-fill gradient animation.
*/

@keyframes slow-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-slow-spin {
    animation: slow-spin 60s linear infinite;
}

@keyframes reverse-spin {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.animate-reverse-spin {
    animation: reverse-spin 60s linear infinite;
}

@keyframes float {

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

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

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

.animate-float-delayed {
    animation: float 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes shine {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 0px rgba(242, 101, 34, 0));
    }

    50% {
        filter: brightness(1.15) drop-shadow(0 0 15px rgba(242, 101, 34, 0.6));
    }
}

.animate-shine {
    animation: shine 3s ease-in-out infinite;
}

.text-stage {
    opacity: 0;
    /* Hide initially until JS fires */
    /* JS sets inline opacity and pointer-events. No CSS transitions or transforms here. */
}

#stage-0 {
    opacity: 1;
    /* Show first stage immediately before images load */
    pointer-events: auto;
}

.text-stage .hero-title,
.text-stage .hero-subtitle {
    /* Premium text-fill effect */
    background: linear-gradient(to right, #000 0%, #000 var(--fill, 0%), #B2B2B2 var(--fill, 0%), #B2B2B2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-stage span {
    color: inherit;
}

/* Infinite Logo Marquee */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

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

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

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

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

/* FAQ Accordion Styles */
.faq-content {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover h3 {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Bakım Feature Bar Styles */
.bakim-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bakim-item {
    transition: background-color 0.3s ease;
}

.bakim-item:hover {
    background-color: #FAFAFA;
}

.bakim-item:hover .bakim-content {
    max-height: 200px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Services Marquee Animation */
@keyframes services-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2 - 20px));
    }
}

.animate-services-marquee {
    animation: services-marquee 40s linear infinite;
    display: flex;
    width: max-content;
}

.animate-services-marquee:hover,
.animate-services-marquee:active {
    animation-play-state: paused;
}

.pause {
    animation-play-state: paused;
}

/* WhatsApp Button Entrance */
@keyframes whatsapp-entrance {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.8);
    }

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

/* Mobile Menu Link Animation */
@keyframes mobileLinkFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.mobile-link {
    opacity: 0;
}

#mobile-menu.opacity-100 .mobile-link {
    animation: mobileLinkFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(1) {
    animation-delay: 0.1s;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(2) {
    animation-delay: 0.15s;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(3) {
    animation-delay: 0.2s;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(4) {
    animation-delay: 0.25s;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(5) {
    animation-delay: 0.3s;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(6) {
    animation-delay: 0.35s;
}

#mobile-menu.opacity-100 .mobile-link:nth-of-type(7) {
    animation-delay: 0.4s;
}

/* Ensure the menu content is scrollable if it exceeds screen height */
#mobile-menu .flex-grow {
    -webkit-overflow-scrolling: touch;
}

/* --- Mobile Hero Section Fix (Zoomed Desktop View) --- */
@media (max-width: 1024px) {
    #hero {
        width: 100%;
        /* Use 100% instead of 100vw to prevent horizontal scrollbar empty spaces */
        height: calc(1080.87px * var(--hero-scale, 0.5));
        overflow: hidden;
        position: relative;
        margin-top: 70px;
        /* Avoid overlap with mobile header */
        padding: 0 !important;
        display: block !important;
    }

    .Hero {
        transform: scale(var(--hero-scale, 0.5));
        transform-origin: 915px top;
        position: absolute !important;
        /* Cleanly center the 915px content point without margin-left */
        left: calc(50% - 915px) !important;
        margin: 0 !important;
        top: 0 !important;
    }
}

/* --- Mobile Hizmetler Marquee Fix --- */
@media (max-width: 1024px) {
    #hizmetler .animate-services-marquee {
        gap: 16px !important;
        animation: services-marquee-mobile 20s linear infinite !important;
        /* Slightly faster on mobile */
    }

    #hizmetler .animate-services-marquee>div {
        gap: 16px !important;
    }

    #hizmetler .animate-services-marquee>div>div {
        width: 280px !important;
        height: 400px !important;
        padding: 24px !important;
        border-top-left-radius: 40px !important;
        border-bottom-right-radius: 40px !important;
    }

    #hizmetler .animate-services-marquee>div>div h3 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
}

@keyframes services-marquee-mobile {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2 - 8px));
        /* Offset must be exactly half the gap (16px / 2) */
    }
}