:root {
    /* Modern Color Palette */
    --primary: 220 90% 56%;
    /* Bright Royal Blue */
    --primary-dark: 220 90% 40%;
    --secondary: 190 90% 50%;
    /* Cyan/Teal for Innovation */
    --accent: 35 100% 55%;
    /* Gold/Orange */

    --background: 220 30% 98%;
    /* Very light cool gray */
    --surface: 0 0% 100%;
    --surface-glass: 0 0% 100% / 0.8;

    --text-main: 220 20% 20%;
    --text-muted: 220 15% 45%;
    --text-light: 220 20% 95%;

    --radius: 12px;
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.12), 0 2px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.15), 0 4px 12px -2px rgba(0, 0, 0, 0.1);

    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ticker-duration: 40s;
    /* Option to adjust ticker speed */
}

html {
    font-size: 92.5%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

body {
    font-family: var(--font-body);
    background-color: hsl(var(--background));
    color: hsl(var(--text-main));
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: hsl(var(--text-main));
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1440px;
    /* Increased from 1280px */
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 99999;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    /* Fluid width for Tablets/Laptops */
    max-width: 1440px;
    /* Cap width on large displays for aesthetics */
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    /* Slightly smaller for elegance */
    font-weight: 800;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    flex-shrink: 0;
    margin-right: 2rem;
    /* Add clear separation from nav */
}

/* Image logo sizing */
.logo {
    display: inline-block;
    padding-left: 0;
}

.site-logo {
    height: 65px;
    /* Force larger height */
    width: auto;
    max-height: 100%;
}

.logo .site-logo {
    height: 65px;
    /* Restored larger size */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Reduced gap to 1rem to fit long menu items */
    list-style: none;
    margin-left: auto;
}

.nav-links a {
    color: hsl(var(--text-main));
    font-weight: 500;
    font-size: 0.85rem;
    /* Reduced to 0.85rem to prevent wrapping */
    position: relative;
    padding: 0.5rem 0.2rem;
    /* Reduced horizontal padding */
    letter-spacing: 0;
    /* Removed letter spacing to save horizontal space */
}

/* Responsive adjustments for header */
/* Make the last nav item (Contact) a pill-shaped blue button */
.nav-links li:last-child a {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(50, 100, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-links li:last-child a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(50, 100, 255, 0.3);
}

@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }

    .logo .site-logo {
        height: 56px;
    }

    /* Force 4-column footer on intermediate screens */
    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

@media (max-width: 992px) {
    .navbar .container {
        width: 92%;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero-slider {
    height: 85vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 400px;
    }
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 2rem;
    color: white;
    z-index: 10;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
}

/* Buttons */
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    height: auto;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary-dark)));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(50, 100, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
}

.btn-outline:hover {
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

/* Trust Badge (Hero) */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.trust-badge i {
    color: #fbbf24;
    /* Amber-400 */
}

/* Section Styling */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    display: block;
    /* changed from inline-block to block for simpler centering */
    width: fit-content;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, hsl(var(--text-main)), hsl(var(--primary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Removed .section-title::after to eliminate underline */

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: hsl(var(--text-muted));
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Cards */
.grid {
    display: grid;
    /* Reduced minmax width to ensure centering kicks in earlier */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    justify-content: center;
    justify-items: center;
    width: 100%;
    margin: 0 auto;
}



.card {
    width: 100%;
    /* Ensure card takes full width of grid cell */
    max-width: 400px;
    /* Prevent cards from getting too wide on large screens */
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    border-radius: 12px;
    /* Ensure whole image is seen */
    transition: transform 0.5s ease;
}

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

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    /* Aggressively reduced to 1.1rem to ensure single line for most titles */
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-main));
    line-height: 1.3;
}

.card-desc {
    color: hsl(var(--text-muted));
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Footer */
.footer {
    background: hsl(220, 25%, 10%);
    /* Dark slate */
    color: hsl(var(--text-light));
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* Standard 250px for Desktop/Mobile (Stacking) */
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
    /* Center content in footer columns to fix "dimension" mismatch */
    text-align: center;
    /* Ensure text inside columns is centered */
}

.footer h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer a {
    color: hsl(220, 10%, 70%);
}

/* Contact page specific styling */
.contact-hero {
    padding: 3.5rem 0 2.5rem;
    background: linear-gradient(135deg, rgba(23, 54, 121, 0.95), rgba(70, 50, 190, 0.9));
    color: white;
}

.contact-hero .section-subtitle,
.contact-hero p {
    color: rgba(255, 255, 255, 0.9);
}

.expertise-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.card-img {
    height: 160px;
    object-fit: cover;
    background: hsl(var(--background));
}

/* Slightly tighter card layout on contact page */
.grid>.card {
    max-width: 360px;
}

@media (max-width: 900px) {
    .card-img {
        height: 140px;
    }

    .contact-hero {
        padding: 2.5rem 0;
    }
}

.footer a:hover {
    color: hsl(var(--secondary));
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: hsl(220, 10%, 50%);
    font-size: 0.9rem;
}

/* Responsive */
/* Events Ticker */
.events-ticker {
    background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--primary)));
    color: white;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 20;
}

.ticker-content {
    display: inline-block;
    animation: scroll-left 25s linear infinite;
    padding-left: 100%;
    /* Start off-screen */
}

.ticker-item {
    display: inline-block;
    margin-right: 4rem;
}

.ticker-item i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Check if this fixes jumpiness */
}

/* Ensure smooth continuous scroll */
.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-left var(--ticker-duration) linear infinite;
}



/* Enhanced Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Collab Carousel */
.collab-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.collab-carousel-inner {
    display: flex;
    height: 100%;
    align-items: center;
    width: max-content;
    animation: scroll-collab 15s linear infinite;
}

@keyframes scroll-collab {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 7.5px));
    }
}

/* .gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
} */

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

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

/* Ensure Contact CTA is centered */
.section {
    padding: 6rem 1rem;
    /* Add horizontal padding for smaller screens */
}

/* Custom Slider Styles */
.hero-slider-container {
    padding: 0;
    margin: 0;
    width: 100%;
    position: relative;
    /* Ensure absolute children are relative to this */
}

.custom-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Hero Overlay Form */
.hero-form-container {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    z-index: 20;
    width: 350px;
}

.hero-quick-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.hero-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.hero-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: white;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

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

@media (max-width: 1024px) {
    .hero-slider-container {
        display: flex;
        flex-direction: column;
    }

    .custom-slider {
        height: 450px;
        /* Increased from 400px to give more room for dots */
    }

    .slide {
        justify-content: center;
        text-align: center;
    }

    .slide .hero-content {
        margin-left: 0;
        max-width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* This centers the text container */
        text-align: center;
        /* This centers the text inside */
        width: 100%;
    }

    .hero-form-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        padding: 2rem 1rem;
        background: #f1f5f9;
        /* Light gray background to contrast the white form */
        z-index: 1;
    }

    .hero-quick-form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        animation: none;
    }

    .hero-quick-form h3 {
        color: hsl(var(--text-main)) !important;
        text-align: center;
        font-size: 1.5rem;
    }

    .hero-input {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    /* Fix Card Buttons Overflow */
    .card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        display: block;
        /* Stack buttons */
        text-align: center;
    }

    .card .card-content {
        padding: 1.5rem;
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    justify-content: flex-start;
    /* Align Left */
    align-items: center;
    text-align: left;
    /* Text Left */
    color: white;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slider Content within Slide */
.slide .hero-content {
    background: transparent;
    max-width: 600px;
    /* Reduced width to avoid form */
    margin-left: 10%;
    /* Approximate container offset */
    padding: 2rem;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: white;
    color: var(--primary);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.dot.active {
    background: white;
}

/* --- Refined Footer Styles (Merged) --- */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 2rem 0;
    text-align: left;
}

.footer h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Optional: Add a small underline to footer headings */
.footer h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: hsl(var(--secondary));
    margin-top: 0.5rem;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: hsl(var(--text-muted));
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: hsl(var(--primary));
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: hsl(var(--primary));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: hsl(var(--text-muted));
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .navbar {
        height: 84px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo .site-logo {
        height: 45px;
    }

    /* Mobile Menu Toggle */
    .mobile-toggle {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        color: hsl(var(--text-main));
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 84px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: left;
        align-items: flex-start;
        gap: 1.5rem;
        z-index: 1001;
        /* Fix overlap with custom page content */
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .hero-content h1 {
        font-size: 2rem;
        word-wrap: break-word;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        line-height: 1.3;
        padding-top: 5px;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        width: 40px;
    }

    .grid,
    .footer-grid {
        gap: 2rem;
        text-align: center;
    }

    .footer-links a {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .slider-dots {
        bottom: 10px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .prev-btn {
        left: -5px;
        /* Slightly pulled inward */
    }

    .next-btn {
        right: -5px;
        /* Slightly pulled inward */
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0;
        white-space: normal;
    }

    .trust-badge {
        white-space: nowrap !important;
        flex-direction: row;
        justify-content: center;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        height: auto;
    }
}

/* Force navbar links to start of grid cell on desktop */
@media (min-width: 1025px) {
    .nav-links {
        justify-self: start !important;
    }
}