/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.8;
    /* Increased for readability */
    color: var(--color-text);
    background-color: var(--color-white);
    font-size: 16px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-dark);
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
    /* More breathing room */
}

.section-padding-sm {
    padding: 50px 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Enhanced Contrast Helper */
.text-contrast {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.text-primary {
    color: var(--color-primary);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
}

.text-white {
    color: var(--color-white);
}

/* Global Contrast Enforcer for Dark Backgrounds */
.bg-primary,
.bg-dark,
.banner-overlay,
.footer {
    color: var(--color-white);
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary p,
.bg-primary li,
.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark p,
.bg-dark li,
.banner-overlay h1,
.banner-overlay h2,
.banner-overlay p {
    color: var(--color-white) !important;
}

/* CTA Specific Fix if needed (e.g. if it uses unique class) */
.cta-section h2,
.cta-section p {
    color: var(--color-white) !important;
}

/* Fonts & Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    /* Light weight as seen on site */
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 50px;
    /* Increased spacing */
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Formal touch */
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    /* Slightly rounded */
    font-weight: 800;
    /* Extra Bold for visibility */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Increased readability */
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Slight shadow to pop text */
}

.btn:hover {
    background: #003366;
    /* Darker shade manually for now */
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #002a5c;
    /* Darker Blue */
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-dark);
}

.btn-secondary:hover {
    background: #e0a800;
    color: var(--color-white);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
#main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    /* Subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 85px;
    /* Significantly larger */
    width: auto;
    transition: height 0.3s ease;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger Menu */
.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    height: 600px;
    /* Fixed height for better desktop feel */
    position: relative;
    background-color: var(--bg-light);
}

.hero-slider {
    height: 100%;
    width: 100%;
}

/* Hero Slider Overrides */
.swiper-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    /* Ensure overlay fits */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.6);
    /* Corporate Dark Blue with Transparency */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Deep shadow for pop */
    letter-spacing: 2px;
}

.hero-overlay p {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Animations */
.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-100 {
    animation-delay: 0.3s;
}

.delay-200 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards (Standardized) */
.service-card,
.product-card,
.project-card,
.contact-card {
    background: var(--color-white);
    border-radius: 4px;
    /* Consistent with buttons */
    border: 1px solid #e0e0e0;
    /* Subtle border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    /* Low resting shadow */
    transition: all 0.3s ease;
    overflow: hidden;
    /* Ensure images don't bleed */
}

.service-card:hover,
.product-card:hover,
.project-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Lifted formal shadow */
    border-color: #d0d0d0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
}

.icon-service {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--color-secondary);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

/* Footer (Serious Dark) */
footer {
    background-color: var(--bg-dark);
    /* Corporate Dark Navy */
    color: var(--color-white);
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-info h3,
.footer-contact h3,
.footer-social h3 {
    color: #ffffff;
    /* Pure white headers */
    margin-bottom: 25px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--color-secondary);
    /* Accent underline */
    display: inline-block;
    padding-bottom: 10px;
}

.footer-info p {
    color: #e0e0e0;
    /* High contrast light gray */
    line-height: 1.8;
}

.footer-contact ul li {
    margin-bottom: 15px;
    color: #e0e0e0;
    /* High contrast light gray */
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact ul li i {
    margin-right: 15px;
    color: var(--color-secondary);
    min-width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #ffffff;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #888888;
    font-size: 0.85rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Nav Overlay (Hidden by default) */
.mobile-nav-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: white;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-nav-links li {
    margin: 30px 0;
    text-align: center;
}

/* Partners & Certifications */
.partners-grid,
.cert-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.partners-grid img {
    height: 60px;
    /* Uniform height for logos */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partners-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.cert-grid img {
    height: 80px;
}

.mt-20 {
    margin-top: 20px;
}

/* Page Banner (Unified) */
.page-banner {
    position: relative;
    height: 250px;
    /* Fixed uniform height */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 26, 51, 0.7);
    /* Corporate Dark Blue Overlay */
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-overlay h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Serious, formal spacing */
}

.banner-overlay h3 {
    color: #e0e0e0 !important;
    /* Muted white for subtitle */
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Two Column Layout */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.img-shadow {
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
    color: var(--color-white);
    /* Ensure text is white */
}

.value-item h3 {
    color: var(--color-white);
    margin-bottom: 10px;
}

.value-item p {
    color: #f0f0f0;
}

.value-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.icon-value {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.mb-50 {
    margin-bottom: 50px;
}

/* Custom List */
.custom-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .order-md-2 {
        order: 1;
    }

    .order-md-1 {
        order: 2;
    }
}

/* Service List */
.service-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    line-height: 1.5;
}

.service-list li::before {
    content: '\f00c';
    /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--color-primary);
}

.align-top {
    align-items: flex-start;
}

.bg-primary {
    background-color: var(--color-primary);
}

/* Products Page */
.brand-header {
    margin-bottom: 40px;
}

.brand-logo {
    max-height: 80px;
    max-width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 8px;
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    /* Center text vertically if titles vary length */
}

.project-info h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    line-height: 1.4;
    margin: 0;
}

/* Contact Page */
.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-bottom: 5px;
}

.contact-details p {
    color: #555;
    /* Darker grey */
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.map-container {
    border-radius: 4px;
    /* Match standard radius */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 400px;
    border: 1px solid #e0e0e0;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

/* Contact Map Fix */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f4f4f4;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

/* CTA Section Alignment Fix */
#cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    /* Consistent breathing room */
}

#cta h2 {
    margin-bottom: 0;
    /* Let gap handle it */
    font-weight: 700;
}

#cta p {
    margin-bottom: 0;
    /* Let gap handle it */
    max-width: 700px;
}

/* Override global dark background text rule for Values titles */
.bg-dark .value-item h3 {
    color: var(--color-secondary) !important;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 1;
    /* Temporary fix: ensure visible */
    transform: translateY(0);
    /* Reset transform */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Login Page Styles */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-block {
    width: 100%;
    display: block;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-20 {
    margin-top: 20px;
}

/* Nav Button */
.btn-nav {
    background-color: var(--color-primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-nav:hover {
    background-color: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Enhanced Login Page */
.login-section {
    background: var(--color-dark-blue);
    /* Solid elegant background */
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.login-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 500px;
    /* Adjusted to 500px as requested */
    max-width: 95%;
    /* Responsive fallback */
    margin: 0 auto;
    border-top: 4px solid var(--color-secondary);
}

/* Elegant Inputs */
.login-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    color: #333;
    border: none;
    border-bottom: 2px solid #eee;
    background: transparent;
    transition: all 0.3s ease;
    border-radius: 0;
    /* Remove pill shape for elegant line look */
}

.login-form .form-control:focus {
    outline: none;
    border-bottom-color: var(--color-secondary);
    box-shadow: none;
}

.login-form .form-control::placeholder {
    color: #aaa;
}

.login-form .btn {
    border-radius: 50px;
    /* Pillow shape for button remains */
    padding: 14px 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--color-secondary);
    /* Gold button pops on white card */
    color: var(--color-dark-blue);
    margin-top: 10px;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}