/* Swiftia Development Custom CSS */
:root {
    /* Swiftia Brand Colors */
    --swiftia-green: #2E8B57;
    --swiftia-dark-green: #1E6B47;
    --swiftia-orange: #F68D2E;
    --swiftia-dark-orange: #D67B25;
    --swiftia-blue: #005EB8;
    --swiftia-dark-blue: #00447C;
    --swiftia-brown: #8B4513;

    /* Neutral Colors */
    --dark-gray: #333333;
    --medium-gray: #666666;
    --light-gray: #F8F9FA;
    --white: #FFFFFF;

    /* Cargill-inspired additions */
    --overlay-dark: rgba(0, 0, 0, 0.6);
    --accent-orange: #F68D2E;

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Spacing */
    --section-padding: 80px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Safe default so any image without explicit sizing never overflows its container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

section[id],
.footer[id],
main[id] {
    scroll-margin-top: 110px;
}

@media (max-width: 768px) {
    section[id],
    .footer[id],
    main[id] {
        scroll-margin-top: 90px;
    }
    
}

/* ==========================================================================
   PAGE LOADER
   ========================================================================== */

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    background: var(--white);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-spinner {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 5px solid rgba(46, 139, 87, 0.15);
    border-top-color: var(--swiftia-green);
    border-right-color: var(--swiftia-orange);
    animation: page-loader-spin 0.85s linear infinite;
}

@keyframes page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader-brand {
    font-family: var(--font-serif);
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-green);
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

.page-loader-text {
    font-family: var(--font-primary);
    color: var(--medium-gray);
    font-size: 0.85rem;
}

body.loading {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner {
        animation-duration: 1.4s;
    }
}

/* Top Bar */
.top-bar {
    background: var(--swiftia-dark-green);
    padding: 0.25rem 0;
    font-size: 0.8rem;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
}

.contact-info a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.social-links a {
    color: var(--white);
    margin-left: 0.75rem;
    text-decoration: none;
}

/* Floating Navigation Bar */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 90%;
    max-width: 1200px;
    border-radius: 15px;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: top 0.3s ease, width 0.3s ease, max-width 0.3s ease,
                border-radius 0.3s ease, box-shadow 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--white);
    transform: translateY(-100%);
    visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s ease;
}

.navbar.scrolled {
    top: 0px;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar.scrolled::before {
    visibility: visible;
    transform: translateY(0);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 2rem;
    position: relative;
}

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

.logo-img {
    width: 100px;
    height: 35px;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.logo-img2 {
    width: 100%;
    max-width: 600px;
    height: auto;
    aspect-ratio: 2 / 1;
    border-radius: 1px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: max(-100px, -10vw); 
    filter: contrast(110%) brightness(98%);
}

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

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-green);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.8rem;
    color: var(--medium-gray);
    font-weight: var(--font-weight-regular);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--swiftia-green);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: #000000;
    font-weight: var(--font-weight-medium);
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link:active {
    color: var(--swiftia-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--swiftia-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.3s ease;
}

.search-toggle-btn:hover {
    color: var(--swiftia-green);
}

.search-box {
    position: static;
    right: 0;
    top: 160%;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.nav-search-wrapper:hover .search-box,
.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.75);
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 10px;
    z-index: 1001;
    top: 100%;
    left: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #000000;
    padding: 10px 14px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: rgba(46, 139, 87, 0.15);
    color: var(--swiftia-green);
}

@media (min-width: 769px) {
    .navbar .logo {
        display: none;
    }

    .gears-container {
      top:-15px;
      left: 80px;
    }


    .navbar:not(.scrolled) .nav-link,
    .navbar:not(.scrolled) .search-toggle-btn {
        color: var(--white);
    }

    .navbar:not(.scrolled) .nav-link::after {
        background-color: var(--white);
    }

    .navbar.scrolled .nav-link,
    .navbar.scrolled .search-toggle-btn {
        color: #000000;
    }
}



@media (max-width: 768px) {
}

/* 3. Text Overlay & Interactive Content Layer */
.hero-text-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.slides-text-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-text-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 5%;
}

.slide-content {
    max-width: 520px;
    pointer-events: auto;
}

.slide-content h2 {
    font-size: 2.8rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: var(--font-serif);
    color: #0B2567;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #444444;
}

/* Video Button Styling */
.video-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--swiftia-orange);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.video-button:hover {
    background: var(--swiftia-dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.video-button i {
    font-size: 18px;
}

/* Controls Layer */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 25%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: var(--swiftia-orange);
    width: 28px;
    border-radius: 10px;
}

/* ==========================================================================
   BUTTON & SECTION GENERAL STYLES
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: var(--swiftia-dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 141, 46, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--swiftia-green);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-family: var(--font-serif);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--swiftia-orange);
}

.section-title p {
    color: var(--medium-gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    padding: 1.5rem;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 1.2rem;
}

.service-card h3 {
    color: var(--swiftia-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--medium-gray);
}

/* Content Section */
.content-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.content-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.content-text h2 {
    font-size: 2.5rem;
    color: var(--swiftia-green);
    margin-bottom: 30px;
    font-family: var(--font-serif);
    line-height: 1.2;
    text-align: center;
}

.content-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 20px;
    padding: 20px;
    text-align: justify;
}

/* Stats Section */
.stats-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-green);
    margin-bottom: 15px;
}

.stat-text {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Our Purpose Section */
.purpose {
    padding: var(--section-padding);
    background-color: var(--white);
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.purpose-card {
    background: var(--light-gray);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    padding: 2rem;
    text-align: center;
    border-top: 4px solid var(--swiftia-green);
}

.purpose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.purpose-card.mission {
    border-top-color: var(--swiftia-green);
}

.purpose-card.vision {
    border-top-color: var(--swiftia-blue);
}

.purpose-card.values {
    border-top-color: var(--swiftia-orange);
}

.purpose-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.1);
}

.purpose-card.mission .purpose-icon {
    color: var(--swiftia-green);
}

.purpose-card.vision .purpose-icon {
    color: var(--swiftia-blue);
}

.purpose-card.values .purpose-icon {
    color: var(--swiftia-orange);
}

.purpose-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.purpose-card p {
    margin-bottom: 1rem;
    color: var(--medium-gray);
}

.values-list {
    text-align: left;
    list-style: none;
    margin-top: 1rem;
}

.values-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--medium-gray);
}

.values-list i {
    color: var(--swiftia-orange);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Gallery Section */
.gallery {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 280px;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--swiftia-orange);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 2rem 0.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--swiftia-orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--swiftia-orange);
}

.contact-details p {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--white);
}

.contact-details p a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-details p a:hover,
.contact-details p a:focus-visible {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.8rem;
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-overlay.active {
    display: block;
}

.close-menu {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--swiftia-green);
    cursor: pointer;
    z-index: 1002;
}

/* ==========================================================================
   SHARED FORM PRIMITIVES
   ========================================================================== */

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--swiftia-green);
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-gray);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--dark-gray);
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--swiftia-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 0.5rem;
}

.quote-form-message {
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.quote-form-message:not(:empty) {
    padding: 0.85rem 1rem;
    margin: 1rem 0;
}

.quote-form-message.success {
    color: var(--swiftia-dark-green);
}

.quote-form-message.success:not(:empty) {
    background: rgba(46, 139, 87, 0.1);
    border: 1px solid rgba(46, 139, 87, 0.3);
}

.quote-form-message.error {
    color: #B02A2A;
}

.quote-form-message.error:not(:empty) {
    background: rgba(214, 60, 60, 0.08);
    border: 1px solid rgba(214, 60, 60, 0.3);
}

/* Resume / CV drag-and-drop upload area */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    color: var(--medium-gray);
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.upload-area:hover {
    border-color: var(--swiftia-green);
    background-color: rgba(46, 139, 87, 0.03);
}

.upload-area i {
    display: block;
    font-size: 2.2rem;
    color: var(--swiftia-green);
    margin-bottom: 0.75rem;
}

.upload-area p {
    margin: 0.25rem 0;
}

/* ==========================================================================
   CAREERS PAGE - HERO
   ========================================================================== */

.careers-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 2rem 70px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('career_hero.png');
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.careers-hero-content {
    max-width: 700px;
}

.careers-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.careers-hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ==========================================================================
   AGRICULTURAL PAGE - HERO
   ========================================================================== */

.agric-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 2rem 70px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('farm_mechanization.jpg');
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.agric-hero-content {
    max-width: 700px;
}

.agric-hero-content h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.agric-hero-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}



/* ==========================================================================
   CAREERS PAGE - WHY WORK WITH US
   ========================================================================== */

.why-work {
    padding: var(--section-padding);
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(46, 139, 87, 0.1);
    color: var(--swiftia-green);
    font-size: 1.5rem;
}

.benefit-card h3 {
    color: var(--dark-gray);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    color: var(--medium-gray);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ==========================================================================
   CAREERS PAGE - JOB OPENINGS / JOB CARDS
   ========================================================================== */

.job-openings {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.job-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid #ddd;
    background: var(--white);
    border-radius: 30px;
    color: var(--dark-gray);
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--swiftia-green);
    color: var(--swiftia-green);
}

.filter-btn.active {
    background: var(--swiftia-green);
    border-color: var(--swiftia-green);
    color: var(--white);
}

.jobs-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.job-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--light-gray);
}

.job-category {
    display: inline-block;
    background: rgba(246, 141, 46, 0.12);
    color: var(--swiftia-dark-orange);
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.job-card-header h3 {
    color: var(--dark-gray);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.job-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--medium-gray);
}

.job-meta-item i {
    color: var(--swiftia-green);
}

.job-card-body {
    padding: 1.25rem 1.5rem;
    flex-grow: 1;
}

.job-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-requirements h4 {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin-bottom: 0.6rem;
}

.job-requirements ul {
    list-style: none;
}

.job-requirements li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.job-requirements li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--swiftia-green);
    font-weight: var(--font-weight-bold);
}

.job-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--light-gray);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.apply-btn {
    flex: 1;
    text-align: center;
}

.edit-job-btn {
    flex: 0 0 auto;
}

.no-jobs-message {
    grid-column: 1 / -1;
    text-align: center;
    background: var(--white);
    border-radius: 10px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-jobs-icon {
    font-size: 2.5rem;
    color: var(--swiftia-orange);
    margin-bottom: 1rem;
}

.no-jobs-message h3 {
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.no-jobs-message p {
    color: var(--medium-gray);
    max-width: 500px;
    margin: 0 auto 0.75rem;
}

/* ==========================================================================
   CAREERS PAGE - ADMIN CONTROLS
   ========================================================================== */

.admin-controls {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    background: var(--white);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px dashed var(--swiftia-orange);
}

.admin-controls h3 {
    color: var(--dark-gray);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.admin-controls h3 i {
    color: var(--swiftia-orange);
    margin-right: 0.5rem;
}

.admin-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-buttons .btn {
    text-transform: none;
    letter-spacing: normal;
}

.post-job-form {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    box-shadow: none;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
}

.post-job-form.active {
    max-height: 2000px;
    opacity: 1;
    padding: 2rem;
    margin: 1.5rem auto 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   CAREERS PAGE - APPLICATION FORM SECTION
   ========================================================================== */

.application-form-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

/* ==========================================================================
   PRODUCT PAGES - PRODUCTS GRID / CARDS
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding);
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.product-img {
    position: relative;
    height: 220px;
    background: var(--light-gray);
    overflow: hidden;
}

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

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.icon-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--swiftia-green);
    background: rgba(46, 139, 87, 0.08);
}

.product-img.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img.no-image .icon-fallback {
    display: flex;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    color: var(--dark-gray);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.product-description {
    color: var(--medium-gray);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-orange);
    margin-bottom: 1rem;
}

.features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.features li i {
    color: var(--swiftia-green);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.product-content .request-quote-btn {
    margin-top: auto;
    width: 100%;
}

.request-quote-btn i {
    margin-right: 0.5rem;
}

/* ==========================================================================
   REQUEST QUOTE MODAL
   ========================================================================== */

.quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2100;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem;
    overflow-y: auto;
}

.quote-modal.active {
    display: flex;
}

.quote-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 37, 103, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.quote-modal-container {
    position: relative;
    background: var(--white);
    max-width: 780px;
    width: 100%;
    border-radius: 14px;
    padding: 2.5rem;
    z-index: 1;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: quote-modal-in 0.3s ease;
}

@keyframes quote-modal-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.quote-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--light-gray);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--dark-gray);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quote-close:hover {
    background: var(--swiftia-orange);
    color: var(--white);
}

.quote-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.quote-header-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(246, 141, 46, 0.12);
    color: var(--swiftia-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.quote-header h2 {
    font-family: var(--font-serif);
    color: var(--swiftia-green);
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
}

.quote-header p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.quote-product-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.75rem;
}

.quote-product-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--swiftia-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.quote-label {
    display: block;
    font-size: 0.7rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    color: var(--medium-gray);
    margin-bottom: 0.2rem;
}

.quote-product-info h3 {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.quote-product-info p {
    color: var(--medium-gray);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.quote-product-price {
    font-weight: var(--font-weight-bold);
    color: var(--swiftia-orange);
    font-size: 0.95rem;
}

.quote-section {
    margin-bottom: 1.75rem;
}

.quote-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.quote-section-title i {
    color: var(--swiftia-green);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.quote-section-title h3 {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.quote-section-title p {
    color: var(--medium-gray);
    font-size: 0.85rem;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.quote-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: var(--font-weight-medium);
    color: var(--dark-gray);
}

.quote-field label span {
    color: var(--swiftia-orange);
}

.quote-full-field {
    grid-column: 1 / -1;
    margin-top: 1.25rem;
}

.quote-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.quote-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
    pointer-events: none;
}

.quote-input-wrapper input,
.quote-input-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--dark-gray);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quote-input-wrapper input:focus,
.quote-input-wrapper select:focus {
    outline: none;
    border-color: var(--swiftia-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.12);
}

.quote-field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--dark-gray);
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.quote-field textarea:focus {
    outline: none;
    border-color: var(--swiftia-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.12);
}

.quote-consent {
    margin-bottom: 1.5rem;
}

.quote-consent label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--medium-gray);
    cursor: pointer;
}

.quote-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--swiftia-green);
    flex-shrink: 0;
}

.quote-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

.quote-cancel-btn {
    background: none;
    border: 2px solid #ddd;
    color: var(--medium-gray);
    padding: 0.8rem 1.75rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.quote-cancel-btn:hover {
    border-color: var(--dark-gray);
    color: var(--dark-gray);
}

.quote-submit-btn {
    background: var(--swiftia-orange);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: var(--font-weight-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.quote-submit-btn:hover {
    background: var(--swiftia-dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 141, 46, 0.4);
}

.quote-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

.slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    background: transparent;
}

.slide-overlay .slide-content {
    padding-left: 6%;
}

.contact-info-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.contact-info-card h3 {
    color: var(--dark-gray);
    font-size: 1.05rem;
    margin-bottom: 0.6rem;
}

.contact-info-card p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.contact-info-card a {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-card a:hover {
    color: var(--swiftia-green);
}

.map-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 420px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

/* ==========================================================================
   HOMEPAGE - SERVICE CARDS
   ========================================================================== */

.service-img-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

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

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-badge-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.15rem;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.icon-navy { background: var(--swiftia-dark-blue); }
.icon-orange { background: var(--swiftia-orange); }
.icon-teal { background: #0F8C8C; }
.icon-cyan { background: var(--swiftia-blue); }
.icon-green { background: var(--swiftia-green); }
.icon-orange-light { background: #FFA95E; }

.service-card-body {
    padding-top: 1.5rem;
}

.service-card-body h3 {
    color: var(--swiftia-blue);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.service-card-body p {
    font-size: 0.92rem;
    color: var(--medium-gray);
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   VIDEO MODAL - ALTERNATE MARKUP
   ========================================================================== */

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    padding: 20px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   MOBILE & RESPONSIVE POLISH
   ========================================================================== */

@media (max-width: 1024px) {
    .slide-content h2 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .content-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-box {
        left: 0;
        right: auto;
        width: min(260px, calc(100vw - 40px));
        position: absolute;
        
    }

    .nav-menu.active ~ .menu-toggle,
    body.menu-open .menu-toggle {
        display: none !important;
    }
    
    .navbar {
        width: 95%;
        top: 25px;
        border-radius: 10px;
        background-color: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar.scrolled {
        top: 0px;
        width: 100%;
        border-radius: 0;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0.75rem 1rem;
    }

    .navbar .logo {
        display: flex;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .logo-img {
        width: 85px;
        height: 55px;
    }

    .menu-toggle {
        display: block;
        position: relative;
        transform: none;
        top: auto;
        right: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -5%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.9);
        flex-direction: column;
        padding: 70px 0 20px 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 1001;
        overflow-y: auto;
        gap: 0;
        align-items: flex-start;
    }

    .close-menu {
        display: block;
        font-size: 1.8rem;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        width: 100%;
    }

    .hero-slider {
        min-height: 500px;
    }

    .slide-text-item {
        padding: 120px 20px 20px 20px;
        align-items: flex-start;
    }

    .slide-content {
        max-width: 100%;
        text-align: center;
        background: rgba(255, 255, 255, 0.85);
        padding: 20px;
        border-radius: 12px;
        backdrop-filter: blur(5px);
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .slider-nav {
        left: 50%;
        bottom: 20px;
    }

    .section-title h2,
    .content-text h2 {
        font-size: 2rem;
    }

    .stats-grid,
    .services-grid,
    .purpose-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .careers-hero {
        min-height: 45vh;
        padding: 130px 1.5rem 60px;
    }

    .careers-hero-content h1 {
        font-size: 2.1rem;
    }

    .form-container {
        padding: 1.75rem 1.25rem;
    }

    .form-row,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .quote-modal-container {
        padding: 1.75rem 1.25rem;
        border-radius: 10px;
    }

    .quote-header {
        gap: 0.9rem;
    }

    .quote-product-box {
        flex-wrap: wrap;
    }

    .quote-actions {
        flex-direction: column-reverse;
    }

    .quote-actions button {
        width: 100%;
        justify-content: center;
    }

    .job-card-footer {
        flex-direction: column;
    }

    .apply-btn,
    .edit-job-btn {
        width: 100%;
    }

    .admin-buttons {
        flex-direction: column;
    }

    .admin-buttons .btn {
        width: 100%;
    }

    .map-container {
        height: 300px;
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(11, 37, 103, 0.75) 0%, rgba(11, 37, 103, 0.55) 100%);
    }

    .slide-overlay .slide-content {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .slide-content h2 {
        font-size: 1.5rem;
    }

    .gears-container {
      top:30px;
      left: 250px;
    }


    .slide-content p {
        font-size: 0.85rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .careers-hero-content h1 {
        font-size: 1.7rem;
    }

    .quote-modal {
        padding: 0;
    }

    .quote-modal-container {
        max-width: 100%;
        min-height: 100vh;
        border-radius: 0;
        padding: 1.5rem 1rem;
    }

    .products-grid,
    .jobs-container,
    .benefits-grid,
    .contact-info-grid {
        gap: 1.25rem;
    }
}

/* ==========================================================================
   JOB APPLICATION POPUP MODAL STYLES
   ========================================================================== */

.app-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2200;
    align-items: center;
    justify-content: center;
    padding: 2vh 1rem;
    overflow-y: auto;
}

.app-modal.active {
    display: flex;
}

.app-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 37, 103, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.app-modal-container {
    position: relative;
    background: var(--white);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 14px;
    z-index: 2;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: app-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes app-modal-in {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.app-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--light-gray);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--dark-gray);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.app-modal-close:hover {
    background: var(--swiftia-orange);
    color: var(--white);
}

.app-modal-header {
    padding: 2rem 2rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    background: #fafafa;
}

.app-modal-header h2 {
    font-family: var(--font-serif);
    color: var(--swiftia-green);
    font-size: 1.75rem;
    margin: 0.35rem 0 0.75rem;
}

.app-modal-body {
    padding: 2rem;
    overflow-y: auto;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3 i {
    color: var(--swiftia-green);
}

.modal-section p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-requirements {
    list-style: none;
    padding-left: 0;
}

.modal-requirements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
    line-height: 1.5;
}

.modal-requirements li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--swiftia-green);
    font-weight: bold;
}

/* Internship Highlight Box */
.internship-extra-box {
    background: rgba(46, 139, 87, 0.05);
    border: 1px dashed var(--swiftia-green);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.internship-extra-box h3 {
    color: var(--swiftia-dark-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.btn-download {
    background-color: var(--swiftia-blue);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-download:hover {
    background-color: var(--swiftia-dark-blue);
}

.internship-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.internship-contact h4 {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.internship-contact p {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.form-modal-section {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .app-modal-container {
        max-height: 95vh;
    }
    
    .app-modal-header, .app-modal-body {
        padding: 1.25rem;
    }

    .app-modal-header h2 {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   HERO CONTAINER (Curved Arc Architecture)
   ========================================================================== */
 /* HERO CONTAINER (Shape 4 - Base Layer) */
    .hero-container {
      position: relative;
      width: 100vw;
      height: 100vh;
      background-color: #FFFFFF; /* Base Shape 4 */
      overflow: hidden;
      display: flex;
      align-items: center;
    }

    /* Static Brand Info in Shape 4 (Bottom Left Area) */
    .static-content {
      position: relative;
      left: 8vw;
      bottom: 12vh;
      z-index: 5;
      max-width: 480px;
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 1.75rem;
      font-weight: 800;
      color: #00447C;
      margin-bottom: 1.25rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }

    .brand-logo svg {
      width: 38px;
      height: 38px;
      fill: #F68D2E;
    }

    .static-title {
      font-size: clamp(2rem, 3.5vw, 3.2rem);
      font-weight: 800;
      line-height: 1.15;
      color: #0f172a;
      margin-bottom: 1rem;
    }

    .static-description {
      font-size: 1.05rem;
      line-height: 1.6;
      color: #475569;
    }

    /* ARC LAYERS (Shapes 1, 2, 3) */
    .hero-arc {
      position: absolute;
      top: 0;
      right: 0;
      border-bottom-left-radius: 100%;
      overflow: hidden;
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .slide {
      position: absolute;
      inset: 0;
      opacity: 0;
      background-color: #000000; /* Prevents seeing shape-3 during image load/crossfade */
      transition: opacity 0.8s ease-in-out;
      pointer-events: none;
    }
    
    .slide img,
    .slide video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block; /* Removes inline spacing gaps */
    }

    /* Shape 3: Largest Radius (R3) */
    .shape-3 {
      width: 63.2vw;
      height: 50vw;
      min-width: 700px;
      min-height: 700px;
      background: #00447C;
      z-index: 1;
    }

    /* Shape 2: Medium Radius (R2) */
    .shape-2 {
      width: 63vw;
      height: 46vw;
      min-width: 500px;
      min-height: 500px;
      background: #F68D2E;
      z-index: 2;
    }

    /* Shape 1: Active Media Slide Layer (R1) */
.shape-1 {
  width: 62.5vw;
  height: 45vw;
  min-width: 320px;
  min-height: 320px;
  background-color: transparent; /* Changed from #000000 */
  z-index: 3;
  isolation: isolate;
}

/* Slider Track & Media Elements */
.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

    /* Overlay container anchored to the bottom right of Shape 1 */
    .slide-overlay {
      position: absolute;
      bottom: 15%;
      right: 12%;
      z-index: 1;
      display: flex;
      justify-content: flex-end;
      background: transparent;
    }

    /* Per-Slide Action Buttons */
      .slide-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top:500px;
      padding: 0.9rem 1.85rem;
      font-size: 0.95rem;
      font-weight: 700;
      color: #ffffff;
      background-color: #F68D2E;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
      transition: background-color 0.2s ease, transform 0.2s ease;
      z-index:1000;
    }

    .slide-btn:hover {
      background-color: #e07b22;
      transform: translateY(-2px);
    }

    .slide-btn svg {
      width: 18px;
      height: 18px;
      fill: #ffffff;
    }

    /* Slider Dots Indicators */
    .slide-dots {
      position: absolute;
      top: 35px;
      left: 45px;
      z-index: 15;
      display: flex;
      gap: 8px;
    }

    .dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.4);
      cursor: pointer;
      transition: all 0.3s ease;
      display:none;
    }

    .dot.active {
      background-color: #ffffff;
      width: 24px;
      border-radius: 12px;
    }

    /* MOBILE RESPONSIVE STYLES */
    @media (max-width: 768px) {
      .hero-container {
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
      }
      
    .logo-img2 {
        display:none;
    }
    
    .slide-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top:300px;
      padding: 0.9rem 1.85rem;
      font-size: 0.95rem;
      font-weight: 700;
      color: #ffffff;
      background-color: #F68D2E;
      border: none;
      border-radius: 50px;
      cursor: pointer;
      text-decoration: none;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
      transition: background-color 0.2s ease, transform 0.2s ease;
      
    }

    
      /* Adjust mobile shapes to span top width with an elliptical curve */
      .hero-arc {
        border-bottom-left-radius: 80% 50%;
      }

      .shape-3 {
        width: 100vw;
        height: 55vh;
        min-width: unset;
        min-height: unset;
      }

      .shape-2 {
        width: 100vw;
        height: 50vh;
        min-width: unset;
        min-height: unset;
      }

      .shape-1 {
        width: 100vw;
        height: 48vh;
        min-width: unset;
        min-height: unset;
      }

      /* Adjust text position below the shapes on mobile */
      .static-content {
        position: relative;
        left: 0;
        bottom: 0;
        padding: 2rem 1.5rem 3rem 1.5rem;
        max-width: 100%;
        margin-top: auto;
      }

      .static-title {
        font-size: 1.8rem;
      }

      .static-description {
        font-size: 0.95rem;
      }

      .slide-overlay {
        bottom: 12%;
        right: 8%;
        top: 0;
        height: 90%;
      }

      .slide-btn {
        padding: 0.75rem 1.4rem;
        font-size: 0.85rem;
      }

      .slide-dots {
        top: 20px;
        left: 20px;
      }
    }
/* ==========================================================================
   STATIC CONTENT (Exact Image Match)
   ========================================================================== */

.static-content {
    position: absolute;
    left: 6vw;
    bottom: 12vh;
    z-index: 10;
    max-width: 580px;
}

/* Multi-colored Stacked Title */
.static-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

/* Color Palette Matching the Image */
.static-title .title-dark-blue {
    color: #0b2356; /* Dark Navy Blue */
}

.static-title .title-orange {
    color: #d96328; /* Burnt Industrial Orange */
}

.static-title .title-teal {
    color: #1f7a7a; /* Deep Teal Green */
}

/* Subtitle Matching Image */
.static-description {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.2px;
    line-height: 1.35;
}

/* Upgraded About Section Gallery Grid */
.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 210px);
    gap: 15px;
    position: relative;
}

.about-img-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--light-gray);
}

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

.about-img-box:hover img {
    transform: scale(1.08);
}

/* Accent Badge on Main Image */
.img-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 68, 124, 0.85);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: var(--font-weight-medium);
    backdrop-filter: blur(4px);
}

.img-badge i {
    color: var(--swiftia-orange);
    margin-right: 5px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-gallery-grid {
        grid-template-rows: repeat(2, 160px);
        gap: 10px;
    }
}

/* ==========================================
   Services Section (3-Col Desktop, 2-Col Mobile)
   ========================================== */

.services {
    padding: 80px 20px;
    background-color: var(--light-gray, #f8f9fa);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-navy, #00447c);
    margin-bottom: 10px;
}

.section-title p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Fixed 3-Column Grid for Desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Container (No overflow:hidden so badges don't get clipped) */
.service-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Image Wrapper */
.service-img-wrapper {
    position: relative;
    height: 180px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Badge Icons Fix */
.service-badge-icon {
    position: absolute;
    bottom: 2px;
    right: 15px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Icon Color Variants */
.icon-navy { background-color: #00447c; }
.icon-orange { background-color: #e65100; }
.icon-teal { background-color: #00838f; }
.icon-cyan { background-color: #00acc1; }
.icon-green { background-color: #2e7d32; }
.icon-orange-light { background-color: #f57c00; }

/* Card Body */
.service-card-body {
    padding: 28px 20px 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.service-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.25;
}

.service-card-body p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
}

.service-card-body .btn {
    margin-top: auto;
    align-self: center;
}


/* ==========================================
   Mobile 2-Column Responsive Layout (<= 768px)
   ========================================== */
@media (max-width: 768px) {
    .services {
        padding: 40px 12px;
    }

    /* Switches to 2 Columns on Mobile */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .service-img-wrapper {
        height: 110px;
    }

    .service-badge-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        bottom: 5px;
        right: 10px;
    }

    .service-card-body {
        padding: 20px 8px 12px 8px;
    }

    .service-card-body h3 {
        font-size: 0.75rem;
        min-height: 30px;
        margin-bottom: 6px;
    }

    .service-card-body p {
        font-size: 0.7rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .service-card-body .btn {
        padding: 6px 8px;
        font-size: 0.7rem;
        width: 100%;
        border-radius: 6px;
    }
}

/* ==========================================================================
   MOBILE HERO SOCIAL MEDIA
   --------------------------------------------------------------------------
   Dedicated layer - does not modify slider/hero layers
   ========================================================================== */

.mobile-hero-socials {
    display: none;
}


/* ==========================================================================
   MOBILE ONLY
   ========================================================================== */

@media (max-width: 768px) {
    
    .static-content {
        transform: translateY(20px);
    }
    
    .hero-container {
        height: 83vh;
    }

    .shape-3 {
        width: 100vw;
        height: 45vh;
    }

    .shape-2 {
        width: 100vw;
        height: 42vh;
    }

    .shape-1 {
        width: 100vw;
        height: 40vh;
    }

.mobile-hero-socials { 
    position: absolute; 
    
    /* * Lower section of the hero. * Kept independent from .shape-1 and slider controls. */ 
    left: 50%; 
    bottom: 10px; 
    transform: translateX(-50%); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 20px; 
    width: auto; 
    max-width: calc(100vw - 20px); 
    
    /* * Dedicated stacking layer. * Above hero shapes but below navigation/modal systems. */ 
    z-index: 9999; 
    padding: 7px 7px; 
    border-radius: 50px; 
    background: rgba(255, 255, 255, 0.88); 
    border: 1px solid rgba(255, 255, 255, 0.65); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    pointer-events: auto; 
    
}

    /* * Sticky state when scrolling upward */ 
    .mobile-hero-socials.socials-sticky { 
        position: fixed; 
        top: 10px; 
        bottom: auto; 
        left: 50%; 
        transform: translateX(-50%); 
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); 
        z-index: 9999;
        
    }


    /* Individual social icon */

    .hero-social-link {
        width: 38px;
        height: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        flex: 0 0 38px;

        border-radius: 50%;

        text-decoration: none;

        color: #ffffff;

        font-size: 17px;

        transition:
            transform 0.25s ease,
            box-shadow 0.25s ease,
            opacity 0.25s ease;

        -webkit-tap-highlight-color: transparent;
    }


    /* TikTok */

    .hero-social-link.tiktok {
        background: #000000;
    }


    /* YouTube */

    .hero-social-link.youtube {
        background: #FF0000;
    }


    /* X */

    .hero-social-link.x-twitter {
        background: #000000;
    }


    /* WhatsApp */

    .hero-social-link.whatsapp {
        background: #25D366;
    }


    /* Facebook */

    .hero-social-link.facebook {
        background: #1877F2;
    }
    
    /* LinkedIn */

    .hero-social-link.linkedin {
    background: #0A66C2;
    color: #ffffff;
    }
    
    .hero-social-link.linkedin i {
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    font-style: normal;
    }


    /* Instagram */
    
    .hero-social-link.instagram {
    background: linear-gradient(
    45deg,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285AEB 90%
    );
    
    color: #ffffff;

    }
    
    .hero-social-link.instagram i {
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    font-style: normal;
    }
    
    .hero-social-link.x-twitter {
        background: #000000;
        color: #ffffff;
    }
    
    .hero-social-link.x-twitter i {
        font-size: 16px;
        line-height: 1;
    }

    /* Touch / hover interaction */

    .hero-social-link:hover {
        transform: translateY(-3px) scale(1.06);

        box-shadow:
            0 6px 14px rgba(0, 0, 0, 0.22);
    }


    .hero-social-link:active {
        transform: scale(0.94);
    }


    .hero-social-link:focus-visible {
        outline: 2px solid #F68D2E;
        outline-offset: 3px;
    }


    /* Slightly smaller phones */

    @media (max-width: 380px) {

        .mobile-hero-socials {
            bottom: 16px;
            gap: 7px;
            padding: 6px 8px;
        }
        
        .gears-container {
          top:30px;
          left: 250px;
        }


        .hero-social-link {
            width: 34px;
            height: 34px;

            flex-basis: 34px;

            font-size: 15px;
        }
    }

}

/* ==========================================================================
   SWIFTIA FLUID RESPONSIVE SYSTEM
   --------------------------------------------------------------------------
   Responsive override layer.
   Keeps existing design/classes intact while making sizing, spacing,
   grids, typography, hero elements, forms, modals and navigation fluid
   from very small phones through tablets, laptops, desktop and 4K displays.
   ========================================================================== */

/* ---------- Fluid design tokens ---------- */
:root {
    --fluid-gutter: clamp(0.75rem, 2.5vw, 3rem);
    --fluid-section-y: clamp(2.5rem, 6vw, 6rem);
    --fluid-gap-xs: clamp(0.35rem, 0.8vw, 0.75rem);
    --fluid-gap-sm: clamp(0.6rem, 1.2vw, 1rem);
    --fluid-gap-md: clamp(1rem, 2vw, 1.75rem);
    --fluid-gap-lg: clamp(1.5rem, 3vw, 3.5rem);
    --content-max: 1400px;
    --wide-content-max: 1600px;
    --fluid-radius: clamp(0.5rem, 1vw, 1rem);
}

html {
    font-size: clamp(14px, 0.25vw + 13px, 18px);
    overflow-x: hidden;
}

body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

main,
section,
.footer {
    width: 100%;
    min-width: 0;
}

button,
input,
select,
textarea {
    max-width: 100%;
}

/* ---------- Shared responsive content width ---------- */
.top-bar-content,
.nav-container,
.services-grid,
.content-container,
.purpose-grid,
.gallery-grid,
.footer-content,
.benefits-grid,
.jobs-container,
.job-filters,
.admin-controls,
.post-job-form,
.form-container {
    width: min(100% - (2 * var(--fluid-gutter)), var(--content-max));
    max-width: var(--content-max);
}

.top-bar-content,
.nav-container,
.services-grid,
.content-container,
.purpose-grid,
.gallery-grid,
.footer-content,
.benefits-grid,
.jobs-container,
.job-filters,
.admin-controls,
.post-job-form,
.form-container {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Images and media ---------- */
img,
svg,
video,
iframe {
    max-width: 100%;
}

iframe {
    border: 0;
}

/* ---------- Top bar ---------- */
.top-bar {
    padding: clamp(0.2rem, 0.45vw, 0.45rem) 0;
    font-size: clamp(0.68rem, 0.7vw, 0.85rem);
}

.top-bar-content {
    padding-left: 0;
    padding-right: 0;
    gap: var(--fluid-gap-sm);
}

.contact-info,
.social-links {
    min-width: 0;
    flex-wrap: wrap;
}

.contact-info {
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.social-links a {
    margin-left: clamp(0.25rem, 0.7vw, 0.75rem);
}

/* ---------- Navigation ---------- */
.navbar {
    width: min(92%, var(--content-max));
    max-width: var(--content-max);
    top: clamp(0.5rem, 1.5vw, 1rem);
    border-radius: clamp(0.6rem, 1vw, 1rem);
}

.navbar.scrolled {
    width: 100%;
    max-width: none;
    top: 0;
    border-radius: 0;
}

.nav-container {
    width: 100%;
    max-width: var(--content-max);
    padding: clamp(0.5rem, 1vw, 0.85rem) var(--fluid-gutter);
    gap: clamp(0.5rem, 1.5vw, 1.5rem);
}

.nav-menu {
    gap: clamp(0.65rem, 1.5vw, 1.5rem);
}

.nav-link {
    font-size: clamp(0.78rem, 0.75vw, 0.95rem);
    white-space: nowrap;
}

.logo-img {
    width: clamp(76px, 7vw, 110px);
    height: auto;
    aspect-ratio: 100 / 35;
}

.logo-text {
    font-size: clamp(1.05rem, 1.5vw, 1.5rem);
}

.logo-tagline {
    font-size: clamp(0.65rem, 0.7vw, 0.8rem);
}

.search-box {
    width: clamp(180px, 18vw, 260px);
}

.search-box input {
    font-size: clamp(0.75rem, 0.7vw, 0.9rem);
}

.dropdown-content {
    min-width: clamp(180px, 18vw, 240px);
}

.dropdown-content a {
    font-size: clamp(0.78rem, 0.7vw, 0.9rem);
    padding: clamp(0.5rem, 0.7vw, 0.65rem) clamp(0.65rem, 1vw, 0.9rem);
}

/* ---------- Hero: fluid architecture ---------- */
.hero-container {
    width: 100%;
    height: clamp(560px, 100svh, 1100px);
    min-height: 560px;
    max-height: 1100px;
}

.hero-arc {
    max-width: 100%;
    max-height: 100%;
}

.shape-3 {
    width: clamp(620px, 63vw, 1050px);
    height: clamp(620px, 50vw, 850px);
    min-width: 0;
    min-height: 0;
}

.shape-2 {
    width: clamp(500px, 63vw, 1040px);
    height: clamp(500px, 46vw, 780px);
    min-width: 0;
    min-height: 0;
}

.shape-1 {
    width: clamp(360px, 62.5vw, 1030px);
    height: clamp(360px, 45vw, 760px);
    min-width: 0;
    min-height: 0;
}

.static-content {
    left: clamp(1rem, 6vw, 7rem);
    bottom: clamp(2rem, 12vh, 8rem);
    width: min(42vw, 580px);
    max-width: 580px;
}

.static-title {
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    margin-bottom: clamp(0.6rem, 1.2vw, 1rem);
}

.static-description {
    font-size: clamp(0.9rem, 1.35vw, 1.5rem);
    line-height: clamp(1.3, 1.35, 1.6);
}

.brand-logo {
    gap: clamp(0.5rem, 1vw, 0.8rem);
    font-size: clamp(1.1rem, 1.8vw, 1.75rem);
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
}

.brand-logo svg {
    width: clamp(28px, 2.5vw, 38px);
    height: auto;
}

.slide-overlay {
    bottom: clamp(5%, 15%, 18%);
    right: clamp(4%, 12%, 16%);
    max-width: 90%;
}

.slide-btn {
    margin-top: Auto;
    padding: clamp(0.65rem, 1vw, 0.9rem) clamp(1rem, 2vw, 1.85rem);
    font-size: clamp(0.78rem, 0.85vw, 0.95rem);
    gap: clamp(0.4rem, 0.7vw, 0.65rem);
}

.slide-btn svg {
    width: clamp(14px, 1.2vw, 18px);
    height: auto;
}

.slide-dots {
    top: clamp(1rem, 2.5vw, 2.2rem);
    left: clamp(1rem, 3vw, 3rem);
    gap: clamp(0.35rem, 0.7vw, 0.6rem);
}

.dot {
    width: clamp(7px, 0.65vw, 10px);
    height: clamp(7px, 0.65vw, 10px);
}

.dot.active {
    width: clamp(18px, 1.6vw, 24px);
}

/* ---------- Hero text layer ---------- */
.hero-text-layer {
    width: 100%;
    min-width: 0;
}

.slide-text-item {
    padding-left: clamp(1rem, 5vw, 5rem);
    padding-right: clamp(1rem, 5vw, 5rem);
}

.slide-content {
    width: min(100%, 560px);
    max-width: 560px;
}

.slide-content h2 {
    font-size: clamp(1.45rem, 3.2vw, 3rem);
    line-height: 1.12;
    margin-bottom: clamp(0.7rem, 1.5vw, 1.25rem);
}

.slide-content p {
    font-size: clamp(0.88rem, 1.05vw, 1.15rem);
    margin-bottom: clamp(1rem, 2.5vw, 2.2rem);
}

.video-button {
    padding: clamp(0.65rem, 1vw, 0.9rem) clamp(1rem, 2vw, 1.75rem);
    font-size: clamp(0.78rem, 0.8vw, 0.95rem);
}

/* ---------- General sections ---------- */
.services,
.content-section,
.stats-section,
.purpose,
.gallery,
.why-work,
.job-openings,
.application-form-section,
.contact-info-section,
.contact-form-section,
.map-section {
    padding-top: var(--fluid-section-y);
    padding-bottom: var(--fluid-section-y);
}

.section-title {
    margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
    padding-inline: var(--fluid-gutter);
}

.section-title h2 {
    font-size: clamp(1.65rem, 3.2vw, 2.75rem);
}

.section-title p {
    width: min(100%, 700px);
    font-size: clamp(0.9rem, 1.05vw, 1.15rem);
}

/* ---------- Responsive grids ---------- */
.services-grid,
.benefits-grid,
.jobs-container,
.products-grid,
.purpose-grid,
.gallery-grid,
.footer-content {
    gap: clamp(0.8rem, 1.8vw, 2rem);
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.jobs-container {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.products-grid {
    width: min(100% - (2 * var(--fluid-gutter)), var(--content-max));
    max-width: var(--content-max);
    margin-inline: auto;
    padding: var(--fluid-section-y) 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.purpose-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

/* ---------- Cards ---------- */
.service-card,
.benefit-card,
.purpose-card,
.job-card,
.product-card,
.stat-item,
.contact-info-card {
    min-width: 0;
}

.service-card,
.benefit-card,
.purpose-card {
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: var(--fluid-radius);
}

.service-icon,
.purpose-icon {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem);
}

.service-card h3,
.benefit-card h3,
.purpose-card h3 {
    font-size: clamp(1rem, 1.2vw, 1.3rem);
}

.service-card p,
.benefit-card p,
.purpose-card p {
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

.service-img-wrapper {
    height: clamp(150px, 20vw, 240px);
}

.service-card-body {
    padding: clamp(1rem, 1.8vw, 1.5rem);
}

.service-card-body h3 {
    font-size: clamp(1rem, 1.25vw, 1.35rem);
}

.service-card-body p {
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

/* ---------- Content section ---------- */
.content-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
}

.content-image img {
    height: clamp(240px, 32vw, 460px);
}

.content-text h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    margin-bottom: clamp(1rem, 2vw, 2rem);
}

.content-text p {
    font-size: clamp(0.9rem, 1.05vw, 1.1rem);
    padding: clamp(0.5rem, 1.5vw, 1.25rem);
}

/* ---------- Stats ---------- */
.stats-grid {
    width: min(100% - (2 * var(--fluid-gutter)), 1100px);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: clamp(0.8rem, 2.5vw, 2.5rem);
}

.stat-item {
    padding: clamp(1rem, 2vw, 2rem);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.stat-text {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
}

/* ---------- Gallery ---------- */
.gallery-item {
    height: clamp(200px, 25vw, 360px);
}

.gallery-overlay {
    padding: clamp(0.8rem, 1.5vw, 1.5rem);
}

.gallery-overlay h3 {
    font-size: clamp(1rem, 1.25vw, 1.3rem);
}

/* ---------- Forms ---------- */
.form-container {
    padding: clamp(1rem, 3vw, 2.5rem);
    border-radius: var(--fluid-radius);
}

.form-title {
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

.form-row,
.quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.form-group {
    margin-bottom: clamp(0.8rem, 1.5vw, 1.5rem);
}

.form-group label,
.form-group input,
.form-group select,
.form-group textarea {
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    padding: clamp(0.65rem, 1vw, 0.85rem) clamp(0.75rem, 1.2vw, 1rem);
}

.form-group textarea {
    min-height: clamp(100px, 12vw, 160px);
}

.upload-area {
    padding: clamp(1.25rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.5rem);
}

.upload-area i {
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
}

/* ---------- Careers / agricultural heroes ---------- */
.careers-hero,
.agric-hero {
    min-height: clamp(420px, 55vh, 720px);
    padding: clamp(100px, 15vh, 160px) var(--fluid-gutter) clamp(2.5rem, 6vw, 5rem);
}

.careers-hero-content,
.agric-hero-content {
    width: min(100%, 760px);
}

.careers-hero-content h1,
.agric-hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.careers-hero-content p,
.agric-hero-content p {
    font-size: clamp(0.9rem, 1.15vw, 1.15rem);
}

/* ---------- Job cards ---------- */
.job-card-header,
.job-card-body,
.job-card-footer {
    padding-left: clamp(1rem, 1.5vw, 1.5rem);
    padding-right: clamp(1rem, 1.5vw, 1.5rem);
}

.job-card-header {
    padding-top: clamp(1rem, 1.5vw, 1.5rem);
}

.job-card-body {
    padding-top: clamp(0.9rem, 1.25vw, 1.25rem);
    padding-bottom: clamp(0.9rem, 1.25vw, 1.25rem);
}

.job-card-footer {
    padding-top: clamp(0.9rem, 1.25vw, 1.25rem);
    padding-bottom: clamp(0.9rem, 1.25vw, 1.25rem);
}

.job-card-header h3 {
    font-size: clamp(1rem, 1.15vw, 1.25rem);
}

.job-description,
.job-requirements li {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
}

/* ---------- Product cards ---------- */
.product-img {
    height: clamp(180px, 20vw, 260px);
}

.product-content {
    padding: clamp(1rem, 1.6vw, 1.5rem);
}

.product-content h3 {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
}

.product-description,
.features li {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
}

.price {
    font-size: clamp(1.1rem, 1.35vw, 1.4rem);
}

/* ---------- Quote / application modals ---------- */
.quote-modal {
    padding: clamp(0.75rem, 4vh, 3rem) var(--fluid-gutter);
}

.quote-modal-container {
    width: min(100%, 820px);
    max-height: calc(100svh - 2 * clamp(0.75rem, 4vh, 3rem));
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 2.5rem);
    border-radius: clamp(0.65rem, 1vw, 0.9rem);
}

.quote-header {
    gap: clamp(0.65rem, 1.2vw, 1.2rem);
}

.quote-header-icon {
    width: clamp(42px, 4vw, 55px);
    height: clamp(42px, 4vw, 55px);
    font-size: clamp(1rem, 1.3vw, 1.4rem);
}

.quote-header h2 {
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
}

.quote-header p,
.quote-section-title p {
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
}

.quote-product-box {
    padding: clamp(0.75rem, 1.5vw, 1.2rem);
}

.quote-grid {
    width: 100%;
}

.quote-full-field {
    margin-top: clamp(0.75rem, 1.2vw, 1.25rem);
}

.quote-input-wrapper input,
.quote-input-wrapper select {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    padding: clamp(0.65rem, 0.9vw, 0.75rem) 0.75rem clamp(0.65rem, 0.9vw, 0.75rem) 2.5rem;
}

/* ---------- Video modal ---------- */
.video-modal {
    padding: var(--fluid-gutter);
}

.modal-content {
    width: min(100%, 1100px);
    padding: clamp(0.5rem, 1.5vw, 1.25rem);
}

.close-modal {
    top: clamp(-2.5rem, -4vw, -1.5rem);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

/* ---------- Footer ---------- */
.footer {
    padding: clamp(1.5rem, 3vw, 2.5rem) var(--fluid-gutter) clamp(0.5rem, 1vw, 1rem);
}

.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.footer-section h4 {
    font-size: clamp(0.95rem, 1vw, 1.1rem);
}

.footer-links a,
.contact-details p {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
}

.footer-bottom {
    font-size: clamp(0.7rem, 0.75vw, 0.82rem);
}

/* ---------- Buttons ---------- */
.btn {
    min-height: 2.5rem;
    padding: clamp(0.6rem, 0.9vw, 0.8rem) clamp(0.9rem, 1.6vw, 1.5rem);
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
}

.filter-btn {
    padding: clamp(0.5rem, 0.75vw, 0.65rem) clamp(0.8rem, 1.4vw, 1.4rem);
    font-size: clamp(0.75rem, 0.8vw, 0.85rem);
}

/* ---------- Mobile navigation ---------- */
@media (max-width: 900px) {
    .navbar {
        width: min(94%, 760px);
    }

    .navbar .logo {
        display: flex;
    }

    .nav-container {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
        font-size: clamp(1.25rem, 5vw, 1.6rem);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 360px);
        max-width: 360px;
        height: 100svh;
        min-height: 100vh;
        padding: clamp(4rem, 12vw, 5rem) 0 1rem;
        transform: translateX(110%);
        gap: 0;
    }

    .nav-menu li,
    .nav-link {
        width: 100%;
    }

    .nav-link {
        padding: clamp(0.8rem, 3vw, 1rem) clamp(1rem, 5vw, 2rem);
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        white-space: normal;
    }

    .search-box {
        width: min(75vw, 280px);
    }

    .navbar:not(.scrolled) .nav-link,
    .navbar:not(.scrolled) .search-toggle-btn {
        color: #000000;
    }

    .navbar:not(.scrolled) .nav-link::after {
        background-color: var(--swiftia-green);
    }
}

/* ---------- Tablet / narrow desktop ---------- */
@media (max-width: 1100px) {
    .content-container {
        grid-template-columns: 1fr;
    }


    .content-image img {
        height: clamp(250px, 45vw, 420px);
    }

    .content-text {
        width: min(100%, 800px);
        margin-inline: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    :root {
        --fluid-gutter: clamp(0.7rem, 4vw, 1.25rem);
        --fluid-section-y: clamp(2rem, 8vw, 3.5rem);
    }


    section[id],
    .footer[id],
    main[id] {
        scroll-margin-top: clamp(70px, 18vw, 95px);
    }

    .top-bar-content {
        justify-content: center;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    .social-links {
        display: none;
    }

    .navbar {
        width: calc(100% - 1.2rem);
        top: 0.4rem;
    }

    .navbar.scrolled {
        width: 100%;
    }

    .nav-container {
        padding: 0.55rem var(--fluid-gutter);
    }

    .hero-container {
        height: clamp(600px, 100svh, 850px);
        min-height: 600px;
        max-height: 850px;
        overflow: hidden;
    }

    .shape-3 {
        width: 100%;
        height: clamp(330px, 58svh, 520px);
    }

    .shape-2 {
        width: 100%;
        height: clamp(300px, 52svh, 470px);
    }

    .shape-1 {
        width: 100%;
        height: clamp(285px, 50svh, 450px);
    }

    .static-content {
        left: 0;
        bottom: 15%;
        width: 100%;
        max-width: none;
        padding: clamp(1rem, 5vw, 2rem) var(--fluid-gutter) clamp(4.5rem, 14vw, 6rem);
        transform: none;
    }

    .static-title {
        font-size: clamp(1.7rem, 9vw, 3.8rem);
    }

    .static-description {
        font-size: clamp(0.85rem, 3.8vw, 1.1rem);
    }

    .brand-logo {
        font-size: clamp(1rem, 5vw, 1.4rem);
    }

    .slide-text-item {
        padding: clamp(4.5rem, 18vw, 7rem) var(--fluid-gutter) 1rem;
        align-items: flex-start;
    }

    .slide-content {
        width: 100%;
        max-width: 100%;
        padding: clamp(0.8rem, 4vw, 1.25rem);
    }

    .slide-content h2 {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .slide-content p {
        font-size: clamp(0.8rem, 3.5vw, 1rem);
        margin-bottom: clamp(0.8rem, 4vw, 1.5rem);
    }

    .slide-overlay {
        bottom: clamp(10%, 13vw, 16%);
        right: var(--fluid-gutter);
    }

    .slide-btn {
        padding: 0.65rem 1rem;
        font-size: clamp(0.72rem, 3vw, 0.85rem);
    }

    .slide-dots {
        top: 1rem;
        left: 1rem;
    }

    .form-row,
    .quote-grid {
        grid-template-columns: 1fr;
    }

    .quote-full-field {
        grid-column: auto;
    }

    .job-card-footer {
        flex-direction: column;
    }

    .job-card-footer .btn,
    .apply-btn,
    .edit-job-btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    }

    .mobile-hero-socials {
        gap: clamp(0.3rem, 2vw, 0.9rem);
        max-width: calc(100% - 1rem);
        padding: 0.35rem;
        bottom: clamp(2.0rem, 12vw, 4.0rem);
        margin-top: 45px;
    }

    .hero-social-link {
        width: clamp(32px, 9vw, 40px);
        height: clamp(32px, 9vw, 40px);
        flex-basis: clamp(32px, 9vw, 40px);
        font-size: clamp(0.85rem, 4vw, 1.05rem);
    }

    .hero-social-link.linkedin i,
    .hero-social-link.instagram i {
        font-size: clamp(0.85rem, 4vw, 1.05rem);
    }
}

/* ---------- Very small phones ---------- */
@media (max-width: 380px) {
    .hero-container {
        height: max(580px, 100svh);
        min-height: 580px;
    }

    .static-content {
        padding-bottom: 4.25rem;
    }

    .static-title {
        font-size: clamp(1.45rem, 8vw, 1.8rem);
    }

    .static-description {
        font-size: clamp(0.78rem, 3.6vw, 0.9rem);
    }

    .mobile-hero-socials {
        gap: 0.25rem;
        padding: 0.3rem;
    }

    .hero-social-link {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
        font-size: 0.8rem;
    }
}

/* ---------- Ultra-wide / large screens ---------- */
@media (min-width: 1600px) {
    :root {
        --content-max: 1500px;
        --wide-content-max: 1800px;
    }

    .navbar {
        width: min(88%, var(--content-max));
    }

    .nav-container,
    .top-bar-content,
    .services-grid,
    .content-container,
    .purpose-grid,
    .gallery-grid,
    .footer-content,
    .benefits-grid,
    .jobs-container,
    .job-filters,
    .admin-controls,
    .post-job-form,
    .form-container {
        max-width: var(--content-max);
    }

    .hero-container {
        height: min(100svh, 1100px);
    }

    .static-content {
        left: max(5vw, calc((100vw - var(--content-max)) / 2));
        width: min(38vw, 650px);
    }
}

@media (min-width: 2200px) {
    :root {
        --content-max: 1700px;
    }

    .hero-container {
        max-height: 1200px;
    }

    .static-title {
        font-size: clamp(3rem, 3vw, 4.2rem);
    }

    .static-description {
        font-size: clamp(1.2rem, 1.2vw, 1.6rem);
    }
}

/* ---------- Landscape phones ---------- */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-container {
        height: max(520px, 100svh);
        min-height: 520px;
    }

    .shape-3 {
        height: 90svh;
    }

    .shape-2 {
        height: 82svh;
    }

    .shape-1 {
        height: 78svh;
    }

    .static-content {
        padding-bottom: clamp(3.5rem, 8vw, 5rem);
    }

    .static-title {
        font-size: clamp(1.35rem, 5vw, 2.2rem);
    }

    .static-description {
        font-size: clamp(0.75rem, 2vw, 0.95rem);
    }

    .mobile-hero-socials {
        bottom: 0.4rem;
    }
}

/* ---------- Prevent horizontal overflow from long content ---------- */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
label,
span,
button,
input,
select,
textarea {
    overflow-wrap: anywhere;
}

.nav-link,
.filter-btn,
.btn,
.video-button {
    overflow-wrap: normal;
}

table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

/* ---------- Reduced-motion accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ---------- Remaining component families ---------- */
.contact-info-grid {
    width: min(100% - (2 * var(--fluid-gutter)), var(--content-max));
    margin-inline: auto;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(0.8rem, 2vw, 1.5rem);
}

.contact-info-card {
    padding: clamp(1rem, 2vw, 1.5rem);
}

.contact-info-card h3 {
    font-size: clamp(1rem, 1.15vw, 1.25rem);
}

.contact-info-card p,
.contact-info-card a {
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

.map-container {
    width: min(100% - (2 * var(--fluid-gutter)), var(--content-max));
    margin-inline: auto;
    min-height: clamp(260px, 35vw, 500px);
}

.map-container iframe {
    width: 100%;
    min-height: clamp(260px, 35vw, 500px);
}

.video-container {
    width: min(100%, 1000px);
    margin-inline: auto;
}

.video-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 0;
}

.hero-slider {
    width: 100%;
    min-height: clamp(420px, 75vh, 900px);
}

.slider-nav {
    bottom: clamp(0.75rem, 2.5vw, 2rem);
    gap: clamp(0.4rem, 1vw, 0.8rem);
}

.app-modal-container {
    width: min(100% - (2 * var(--fluid-gutter)), 850px);
    max-height: calc(100svh - 2 * var(--fluid-gutter));
    overflow-y: auto;
    padding: clamp(1rem, 3vw, 2rem);
}

.app-modal-header,
.app-modal-body {
    padding: clamp(1rem, 2.5vw, 1.75rem);
}

.app-modal-header h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.modal-section h3 {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
}

.modal-section p,
.modal-requirements li,
.internship-contact p {
    font-size: clamp(0.8rem, 0.9vw, 0.95rem);
}

.internship-extra-box,
.form-modal-section {
    padding: clamp(0.8rem, 2vw, 1.5rem);
}

.btn-download {
    max-width: 100%;
}

/* About/gallery layouts */
.about-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(0.75rem, 2vw, 1.5rem);
}

.about-img-box {
    min-width: 0;
}

.about-img-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Keep form controls usable at every width, including narrow phones. */
.form-group input,
.form-group select,
.form-group textarea,
.quote-input-wrapper input,
.quote-input-wrapper select,
.quote-input-wrapper textarea {
    min-width: 0;
    max-width: 100%;
}

.form-actions,
.quote-actions,
.admin-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 1rem);
}

.quote-actions button,
.form-actions .btn,
.admin-buttons .btn {
    max-width: 100%;
}

@media (max-width: 600px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .map-container,
    .map-container iframe {
        min-height: 250px;
    }

    .quote-actions,
    .form-actions,
    .admin-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .quote-actions button,
    .form-actions .btn,
    .admin-buttons .btn {
        width: 100%;
    }

    .about-gallery-grid {
        grid-template-columns: 1fr;
    }
    

}

/* ---------- Touch devices: remove hover-dependent movement ---------- */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .benefit-card:hover,
    .purpose-card:hover,
    .job-card:hover,
    .product-card:hover,
    .stat-item:hover,
    .gallery-item:hover {
        transform: none;
    }

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-item:hover .gallery-overlay {
        transform: translateY(0);
    }
}

    .gears-container {
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      width: 240px;
      height: 180px;
      z-index:90;
    }

    .gear-icon {
      width: 45px;
      height: 45px;
      position: absolute;
      transform-origin: center;
      animation: spin 8s linear infinite;
    }

    /* Left gear positioning & color */
    .gear-left {
      top: 60px;
      width: 50px;  /* Increased size */
      height: 50px; /* Increased size */
      left: 37px;
      color: #e65129;
    }

    /* Middle gear (Red, larger size, and counter-rotating) */
    .gear-middle {
      width: 60px;  /* Increased size */
      height: 60px; /* Increased size */
      top: 12px;
      left: 60px;   /* Adjusted to align interlock */
      color: #2772db;
      animation-name: spin-reverse;
    }

    /* Right gear positioning */
    .gear-right {
      top: 57px;
      left: 100px;  /* Adjusted to match larger middle gear */
      color: #e65129;
    }

    /* Optional hover effect on the entire container */
    .gears-container:hover .gear-icon {
      animation-duration: 1.5s;
    }

    @keyframes spin {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(360deg);
      }
    }

    @keyframes spin-reverse {
      from {
        transform: rotate(0deg);
      }
      to {
        transform: rotate(-360deg);
      }
    }
    
@media (min-width: 1600px) {
    .gears-container {
      top:-15px;
      left: 80px;
    }
}