:root {
    --primary-red: #e53935;
    --dark-red: #c62828;
    --light-bg: #f5f5f5;
    --dark-text: #212121;
    --light-text: #fff;
    --header-height: 80px;
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader img {
    height: 80px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
    animation-name: animatetop;
    animation-duration: 0.4s;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover, .close-btn:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    text-align: center;
}

.modal-slider {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.modal-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.modal-slide-image {
    min-width: 100%;
    display: block;
    height: auto;
}

.modal-slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.modal-prev-btn, .modal-next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.modal-prev-btn:hover, .modal-next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.registration-form h3 {
    color: var(--primary-red);
    margin-top: 0;
}

.registration-form input, .registration-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.registration-form button {
    width: 100%;
    background-color: var(--primary-red);
    color: white;
    font-weight: bold;
    cursor: pointer;
    padding: 12px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}
.registration-form button:hover {
    background-color: var(--dark-red);
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 10%; opacity: 1}
}

/* General Website Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: var(--light-text);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 60px;
    transition: transform 0.3s ease-in-out;
}

.logo img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a .fa-whatsapp {
    font-size: 2rem;
    color: #25D366;
    transition: transform 0.3s;
}

nav ul li a .fa-whatsapp:hover {
    transform: scale(1.1);
}

nav ul li:last-child a::after {
    display: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}


/* Slider Section (Corrected) */
.slider {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active-slide {
    opacity: 1;
    z-index: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    margin: 0;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 2rem;
    transition: background 0.3s, color 0.3s;
    z-index: 10;
    border-radius: 50%;
}

.slide-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--primary-red);
}

.prev { left: 20px; }
.next { right: 20px; }

/* General Sections */
section {
    padding: 80px 0;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--dark-text);
    position: relative;
    text-transform: uppercase;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    margin: 10px auto 0;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

/* About Us Section */
.about-section {
    background-color: var(--light-text);
}

.about-content {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 50px;
}

.about-text { flex: 1; }
.about-text h3 { color: var(--dark-red); font-size: 1.8rem; margin-top: 0; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }

/* Services Section */
.services-section {
    background-color: var(--light-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--light-text);
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.service-item:hover::before {
    transform: scaleX(1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-item i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-item h3 {
    margin-top: 0;
    color: var(--dark-red);
}

/* Partners Section */
.partners-section {
    background-color: var(--light-text);
    padding: 80px 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.partners-grid img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.partners-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* New Team Section Styles */
.team-section {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    background: var(--light-text);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary-red);
}

.team-member h3 {
    margin: 10px 0;
    color: var(--dark-red);
}

.team-member p {
    margin: 5px 0;
    color: #555;
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--light-text);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--dark-red), 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h3, .overlay p {
    color: var(--light-text);
    margin: 5px 0;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-red);
    color: var(--light-text);
}

.contact-section h2::after {
    background: var(--light-text);
}

.contact-content {
    display: flex;
    gap: 40px;
    text-align: left;
    flex-wrap: wrap;
}

.contact-form-container, .contact-info-container {
    flex: 1;
    min-width: 300px;
}

.contact-form-container input, .contact-form-container textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: background-color 0.3s;
}

.contact-form-container input::placeholder, .contact-form-container textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-container input:focus, .contact-form-container textarea:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.contact-info-container h3 {
    margin-top: 0;
    color: var(--light-text);
}

.contact-info-container p {
    margin: 10px 0;
}

.contact-info-container i {
    color: var(--light-text);
    margin-right: 10px;
}

.map-container {
    margin-top: 20px;
}

.btn {
    background-color: var(--light-text);
    color: var(--dark-red);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    background-color: #eee;
    transform: scale(1.05);
}

/* Footer */
footer {
    background: #222;
    color: #888;
    text-align: center;
    padding: 20px 0;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-red);
    transform: scale(1.2);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/*
    =================================
    Mobile Responsiveness Styles (768px and below)
    =================================
*/

@media (max-width: 768px) {
    /* General adjustments */
    .container {
        width: 95%;
    }

    h2 {
        font-size: 2rem;
    }

    .section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Header */
    header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
        position: relative;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }
    
    /* Hero/Slider Section */
    .slider {
        height: 60vh;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content h2 {
        font-size: 1.2rem;
    }

    .slide-btn {
        padding: 10px;
        font-size: 1.5rem;
    }

    /* About Us Section */
    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    /* Service, Partner, Team, and Portfolio Grids */
    .service-grid, .partners-grid, .team-grid, .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Contact Section */
    .contact-content {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form-container, .contact-info-container {
        min-width: unset;
    }
    
    /* Modal */
    .modal-content {
        margin: 5% auto;
        width: 90%;
    }
}