/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: #f8f9fa;
    padding-top: 120px;
}

/* ===== HEADER STYLES ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 130px;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.background-decor {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;
    background: linear-gradient(to right, #87CEEB, #00BFFF);
    opacity: .9;
    /* Removed transform: skewX(-15deg) for performance */
    transform: skewX(-15deg);
    transform-origin: top right;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    max-width: 1380px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 75px;
    padding: 0 1rem;
}

/* ===== LOGO STYLES ===== */
.logo-link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 3;
    margin: 10px;
    margin-top: 15px;
    margin-left: -9vw;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    /* Simplified transition */
}

.logo-img:hover {
    opacity: 0.9;
    /* Simplified hover effect */
}

.item-number:hover {
    color: #fbbf24;
}

/* ===== CONTACT INFO STYLES ===== */
.contact-info {
    display: flex;
    gap: 1.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
}

.contact-info .item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.green {
    color: #72ffa6;
    font-size: 25px;
}

/* ===== MOBILE MENU STYLES ===== */
.mobile-menu {
    display: none;
    position: relative;
}

.mobile-menu button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    max-height: 80vh;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.mobile-dropdown.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-dropdown li {
    border-bottom: 1px solid #eee;
}

.mobile-dropdown li:last-child {
    border-bottom: none;
}

.mobile-dropdown a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.mobile-dropdown a:hover {
    background-color: #f8f9fa;
}

/* ===== NAVIGATION STYLES ===== */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    /* Removed backdrop-filter for performance */
}

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

.nav-links a {
    padding: 0.5rem 1rem;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
    cursor: pointer;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.05);
}

.nav-links a.red {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle i {
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 180px;
    z-index: 10;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 0.5rem;
    margin-top: 5px;
}

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

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    border-bottom: 1px solid #f3f4f6;
    font-size: 1rem;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
    margin-top: 20px;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

#mediaContainer {
    width: 90%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.hero-media {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Changed to cover for better scaling */
    border-radius: 20px;
}

/* Opacity transition classes are no longer needed if only one video loops */
.hero-media.active {
    opacity: 1;
}

/* ===== SERVICES SECTION STYLES ===== */
.services-section {
    padding: 3rem 2rem;
    background: #fff;
}

.services-container {
    max-width: 1600px;
    margin: 0 auto;
}

.services-title {
    position: relative;
    text-align: center;
    font-size: 2.55rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.services-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #3498db, #e74c3c);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    /* Use auto-fit for all screen sizes for simplicity */
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.service-card:nth-child(5n+1) {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.service-card:nth-child(5n+2) {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

.service-card:nth-child(5n+3) {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
}

.service-card:nth-child(5n+4) {
    background: linear-gradient(135deg, #00c9ff, #92fe9d);
}

.service-card:nth-child(5n+5) {
    background: linear-gradient(135deg, #d66d75, #e29587);
}


.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: rgba(255, 255, 255, .2);
    transition: transform 0.3s ease;
}

.service-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.service-description {
    font-size: 0.9rem;
    opacity: .9;
    margin-bottom: 1rem;
}

.service-btn {
    padding: 0.6rem 1.5rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 25px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: background-color .3s, border-color .3s;
    font-size: 0.9rem;
}

.service-card:hover {
    transform: translateY(-5px);
    /* Reduced hover effect */
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
    /* Subtler shadow change */
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: rgb(190, 0, 0);
    color: white;
    padding: 30px 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
}

.footer-section {
    flex: 1 1 220px;
    min-width: 220px;
}

.footer-section h3 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-image-container {
    position: relative;
    width: 100%;
    height: 150px;
    border-radius: 15px;
    overflow: hidden;
}

.footer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Footer Map Styles */
.footer-map-container {
    flex: 1 1 300px;
    min-width: 250px;
    height: 200px;
    min-height: 200px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
}

.footer-map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text span {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2px;
}

.contact-text a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

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

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #ffcdd2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #ffffff;
    padding-top: 20px;
    margin-top: 30px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1600px) {
    .logo-link {
        margin-left: 0;
    }
}

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

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

    .footer-content {
        padding: 0 15px;
        gap: 15px;
    }

    .footer-section {
        flex: 1 1 280px;
        min-width: 250px;
    }

    .footer-map-container {
        flex: 1 1 300px;
        min-width: 280px;
    }

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

    .logo-img {
        height: 60px;
    }
}

@media (max-width: 1000px) {
    .hero-section {
        height: 40vh;
        max-height: 500px;
    }

    .contact-info {
        display: none;
    }

    .logo-img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .service-title{
        font-size: 1.25rem;
    }
    body {
        padding-top: 80px;
        font-size: 15px;
    }

    .logo-link {
        margin-top: 30px;
    }

    .mobile-menu {
        display: block;
    }

    nav {
        display: none;
    }

    .top-bar {
        padding: 0;
    }

    .logo-img {
        height: 50px;
    }

    #header {
        height: 80px;
    }

    .hero-section {
        height: 30vh;
        max-height: 600px;
    }

    .services-title {
        font-size: 2.25rem;
    }

    .footer {
        padding: 25px 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
    }

    .footer-section {
        flex: 1 1 100%;
        min-width: 100%;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .footer-image-container {
        height: 120px;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-map-container {
        height: 180px;
        margin: 0 auto;
        flex: 1 1 100%;
        min-width: 100%;
    }

    .contact-item {
        justify-content: center;
        text-align: left;
    }

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

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .background-decor {
        width: 85%;
    }

    .container {
        padding: 0 0.5rem;
    }

    .mobile-dropdown {
        min-width: 200px;
    }

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

    .footer {
        padding: 20px 0;
    }

    .footer-content {
        padding: 0 10px;
        gap: 20px;
    }

    .footer-section h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
    }

    .footer-image-container {
        height: 100px;
        max-width: 250px;
    }

    .footer-map-container {
        height: 160px;
        border-radius: 8px;
    }

    .contact-item {
        gap: 10px;
        padding: 8px 0;
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    .contact-text span {
        font-size: 1rem;
    }

    .contact-text a {
        font-size: 0.9rem;
    }

    .quick-links a {
        font-size: 1rem;
    }

    .quick-links li {
        margin-bottom: 10px;
    }

    .footer-bottom {
        padding-top: 15px;
        margin-top: 20px;
        font-size: 0.9rem;
    }

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