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

body {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e35;
    line-height: 1.6;
    background-color: #f9f9f7;
}

a {
    text-decoration: none;
    color: #1a4a2b;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: #1a4a2b;
}

h2.section-title {
    font-size: 38px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #A27A22; /* Elegant Champagne Gold */
}

.text-center { text-align: center; }
.text-white { color: #fff; }
.text-white h2 { color: #fff; }
.max-w { max-width: 800px; margin: 0 auto; }

/* Colors & Backgrounds */
.bg-light { background-color: #f4f7f6; }
.bg-dark { background-color: #1a4a2b; }
.bg-gold { background-color: #A27A22; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: #A27A22; /* Champagne Gold */
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn:hover { 
    background-color: #82621B; 
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(193, 154, 107, 0.3);
}

.btn-large { padding: 16px 36px; font-size: 16px; }

.btn-outline { 
    background-color: transparent; 
    border: 2px solid #1a4a2b; 
    color: #1a4a2b; 
}
.btn-outline:hover { 
    background-color: #1a4a2b; 
    color: #fff; 
}

.btn-outline-light { 
    background-color: transparent; 
    border: 2px solid #A27A22; 
    color: #A27A22; 
}
.btn-outline-light:hover { 
    background-color: #A27A22; 
    color: #fff; 
}

.btn-whatsapp { 
    background-color: #25D366; 
    color: #fff;
}
.btn-whatsapp:hover { 
    background-color: #128C7E; 
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    height: 140px; /* Enlarged Logo */
    object-fit: contain;
}

nav ul {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:not(.btn):hover {
    color: #A27A22;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 0;
    text-align: center;
    min-height: 120vh;
    display: block;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 115%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.hero .container.hero-content {
    position: relative;
    z-index: 2;
    height: 120vh;
    display: block;
    padding: 0 20px;
}

.hover-box {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: #111;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: #333;
    font-weight: 400;
}

/* Sections */
.section {
    padding: 100px 20px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.align-center { align-items: center; }

/* Cards */
.card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.card-img {
    height: 220px;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 35px 30px;
}

.card h3 { 
    font-size: 22px; 
    margin-bottom: 15px;
}

/* Partners Section */
.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.partner-logo {
    height: 60px;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
}

/* Tech Image */
.tech-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.tech-image img {
    width: 100%;
    display: block;
}

/* Footer */
footer {
    background-color: #111;
    color: #666;
    padding: 40px 20px;
    font-size: 14px;
}

/* Logo Slider */
.logo-slider {
    background: transparent;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logo-slider::before,
.logo-slider::after {
    background: linear-gradient(to right, #f9f9f7 0%, rgba(255, 255, 255, 0) 100%);
    content: "";
    height: 100px;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 0;
}

.logo-slider::before {
    left: 0;
}

.logo-slider::after {
    right: 0;
    transform: rotateZ(180deg);
}

.logo-slide-track {
    animation: scroll 20s linear infinite;
    display: flex;
    width: calc(250px * 10);
    align-items: center;
}

.logo-slide-track .slide {
    height: 80px;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-slide-track .slide img {
    max-height: 80px;
    max-width: 80%;
    mix-blend-mode: multiply;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

/* -------------------------------------
   RESPONSIVE (Mobile & Tablet)
------------------------------------- */

@media (max-width: 900px) {
    /* Grids to single column */
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Reverse grid direction if RTL was forced on desktop */
    .grid-2[style*="direction: rtl"] {
        direction: ltr !important;
    }
    .grid-2[style*="direction: rtl"] > div {
        direction: ltr !important;
    }
    
    /* Header & Nav */
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    nav a {
        font-size: 12px;
    }

    /* Hero adjustments */
    .hero {
        min-height: 100vh;
    }
    .hero-video {
        height: 100vh;
    }
    .hero .container.hero-content {
        height: 100vh;
    }
    .hover-box {
        padding: 25px;
        width: 90%;
        max-width: 90%;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 15px;
    }

    /* Typography scaling */
    h1[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
    .section-title {
        font-size: 32px;
    }

    /* Action buttons to full width */
    .actions {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px;
    }
    .actions .btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Make inline buttons full width */
    .feature-box .btn, .grid-2 .btn {
        display: block !important;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    /* Partner Slider Scaling */
    .logo-slide-track .slide {
        width: 150px;
    }
    .logo-slide-track .slide img {
        max-height: 50px;
    }
    .logo-slide-track {
        width: calc(150px * 10);
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-150px * 5)); }
    }
    
    /* Calculator Form */
    .calc-container {
        padding: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}
