/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Add this to account for fixed header */
}

:root {
    --primary: #000080;
    --primary-dark: #000066;
    --secondary: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --header-height: 100px;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

/* Add this for all sections */
section {
    scroll-margin-top: var(--header-height);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    height: var(--header-height);
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--secondary);
}

.logo-icon {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

#menu-toggle {
    display: none;
}

#menu-toggle:checked ~ .hamburger-menu .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

#menu-toggle:checked ~ .hamburger-menu .bar:nth-child(2) {
    opacity: 0;
}

#menu-toggle:checked ~ .hamburger-menu .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Desktop navigation */
.mobile-nav {
    display: none;
}

@media (min-width: 769px) {
    .mobile-nav {
        display: flex !important; /* Force display flex for desktop */
    }

    .mobile-nav ul {
        display: flex;
        list-style: none;
    }

    .mobile-nav ul li {
        margin-left: 1.5rem;
    }

    .mobile-nav ul li a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        transition: color 0.3s;
    }

    .mobile-nav ul li a:hover {
        color: var(--primary);
    }

    .mobile-nav ul li:last-child {
        display: none; /* Hide the mobile navigation "Get a Quote" button in desktop view */
    }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .mobile-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 0;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    #menu-toggle:checked ~ .mobile-nav {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-nav ul {
        flex-direction: column;
        padding: 1rem;
        margin: 0;
        width: 100%;
    }

    .mobile-nav ul li {
        margin: 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .mobile-nav ul li:last-child {
        border-bottom: none;
        margin-top: 1rem;
    }

    .mobile-nav ul li:last-child a {
        background-color: var(--primary);
        color: white;
        text-align: center;
        padding: 0.8rem;
        border-radius: 4px;
    }

    .mobile-nav ul li:last-child a:hover {
        background-color: var(--primary-dark);
    }

    .mobile-nav ul li a {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
        color: var(--dark);
    }

    .mobile-nav ul li a:hover {
        background-color: var(--light);
    }

    .video-container {
        margin: 20px auto;
        max-width: 100%;
        padding: 0 15px;
        text-align: center;
        position: relative;
    }
    
    .video-container h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        padding: 0 10px;
        line-height: 1.3;
    }

    .video-title {
        font-size: 1.1rem;
        color: var(--gray);
        margin-bottom: 1.5rem;
        padding: 0 10px;
        line-height: 1.4;
    }

    .video-wrapper {
        margin: 0 auto;
        border-radius: 8px;
        width: 100%;
        max-width: 450px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    .video-wrapper iframe {
        border-radius: 8px;
        z-index: 1;
        position: relative;
    }

    /* Ensure video title doesn't overlap with play button */
    .video-wrapper::before {
        content: '';
        display: block;
        padding-top: 10px; /* Add some space above video */
    }

    /* Adjust testimonials spacing around video */
    .testimonials-container {
        margin-bottom: 2rem;
    }

    /* Ensure text stays within bounds */
    .video-container * {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

.nav-header {
    display: none;
}

.nav-footer {
    display: none;
}

.close-menu {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary);
}

.contact-button {
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('img/cover.jpg') center/cover no-repeat;
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-primary {
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background-color: transparent;
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: background-color 0.3s;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Services Section */
.services {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

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

.service-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.service-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    margin-top: auto;
}

.service-link::after {
    content: '→';
    margin-left: 0.3rem;
    transition: transform 0.3s;
}

.service-link:hover::after {
    transform: translateX(5px);
}

/* Process Section */
.process {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.process-step p {
    color: var(--gray);
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
    background: linear-gradient(rgba(0, 0, 128, 0.05), rgba(0, 0, 128, 0.1));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card i.fa-star {
    color: #FFD700;  /* Gold color for the star icon */
}

.feature-card h3 {
    color: var(--dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: var(--light);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

/* Video Container Styles */
.video-container {
    margin: 40px 0;
}

.video-container h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #f5f5f5;
}

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

.testimonial-card {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 5rem;
    color: var(--light-gray);
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark);
}

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

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--dark);
    color: white;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact .container {
    width: 100%;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details li i {
    margin-right: 1rem;
    color: var(--secondary);
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.5em;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--dark);
    color: white;
    padding: 0.8rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
}

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

.submit-button {
    background-color: var(--secondary);
    color: var(--dark);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Thank You Card Styles */
.thank-you-card {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.thank-you-card.show {
    display: flex;
    opacity: 1;
}

.thank-you-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
}

.thank-you-card.show .thank-you-content {
    transform: scale(1);
}

.thank-you-content h2 {
    color: var(--dark); 
    margin-bottom: 1rem;
}

.thank-you-content p {
    color: var(--gray); 
    margin-bottom: 1rem;
}

.thank-you-image {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 5s linear;
}

.close-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.3s;
}

.close-button:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-links a.no-hover {
    pointer-events: none;
    cursor: default;
}

.footer-links a.no-hover:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Style for non-link items in footer-links */
.footer-col:nth-child(3) .footer-links li {
    color: rgba(255, 255, 255, 0.7);
}

.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-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.social-links i {
    font-size: 1.2rem;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        margin-left: auto;
        margin-right: 1rem;
    }

    .desktop-cta {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 40px;
        height: auto;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .service-card {
        max-width: none;
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .process-step {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }

    .contact-container {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .feature-card {
        padding: 1.5rem;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
    }

    .close-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--light-gray);
        cursor: pointer;
        transition: background-color 0.3s;
    }

    .close-menu:hover {
        background-color: var(--gray);
    }

    .close-menu i {
        font-size: 1.2rem;
        color: var(--dark);
    }

    .nav-footer {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: auto;
        padding-top: 2rem;
        border-top: 1px solid var(--light-gray);
    }

    .mobile-cta {
        width: 100%;
        text-align: center;
    }

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

    .video-container {
        margin: 20px auto;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .video-wrapper {
        margin: 0 auto;
        border-radius: 0;
        width: 100%;
        max-width: 450px;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--dark);
    color: white;
    position: relative;
    z-index: 1;
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact .section-header h2::after {
    background-color: var(--secondary);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.mobile-only {
    display: none;
}

/* Desktop CTA button */
.desktop-cta {
    display: block;
}

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

.google-reviews {
    text-align: center;
    margin: 2rem auto 4rem;
    max-width: 600px;
    padding: 0 1rem;
}

.google-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    gap: 2rem;
}

.google-logo {
    height: 24px;
    object-fit: contain;
}

.rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: center;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
    min-width: 3rem;
}

.stars {
    display: flex;
    gap: 4px;
    margin: 0 0.5rem;
}

.stars i {
    color: #FFC107;
    font-size: 1.2rem;
}

.review-count {
    color: var(--gray);
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .google-reviews {
        max-width: 100%;
        margin: 2rem auto 3rem;
        padding: 0 1rem;
    }

    .google-rating {
        padding: 1rem;
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .rating {
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
    }

    .rating-score {
        font-size: 1.4rem;
        min-width: auto;
    }

    .stars {
        gap: 2px;
        margin: 0 0.25rem;
    }

    .stars i {
        font-size: 1rem;
    }

    .google-logo {
        height: 18px;
    }

    .review-count {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .google-rating {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .rating {
        gap: 0.25rem;
    }

    .rating-score {
        font-size: 1.2rem;
    }

    .stars i {
        font-size: 0.9rem;
    }

    .google-logo {
        height: 16px;
    }

    .review-count {
        font-size: 0.85rem;
    }
}

/* Industry Partners Section */
.industry-partners {
    padding: 80px 0;
    background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.partner-card {
    position: relative;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.partner-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

/* Specific rule for Modani logo */
.partner-card img[alt="Modani Logo"] {
    max-width: 95%;
    max-height: 95%;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.partner-card:hover img {
    filter: grayscale(0%);
}

.partner-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.partner-card:hover .partner-overlay {
    bottom: 0;
    opacity: 1;
}

.partner-overlay p {
    color: #ffffff;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* Media Queries for Industry Partners */
@media (max-width: 768px) {
    .industry-partners {
        padding: 40px 0;
    }

    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 400px;
        margin: 15px auto;
    }
    
    .partner-card {
        padding: 8px;
        aspect-ratio: 1/1;
        min-width: 0;
        width: 100%;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .partner-card img {
        max-width: 85%;
        max-height: 85%;
    }

    /* Adjust Modani logo for consistency in mobile */
    .partner-card img[alt="Modani Logo"] {
        max-width: 85%;
        max-height: 85%;
    }

    .partner-overlay {
        display: none;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        max-width: 320px;
        gap: 8px;
    }

    .partner-card {
        padding: 6px;
    }
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}