@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    --brand-blue: #3b82f6;
    --brand-hover: #2563eb;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* === GLOBAL BACKGROUNDS === */
body {
    width: 100%;
    overflow-x: hidden;
    color: var(--text-dark);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* FIX: Reduced opacity from 0.92 to 0.85 so you can see the background image better */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 250, 252, 0.85);
    z-index: -1;
}

/* Page Backgrounds */
body.bg-home {
    background-image: url('https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?w=1920');
}

body.bg-services {
    background-image: url('https://images.unsplash.com/photo-1535198978297-c2084c71595e?w=1920');
}

body.bg-about {
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1920');
}

body.bg-contact {
    background-image: url('https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=1920');
}

/* Glass Effect */
.service-card,
.mv-card,
.glow-box,
.hero-form-wrapper,
.client-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

#nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active-nav {
    color: var(--brand-blue);
}

.nav-cta {
    padding: 10px 25px;
    background-color: var(--brand-blue);
    color: white !important;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: transparent;
}

.hero-container {
    width: 90%;
    max-width: 1300px;
    /* Increased width to fill screen better */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    z-index: 2;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

/* Hero Form */
.hero-form-wrapper {
    flex: 0 0 400px;
    /* Slightly wider form */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.active-glow {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5) !important;
    border-color: var(--brand-blue) !important;
    transform: translateY(-5px);
}

.hero-btn {
    width: 100%;
    padding: 15px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 1rem;
}

/* === LAYOUT UTILS === */
.section-padding {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: #1e293b;
    font-weight: 800;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* === SERVICE CARD (MODERN ICON STYLE) === */
.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--brand-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
    border-color: var(--brand-blue);
}

.service-content i {
    font-size: 2rem;
    color: var(--brand-blue);
    background: #eff6ff;
    width: 70px;
    height: 70px;
    line-height: 70px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.service-card:hover .service-content i {
    background: white;
    color: var(--brand-blue);
    transform: scale(1.1) rotate(360deg);
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
    transition: color 0.3s;
}

.service-content p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.card-details {
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    transition: border-color 0.3s;
}

.card-details ul {
    list-style: none;
    padding: 0;
}

.card-details li {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.card-details li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--brand-blue);
    transition: color 0.3s;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover li {
    color: white;
}

.service-card:hover .card-details {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.service-card:hover .card-details li::before {
    color: #fff;
}

/* === CLIENT MARQUEE & BOXES === */
.client-marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 20px 0;
    position: relative;
}

.client-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll-clients 35s linear infinite;
}

.client-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-clients {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Standard Box (Contact Page) */
.client-box {
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    width: 100%;
    /* Full width normally */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.client-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--brand-blue);
}

.client-box img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    transition: transform 0.3s ease;
}

.client-box:hover img {
    transform: scale(1.05);
}

/* Marquee Box (Fixed Width) */
.client-track .client-box {
    width: 220px;
    flex-shrink: 0;
}

/* === FOOTER & RECENT WORK === */
footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 5px solid var(--brand-blue);
    margin-top: auto;
}

.marquee-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.work-img {
    height: 180px;
    width: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* === SAFETY & EXTRAS === */
.safety-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.safety-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 25px 10px 10px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.safety-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #4ade80;
}

.safety-section-bg {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1920');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: center;
    border-top: 5px solid var(--brand-blue);
    border-bottom: 5px solid var(--brand-blue);
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mv-card {
    padding: 40px;
    border-radius: 10px;
    border-bottom: 5px solid var(--brand-blue);
    background: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.glowing-section {
    padding: 40px 0;
    text-align: center;
}

.glow-box {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 15px;
    border: 2px solid var(--brand-blue);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
    animation: pulse-glow 2s infinite alternate;
}

.glow-box img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
        transform: scale(1);
    }

    100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.8);
        transform: scale(1.02);
    }
}

/* === MOBILE === */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    #nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

    #nav-menu.active {
        left: 0;
    }

    .logo img {
        height: 40px;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin-top: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}