/* =========================================
   1. CSS VARIABLES & RESET
   ========================================= */
:root {
    --primary: #FF5500;
    --primary-light: #FF8844;
    --primary-dark: #CC4400;
    --secondary: #1a1a1a;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #FFF8F5;
    --white: #ffffff;
    --green: #00C851;
    
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 16px;
    
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(255, 85, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.5rem; color: var(--text-light); font-size: 1.125rem; }

a { text-decoration: none; color: inherit; transition: 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-padding { padding: 100px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-green { color: var(--green); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #FF9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-sm { padding: 12px 25px; font-size: 0.95rem; }
.btn-xs { padding: 8px 18px; font-size: 0.85rem; }

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 85, 0, 0.4);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    
    /* Center header content vertically */
    display: flex;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically centers Logo, Menu, and Buttons */
    height: 100%;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary);
    display: flex;
    align-items: center; /* Vertically centers icon and text */
    gap: 10px;
    height: 100%;
}

.logo i { color: var(--primary); }

/* Desktop Menu */
.desktop-menu {
    display: flex;
    gap: 40px;
    align-items: center; /* Vertically centers links and button */
}

.desktop-menu a:not(.btn) {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.desktop-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.desktop-menu a:not(.btn):hover::after { width: 100%; }

/* Mobile Actions (CTA + Hamburger) */
.mobile-actions {
    display: none; /* Hidden on desktop */
    align-items: center; /* Vertically centers elements */
    gap: 15px;
    height: 100%;
}

.mobile-cta {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1002;
    background: var(--bg-light);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--secondary);
    position: absolute;
    transition: all 0.3s ease-in-out;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }

/* Hamburger Open State */
.hamburger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.hamburger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    transform: translateY(-20px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

/* Close Button Inside Menu */
.menu-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--bg-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.menu-close-btn:hover {
    background: var(--primary);
    color: white;
}

.mobile-menu-overlay ul { text-align: center; }
.mobile-menu-overlay li { margin: 25px 0; overflow: hidden; }

.mobile-menu-overlay a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    transform: translateY(50px);
    transition: transform 0.5s ease;
}

.mobile-menu-overlay.active a { transform: translateY(0); }
.mobile-menu-overlay.active li:nth-child(1) a { transition-delay: 0.1s; }
.mobile-menu-overlay.active li:nth-child(2) a { transition-delay: 0.2s; }
.mobile-menu-overlay.active li:nth-child(3) a { transition-delay: 0.3s; }
.mobile-menu-overlay.active li:nth-child(4) a { transition-delay: 0.4s; }

/* =========================================
   3. SECTIONS (Hero, Stats, Services, etc.)
   ========================================= */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at top right, #fff0e6 0%, #ffffff 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 500px; height: 500px;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badges {
    display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap;
}

.badge {
    background: rgba(255, 85, 0, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}

.hero-img-wrapper { position: relative; }

.hero-img {
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 5px solid white;
    transition: transform 0.3s ease;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 6s ease-in-out infinite;
}

.floating-card i { font-size: 1.5rem; }
.floating-card div { display: flex; flex-direction: column; line-height: 1.2; }
.floating-card strong { font-size: 0.9rem; }
.floating-card span { font-size: 0.8rem; color: var(--text-light); }

.fc-1 { bottom: 40px; left: -30px; }
.fc-2 { top: 40px; right: -20px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Stats */
.stats-bar {
    background: var(--secondary);
    color: white;
    border-radius: 20px;
    padding: 60px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center;
}

.stat-number { font-size: 3.5rem; font-weight: 700; color: var(--primary); display: block; }
.stat-label { font-size: 1.1rem; color: #ccc; }

/* Services */
.services-bg { background-color: var(--bg-light); }
.sub-heading { color: var(--primary); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9rem; }

.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px;
}

.service-card {
    background: white; padding: 50px 30px; border-radius: 24px; transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03); position: relative; overflow: hidden;
    
    /* Centering Content (Icon & Text) */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontal items */
    text-align: center;  /* Centers text */
}

.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }

.icon-wrapper {
    width: 80px; height: 80px; background: #fff0e6; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; font-size: 2rem;
    color: var(--primary); margin-bottom: 30px; transition: 0.3s;
}

.service-card:hover .icon-wrapper { background: var(--primary); color: white; transform: rotate(5deg); }
.link-primary { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* Testimonials */
.testimonial-wrapper {
    background: white; border-radius: 30px; padding: 60px; box-shadow: var(--shadow-md);
    text-align: center; max-width: 900px; margin: 0 auto; border: 2px solid #fff0e6;
}
.stars { color: #FFD700; font-size: 1.2rem; margin-bottom: 20px; }
.quote-text { font-size: 1.5rem; font-family: 'Playfair Display', serif; font-style: italic; color: var(--secondary); margin-bottom: 30px; }
.client-info img { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 15px; border: 3px solid var(--primary); object-fit: cover; }

/* CTA Section */
.cta-section {
    background: var(--primary); color: white; text-align: center; border-radius: 30px;
    padding: 80px 40px; position: relative; overflow: hidden; margin: 50px auto;
}
.cta-bg-icon {
    position: absolute; font-size: 20rem; color: rgba(255,255,255,0.05);
    top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-content h2 { color: white; }
.cta-content p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin: 20px 0 40px; }

/* =========================================
   4. IMPROVED FOOTER
   ========================================= */
footer {
    background: #111;
    color: #bbb;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-top { padding-bottom: 50px; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 60px;
}

.footer-logo { color: white; font-size: 2rem; margin-bottom: 20px; }
.footer-brand p { max-width: 350px; margin-bottom: 25px; line-height: 1.8; opacity: 0.8; }

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 40px; height: 40px; background: #222; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; transition: 0.3s;
}
.social-links a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

.contact-list li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}
.contact-list i { color: var(--primary); width: 20px; }

/* Newsletter Box */
.newsletter {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
    border: 1px solid #333;
}

.newsletter h5 { color: white; margin-bottom: 15px; font-size: 1rem; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
    flex: 1; padding: 10px; border-radius: 6px; border: none; outline: none;
    font-family: inherit; font-size: 0.9rem;
}
.newsletter-form button {
    background: var(--primary); color: white; border: none; padding: 0 15px;
    border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.newsletter-form button:hover { background: var(--primary-dark); }

.footer-bottom {
    border-top: 1px solid #222;
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* =========================================
   5. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-badges { justify-content: center; }
    .hero-img-wrapper { margin-top: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
    .stats-grid { grid-template-columns: 1fr; gap: 40px; }
    .desktop-menu { display: none; }
    
    /* Show Mobile Actions (CTA + Burger) */
    .mobile-actions { display: flex; }
    .hamburger { display: flex; }

    /* --- MOBILE FOOTER CENTER ALIGNMENT --- */
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 50px; 
        text-align: center; /* Center all text */
    }

    /* Brand Section Centering */
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Center Social Icons */
    .social-links { 
        justify-content: center; 
        margin-top: 15px;
    }

    /* Center Lists */
    .footer-links { padding: 0; }
    
    /* Center Contact Info */
    .contact-list li { 
        justify-content: center; 
    }

    /* Center Newsletter Box */
    .newsletter { 
        max-width: 400px; 
        margin: 25px auto 0 auto; 
    }

    .text-primary, .logo {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section-padding { padding: 60px 0; }
    
    .hero-btns { display: flex; flex-direction: column; gap: 15px; }
    .btn { width: 100%; margin: 0; }
    
    /* Ensure Header CTA is compact on very small screens */
    .mobile-cta { padding: 8px 12px; font-size: 0.8rem; }
    
    .hero { padding-top: 110px; }
    .fc-1 { left: -10px; bottom: 20px; }
    .fc-2 { right: -10px; top: 20px; }
    .text-primary, .logo {
        font-size: 15px;
    }
}
/* =========================================
   6. CUSTOM SCROLLBAR & PRELOADER
   ========================================= */

/* Custom Scrollbar (Webkit browsers like Chrome/Safari) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary); /* Uses your orange color */
    border-radius: 6px;
    border: 3px solid #f1f1f1; /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Firefox Scrollbar Support */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

/* Preloader Overlay */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999; /* Higher than everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* The Spinner Animation */
.loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 85, 0, 0.2); /* Light Orange */
    border-top: 4px solid var(--primary);   /* Dark Orange */
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide class for JS */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}