/* 
   -----------------------------------------
   1. GLOBAL SETTINGS & BASE STYLES
   -----------------------------------------
   These styles reset browser defaults and set the 
   foundation for the entire website.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Ensures padding doesn't affect element width */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #111111;
    line-height: 1.6;
}

/* Typography Defaults */
h1, h2, h3 {
    font-weight: 700;
    color: #000000;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

/* 
   -----------------------------------------
   2. LAYOUT COMPONENTS
   -----------------------------------------
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Standard Grid System (3 Columns) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* 
   -----------------------------------------
   3. NAVIGATION BAR
   -----------------------------------------
*/
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky; /* Keeps navbar at top during scroll */
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Logo Styling */
nav .logo {
    font-weight: 800;
    color: #000000;
    letter-spacing: 1px;
}

nav .logo img {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 50%;
    animation: floatPulse 4s ease-in-out 3; /* Flying/Floating effect - runs 3 times then stops to save CPU */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav .logo img:hover {
    animation-play-state: paused;
    transform: scale(1.15) rotate(-5deg);
    cursor: pointer;
}

/* Navigation Links */
nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: #ffffff;
    background-color: #000000;
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid #000000;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ffffff;
    background-color: #007bff;
    border-color: #007bff;
}

/* 
   -----------------------------------------
   4. HERO SECTION (Homepage Banner)
   -----------------------------------------
*/
.hero {
    height: 75vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background images container */
.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

/* Individual image boxes - Backgrounds moved to Media Queries for performance */
.hero-img-box {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    /* Removed will-change to save mobile memory/RAM */
}

/* Background image definitions with Performance Optimization */
@media (min-width: 769px) {
    .hero-img-1 { background-image: url('images/image5.jpeg'); }
    .hero-img-2 { background-image: url('images/image6.jpeg'); }
    .hero-img-3 { background-image: url('images/image3.jpeg'); }
}
@media (max-width: 768px) {
    .hero-img-2 { background-image: url('images/image6.jpeg'); }
}

/* Darkening overlay for each image box to ensure white text is readable */
.hero-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Professional darkening filter */
}

/* Content sits above the background images */
.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); 
    color: #ffffff; /* Premium Ivory White instead of aggressive red */
    margin-top: -20px;
    margin-bottom: 5rem;
    background-color: rgba(0, 0, 0, 0.7); /* Deep dark for readability */
    padding: 12px 24px;
    border-radius: 4px; /* Sharper, more modern corners */
    display: inline-block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #007bff; /* Premium accent bar */

    clip-path: inset(0 100% 0 0);
    opacity: 0;
    animation: typingSweep 6s steps(78, end) infinite; /* RESTORED LOOPING */
}

.hero p {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: rgb(245, 8, 8);
    animation: fadeInUp 1s ease 0.3s both;
}

/* 
   -----------------------------------------
   5. GENERIC COMPONENTS (Cards & Buttons)
   -----------------------------------------
*/
.intro-box {
    text-align: center;
    font-size: 1.25rem;
    margin: 0 auto 2rem auto;
    width: fit-content;
    font-weight: 500;
    background-color: #007bff;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cta-box {
    background-color: #007bff;
    color: white;
    padding: 1.5rem 1rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 112, 255, 0.2);
}
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #0056b3;
    color: white;
    transform: translateY(-2px);
}

/* Content Cards (Used in Vendors and Why Choose Us) */
.card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.15);
}

.card img {
    width: 100%;
    height: 460px; /* Zoomed height as requested */
    object-fit: cover;
    display: block;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 1.25rem;
    background-color: #007bff;
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    display: inline-block;
    font-size: 1rem;
}

/* 
   -----------------------------------------
   6. PAGE SPECIFIC SECTIONS
   -----------------------------------------
*/
section {
    padding: 2.5rem 0; /* Tightened from 5rem to reduce scrolling fatigue */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #007bff;
    margin: 1rem auto 0;
}

/* Internal Page Header (Banners) */
.page-header {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/image6.jpeg') center/cover no-repeat;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 3rem;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About Layout */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Contact Form Styling */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #dddddd;
    border-radius: 5px;
}

/* 
   -----------------------------------------
   7. FOOTER
   -----------------------------------------
*/
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 3rem 0 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.footer-bottom {
    font-size: 0.9rem;
    color: #bbbbbb;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
}

/* 
   -----------------------------------------
   8. KEYFRAME ANIMATIONS
   -----------------------------------------
*/

/* Typewriter Loop (6s total) */
@keyframes typingSweep {
    0% { clip-path: inset(0 100% 0 0); opacity: 0; }
    1% { opacity: 1; }
    33.33% { clip-path: inset(0 0 0 0); opacity: 1; } /* Types out for 2s */
    66.66% { clip-path: inset(0 0 0 0); opacity: 1; } /* Hangs for 2s */
    100% { clip-path: inset(0 100% 0 0); opacity: 0; } /* Disappears smoothly */
}

/* Floating Logo effect */
@keyframes floatPulse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 
   -----------------------------------------
   9. MOBILE RESPONSIVENESS (Media Queries)
   -----------------------------------------
*/
@media (max-width: 768px) {
    /* Mobile Menu Toggle button */
    .hamburger {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 32px;
        order: 2;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
    }

    header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background: transparent;
        box-shadow: none;
        z-index: 1001;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    nav .logo img {
        height: 60px;
        width: 60px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 6rem 2rem;
        z-index: 2000;
        text-align: center;
        gap: 2rem;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li a {
        font-size: 1.5rem;
        width: 100%;
        border: none;
        background: transparent;
        color: #000000;
        padding: 10px;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background-color: #007bff;
        color: #ffffff;
        border-radius: 50px;
    }

    /* Close button for mobile menu */
    .hamburger.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
        background-color: #000000;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
        background-color: #000000;
    }

    .hamburger span {
        transition: none; /* Disable transition for performance during menu open */
        background-color: #000000; /* Visible against white headers */
    }

    header {
        position: fixed;
        background: #ffffff;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }

    .hero-img-container {
        display: block; /* No flex on mobile */
    }

    .hero-img-box {
        height: 100%;
        display: none;
    }

    /* Only show the first (middle) image on mobile for clear branding */
    .hero-img-box {
        display: none;
    }
    .hero-img-2 {
        display: block;
    }

    .intro-box {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        margin-bottom: 1.5rem;
        width: 90%; /* Center it better on small screens */
    }

    .cta-box {
        margin: 1.5rem;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: none; /* Disabling heavy shadows on mobile for speed */
    }

    .cta-box h2 {
        font-size: 1.4rem !important;
    }

    .cta-box p {
        font-size: 1rem !important;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-img-container {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    .hero h1 {
        margin: 0 auto;
        font-size: clamp(1.4rem, 7vw, 1.8rem);
        line-height: 1.3;
        white-space: normal;
        padding: 15px;
        border-radius: 6px;
        
        clip-path: inset(0 100% 0 0);
        opacity: 0;
        animation: typingSweep 6s steps(78, end) infinite;
        width: 85%;
    }

    /* Stack vendor links on very small screens */
    .card-content a {
        display: block !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }

    /* internal banners mobile */
    .page-header {
        height: 250px;
        padding-top: 80px;
        margin-bottom: 2rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* 
   -----------------------------------------
   10. WHATSAPP FLOATING BUTTON
   -----------------------------------------
*/
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 80px; /* Moved up slightly to prevent overlap with footer/cta text */
    right: 15px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
}