/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:sans-serif;
}

body, html {
    background: #f7f7f7;
    overflow-x: hidden; /* Prevent horizontal scrolling globally */
    color: #1a1a1a;
    width: 100%;
}

/* ================= NAVBAR (DESKTOP) ================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: #000;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo span img {
    display: block;
    max-width: 150px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: #f4b400;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #f4b400;
}

.nav-right .btn {
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: 0.3s ease;
    background: #f4b400;
    color: #000;
}

.nav-right .btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

.menu-icon {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

/* ================= HERO SECTION ================= */
.hero {
    text-align: center;
    padding: 100px 10%;
    position: relative;
    overflow: hidden; /* Fixes overflow from glowing orb */
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero p {
    font-size: 18px;
    color: #555;
    max-width: 750px;
    margin: 0 auto 30px auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.9s;
}

.hero-buttons a {
    margin: 10px;
    display: inline-block;
}

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,0,0,0.08), transparent 70%);
    top: -100px;
    right: -100px;
    animation: floatGlow 6s ease-in-out infinite alternate;
    z-index: -1;
}

/* ================= ABOUT HERO ================= */
.about-hero {
    height: 70vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
    url('https://images.unsplash.com/photo-1497032205916-ac775f0649ae') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.about-hero h1 {
    font-size: 60px;
    color: #fffbfb;
    margin: 10px 0;
    animation: fadeUp 1s ease forwards;
}

.about-hero h1 span {
    color: #febf03;
}

.hero-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #febf03;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: 0.3s;
    font-weight: 600;
}

.hero-btn:hover {
    background: #fff;
}

/* ================= BRANDS SCROLL ================= */
.brands {
    overflow: hidden; /* Crucial for preventing horizontal scroll */
    padding: 60px 0;
    background: #ffffff;
    width: 100%;
}

.brands-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scrollBrands 25s linear infinite;
}

.brands img {
    height: 50px;
    opacity: 0.7;
    transition: 0.4s ease;
}

.brands img:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ================= ABOUT SECTION ================= */
.about-section {
    padding: 100px 8%;
    background: #ffffff;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    padding-left: 40px;
}

.subtitle {
    letter-spacing: 6px;
    font-size: 12px;
    color: #080808;
    font-weight: 600;
    text-transform: uppercase;
}

.about-content h1 {
    font-size: 48px;
    margin: 15px 0 25px;
    font-weight: 700;
    color: #111;
}

.about-content p {
    max-width: 480px;
    line-height: 1.8;
    color: #666;
    font-size: 15px;
    margin-bottom: 35px;
}

.about-images {
    display: flex;
    align-items: center;
    gap: 27px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.image-box img {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.image2 {
    margin-top: 90px;
}

/* ================= SERVICES SECTION ================= */
.services-section {
    background: #f8f9fc;
    text-align: center;
    padding: 80px 0;
}

.services-text h1, .services-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #111;
}

.services-text p, .services-header p {
    max-width: 650px;
    line-height: 1.8;
    color: #666;
    font-size: 15px;
    margin: 0 auto 40px auto;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 8% 80px 8%;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.icon {
    width: 60px;
    height: 60px;
    background: #febf03;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

.number {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 55px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.04);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #111827;
}

.service-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-card a {
    text-decoration: none;
    font-weight: 600;
    color: #febf03;
    transition: 0.3s;
}

.service-card a:hover {
    color: #000;
}

/* ================= BUTTONS ================= */
.btn, .cta-btn, .main-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #f4b400;
    color: #000;
    font-size: 15px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover, .cta-btn:hover, .main-btn:hover {
    background: #000;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ================= WHY CHOOSE US ================= */
.why-section {
    padding: 80px 0;
    display: flex;
    min-height: 100vh;
}

.why-container {
    display: flex;
    width: 85%;
    margin: 0 auto;
}

.why-left {
    width: 40%;
    background: #000;
    color: #fff;
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.why-left h1 {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.why-left p {
    font-size: 18px;
    color: #ccc;
}

.why-right {
    width: 60%;
    background: #ffffff;
    padding: 100px 80px;
    display: flex;
    align-items: center;
}

.timeline {
    position: relative;
    width: 100%;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #000;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 60px;
    position: relative;
}

.circle {
    min-width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    border: 6px solid #fff;
}

.circle.yellow { background: #febf03; color: #000; }

.content { margin-left: 40px; }

.content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #000;
}

.content h3 span { color: #febf03; }

.content p {
    color: #555;
    line-height: 1.6;
    max-width: 450px;
}

/* ================= CTA SECTION ================= */
.cta-section {
    width: 100%;
    padding: 100px 5%; /* Changed to % to prevent overflow */
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
}

.cta-container {
    max-width: 1200px;
    width: 100%;
    padding: 70px 50px;
    border-radius: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden; /* Fixes light effect overflow */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('b.jpg') center/cover no-repeat;
}

.cta-container::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    top: -80px;
    right: -80px;
    filter: blur(100px);
    animation: floatLight 6s infinite alternate ease-in-out;
}

.cta-title {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-text {
    font-size: 16px;
    color: #fffbfb;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ================= WORK / PORTFOLIO ================= */
.work-section {
    width: 85%;
    margin: 80px auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeUp 1s ease forwards;
}

.section-title h2 {
    font-size: 40px;
    color: #000;
    margin-bottom: 15px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-box {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.4s ease;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
}

.work-box:nth-child(1) { animation-delay: 0.2s; }
.work-box:nth-child(2) { animation-delay: 0.4s; }

.work-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.work-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-box:hover img { transform: scale(1.08); }

.work-content { padding: 25px; }

.work-content h3 {
    margin-bottom: 10px;
    font-size: 22px;
    color: #000;
    position: relative;
    display: inline-block;
}

.work-content h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 3px;
    background: #febf03;
    transition: width 0.4s ease;
}

.work-box:hover h3::after { width: 100%; }
.work-box:hover h3 { color: #febf03; }

/* ================= CONTACT SECTION ================= */
.contact-section {
    background: #f8f8f8;
    padding: 120px 8%;
    position: relative;
    overflow: hidden; /* Fixes animation slide overflow */
    animation: sectionFade 1.2s ease forwards;
}

.contact-section::before {
    content: "";
    position: absolute;
    right: 0;
    top: 60px;
    width: 300px;
    height: 500px;
    background: #febf03;
    border-radius: 20px 0 0 20px;
    animation: glowMove 6s ease-in-out infinite alternate;
    z-index: 0;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-form {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.08);
    width: 55%;
    animation: slideLeft 1.2s ease forwards;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 12px 5px;
    margin-bottom: 25px;
    font-size: 14px;
    outline: none;
    background: transparent;
    transition: 0.4s ease;
}

.contact-form textarea {
    resize: none;
    height: 90px;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-bottom: 2px solid #febf03;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
}

.contact-form button:hover {
    background: #febf03;
    color: #000;
}

.contact-info {
    background: #000;
    color: #fff;
    padding: 50px;
    border-radius: 25px;
    width: 35%;
    position: relative;
    animation: slideRight 1.2s ease forwards;
}

/* ================= FOOTER ================= */
.footer {
    background: #0f0f0f;
    color: #ffffff;
    padding: 80px 10%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.footer-brand p, .footer-col ul li {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-col h4 {
    color: #febf03;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

.footer-col ul li a:hover { color: #ffffff; }

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s ease;
}

.social-icons a:hover {
    background: #febf03;
    color: #000;
}

/* ================= KEYFRAMES ================= */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scrollBrands {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes sectionFade {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================== */
/* UNIFIED MOBILE RESPONSIVENESS & OVERFLOW FIXES                 */
/* ============================================================== */

@media (max-width: 992px) {
    /* Navbar Hamburger Logic */
    .menu-icon { display: block; }
    .nav-right { display: none; } /* Hide extra button to save space */
   
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden; /* hides links when menu is closed */
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
        border-top: 1px solid #222;
    }

    .nav-links.active {
        max-height: 400px; /* Opens the menu */
    }

    /* Grid layout adjustments */
    .services-container { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: repeat(2, 1fr); gap: 40px; }
   
    /* Section Stacking */
    .why-container, .about-container, .contact-container {
        flex-direction: column;
    }
   
    .why-left, .why-right, .contact-form, .contact-info, .about-images {
        width: 100%;
        padding: 40px 20px;
    }

    .about-content { padding-left: 0; text-align: center; }
    .image2 { margin-top: 0; }
   
    /* Disable decorative absolute elements that cause overflow on mobile */
    .contact-section::before, .hero::before { display: none; }
}

@media (max-width: 768px) {
    /* Padding & Typography scaling */
    .hero, .about-section, .services-section, .contact-section, .footer {
        padding: 60px 5%;
    }
   
    .hero h1, .about-hero h1 { font-size: 36px; }
    .services-text h1, .about-content h1, .why-left h1 { font-size: 32px; }
   
    .services-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
   
    /* Ensure no fixed widths break the screen */
    .mv-card {
        width: 100%;
        max-width: 400px;
    }
   
    /* Stop specific mobile animations to prevent side-scrolling jitter */
    .contact-info, .contact-form { animation: none; transform: none; opacity: 1; }
}