/* ==========================================================================
   CSS Variables & Global Resets
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-blue: #5170ff;    /* Sapphire Blue */
    --secondary-blue: #2B6CB0;  /* Lighter Blue Accent */
    --accent-blue: #3182CE;     /* Bright Blue */
    --dark-grey: #2D3748;       /* Text Color */
    --mid-grey: #718096;        /* Secondary Text */
    --light-grey: #F7FAFC;      /* Background Grey */
    --white: #FFFFFF;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-grey);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

p {
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-grey);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Buttons & Utilities
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-grey);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-dark {
    background-color: #000000;
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 20px;
}

.btn-primary-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.title-underline.center {
    margin: 0 0 1.5rem 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--mid-grey);
    max-width: 800px;
    margin: 0 0 3rem 0;
    text-align: left;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 115px;
    width: auto;
    mix-blend-mode: multiply; /* This removes the white background from the logo */
    transition: var(--transition);
}

.navbar.scrolled .logo-img {
    height: 75px;
}

.logo-title {
    color: #5170ff; /* Sapphire Blue */
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.logo-title span {
    font-size: 1rem;
    color: #000000;
    font-weight: 600;
    letter-spacing: 3px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-grey);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-link:not(.btn-primary-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: var(--transition);
}

.nav-link:not(.btn-primary-outline):hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 54, 93, 0.7), rgba(45, 55, 72, 0.8));
    z-index: -1;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
}

.hero h1 {
    font-size: clamp(1.8rem, 5vw, 4rem);
    white-space: nowrap; /* Forces one line on larger screens */
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero h2 {
    font-size: 1.8rem;
    color: #E2E8F0;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #E2E8F0;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 2.5rem;
}

.hero-quote {
    font-style: italic;
    font-size: 1.4rem;
    border-left: 4px solid var(--mid-grey);
    padding-left: 15px;
    margin: 2rem auto;
    display: inline-block;
    text-align: left;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 25px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.certifications {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    background: var(--light-grey);
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid var(--accent-blue);
    font-weight: 500;
}

.cert-icon {
    color: var(--accent-blue);
    margin-right: 10px;
    font-weight: bold;
}

.service-list-about {
    margin-top: 10px;
    padding-left: 20px;
    list-style-type: disc;
}
.service-list-about li {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-blue);
    display: list-item;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--accent-blue);
    z-index: -1;
    border-radius: 8px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 20px;
    text-align: center;
    border-bottom: 4px solid var(--accent-blue);
}

.card-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.service-list {
    padding: 20px;
    flex-grow: 1;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--mid-grey);
}

.service-list li::before {
    content: '■';
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}
.project-image {
    height: 250px;
    background: var(--light-grey);
    position: relative;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-blue);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2rem;
}
.project-content {
    padding: 25px;
}
.project-date {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.experience-list {
    margin-top: 20px;
}
.experience-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    color: var(--dark-grey);
}
.experience-list li::before {
    content: '✓';
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.experience-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.stat-box {
    background: var(--primary-blue);
    color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent-blue);
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--white);
}
.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Equipment Section
   ========================================================================== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.equip-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--light-grey);
    border-radius: 8px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.equip-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent-blue);
    box-shadow: var(--shadow-lg);
    background: var(--white);
}
.equip-image {
    height: 180px;
    width: 100%;
    object-fit: contain;
    margin: 0 auto 20px auto;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--light-grey);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}
.contact-info {
    background: var(--primary-blue);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}
.contact-info h3 {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.5rem;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid transparent;
}
.contact-card.highlight {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: var(--white);
    box-shadow: var(--shadow-sm);
}
.contact-card h4 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-card p, .contact-card a {
    color: #E2E8F0;
    font-size: 1rem;
    margin-bottom: 5px;
}
.contact-card a {
    font-weight: bold;
}
.contact-card a:hover {
    color: var(--white);
    text-decoration: underline;
}
.info-icon {
    font-size: 1.5rem;
}
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.form-group {
    margin-bottom: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #CBD5E0;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}
.contact-form button {
    width: 100%;
    border: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #111b2b;
    color: var(--mid-grey);
    padding: 60px 0 20px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: var(--mid-grey);
    transition: var(--transition);
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease-out;
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease-out;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid, .case-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image, .case-image {
        order: -1;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-title span {
        font-size: 0.8rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-link {
        display: block;
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2rem;
        white-space: normal; /* Allow wrapping on small mobile screens */
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-quote {
        font-size: 1.1rem;
        padding: 10px 15px;
    }
    
    .section-padding {
        padding: 50px 0;
    }
}
