@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --color-navy: #0d1b2a;
    --color-navy-dark: #01080f;
    --color-accent: #e63946; /* Urgency Red from logo */
    --color-accent-gradient: linear-gradient(135deg, #e63946 0%, #b30000 100%);
    --color-secondary: #1b263b;
    --color-white: #ffffff;
    --color-grey: #f8f9fa;
    --shadow-soft: 0 15px 45px rgba(13, 27, 42, 0.15);
    --shadow-accent: 0 10px 25px rgba(230, 57, 70, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Outfit', sans-serif;
    color: var(--color-navy);
    background: var(--color-grey);
    line-height: 1.6;
    overflow-x: hidden;
    /* Critical for mobile menu */
    max-width: 100%;
    position: relative;
    padding-bottom: 80px;
    /* Mobile sticky bar space */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-accent {
    background: var(--color-accent-gradient);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(230, 57, 70, 0.4);
}

.btn-green {
    background: #25D366;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-green:hover {
    transform: translateY(-3px);
}

/* --- Header --- */
.top-bar {
    background: var(--color-navy);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 85px;
    /* Increased from 70px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-name {
    font-size: 2.2rem;
    /* Much bigger */
    font-weight: 800;
    color: var(--color-navy);
    letter-spacing: -1px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.1);
}

.desktop-nav a {
    margin-left: 30px;
    font-weight: 600;
    color: var(--color-navy);
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.96) 0%, rgba(27, 38, 59, 0.8) 100%), url('assets/images/hero_technical.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 160px 0 120px 0;
    position: relative;
    border-bottom: 5px solid var(--color-accent);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
}
.hero h1 span {
    color: var(--color-accent);
    display: block;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

/* --- Services --- */
.services {
    padding: 80px 0;
    text-align: center;
}

.services h2,
.about h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-navy);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-gold-gradient);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* --- About --- */
.about {
    background: #ffffff;
    color: var(--color-navy);
    padding: 100px 0;
    border-top: 1px solid #f0f0f0;
}

.about h2 {
    color: var(--color-navy);
    margin-bottom: 25px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

/* --- Footer --- */
footer {
    background: #020b0f;
    color: #888;
    text-align: center;
    padding: 50px 0 100px 0;
    /* Extra padding for sticky bar */
    font-size: 0.9rem;
}

/* --- Mobile Sticky Actions --- */
@media (max-width: 768px) {
    .sticky-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        z-index: 9999;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }

    .sticky-btn {
        flex: 1;
        padding: 18px;
        text-align: center;
        color: white;
        font-weight: 800;
        text-transform: uppercase;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .sticky-btn.call {
        background: var(--color-accent-gradient);
        color: white;
    }

    .sticky-btn.whatsapp {
        background: #25D366;
    }
}


@media (max-width: 768px) {
    .hero {
        padding: 80px 0 120px 0;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .desktop-nav {
        display: none;
    }


    .brand-name {
        font-size: 1.5rem;
        /* Smaller on mobile */
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: block;
    }

    .services .grid {
        grid-template-columns: 1fr;
    }

    .jobs-grid,
    .reviews-grid {
        /* Added .jobs-grid here just in case, though it is used in gallery */
        grid-template-columns: 1fr;
    }
}

/* Pagination Styles */
.job-card {
    display: none;
    /* Hidden by default */
}

.job-card.active-page {
    display: block;
    /* Shown if active */
}

.pagination-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: var(--color-navy);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Gallery Grid Layout --- */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.jobs-grid img {
    aspect-ratio: 3/4;
    object-fit: cover;
    width: 100%;
}


/* --- Mobile Navigation (Global Definition) --- */
.mobile-toggle {
    display: none;
    /* Hidden on Desktop */
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-navy);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, visibility 0.3s;
    visibility: hidden;
    /* Prevent horizontal scroll */
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    text-transform: uppercase;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    cursor: pointer;
    color: var(--color-navy);
}

@media (max-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Force 2 columns on mobile */
        gap: 15px;
    }

    .mobile-toggle {
        display: block;
        /* Show Hamburger on Mobile */
    }
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-navy);
    color: white;
    padding: 15px 0;
    z-index: 10001; /* Higher than sticky actions */
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner a {
    color: var(--color-accent);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 60px; /* Above the sticky mobile actions */
        padding: 10px 0;
    }
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
