/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* Premium Palette */
    --color-primary: #0a192f;
    /* Deep Navy (Premium Base) */
    --color-secondary: #0424D9;
    /* Electric Blue (New Secondary) */
    --color-accent: #ffc107;
    /* Gold (Accent/Action) */
    --color-accent-hover: #e0a800;

    --color-text-light: #e6f1ff;
    --color-text-dim: #8892b0;
    --color-white: #ffffff;
    --color-bg-dark: #020c1b;
    /* Darkest Background */

    /* Gradients */
    --gradient-premium: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(2, 12, 27, 0.9), rgba(4, 36, 217, 0.3));
    --gradient-card: linear-gradient(180deg, rgba(23, 42, 69, 0.5) 0%, rgba(4, 36, 217, 0.1) 100%);

    /* Spacing */
    --section-padding: 100px 0;

    /* Transitions */
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
@media (min-width: 769px) {

    /* Only apply transparent header logic on desktop to avoid mobile menu overlap issues */
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background: transparent;
        /* Transparent by default */
        backdrop-filter: none;
        z-index: 1000;
        padding: 20px 0;
        /* More padding initially for prominence */
        box-shadow: none;
        /* No shadow initially */
        border-bottom: none;
        /* No border initially */
        transition: var(--transition);
    }

    header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        /* White background */
        backdrop-filter: blur(15px);
        padding: 10px 0;
        /* Shrink on scroll */
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        /* Lighter shadow for white bg */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    /* Change menu text color on scroll */
    header.scrolled .nav-links a {
        color: var(--color-primary);
    }

    /* Maintain accent color for active/hover states */
    header.scrolled .nav-links a:hover,
    header.scrolled .nav-links a.active {
        color: var(--color-accent);
    }

    /* Ensure CTA button text remains visible/appropriate */
    header.scrolled .cta-btn {
        color: var(--color-accent);
        border-color: var(--color-accent);
    }
}

@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        z-index: 1000;
        padding: 15px 0;
        box-shadow: none;
        border-bottom: none;
        transition: var(--transition);
    }

    header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        padding: 10px 0;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    header.scrolled .hamburger {
        color: var(--color-primary);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 1px;
    display: flex;
    /* alignment */
    align-items: center;
}

.logo-img {
    height: 85px;
    width: auto;
    border-radius: 5px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.3));
}

.logo span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--color-text-light);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.cta-btn:hover {
    background: rgba(255, 193, 7, 0.1);
    transform: translateY(-2px);
}

.cta-btn.primary {
    background: var(--color-accent);
    color: var(--color-primary);
}

.cta-btn.primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    height: 110vh;
    display: flex;
    align-items: flex-start;
    padding-top: 30vh;
    position: relative;
    background: var(--gradient-overlay), url('../images/warm-crane.jpeg');
    /* Placeholder crane image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    color: var(--color-accent);
    font-family: 'Source Code Pro', monospace;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--color-text-light);
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 700px;
    font-weight: 400;
    line-height: 1.7;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Nav */
.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
        color: var(--color-white);
        font-size: 1.5rem;
    }
}

/* Services Section */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(23, 42, 69, 0.5);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, rgba(23, 42, 69, 0.9), rgba(4, 36, 217, 0.2));
    border-color: var(--color-accent);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--color-text-dim);
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.service-card h3,
.service-card i {
    position: relative;
    z-index: 1;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 0;
    filter: grayscale(100%) brightness(0.7);
    /* Subtle look */
}

.service-card:hover .service-bg {
    opacity: 0.2;
    /* Visible but allows text to be legible */
    transform: scale(1.1);
}

/* Featured Service (NVQ) */
.nvq-section {
    background: var(--gradient-premium);
    padding: 80px 0;
    margin-top: 50px;
}

.nvq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nvq-list li {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dim);
    display: flex;
    align-items: center;
}

.nvq-list li i {
    color: var(--color-accent);
    margin-right: 15px;
}


/* Clients Section */
.clients-section {
    text-align: center;
    background: var(--color-bg-dark);
    padding: 80px 0;
    overflow: hidden;
}

.clients-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 30px 0;
}

.clients-track {
    display: flex;
    width: max-content;
    animation: scroll 60s linear infinite;
    gap: 8vw;
    /* Adjusted gap to bring closer together */
}

.clients-track:hover {
    animation-play-state: paused;
}

.client-item {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-dim);
    white-space: nowrap;
    cursor: default;
    transition: var(--transition);
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.client-item:hover {
    color: var(--color-accent);
    /* Gold on hover */
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 4vw));
    }

}


/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(to bottom, var(--color-bg-dark), #0a192f);
    padding: 80px 0;
}

.testimonial-carousel {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
    height: 400px;
    /* Fixed height for consistency */
}

.carousel-track-container {
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    /* Show 2 items */
    padding: 0 10px;
    /* Gap between cards */
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    /* Reduced padding for header fit */
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    height: 100%;
    /* Fill slide height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.testimonial-card i {
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.testimonial-author {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--color-white);
    font-size: 1.2rem;
}

.testimonial-role {
    color: var(--color-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: var(--color-accent);
    z-index: 10;
    padding: 10px;
    transition: var(--transition);
}

.carousel-btn:hover {
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -60px;
}

.next-btn {
    right: -60px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    gap: 15px;
}

.carousel-indicator {
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.current-slide {
    background: var(--color-accent);
    transform: scale(1.2);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .testimonial-carousel {
        height: 500px;
        margin: 40px 20px;
    }

    .testimonial-slide {
        width: 100%;
        /* Show 1 item on mobile */
        padding: 0;
    }

    .prev-btn,
    .next-btn {
        display: none;
        /* Hide arrows on mobile, use dots/swipe */
    }
}

/* Footer */
footer {
    background: #020c1b;
    border-top: 1px solid rgba(4, 36, 217, 0.3);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-col .logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
    color: var(--color-text-dim);
    margin-bottom: 10px;
    display: block;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--color-text-dim);
    font-size: 0.9rem;
}

/* Page Headers & Sub-page Styles */
.page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 75vh;
    display: flex;
    align-items: flex-start;
    padding-top: 25vh;
    text-align: center;
    position: relative;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--color-white);
}

.page-header p {
    color: var(--color-accent);
    font-family: 'Source Code Pro', monospace;
    margin-top: 10px;
    font-size: 1.2rem;
}

.page-content {
    padding: 80px 0;
    background: var(--color-bg-dark);
}

.text-block {
    margin-bottom: 40px;
}

.text-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 20px;
    border-left: 3px solid var(--color-accent);
    padding-left: 15px;
}

.text-block p {
    color: var(--color-text-dim);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 60px 0;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-accent);
    font-family: 'Playfair Display', serif;
}

.stat-item p {
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .nvq-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Projects Section */
.project-card {
    background: rgba(23, 42, 69, 0.5);
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(23, 42, 69, 0.8);
    border-color: var(--color-accent);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-content {
    padding: 30px;
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.4rem;
    color: var(--color-text-light);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.project-card p {
    color: var(--color-text-dim);
    font-size: 1rem;
    line-height: 1.6;
}

/* Status Badge & New Layout */
.project-card {
    position: relative;
}

.project-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-status-badge {
    opacity: 1;
    transform: translateY(0);
}

.page-header.no-bg {
    background-image: none !important;
    background: var(--gradient-premium);
    height: 60vh;
    /* Increased height */
    padding-top: 20vh;
    /* Add padding to clear fixed header */
    align-items: flex-start;
}

.detail-project-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Premium Video Container */
.video-container {
    margin: 3rem 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}