:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #333333;
    --text-color: #1a1a1a;
    --spacing-unit: 1rem;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

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

/* Header */
.header {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    text-align: center;
    position: relative;
}

.logo img {
    max-width: 150px;
    margin-bottom: var(--spacing-unit);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: calc(var(--spacing-unit) / 2);
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.service-card {
    background: var(--secondary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    padding: var(--spacing-unit);
    margin: 0;
}

.service-card p {
    padding: 0 var(--spacing-unit) var(--spacing-unit);
    color: var(--accent-color);
}

/* About*/
.about {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit); 
    background: var(--secondary-color);
    text-align: center;
    width: 50%;
    margin: 0 auto;
}

/* Why Choose Section */
.why-choose {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.reason {
    text-align: center;
    padding: var(--spacing-unit);
}

/* Market Overview */
.market {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    background: var(--secondary-color);
}

.market-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 2);
}

.market-card {
    padding: calc(var(--spacing-unit) * 2);
    background: #f5f5f5;
    border-radius: 8px;
}

/* Contact Section */
.contact {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    background: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    margin-top: calc(var(--spacing-unit) * 2);
}

.contact-item {
    color: var(--secondary-color);
    text-decoration: none;
    padding: var(--spacing-unit);
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.contact-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: calc(var(--spacing-unit) * 2);
    right: calc(var(--spacing-unit) * 2);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.floating-btn:hover {
    transform: scale(1.1);
}


/* About*/
.about {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit); 
    background: var(--secondary-color);
    text-align: center;
    width: 60%;
    margin: 0 auto;
}

/* Team Section */
.team {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    background: var(--secondary-color);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.team h2 {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.team-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.team-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    background: #f8f9fa;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--text-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Text testimonials */
.text-testimonial {
    cursor: default;
}

.text-testimonial:hover {
    transform: translateY(-2px);
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    text-align: left;
}

.testimonial-author {
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: var(--spacing-unit);
}

.testimonial-author h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Image testimonials */
.testimonial-image {
    position: relative;
    height: 200px;
    margin-bottom: var(--spacing-unit);
    border-radius: 8px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-testimonial:hover .image-overlay {
    opacity: 1;
}

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

.image-overlay .material-icons {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.image-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

/* Document testimonials */
.document-preview {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    margin-bottom: var(--spacing-unit);
    text-align: center;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.document-preview .material-icons {
    font-size: 3rem;
    margin-bottom: var(--spacing-unit);
    opacity: 0.9;
}

.document-preview h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.document-preview p {
    margin: 0;
    opacity: 0.9;
}

.document-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.document-testimonial:hover .document-overlay {
    opacity: 1;
}

.document-overlay .material-icons {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.document-overlay p {
    margin: 0;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-color);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1);
}

.modal-body {
    padding: calc(var(--spacing-unit) * 3);
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .services-grid,
    .reasons-grid,
    .market-content {
        grid-template-columns: 1fr;
    }
    
    .floating-contact {
        bottom: var(--spacing-unit);
        right: var(--spacing-unit);
    }

    .about {
        padding: calc(var(--spacing-unit) * 4) var(--spacing-unit); 
        background: var(--secondary-color);
        text-align: center;
        width: 90%;
        margin: 0 auto;
        padding:0.1rem;
        text-align: center;
    }

    .team {
        padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
        margin-bottom: var(--spacing-unit);
    }

    .team-image {
        max-width: 100%;
        padding: 0 var(--spacing-unit);
    }

    .team-image img {
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-unit);
    }

    .testimonial-card {
        padding: var(--spacing-unit);
    }

    .testimonial-image {
        height: 150px;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
    }

    .modal-body {
        padding: calc(var(--spacing-unit) * 1.5);
    }
}

.services-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-tile {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-tile:hover {
    transform: translateY(-5px);
}

.service-tile .material-icons,
.service-tile .material-symbols-outlined {
    font-size: 48px;
    color: #333;
    margin-bottom: 1rem;
}

.service-tile h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #333;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .services-tiles {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
        gap: 8px;
        padding: 8px;
        margin: 0 8px;
        max-width: 100%;
    }
    
    .service-tile {
        padding: 12px;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100px; /* Ensure consistent height */
    }
    
    .service-tile .material-icons,
    .service-tile .material-symbols-outlined {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .service-tile h3 {
        font-size: 12px;
        text-align: center;
        margin: 0;
        line-height: 1.2;
        word-break: break-word;
    }
}

