:root {
    /* --- Color Palette --- */
    /* Primary: Navy Blue */
    --primary-color: #1a376f;
    --primary-light: #2c4d8f;

    /* Secondary: Burnt Orange */
    --secondary-color: #b8552b;
    --secondary-dark: #9a4623;

    /* Neutrals */
    --bg-body: #F9FAFB;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F3F4F6;

    --text-main: #111827;
    /* Gray 900 */
    --text-secondary: #374151;
    /* Gray 700 */
    --text-muted: #6B7280;
    /* Gray 500 */

    /* Accents */
    --border-color: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(255, 255, 255, 0.6);

    /* Gradients */
    --gradient-primary: linear-gradient(to right, #1a376f 0%, #b8552b 100%);
    --gradient-eco: linear-gradient(to right, #1a376f 0%, #b8552b 100%);
    --gradient-glow: linear-gradient(135deg, rgba(26, 55, 111, 0.05) 0%, rgba(184, 85, 43, 0.05) 100%);

    /* Shadows - Layered for depth */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-color: 0 25px 50px -12px rgba(0, 191, 166, 0.15);
    /* Colored glow */

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    /* Keeping consistent */

    /* Transitions */
    --ease-out-cubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    --ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275);
    --transition-fast: 0.2s var(--ease-out-cubic);
    --transition-base: 0.4s var(--ease-out-cubic);
    --transition-smooth: 0.6s var(--ease-out-cubic);
}

[data-theme="dark"] {
    --primary-color: #64b5f6;
    /* Lighter Blue */
    --primary-light: #9be7ff;

    --secondary-color: #ff8a65;
    /* Lighter Orange */
    --secondary-dark: #ff7043;

    --bg-body: #0a0e17;
    /* Rich black */
    --bg-surface: #111827;
    /* Dark gray */
    --bg-surface-alt: #1f2937;

    --text-main: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;

    --border-color: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);

    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-color: 0 25px 50px -12px rgba(56, 189, 248, 0.1);
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-secondary);
    background-color: var(--bg-body);
    line-height: 1.8;
    /* Airy reading */
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;

    /* Subtle Pattern Background */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(15, 52, 96, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 191, 166, 0.03) 0%, transparent 25%);
    background-attachment: fixed;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(74, 222, 128, 0.05) 0%, transparent 25%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    /* Modern tighten */
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* --- Layout --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 140px 0;
    position: relative;
}

/* Abstract Background Shapes for Sections */
.section-bg-abstract::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-gradient {
    background: var(--gradient-eco);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    /* Fallback */
    display: inline-block;
    /* Often needed for gradients */
}

/* --- Components --- */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 45px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-back);
    position: relative;
    overflow: hidden;
    z-index: 10;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 10px 20px rgba(15, 52, 96, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(15, 52, 96, 0.3);
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(15, 52, 96, 0.15);
}

[data-theme="dark"] .btn-primary {
    color: #0a0e17;
}

[data-theme="dark"] .btn-outline {
    border-color: #fff;
    color: #fff;
}

[data-theme="dark"] .btn-outline:hover {
    background: #fff;
    color: #0a0e17;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-base);
    background: transparent;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar.scrolled {
    height: 80px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 14, 23, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
    /* Push links to the right */
}

.navbar-brand img {
    height: 60px;
    /* Increased from 48px */
    filter: brightness(0) invert(1);
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar-brand {
    color: var(--text-main);
}

.navbar.scrolled .navbar-brand img {
    filter: none;
}

[data-theme="dark"] .navbar.scrolled .navbar-brand {
    color: #fff;
}

[data-theme="dark"] .navbar.scrolled .navbar-brand img {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.navbar.scrolled .nav-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .navbar.scrolled .nav-link:hover {
    color: #fff;
}

/* Hero Section */
.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    height: 100% !important;
    width: 100% !important;
    border: none;
    outline: none;
    display: block;
    /* Ensure block level */
}

.hero-slider,
.hero-wrapper {
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background: #000;
    /* Fallback black background to hide gaps */
}

.slide-overlay {
    background: rgba(0, 0, 0, 0.75);
    /* Darker overlay */
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slider {
    position: absolute;
    /* Absolute to sit behind content */
    top: 0;
    left: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
}

/* Static Hero Content */
.hero-wrapper {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
}

.hero-static-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

/* Vertical Pagination - Left Side */
.swiper-pagination-vertical.swiper-pagination-bullets,
.swiper-vertical>.swiper-pagination-bullets {
    left: 40px !important;
    right: auto !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    z-index: 50;
    /* Ensure clickable above other elements */
}

/* Pagination Mobile Adjustments */
@media (max-width: 768px) {

    .swiper-pagination-vertical.swiper-pagination-bullets,
    .swiper-vertical>.swiper-pagination-bullets {
        left: 20px !important;
        /* Move closer to edge */
    }

    .swiper-pagination-bullet {
        width: 6px;
        /* Smaller dots */
        height: 6px;
        margin: 8px 0 !important;
    }

    .swiper-pagination-bullet-active {
        transform: scale(1.5);
        /* Proper scaling relative to new size */
    }
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 15px 0 !important;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    transform: scale(1.3);
}

.hero-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.hero-text {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto 3rem;
    color: #e2e8f0;
}

/* Feature Cards (Glassmorphism + Hover Lift) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: -100px;
    position: relative;
    z-index: 20;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-eco);
    transform: scaleX(0);
    transition: var(--transition-base);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary-color);
    background: var(--bg-surface-alt);
    border-radius: 20px;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    background: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    transform: rotateY(360deg);
}

/* About Section */
.about-preview {
    background: var(--bg-surface-alt);
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 1;
}

.about-img-wrapper:hover::before {
    opacity: 0.2;
}

.about-img-wrapper img {
    transition: transform 0.8s ease;
    width: 100%;
}

.about-img-wrapper:hover img {
    transform: scale(1.05);
}

.stat-item {
    background: var(--bg-surface);
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-color);
    border-color: var(--secondary-color);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

[data-theme="dark"] .stat-number {
    color: var(--secondary-color);
}

/* Services Section */
.services-section {
    background: #0B1221;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Abstract blobs for dark background */
.services-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 191, 166, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.services-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    transition: var(--transition-base);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--secondary-color);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Partners Grid (Clean & Modern) */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.partner-card {
    /* filter: grayscale(100%);  Removed to show real colors */
    opacity: 0.8;
    /* Slight opacity to blend */
    transition: var(--transition-base);
    max-width: 180px;
    height: auto;
}

.partner-card:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(0.8);
    /* Darken on hover */
}

/* Page Header */
.page-header {
    height: 55vh;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    margin-bottom: 0;
    /* Flush with content */
    box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.4);
    /* Darken bg image without overlay element */
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 33, 62, 0.6) 0%, rgba(15, 33, 62, 0.9) 100%);
}

/* Contact Form */
.contact-form {
    background: var(--bg-surface);
    padding: 60px;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    /* Increased bottom spacing */
    margin-top: 5px;
    /* Added top spacing */
    display: block;
}

.form-control {
    width: 100%;
    padding: 18px 25px;
    border-radius: 12px;
    border: 2px solid var(--bg-surface-alt);
    background: var(--bg-surface-alt);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.1);
}

/* --- Footer (Attractive & Premium) --- */
.footer {
    background: #050a10;
    color: #fff;
    padding-top: 80px;
    position: relative;
    font-size: 0.95rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer h4 {
    margin-bottom: 30px;
    color: #fff;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    position: relative;
    padding-left: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition-base);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    background: #020407;
    padding: 30px 0;
    margin-top: 80px;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    /* Break out of container padding */
    margin-left: -40px;
    margin-right: -40px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    justify-content: space-between;
}

.footer-info,
.footer-contact {
    flex: 1;
    min-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 992px) {
    .footer-row {
        gap: 40px;
    }

    .footer-info,
    .footer-links,
    .footer-contact {
        flex: 0 0 100% !important;
        min-width: 100% !important;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* --- Floating Actions --- */
.floating-actions {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    /* Reduced gap */
    z-index: 999;
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

.floating-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-base);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-btn.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top {
    background: var(--primary-color);
    color: #fff;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.theme-toggle {
    background: var(--bg-surface);
    color: #f59e0b;
    /* Golden yellow for sun/moon */
    border: none;
    box-shadow: var(--shadow-lg);
}

.theme-toggle:hover {
    color: #fbbf24;
    transform: translateY(-5px) rotate(15deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Mobile Font Adjustments & Structure */
body,
html {
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero-title {
        font-size: 3rem !important;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.5rem !important;
    }

    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.2 !important;
    }

    .page-header {
        height: 40vh;
        min-height: 350px;
    }

    /* Remove dark overlay on mobile so only the image is dark (if edited) or let text allow reading */
    .page-header::before {
        display: none !important;
    }

    /* Force White Headings on Mobile for About/Contact Heros */
    /* Force White Headings on Mobile for ALL Heros explicitly */
    .hero-title,
    .page-header .hero-title {
        color: #ffffff !important;
        background: none !important;
        -webkit-text-fill-color: #ffffff !important;
        /* Override gradient text clip */
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        /* readable on any bg */
    }

    /* Reset gradient spans inside hero title for mobile to be white */
    .hero-title span,
    .hero-title .text-gradient {
        background: none !important;
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff !important;
    }

    .about-page .hero-tag,
    .contact-page .hero-tag,
    .page-header .hero-tag {
        color: rgba(255, 255, 255, 0.9) !important;
        border-color: rgba(255, 255, 255, 0.4) !important;
        background: rgba(255, 255, 255, 0.1) !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
        background: rgba(15, 52, 96, 0.95);
        /* Sticky background by default in mobile */
        backdrop-filter: blur(10px);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(15, 52, 96, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links .nav-link:hover,
    .nav-links .nav-link.active,
    .navbar.scrolled .nav-link {
        color: #ffffff !important;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .navbar-brand {
        font-size: 1.3rem;
        font-size: 0;
        /* Hide text */
    }

    .navbar-brand img {
        height: 40px;
        /* Slightly larger logo since text is gone */
        margin-right: 0;
    }

    /* Ensure logo is visible (reset font-size 0 rule for image) */
    .navbar-brand img {
        display: block;
    }

    .mobile-toggle {
        display: block !important;
        margin-left: auto;
        color: #fff;
        /* Default White */
        transition: color 0.3s ease;
    }

    /* Dark icon when scrolled (since navbar becomes white/glass) */
    .navbar.scrolled .mobile-toggle {
        color: #000 !important;
    }

    [data-theme="dark"] .navbar.scrolled .mobile-toggle {
        color: #fff !important;
        /* Keep white in dark mode */
    }

    .hero-content {
        margin-top: 20px;
        padding: 0 20px;
        /* Added padding to prevent text sticking to right */
    }

    /* Fix Hero Buttons Mobile */
    .hero-static-content div {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-static-content .btn {
        width: 100%;
        margin: 0 !important;
        padding: 15px 30px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .features-grid {
        margin-top: 0;
        padding-top: 40px;
        justify-items: center;
        /* Center grid items */
    }

    /* Center text in feature section rows (Who We Are) */
    .row {
        text-align: center;
        justify-content: center !important;
    }

    /* Center text generally on mobile */
    .text-center-mobile {
        text-align: center !important;
    }

    /* Ensure images in rows are centered */
    .about-img-wrapper {
        margin: 0 auto;
    }

    /* Contact Page Mobile Specifics */
    .contact-form {
        padding: 30px 20px !important;
        /* Reduce padding */
    }

    /* Stack Icon and Text in Contact Details */
    .contact-info-row {
        flex-direction: column;
        justify-content: center;
        /* Center horizontally */
        text-align: center;
        align-items: center;
        /* Center items (icon and text block) */
        width: 100%;
        /* Full width */
    }

    .contact-info-row .feature-icon {
        margin-bottom: 15px;
        margin-right: 0 !important;
        /* Reset any margin right */
        margin-left: auto !important;
        /* Center horizontally */
        margin-right: auto !important;
        /* Center horizontally */
    }

    .contact-info-row div {
        text-align: center !important;
        /* Ensure internal text div is centered */
        width: 100%;
    }

    .contact-info-row h4,
    .contact-info-row p {
        text-align: center !important;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}