:root {
    /* Colors - User Palette */
    --biscay: #1F3D75;
    /* Primary Text, Headlines, Footer */
    --mariner: #2D7FC2;
    /* Accent, Buttons, Links */
    --matisse: #2467A8;
    /* Secondary, Subheadings */
    --jelly-bean: #2C74AB;
    /* Borders, Details */
    --white: #FFFFFF;
    /* Backgrounds */
    --bg-light: #F4F8FB;
    /* Very light blue tint for contrast sections */

    /* Mappings */
    --primary-color: var(--biscay);
    --accent-color: var(--mariner);
    --text-color: var(--biscay);
    --text-light: #4A6085;
    /* Slightly lighter biscay */
    --border-color: #DAE4F0;

    /* Decoration - Professional/Square */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(31, 61, 117, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(31, 61, 117, 0.1), 0 2px 4px -1px rgba(31, 61, 117, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(31, 61, 117, 0.1), 0 4px 6px -2px rgba(31, 61, 117, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-color: transparent;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(45, 127, 194, 0.25), transparent 45%),
        radial-gradient(circle at 90% 40%, rgba(31, 61, 117, 0.2), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(44, 116, 171, 0.25), transparent 50%);
    background-color: #F8FAFC;
}

h1,
h2,
h3,
h4 {
    font-family: 'Roboto', sans-serif;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.gradient-text {
    color: var(--mariner);
    display: inline-block;
}

.text-white {
    color: #fff;
}

.text-white-dim {
    color: rgba(255, 255, 255, 0.9);
}

/* Header */
/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--jelly-bean);
    height: 70px;
    /* Compact height */
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: center;
    /* Center the nav */
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo,
.logo-img {
    display: none;
    /* Hide any remnants */
}

.nav {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav a {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 24px 0;
    position: relative;
}

.nav a:hover {
    color: var(--mariner);
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--mariner);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 24px;
}

/* Mobile Responsive Reset */
@media (max-width: 900px) {
    .header {
        height: 60px;
        justify-content: flex-end;
        position: relative; /* Ensures dropdown slips below smoothly */
        z-index: 1000;
    }

    .header-content {
        justify-content: flex-end;
        padding-right: 20px;
    }

    .nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Directly below header edge */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 15px -3px rgba(31, 61, 117, 0.1);
        padding: 10px 0;
        gap: 10px;
        border-bottom: 2px solid var(--jelly-bean);
        
        /* Buttery smooth 0-lag drop down animation using hardware acceleration */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: -1;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 999;
    }

    .nav.active a {
        padding: 12px 20px;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 24px;
        color: var(--biscay);
        cursor: pointer;
    }
}

/* Hero Section */
.section-home {
    padding-top: 80px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background: transparent;
    position: relative;
    min-height: 80vh;
}

.hero-container {
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    /* Reduced to help text width */
}

.hero-content {
    flex: 2;
    /* 2x space for text */
    min-width: 0;
    max-width: none;
    /* remove limit */
}

.hero-logo-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Align right */
    align-items: center;
}

.hero-logo-img {
    height: 450px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 0;
    margin-right: -40px;
    /* Force it a bit closer to edge */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-logo-img {
        height: 200px;
        margin-right: 0;
        /* Smaller on mobile */
    }

    .body-text {
        border-left: none;
        padding-left: 0;
    }

    .hero-actions {
        justify-content: center;
    }
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-light);
    color: var(--matisse);
    border: 1px solid var(--jelly-bean);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.headline {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.2;
}

.body-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    border-left: 4px solid var(--mariner);
    padding-left: 20px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--biscay);
    color: #fff;
    border: 2px solid var(--biscay);
}

.btn-primary:hover {
    background-color: var(--matisse);
    border-color: var(--matisse);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--biscay);
    border: 2px solid var(--biscay);
}

.btn-secondary:hover {
    background-color: var(--biscay);
    color: #fff;
}


/* About Section */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--mariner);
    margin: 8px auto 0;
}

.section-subtitle {
    font-size: 14px;
    color: var(--matisse);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 32px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--mariner);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 56px;
    height: 56px;
    background-color: var(--bg-light);
    color: var(--biscay);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: var(--radius-sm);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Products Section */
.section-products {
    background: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--mariner);
    box-shadow: var(--shadow-md);
}

.card-image-placeholder {
    display: none;
    /* Hidden as per request */
}

/* Professional colored placeholders using palette */
.color-1 {
    background: var(--biscay);
    opacity: 0.1;
}

.color-2 {
    background: var(--mariner);
    opacity: 0.1;
}

.color-3 {
    background: var(--matisse);
    opacity: 0.1;
}

.color-4 {
    background: var(--jelly-bean);
    opacity: 0.1;
}


.card-content {
    padding: 16px 24px 32px;
    /* Increased padding since image is gone */
    border-top: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-title {
    font-size: 20px;
    /* Slightly larger */
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--biscay);
}

.product-card p {
    font-size: 15px;
    color: var(--text-light);
}


/* Contact Section */
.section-contact {
    display: flex;
    justify-content: center;
}

.contact-container {
    width: 100%;
}

.contact-box {
    background-color: var(--biscay);
    /* Fallback */
    background: linear-gradient(135deg, #1F3D75 0%, #2467A8 100%);
    /* Stronger gradient */
    padding: 80px 40px;
    text-align: center;
    color: white;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

/* Geometric decoration */
/* The ::before pseudo-element was removed as its properties were merged into .contact-box */

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    /* More breathing room */
    margin-top: 60px;
    position: relative;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-item label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8FC9FF;
    font-weight: 700;
}

.contact-item p {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    max-width: 250px;
    /* Prevent text from getting too wide */
    margin: 0 auto;
}

/* Override utility in this section */
.contact-box .section-title {
    color: var(--white);
}

.contact-box .text-white-dim {
    color: rgba(255, 255, 255, 0.9);
}


/* Footer */
.footer {
    background-color: var(--biscay);
    padding: 40px 0;
    color: white;
    border-top: 4px solid var(--mariner);
}

.footer-content {
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
}


/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20b858;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.whatsapp-float svg {
    width: 42px;
    height: 42px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .headline {
        font-size: 36px;
    }

    .section-title,
    [style*="font-size: 42px"] {
        font-size: 32px !important;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
    }

    .logo-img {
        height: 48px;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .contact-box {
        padding: 40px 24px;
    }

    .hero-bg-accent {
        width: 100%;
        height: 100%;
        clip-path: none;
        opacity: 0.5;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- NEW ADVANCED ANIMATIONS & UTILS --- */

/* Utility spacing */
.mt-4 {
    margin-top: 24px;
}

.mb-4 {
    margin-bottom: 24px;
}

.pt-0 {
    padding-top: 0 !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.text-mariner {
    color: var(--mariner);
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseSoft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 127, 194, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(45, 127, 194, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(45, 127, 194, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Base Animation Classes */
.page-transition {
    animation: fadeUp 0.8s ease-out forwards;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
    animation-delay: 0.4s;
}

/* Interactive Hover States */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(31, 61, 117, 0.2);
}

.pulse.visible {
    animation: pulseSoft 2s infinite;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

.hover-float:hover i {
    animation: pulseSoft 1s infinite;
}

/* Header Active Link */
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--mariner);
}

/* Page Headers */
.page-header-section {
    padding-top: 120px;
    padding-bottom: 40px;
    background: transparent;
}

/* --- 3D Grid & Cards --- */
.perspective-grid {
    perspective: 1000px;
}

.card-3d,
.hover-3d {
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.card-3d:hover,
.hover-3d:hover {
    box-shadow: -5px 15px 30px rgba(31, 61, 117, 0.15);
}

.card-icon-header {
    padding: 32px 30px 16px;
    text-align: center;
    background: transparent;
    border-bottom: none;
    transform: translateZ(20px);
    /* 3D pop effect */
}

/* --- Timeline Component (About Page) --- */
.timeline-section {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline::after {
    display: none;
}

.timeline-item {
    padding: 0;
    position: relative;
    background-color: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Center alignments */
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    left: 0;
    text-align: center;
}

.timeline-content {
    padding: 40px 30px 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    margin-top: -25px;
    /* Pull up under icon */
    text-align: center;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--mariner);
}

.timeline-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 4px solid var(--mariner);
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--biscay);
    font-size: 20px;
    box-shadow: 0 0 0 4px rgba(45, 127, 194, 0.2);
    margin: 0 auto;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: 0;
}

@media screen and (max-width: 768px) {
    .timeline {
        padding: 0 15px;
    }
}

/* Enquiry Form Styles */
.section-enquiry {
    padding-top: 40px;
}

.enquiry-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.enquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--biscay);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fff;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--mariner);
    box-shadow: 0 0 0 3px rgba(45, 127, 194, 0.1);
}

.form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 16px;
}

.form-submit .btn {
    width: 100%;
    max-width: 300px;
    padding: 16px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .enquiry-form {
        grid-template-columns: 1fr;
    }
    
    .enquiry-form-container {
        padding: 24px 16px;
    }
}