/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #0b192c; /* Deep Dark Blue */
    --secondary-color: #f4f7f6;
    --accent-color: #3498db; /* Premium Blue */
    --accent-hover: #2980b9;
    --dark-section: #1a2a3a;
    --text-dark: #333333;
    --text-light: #e0e0e0;
    --white: #ffffff;

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

    --transition-fast: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Resets & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

/* --- Layout Utilities --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-dark-alt {
    background-color: var(--dark-section);
    color: var(--white);
}

.bg-light {
    background-color: var(--white);
}

.bg-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f1f4f8 100%);
    position: relative;
    z-index: 1;
}

.bg-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--accent-color) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: -1;
}

.text-center {
    text-align: center;
}

/* --- Typography Utilities --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #666;
}

.bg-dark .section-desc,
.bg-dark-alt .section-desc {
    color: var(--text-light);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 232, 0.3);
}

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

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

/* --- Header & Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    transition: var(--transition-fast);
    overflow: hidden;
    max-height: 50px;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-bar i {
    color: var(--white);
    margin-right: 0.4rem;
}

.top-bar a {
    color: var(--text-light);
}

.top-bar a:hover {
    color: var(--accent-color);
}

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

.social-links a:hover .fa-facebook-f { color: #1877f2 !important; }
.social-links a:hover .fa-instagram { color: #e4405f !important; }
.social-links a:hover .fa-youtube { color: #ff0000 !important; }

/* Hide Top Bar on scroll */
.header.scrolled .top-bar {
    padding: 0;
    max-height: 0;
    opacity: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    transition: var(--transition-fast);
}

.header.scrolled .nav-container {
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
    outline: none;
}

.logo img {
    height: 100px;
    width: auto;
    max-width: 450px;
    display: block;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    white-space: nowrap;
    outline: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Dropdown Styles --- */
.nav-item {
    position: relative;
    padding: 20px 0;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding-left: 25px;
}

.mobile-menu-btn {
    display: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.slider-container {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
    color: var(--white);
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-content {
    max-width: 800px;
    margin-top: 70px;
    animation: fadeInUp 1s ease;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.slide-content h1 span {
    color: var(--accent-color);
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 3%;
    z-index: 10;
    pointer-events: none;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    pointer-events: auto;
}

.slider-controls button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid var(--accent-color);
    transform: translate(20px, 20px);
    z-index: -1;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.about-img img {
    border-radius: 8px;
    transition: var(--transition-slow);
}

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

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.feature-item i {
    color: var(--accent-color);
}

/* --- Services / Products Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(11, 25, 44, 0.1);
    border-bottom: 4px solid var(--accent-color);
}

.service-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.service-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(11, 25, 44, 0.2));
    opacity: 0;
    transition: var(--transition-fast);
}

.service-card:hover .service-img::after {
    opacity: 1;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.service-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.service-info p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex-grow: 1;
}

.service-link {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link i {
    transform: translateX(6px);
}

/* --- Industries Section --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.industry-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11, 25, 44, 0.9), rgba(11, 25, 44, 0.2));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: var(--transition-fast);
}

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

.industry-item:hover .industry-overlay {
    background: linear-gradient(to top, rgba(52, 152, 219, 0.9), rgba(11, 25, 44, 0.4));
}

.industry-overlay h3 {
    color: var(--white);
    font-size: 1.2rem;
    transform: translateY(10px);
    transition: var(--transition-fast);
}

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

/* --- Why Choose Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: var(--dark-section);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-box:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 168, 232, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-fast);
}

.feature-box:hover .feature-icon {
    background: var(--accent-color);
    color: var(--white);
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Statistics Section --- */
.stats {
    background: linear-gradient(rgba(0, 168, 232, 0.9), rgba(11, 25, 44, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--white);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.9;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-text {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-wrap {
    background: var(--primary-color);
    padding: 3rem;
    border-radius: 8px;
    color: var(--white);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.contact-info-item h4 {
    margin-bottom: 0.3rem;
}

.contact-info-item p {
    color: var(--text-light);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.1);
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

/* --- Footer --- */
.footer {
    background-color: #050c17;
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-about p {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.footer-about .logo {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1.5rem;
}

.footer-about .logo img {
    border-radius: 12px;
    background: white;
    padding: 10px;
    height: 100px;
    width: auto;
    max-width: 100%;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

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

.footer-links a {
    color: var(--text-light);
}

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

.footer-bottom {
    background-color: #03080f;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Modal --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: var(--transition-fast);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* --- Toast Alert Notification --- */
.toast-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    animation: slideInRight 0.5s ease forwards;
    max-width: calc(100vw - 40px);
    border-left: 4px solid transparent;
}

.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

.toast-error {
    border-left-color: #dc3545;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-message {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}

.toast-close {
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--primary-color);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- Media Queries --- */
@media (max-width: 1200px) {
    .container {
        width: 92%;
    }
}

@media (max-width: 992px) {
    .section-padding {
        padding: 4rem 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-slider h1 {
        font-size: 2.8rem;
    }

    .about-img::before {
        display: none;
        /* Remove offset border on mobile to avoid overflow */
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .nav-container {
        padding: 0.5rem 0;
    }

    .logo img {
        height: 70px; /* Improved visibility on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-fast);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        padding: 2.5rem;
    }

    .nav-links a {
        color: var(--primary-color);
        margin: 0.8rem 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links.active {
        right: 0;
    }

    /* Dropdown on Mobile */
    .nav-item {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .dropdown-toggle {
        justify-content: center;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
        margin: 0.8rem 0;
        font-size: 1.2rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: -0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .dropdown-menu a {
        padding: 8px 0;
        font-size: 1rem;
        color: #666;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }

    .slide-content {
        margin-top: 80px;
        text-align: center;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

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

    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Ensure all generic grids stack on mobile */
    .about-features,
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* --- Page Header Responsiveness --- */
.page-header {
    padding: 180px 0 80px !important; /* Reduced padding from 280px */
}

.hospital-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hospital-img {
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .page-header {
        padding: 120px 0 60px !important;
    }
    
    .page-header h1 {
        font-size: 2.2rem !important;
    }

    /* Fix Grid Layouts on Mobile */
    .contact-form div[style*="grid-template-columns: 1fr 1fr"],
    .contact-form div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .hospital-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .hospital-img {
        width: 100% !important;
        padding: 0 !important;
    }

    .showcase-img-frame {
        padding: 8px !important; /* Extremely minimal padding for small screens */
        margin: 0 auto;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.showcase-img-frame {
    position: relative; 
    padding: 20px; 
    background: rgba(52, 152, 219, 0.15); 
    border-radius: 20px; 
    backdrop-filter: blur(5px); 
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition-fast);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
    }

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

    .logo img {
        height: 60px;
    }

    .contact-form-wrap,
    .contact-info-wrap,
    .card {
        padding: 1.5rem !important;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* --- Responsive Table Utility --- */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.table-responsive table {
    min-width: 600px;
    /* Prevent shrinking too much */
}

/* --- Accessibility & Focus --- */
:focus {
    outline: none;
}

/* --- Print Styles --- */
@media print {

    .header,
    .footer,
    .whatsapp-float,
    .mobile-menu-btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        width: 100%;
        max-width: none;
    }
}

/* --- FINAL RESPONSIVE POLISH --- */

/* Fix for all sections padding on mobile/tablet */
@media (max-width: 1024px) {
    .section-padding {
        padding: 4rem 0 !important;
    }

    .container {
        width: 92% !important;
    }

    /* Collapse grids on tablets and smaller */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1.2fr"],
    div[style*="grid-template-columns: 1.2fr 1fr"],
    .about-grid,
    .contact-grid,
    .hospital-grid,
    .founder-grid,
    .mv-grid,
    .about-features,
    .services-grid,
    .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .about-content,
    .contact-info-wrap,
    .contact-form-wrap,
    .hospital-content,
    .founder-content,
    .mv-card {
        padding: 2.5rem !important;
        border-radius: 20px !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Global Typography Fixes */
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.5rem !important; }
    
    .section-title {
        font-size: 2rem !important;
        margin-bottom: 2rem !important;
    }

    /* Fix image overflow and alignment */
    .about-img, 
    .hospital-img, 
    .founder-img, 
    .showcase-img-frame {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
    }

    .showcase-img-frame {
        padding: 10px !important;
    }

    /* Slider Adjustments */
    .hero-slider {
        height: auto !important;
        min-height: 400px !important;
        padding: 120px 0 60px !important;
    }

    .slide-content {
        margin-top: 0 !important;
    }

    /* Navbar Polish */
    .logo img {
        height: 60px !important;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding: 3rem 0 !important;
    }

    .container {
        width: 95% !important;
    }

    .about-content,
    .contact-info-wrap,
    .contact-form-wrap,
    .hospital-content,
    .founder-content,
    .mv-card {
        padding: 1.5rem !important;
    }

    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.6rem !important; }

    .btn {
        width: 100% !important;
        text-align: center !important;
    }

    .stat-item {
        margin-bottom: 2rem !important;
    }
}

/* Ensure no horizontal overflow */
body, html {
    overflow-x: hidden !important;
    width: 100%;
}

/* --- Infinite Slider --- */
.slider-section {
    background: var(--white);
    padding: 50px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    width: 100%;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
}

.slide-track-item {
    width: 250px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide-track-item img {
    max-height: 70px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-fast);
}

.slide-track-item img:hover {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}