:root {
    --primary-color: #FFD100;
    --primary-gradient: linear-gradient(135deg, #FFD100 0%, #F5B800 100%);
    --secondary-color: #111111;
    --text-color: #333333;
    --light-bg: #fdfdfd;
    --white: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    /* Restore native smooth scroll for anchors */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
header {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 5%;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.logo span {
    color: var(--white);
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--white);
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* Scroll Focus/Fade Effect */
section,
main,
footer {
    transition: opacity 0.4s ease, filter 0.4s ease;
    contain: paint;
    /* Helps isolate rendering and prevent layout shifts */
}

body.focus-mode-about section:not(#about),
body.focus-mode-about main,
body.focus-mode-about footer {
    opacity: 0.2;
    filter: blur(8px) grayscale(50%);
}

body.focus-mode-about #about {
    opacity: 1;
    filter: blur(0);
}

/* Disable expensive effects on mobile to prevent scroll jumping */
@media (max-width: 768px) {

    body.focus-mode-about section:not(#about),
    body.focus-mode-about main,
    body.focus-mode-about footer {
        opacity: 1;
        filter: none;
        pointer-events: auto;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
    z-index: 10;
    background: #111 url('../assets/videos/s1.jpeg') center/cover no-repeat;
}


.hero-contact {
    color: var(--white);
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(100px);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
    will-change: transform, opacity;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-contact .phone {
    display: none;
    /* Hidden on desktop, shown on mobile */
}

.hero-contact.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-call {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #FFD100 0%, #F7C600 50%, #FFD100 100%);
    background-size: 200% auto;
    color: var(--secondary-color);
    padding: 20px 60px;
    height: 70px;
    /* Fixed height for reliable text swap */
    min-width: 300px;
    /* Slightly wider for elegant spacing */
    font-size: 20px;
    font-weight: 600;
    /* More elegant weight */
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Refined spacing */
    border-radius: 50px;
    margin-top: 120px;
    /* Shifted significantly lower */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 35px rgba(255, 209, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.05);
    /* Subtler, elegant border */
    cursor: pointer;
    z-index: 1;
}

.btn-text-original,
.btn-text-hover {
    position: absolute;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    pointer-events: none;
}

.btn-text-hover {
    transform: translateY(100px);
    /* Hide below the button */
    color: var(--secondary-color);
}

.btn-call:hover .btn-text-original {
    transform: translateY(-100px);
    /* Slide out top */
}

.btn-call:hover .btn-text-hover {
    transform: translateY(0);
    /* Slide in to center */
}

.btn-call::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transition: all 0.6s;
}

.btn-call:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 45px rgba(255, 209, 0, 0.4), 0 10px 20px rgba(0, 0, 0, 0.1);
    background-position: right center;
}

.btn-call:hover::before {
    left: 100%;
}

.btn-call:active {
    transform: translateY(-3px) scale(1.02);
}


/* CTA Yellow Section */
.cta-yellow-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    position: relative;
    z-index: 5;
}

/* Content Area */
.main-content {
    display: flex;
    justify-content: center;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 5;
    background-color: transparent;
}

.info-text {
    flex: 1;
    padding-top: 80px;
    max-width: 800px;
}

.info-text h3 {
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.info-text h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.info-text p {
    font-size: 18px;
    color: #111;
    /* Darker text for yellow background */
    margin: 0 auto 40px auto;
    max-width: 700px;
    font-weight: 500;
}



/* Tariffs / About / Contact Sections */
.about-section,
.contact-section {
    padding: 100px 5%;
    text-align: center;
    background-color: var(--white);
}

.contact-section {
    background-color: var(--light-bg);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-section h2,
.contact-section h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.about-section h2::after,
.contact-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto;
}

.about-section p {
    font-size: 18px;
    color: #555;
    line-height: 1.8;
}

.contact-info {
    margin-top: 40px;
    font-size: 18px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-info strong {
    color: var(--secondary-color);
}

/* Footer Section */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 5% 30px;
    text-align: center;
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #222;
    color: var(--white);
    border-radius: 50%;
    margin: 0 10px;
    font-size: 20px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.copyright {
    font-size: 14px;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}



/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        max-width: 95%;
        gap: 30px;
    }

    .info-text h1 {
        font-size: 36px;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 60vh;
        height: 60svh;
    }

    .cta-yellow-section {
        margin-top: -60px;
        padding: 40px 0;
    }

    .main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-text {
        padding-right: 0;
        padding-top: 20px;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 5px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        height: 100svh;
        background-color: var(--secondary-color);
        transition: 0.4s ease;
        z-index: 1001;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 20px 0;
        margin-left: 0;
    }

    nav ul li a {
        font-size: 18px;
    }

    .hero {
        height: 100vh;
        height: 100svh;
        padding-top: 80px;
        background-image: url('../assets/videos/s2.jpg');
    }




    .hero-contact {
        padding: 15px;
        width: 90%;
    }

    .hero-contact .phone {
        display: block;
        font-family: var(--font-main);
        /* Brand typography */
        font-size: clamp(32px, 8vw, 64px);
        font-weight: 600;
        /* Matching elegant weight */
        margin: 10px 0;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        letter-spacing: -1px;
        color: var(--white);
    }

    .cta-yellow-section {
        padding: 80px 5%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 300px;
        /* Vertical centering with fixed pixel lock */
    }

    .main-content,
    .info-text {
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(20px);
        /* Refined symmetry */
    }

    .info-text {
        gap: 20px;
    }

    .info-text h1 {
        font-size: 32px;
        line-height: 1.1;
    }

    .btn-call {
        position: relative;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 14px 40px;
        height: auto;
        /* Revert fixed height for mobile */
        min-width: auto;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 1.5px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        color: var(--white);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        margin-top: 20px;
        overflow: hidden;
        /* Fixes the "mrlja" smudge on mobile */
    }

    /* Disable text swap for mobile */
    .btn-text-original {
        position: static;
        transform: none !important;
        opacity: 1 !important;
    }

    .btn-text-hover {
        display: none !important;
    }

    .btn-call:hover .btn-text-original {
        transform: none !important;
    }

    .btn-call:hover {
        background: rgba(255, 255, 255, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.6);
        color: var(--primary-color);
        transform: translateY(-2px);
        /* Subtle shift for mobile */
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition);
    color: var(--white);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

.modal-close:hover {
    opacity: 1;
    color: var(--primary-color);
}

.modal-content h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.modal-content p {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 30px;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.phone-btn {
    background: var(--primary-gradient);
    color: var(--secondary-color);
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.viber-btn {
    background: #7360F2;
    color: white;
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.contact-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-btn i {
    font-size: 24px;
}