/* ==========================================================================
   1. Design System & Global Styles
   ========================================================================== */

:root {
    /* Color Palette */
    --color-primary: #0a192f;       /* Dark Navy */
    --color-secondary: #00b4d8;     /* Energy Blue */
    --color-secondary-hover: #0077b6;
    --color-accent: #ffb703;        /* Warning/Detail Amber */
    --color-text-dark: #2b2d42;     /* Charcoal Body Text */
    --color-text-light: #8d99ae;    /* Muted Slate Text */
    --color-bg-light: #f8f9fa;      /* Premium Off-White */
    --color-white: #ffffff;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Layout Framework */
    --container-max-width: 1200px;
    --section-padding-desktop: 80px 0;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --box-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --box-shadow-md: 0 10px 30px rgba(10, 25, 47, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* Typography Resets */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ==========================================================================
   2. Reusable Layout Utilities & Grid Systems
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding-desktop);
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-primary);
}

.text-white {
    color: var(--color-white) !important;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Flex/Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Section Headers */
.section-header {
    margin-bottom: 50px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.title-divider {
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px 30px;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   3. Header Navigation & Top Bar
   ========================================================================== */

.top-bar {
    background-color: #050c18;
    color: var(--color-text-light);
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info .info-item {
    margin-right: 25px;
}

.top-bar-info .info-item i {
    color: var(--color-secondary);
    margin-right: 8px;
}

.top-bar-socials a {
    margin-left: 15px;
    color: var(--color-text-light);
}

.top-bar-socials a:hover {
    color: var(--color-secondary);
}

.main-header {
    background-color: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow-sm);
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .accent-text {
    color: var(--color-secondary);
}
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo img {
    width: 280px;
    height: 60px;
    max-width: none;
    object-fit: contain;
    display: block;
}
.nav-menu ul {
    display: flex;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 10px 15px;
    color: var(--color-primary);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 15px;
    background-color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: calc(100% - 30px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   4. Hero & Main Interface Components
   ========================================================================== */

.hero-section {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider, .hero-slide {
    width: 100%;
    height: 100%;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 650px;
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 48px;
    color: var(--color-white);
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 35px;
    color: #cbd5e1;
}

.hero-actions .btn {
    margin-right: 15px;
}

/* Feature & Metrics Layouts */
.feature-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-md);
    transition: var(--transition-smooth);
    border-top: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--color-secondary);
}

.feature-icon {
    font-size: 40px;
    color: var(--color-secondary);
    margin-bottom: 25px;
}

.feature-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.feature-text {
    color: var(--color-text-light);
    font-size: 15px;
}

/* Services Portfolio Architecture */
.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-sm);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-md);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-info {
    padding: 25px;
}

.service-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.service-excerpt {
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition-smooth);
}

.service-link:hover i {
    transform: translateX(5px);
}

.services-row-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: calc((100% - 60px) * 2 / 3 + 30px);
    margin: 30px auto 0;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.cta-section {
    background-image: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.9)), url('https://images.unsplash.com/photo-1393889791428-f3b6c20f957b?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

.cta-title {
    color: var(--color-white);
    font-size: 32px;
    max-width: 700px;
    margin: 0 auto 20px;
}

.cta-description {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 35px;
}

/* ==========================================================================
   5. Interactive Form Elements & Maps
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 13px;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(141, 153, 174, 0.3);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-dark);
    background-color: var(--color-white);
    transition: var(--transition-smooth);
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Google Maps Contextual Block */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(10, 25, 47, 0.08);
    transition: box-shadow 0.3s ease;
}

.map-wrapper:hover {
    box-shadow: var(--box-shadow-md);
}

.embedded-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==========================================================================
   6. Modular Footer Layout & Credits
   ========================================================================== */

.main-footer {
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 40px;
}

.footer-logo {
    font-size: 24px;
    color: var(--color-white);
    margin-bottom: 20px;
}

.footer-logo .accent-text {
    color: var(--color-secondary);
}

.footer-desc {
    color: var(--color-text-light);
    font-size: 14px;
    margin-bottom: 25px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    margin-right: 10px;
    color: var(--color-white);
}

.footer-socials a:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.footer-title {
    color: var(--color-white);
    font-size: 16px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.contact-col .contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--color-text-light);
}

.contact-col .contact-detail i {
    color: var(--color-secondary);
    margin-right: 12px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #050c18;
    padding: 20px 0;
    font-size: 13px;
    color: var(--color-text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.credit-text {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin: 0;
}

.credit-link {
    color: var(--color-secondary, #00b4d8);
    text-decoration: none;
    position: relative;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
}

.credit-icon {
    font-size: 9px;
    margin-left: 3px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.credit-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.credit-link:hover {
    color: #ffffff;
}

.credit-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.credit-link:hover .credit-icon {
    transform: translate(1px, -1px);
    opacity: 1;
}

/* ==========================================================================
   7. Media Queries & Desktop Responsive Framework
   ========================================================================== */

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .logo img {
        width: 200px;
        height: auto;
        max-width: 100%;
    }
}
@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .grid-3, .grid-4, .services-row-bottom {
        grid-template-columns: 1fr;
        width: 100%;
    }
    
    /* FIXED: Keeps your preferred 2-column layout but adds protective side padding */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 24px !important; /* Creates a clean 24px buffer from the screen edges */
        gap: 40px 20px !important;  /* Adds vertical breathing room between rows */
    }
    
    .map-wrapper {
        height: 320px;
    }

    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 0 24px; /* Protects the bottom copyright row from bleeding too */
    }
}