/* ==========================================================================
   CSS Variables
   ========================================================================== */
   :root {
    /* Color Palette */
    --clr-primary: #f0421a; /* Orangey red */
    --clr-primary-dark: #cc3614;
    --clr-accent: #ff9800; /* Flame orange */
    
    --clr-dark: #121212;
    --clr-dark-surface: #1e1e1e;
    --clr-light: #ffffff;
    --clr-gray-light: #f5f5f7;
    --clr-gray-text: #666666;
    
    /* Typography */
    --ff-primary: 'Inter', sans-serif;
    --ff-heading: 'Outfit', sans-serif;
    
    /* Spacing */
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    
    /* Transition & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease-in-out;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(229, 57, 53, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--ff-primary);
    color: var(--clr-dark);
    line-height: 1.6;
    background-color: var(--clr-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--clr-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--clr-gray-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    margin-bottom: var(--space-lg);
    border-radius: 2px;
}
.title-underline.center {
    margin-left: auto;
    margin-right: auto;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ==========================================================================
   Layout & Containers
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

.section-light { background-color: var(--clr-light); }
.section-gray { background-color: var(--clr-gray-light); }
.section-dark {
    background-color: var(--clr-dark);
    color: var(--clr-light);
}
.section-dark .section-title { color: var(--clr-light); }
.section-dark .section-subtitle { color: #cccccc; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-dark));
    color: var(--clr-light);
    box-shadow: 0 4px 15px rgba(240, 66, 26, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 66, 26, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: var(--clr-light);
    color: var(--clr-light);
}
.btn-outline:hover {
    background: var(--clr-light);
    color: var(--clr-dark);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* backdrop-filter removed for iOS compatibility */
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 140px;
    width: auto;
    transition: var(--transition-normal);
}
.header.scrolled .logo {
    height: 100px;
}

.logo-text {
    font-family: var(--ff-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--clr-dark);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--clr-dark);
    transition: var(--transition-fast);
}
.nav-link:hover:not(.btn) {
    color: var(--clr-primary);
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}
.hamburger, .hamburger::before, .hamburger::after {
    width: 30px;
    height: 3px;
    background-color: var(--clr-dark);
    transition: var(--transition-normal);
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: var(--clr-dark);
    /* In a real scenario, you could use a high-quality background image here */
    background-image: radial-gradient(circle at center, #2c3e50 0%, #000000 100%);
    overflow: hidden;
    padding-top: 180px; /* Offset for fixed header */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

.highlight {
    color: var(--clr-primary);
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #e0e0e0;
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--clr-gray-text);
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: var(--clr-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--clr-primary);
    transition: var(--transition-normal);
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--clr-dark);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--clr-light);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-bottom: 4px solid var(--clr-primary);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    transition: var(--transition-fast);
}

/* Subtle expanding underline under the title on hover */
.service-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--clr-primary);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.service-card:hover .service-title::after {
    width: 40px;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--clr-gray-light);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--clr-primary);
    color: var(--clr-light);
}

.service-desc {
    color: var(--clr-gray-text);
    transition: var(--transition-fast);
}

/* Subtle Image Zoom Effect */
.service-image {
    transition: transform 0.5s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

/* Wrap the inline background images tightly so they don't spill out when zoomed */
.service-card > div[style*="background-image"] {
    overflow: hidden;
    /* Ensure the zoom doesn't break border-radius */
    border-radius: 8px;
    /* We can let the background scale itself smoothly if it was set via CSS, but since it's an inline style, 
       we use transform on the div. However, if the div transforms, it physically grows.
       Let's use a cleaner approach: transform scale on the element itself, but we need its container to be overflow hidden.
       Since there is no container, the div will grow. If it grows, it might overlap padding. */
}

/* ==========================================================================
   Track Record Section
   ========================================================================== */
.track-record-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.track-card {
    background: var(--clr-light);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--clr-primary);
    transition: var(--transition-normal);
}

.track-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.track-industry {
    color: var(--clr-dark);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.track-industry::before {
    content: '🏆';
    font-size: 1.2rem;
}

.track-list {
    list-style: none;
}

.track-list li {
    margin-bottom: 1rem;
    color: var(--clr-gray-text);
    position: relative;
    padding-left: 1.5rem;
}

.track-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-primary);
    font-weight: bold;
}

.track-list li strong {
    color: var(--clr-dark);
    display: block;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   Brands Section (Marquee)
   ========================================================================== */
.brands-marquee {
    overflow: hidden;
    padding: 2rem 0;
    background: white;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02);
    border-radius: 12px;
}

.brands-track {
    display: flex;
    width: max-content;
    animation: marquee 80s linear infinite;
    align-items: center;
    will-change: transform;
}

.brand-item {
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-item img {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-normal);
    filter: grayscale(100%) opacity(0.7);
}

.brand-item img:hover {
    filter: grayscale(0%) opacity(1);
}

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

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--clr-dark-surface) 0%, var(--clr-dark) 100%);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-dark);
    color: #cccccc;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    max-width: 350px;
    margin-bottom: 1.5rem;
}

.brand-info p {
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--clr-primary);
    color: white;
    transform: translateY(-3px);
}

.footer h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.links ul li {
    margin-bottom: 0.8rem;
}

.links ul li a {
    transition: var(--transition-fast);
}

.links ul li a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    transition: var(--transition-fast);
}
.contact-details a:hover {
    color: var(--clr-primary);
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 6rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.8rem; /* Slightly larger for emphasis */
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px; /* Ensures text starts at the exact same vertical line */
}

.contact-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text p {
    color: var(--clr-gray-text);
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--clr-gray-text);
    font-size: 0.9rem;
}

.contact-form .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--clr-light);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: #1565c0;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .slide {
        background-attachment: scroll !important;
    }
    .brands-track {
        animation: marquee 10s linear infinite;
        will-change: transform;
    }
    .brand-item {
        padding: 0 1.5rem;
    }
    .brand-item img {
        max-height: 45px;
        max-width: 140px;
    }
    .logo {
        height: 80px;
    }
    .header.scrolled .logo {
        height: 65px;
    }
    .hero, .hero-slider {
        padding-top: 130px;
    }
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 30%;
        height: 100vh;
        flex-direction: column;
        padding: min(20vh, 6rem) 2rem;
        background: rgba(255, 255, 255, 0.98);
        /* backdrop-filter removed for iOS compatibility */
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        align-items: flex-start;
    }
    
    .nav-list[data-visible="true"] {
        transform: translateX(0);
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .footer-grid,
    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}


/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    padding-top: 180px;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    z-index: 0;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    border-radius: 50%;
    transition: background 0.3s;
}
.slider-btn:hover {
    background: rgba(0,0,0,0.8);
}
.prev-btn {
    left: 20px;
}
.next-btn {
    right: 20px;
}
.slider-indicators {
    position: absolute;
    bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}
.dot.active {
    background: var(--clr-primary);
}


/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    z-index: 1000;
}

.whatsapp-text {
    background-color: #25d366;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-icon svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-float:hover .whatsapp-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon svg {
        width: 30px;
        height: 30px;
    }
    
    /* On mobile, maybe keep the text hidden entirely or always visible. Let's hide it for space. */
    .whatsapp-text {
        display: none;
    }
}

.email-hover:hover { color: var(--clr-primary) !important; text-shadow: 0 0 8px rgba(240, 66, 26, 0.4); }

