/* --- Variables & Global Reset --- */
:root {
    --primary-color: #004d99;
    --secondary-color: #007bff;
    --accent-color: #ff6600;
    --text-color: #333333; /* Dark text color */
    --light-bg: #f8f9fa;
    --white-color: white;
    /* Removed --max-width variable as we want full width */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    /* New Domain Colors */
    --railway-color: #2c3e50;
    --defence-color: #c0392b;
    --aviation-color: #2980b9;
    --space-color: #8e44ad;
    /* NEW: Active bar color - use accent or primary */
    --bar-active-color: var(--accent-color);
    --bar-hover-color: #ff8533;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* *** CHANGE: Increased base font size to 1.25em (approx 20px) to increase font size further as requested *** */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    overflow-x: hidden;

}

/* --- Header & Navigation --- */
header {
    /* *** CHANGE: Set background to white (or light-bg) *** */
    background: var(--white-color); 
    color: var(--text-color); /* Set default text color to dark */
    padding: 20px 40px; 
    box-shadow: var(--shadow-sm); /* Used subtle shadow on white header */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: none; /* Removed blur effect */
}

.header-container {
    max-width: 120%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

/* --- LOGO IMAGE FIX: Blur Removed --- */
.header-container a {
    text-decoration: none; 
    display: flex;
    align-items: center;
}

.header-logo {
    height: 70px; /* Changed from 40px */
    width: auto;
    margin: 0;
    filter: none; 
    transition: var(--transition);
    vertical-align: middle; 
}

.header-logo:hover {
    opacity: 0.8;
    filter: none; /* Ensure no blur on hover either */
}
/* --------------------------------------------------------------------------------- */

header h1 {
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: 1px;
    /* Change text color for header H1 on white background */
    color: var(--primary-color);
    background: none; 
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    margin: 0;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

/* NEW: Style for the main list when not in mobile view */
.main-nav-list {
    flex-direction: row; 
    align-items: center;
}

nav ul li a {
    /* *** CHANGE: Set navigation link color to dark black *** */
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800; /* Increased bolding */
    font-size: 0.95em;
    padding: 10px 16px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

nav ul li a:hover {
    background: var(--light-bg); /* Use light background on hover */
    color: var(--accent-color);
}

/* UPDATED STYLES for Mail and Phone links */
.contact-link {
    font-size: 1.05em;
    font-weight: 800; /* Increased bolding */
    color: var(--primary-color) !important; /* *** CHANGE: Set contact link color to dark black *** */
    text-decoration: none !important;
    border: none !important;
    padding: 10px 16px; 
}

.contact-link:hover {
    background: var(--light-bg);
    color: var(--accent-color) !important;
}
/* END UPDATED STYLES */

/* --- Dropdown Menu Styles (adjusting colors for white header) --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white-color);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 100%; 
    left: 0;
    border-radius: 6px;
    overflow: hidden;
    padding: 5px 0;
}

.dropdown-content a {
    color: var(--text-color); /* Maintain dark text for dropdown items */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 600; /* Use slightly less bold for dropdown items */
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--secondary-color);
    padding-left: 20px; 
}

/* Hide the ::after element for dropdown items */
.dropdown-content a::after {
    display: none;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* NEW: Hamburger Menu Styles (Hidden on Desktop) */
.menu-toggle {
    display: none;
}

.hamburger-icon {
    display: none; /* Hide on desktop */
    font-size: 1.8em;
    color: var(--primary-color);
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
    z-index: 1010; 
}
.hamburger-icon i {
    pointer-events: none; /* Prevents icon click from interfering with label click */
}


/* --- Hero Banner (Used only for non-home pages) --- */
/* REMOVED PAGE HERO BANNER STYLES */


@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Main Content Layout --- */
main {
    padding: 0;
}

.page-content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px; 
}

/* --- Typography --- */
h2 {
    font-size: 2.3em;
    color: var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 25px; 
    font-weight: 700;
}


h3 {
    color: var(--secondary-color);
    margin-top: 25px; 
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.5em;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* --- Two-Column Section --- */
.two-col-section {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
    padding: 20px 0;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.two-col-section.reverse {
    flex-direction: row-reverse;
}

.col-text, .col-image {
    flex: 1;
    min-width: 300px;
}

/* --- NEW: CSS Class to lower the phase 2 section --- */
.phase-offset {
    margin-top: 80px; /* Adjust this value to control the vertical separation */
}
/* --- END NEW STYLE --- */

.col-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.col-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.col-text h2 {
    margin-top: 0;
}

.col-text p.intro-paragraph {
    font-size: 1.15em;
    margin-bottom: 20px;
    line-height: 1.75;
}

/* --- Domain Indicator Bar (Case Study Selector) --- */
.domain-indicator-bar {
    display: flex;
    width: 100%;
    height: auto;
    margin-top: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.bar-segment {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-color);
    font-weight: 700;
    font-size: 0.9em;
    padding: 12px 10px;
    transition: all 0.3s ease-in-out;
    text-decoration: none; 
    cursor: pointer;
    position: relative;
    opacity: 0.8;
}

.bar-segment:hover {
    flex: 1.2;
    opacity: 1;
    background-color: var(--bar-hover-color);
}

.bar-segment.active-vertical {
    opacity: 1;
    flex: 1.5;
    box-shadow: inset 0 -4px 0 0 var(--white-color);
}

.bar-segment .icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.railway { background-color: var(--railway-color); }
.defence { background-color: var(--defence-color); }
.aviation { background-color: var(--aviation-color); }
.space { background-color: var(--space-color); }

/* --- Case Study Domain Selector (Pill Shapes) --- */
.domain-indicator-bar.case-study-selector {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: none;
    background: transparent;
}

.case-study-selector .bar-segment {
    border-radius: 50px; 
    color: white !important; 
    text-decoration: none; 
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px; 
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.case-study-selector .bar-segment::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.case-study-selector .bar-segment:hover::before {
    left: 100%;
}

.case-study-selector .bar-segment.active-vertical {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    transform: scale(1.08);
    opacity: 1;
}

.case-study-selector .bar-segment:hover {
    opacity: 0.95;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* --- Case Study List Styles (Modern Card Design) --- */
.case-studies-section {
    text-align: center;
    padding: 60px 0;
}

.case-study-list {
    margin-top: 40px;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
    overflow: hidden;
}

.case-study-list.hidden {
    display: none;
}

/* --- List Header (H3) Styles --- */
.case-study-list h3 {
    color: #2c3e50;
    font-size: 1.8em;
    padding: 25px 30px;
    margin: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
    border-bottom: 3px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- List Item (UL/LI) Styles - Card Based --- */
.case-study-list ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: grid;
    gap: 20px;
}

.case-study-list li {
    margin: 0;
    padding: 0;
    border: none;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.case-study-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.case-study-list li:hover::before {
    transform: scaleY(1);
}

.case-study-list li:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* --- Link (A) Styles - Enhanced Card Layout --- */
.case-study-list a {
    color: var(--text-color);
    text-decoration: none;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.case-study-list a::after {
    content: '→';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--accent-color);
    opacity: 0;
    transition: all 0.3s ease;
}

.case-study-list li:hover a::after {
    opacity: 1;
    right: 20px;
}

.case-study-list a h3 {
    background: linear-gradient(135deg, var(--accent-color), #e85d3f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding: 0;
    border: none;
    display: inline-block;
    min-width: 120px;
}

.case-study-list a p {
    color: #4a5568;
    font-size: 1.05em;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.case-study-list a:hover {
    padding-left: 25px;
}

/* Number Badge Style */
.case-study-list a h3::before {
    content: attr(data-number);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color), #e85d3f);
    color: white;
    border-radius: 50%;
    font-size: 0.9em;
    margin-right: 15px;
    box-shadow: 0 4px 12px rgba(201, 75, 54, 0.3);
    -webkit-text-fill-color: white;
}

/* --- Numbered List Style Alternative --- */
.numbered-list-style li {
    counter-increment: case-study-counter;
}

.numbered-list-style {
    counter-reset: case-study-counter;
}

/* --- New Styles for Case Study PDF Viewer --- */
.pdf-viewer-container {
    padding: 30px 0;
    margin-bottom: 50px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 30px;
}

.pdf-viewer-container h2 {
    font-size: 2em;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pdf-viewer-container h2::after {
    width: 60px;
    height: 3px;
}

.case-study-pdf {
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.pdf-viewer-container p {
    text-align: center;
    padding: 50px 0;
    font-size: 1.2em;
}

.pdf-viewer-container a.secondary-button {
    margin-left: 0 !important;
    display: inline-block;
}

/* --- Carousel Item (General styles) --- */
.carousel-item {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    text-align: left; 
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.carousel-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    margin-bottom: 15px;
}

.carousel-item-content {
    padding: 0 20px 20px;
}

.carousel-item-content h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.carousel-item-content p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    /* *** HAMBURGER MENU LOGIC *** */
    .hamburger-icon {
        display: block; /* Show the hamburger icon on mobile */
    }
    
    header nav {
        display: none; /* Hide desktop nav by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color); /* Dark overlay background */
        z-index: 999;
        overflow-y: auto;
        padding-top: 100px;
        animation: slideIn 0.3s ease-out;
    }

    /* Target the nav when the hidden checkbox is checked */
    .menu-toggle:checked + .hamburger-icon + nav {
        display: block;
    }
    
    .menu-toggle:checked + .hamburger-icon i::before {
        content: "\f00d"; /* Change icon to 'X' */
    }

    @keyframes slideIn {
        from { opacity: 0; transform: translateX(100%); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Mobile Menu List Styling */
    .main-nav-list {
        flex-direction: column;
        gap: 0; /* Remove gap */
        text-align: center;
        width: 100%;
        padding: 0;
        list-style: none;
    }
    
    .main-nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav-list > li:last-child {
        border-bottom: none;
    }
    
    .main-nav-list > li > a {
        display: block;
        color: var(--white-color) !important;
        font-size: 1.3em;
        padding: 15px 20px;
        font-weight: 700;
        transition: background-color 0.2s;
    }
    
    .main-nav-list > li > a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--accent-color) !important;
    }

    .main-nav-list > li > a::after {
        display: none; /* Hide underline effect */
    }
    
    /* Mobile Dropdown Menu Logic */
    .dropdown-content {
        position: static; /* Allows it to flow naturally in the column */
        width: 100%;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2); /* Slightly darker background for submenu */
        padding: 0;
        border-radius: 0;
    }
    
    .dropdown-content a {
        color: var(--light-bg);
        font-size: 1em;
        padding: 10px 40px;
        text-align: center;
    }
    
    .dropdown-content a:hover {
        background-color: rgba(0, 0, 0, 0.3);
        color: var(--accent-color);
        padding-left: 40px;
    }

    /* Adjust Header Logo size on mobile */
    .header-logo {
        height: 55px; 
    }
    /* *** END HAMBURGER MENU LOGIC *** */
    
    .case-study-selector .bar-segment {
        padding: 10px 20px;
        font-size: 0.85em;
    }
    
    .case-study-list h3 {
        font-size: 1.4em;
        padding: 20px;
    }
    
    .case-study-list ul {
        padding: 15px;
    }
    
    .case-study-list a {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px;
    }
    
    .case-study-list a h3::before {
        width: 35px;
        height: 35px;
        font-size: 0.8em;
    }
    
    /* General 768px fixes */
    .page-content-container {
        padding: 40px 20px;
    }
    
    .two-col-section {
        flex-direction: column;
        gap: 30px;
    }

    .two-col-section.reverse {
        flex-direction: column;
    }

    .col-image {
        order: -1;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }
    
    .contact-info {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }

    .enquiry-form-container {
        padding-left: 0;
    }
    
    .domain-indicator-bar {
        flex-wrap: wrap; /* Allows segments to wrap to the next line */
        height: auto;
    }
    
    .bar-segment {
        flex: 1 1 50%; /* Each segment takes up half the width on small screens */
        padding: 10px 5px;
        font-size: 0.8em;
    }

    .bar-segment:hover,
    .bar-segment.active-vertical {
        flex: 1 1 50%; /* Keep segments consistent on smaller screens */
    }
    
    .logo-grid {
        padding: 0 20px;
    }
    
    footer {
        padding: 40px 20px 15px 20px;
    }
}

/* --- Animation Keyframes --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* --- NEW MISSION GRID STYLES (3x3 Layout) --- */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; 
    margin: 40px auto;
    padding: 0 60px; 
}

.mission-grid .carousel-item {
    flex: none; 
    width: 100%; 
    min-width: 0; 
    
    background-color: var(--white-color);
    border: 1px solid #e0e0e0;
    padding: 0;
    text-align: left;
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.mission-grid .carousel-item a {
    text-decoration: none;
    color: inherit;
    display: block; 
}

.mission-grid .carousel-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.mission-grid .carousel-item img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
    margin-bottom: 0;
}

.mission-grid .carousel-item-content {
    padding: 15px;
}

.mission-grid .carousel-item-content h4 {
    font-size: 1.3em;
    margin: 0 0 5px;
    color: var(--primary-color);
}

.mission-grid .carousel-item-content p {
    padding: 0;
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 0;
}


/* --- Section Container/Titles/Buttons --- */
.section-container {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    margin-bottom: 5px;
    display: inline-block;
}

.section-footer {
    margin-top: 40px;
    text-align: center;
}

.primary-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.primary-button:hover {
    background: linear-gradient(135deg, #0060c0, #003a73);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.secondary-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white-color);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    margin-left: 20px;
}

.secondary-button:hover {
    background: #e65c00;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* --- Image Slideshow --- */
.image-slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 30px auto 40px auto;
    overflow: hidden;
}

.home-hero-slider {
    border-radius: 0;
    box-shadow: none;
    margin-top: 0;
}

.agri-slide {
    display: none;
    width: 100%;
    animation-name: fade;
    animation-duration: 1.5s;
}

.agri-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* --- Home Page Specific Slider ---*/
.hero-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    color: white;
    padding: 80px 50px 30px 50px;
    text-align: left;
    z-index: 50;
}

.hero-overlay-text h2 {
    font-size: 2.5em;
    color: var(--white-color);
    margin: 0;
    padding-bottom: 5px;
}

.hero-overlay-text h2::after {
    background: linear-gradient(to right, var(--accent-color), var(--white-color));
}

.hero-overlay-text p {
    font-size: 3.0em;
    font-weight: 300;
    margin: 0;
    color: #ddd;
}



/* --- Client Logos Section Styles (Refined) --- */

.client-logo-section {
    background-color: var(--white-color); /* Updated background color */
    padding: 50px 0; /* Add top/bottom padding for the section */
    overflow: hidden; /* Important for the scroll effect */
}

/* * The Logo Viewport masks the content, showing only 
 * the visible area and hiding the rest for the scroll.
 */
.logo-viewport {
    width: 100%;
    overflow: hidden;
    margin-top: 30px; /* Use this as the main container margin */
}

/* * The Scroll Track holds the logos and is the element that is animated.
 * (Remember: This must contain two identical sets of logos in the HTML)
 */
.logo-scroll-track {
    display: flex;
    width: fit-content; /* Allows the track to hold both sets of logos */
    animation: scroll-logos 30s linear infinite; /* The core animation */
    animation-play-state: running;
}

/* Pause the animation on hover */
.logo-viewport:hover .logo-scroll-track {
    animation-play-state: paused;
}

/* * Styles for each individual logo item.
 * NOTE: Removed flex-wrap as it breaks the horizontal scroll.
 */
.logo-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    /* New spacing and size from your input */
    padding: 60px; /* Large padding for spacing between logos */
    flex-shrink: 0; /* Ensures items don't shrink inside the flex container */
    width: 270px; /* Set a fixed width for consistent spacing (150px logo + 60px*2 padding) */
}

.logo-grid-item img {
    height: 120px; /* New, larger logo height */
    width: auto;
    object-fit: contain;
    opacity: 1;
    transition: var(--transition);
}

.logo-grid-item:hover img {
    opacity: 1;
    transform: scale(1.05); /* Subtle zoom on hover */
}

.logo-grid-item .logo-name {
    margin-top: 8px;
    font-size: 1.2em; /* New, larger font size */
    font-weight: 500;
    color: #888;
}

/* Keyframe definition for the seamless loop */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves exactly one set of logos out of view */
}

/* --- Footer --- */
footer {
    /* *** Kept footer dark blue for contrast and design, adjusting for new variable use *** */
    background: linear-gradient(135deg, var(--primary-color) 0%, #003d7a 100%);
    color: var(--white-color);
    padding: 50px 60px 20px 60px; 
    margin-top: 40px;
}

.footer-content-container {
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-column h3 {
    color: var(--white-color);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-column p {
    line-height: 1.7;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--white-color);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
    padding-left: 5px;
}

.button-link-footer button {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 4px;
    margin-top: 10px;
    background: var(--accent-color);
}

.button-link-footer button:hover {
    background: #ff5500;
}

.footer-bottom {
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    opacity: 0.8;
}


/* --- AIPL Feature and Image Organization Fixes --- */

/* Ensures images are responsive, properly sized, and block-level for visual separation */
.feature-image,
.approach-image {
    max-width: 100%;
    height: auto;
    display: block; 
    margin: 15px 0 25px 0; /* Adds significant vertical spacing */
    border: 1px solid #e0e0e0; /* Adds a clean, light border for visual containment */
    padding: 5px; 
    border-radius: 4px; 
}

/* Adds vertical space between each feature box in the two-column layout */
.feature-box {
    margin-bottom: 30px; 
}

/* Style the horizontal rule for a clear, clean separator between features */
.feature-divider {
    border: 0;
    height: 1px;
    background-color: #f0f0f0; /* Very light separator line */
    margin: 30px 0; /* Provides ample vertical space around the line */
}

/* --- CONTACT PAGE STYLES --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    max-width: 1000px; 
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.contact-info {
    text-align: left;
    padding-right: 30px;
    border-right: 1px solid #eee;
}

.contact-info h2 {
    margin-top: 0;
}

.contact-info h3 {
    margin-top: 15px;
    font-size: 1.2em;
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95em;
}

.enquiry-form-container {
    padding-left: 30px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--primary-color);
    font-size: 0.95em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.contact-form button:hover {
    background: #003d7a;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }
    .page-content-container {
        padding: 40px 30px;
    }
    .mission-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 30px;
    }
    .logo-grid {
        padding: 0 30px;
    }
    footer {
        padding: 50px 30px 20px 30px;
    }
}

@media (max-width: 768px) {
    .page-content-container {
        padding: 40px 20px;
    }
    
    .two-col-section {
        flex-direction: column;
        gap: 30px;
    }

    .two-col-section.reverse {
        flex-direction: column;
    }

    .col-image {
        order: -1;
    }

    .mission-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }
    
    .contact-info {
        padding-right: 0;
        border-right: none;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
    }

    .enquiry-form-container {
        padding-left: 0;
    }
    
    .domain-indicator-bar {
        flex-wrap: wrap; /* Allows segments to wrap to the next line */
        height: auto;
    }
    
    .bar-segment {
        flex: 1 1 50%; /* Each segment takes up half the width on small screens */
        padding: 10px 5px;
        font-size: 0.8em;
    }

    .bar-segment:hover,
    .bar-segment.active-vertical {
        flex: 1 1 50%; /* Keep segments consistent on smaller screens */
    }
    
    .logo-grid {
        padding: 0 20px;
    }
    
    footer {
        padding: 40px 20px 15px 20px;
    }
}

/* --- NEW MEDIA QUERY FOR MOBILE SLIDER TEXT FIX --- */
@media (max-width: 600px) {
    /* Adjust Header Logo/Nav to prevent overflow if necessary */
    .header-logo {
        height: 50px; /* Reduced logo size */
    }
    
    .header-container {
        /* Allow wrapping for elements like the contact links if they are too long */
        flex-wrap: wrap; 
    }
    
    /* Reduce padding in the overlay text area */
    .hero-overlay-text {
        padding: 60px 20px 20px 20px;
    }

    /* Dramatically reduce the font size of the main heading */
    .hero-overlay-text h2 {
        font-size: 1.8em; /* Reduced from 2.5em */
    }

    /* Dramatically reduce the font size of the subtitle/paragraph */
    .hero-overlay-text p {
        font-size: 1.5em; /* Reduced from 3.0em */
    }
    
    .agri-slide img {
        height: 350px; /* Make the image slightly shorter on mobile */
    }
}