/* ================================================= */
/* Base Styles (Mobile-First) */
/* ================================================= */

body {
    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Headings */
h1, h2, h3 {
    margin-top: 0;
}

/* Utility for section padding */
.about, .services, .contact-us {
    padding: 4rem 1.5rem; /* Reduced horizontal padding for small screens */
}


/* ================================================= */
/* Hero Section */
/* ================================================= */

.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
    z-index: -1;
}

.hero-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #f1f5f9;
}

.hero-overlay h1 {
    font-family: 'Montserrat', 'Arial Black', Impact, sans-serif;
    font-size: 2.3rem; /* Slightly smaller for mobile */
    margin-bottom: 1rem;
    color: #f8fafc;
    padding: 0 1rem; /* Prevent text from touching screen edges */
}

/* Button styles remain the same for all sizes */
.btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(90deg, #0F766E, #14B8A6);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn:hover {
    background: linear-gradient(90deg, #0D5C56, #0F766E);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* ================================================= */
/* About Section */
/* ================================================= */

.about {
    background: #f9fafb;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stack columns by default on mobile */
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem; /* Smaller heading for mobile */
    color: #0F766E;
    margin-bottom: 1rem;
    text-align: center; /* Center text on mobile */
}

.about-text p {
    font-size: 1rem; /* Smaller font for mobile readability */
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.5rem;
    text-align: left; /* Keep body text aligned left */
}

.about-image {
    flex: 1;
    width: 100%; /* Image takes full width in mobile stack */
    max-width: 500px; /* Constraint for better look on small tablets */
}

.about-image img {
    width: 100%;
    height: auto; /* Ensure image scales correctly */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ================================================= */
/* Services Section */
/* ================================================= */

.services {
    background: #ffffff;
    text-align: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-container h2 {
    font-size: 2rem; /* Smaller heading for mobile */
    color: #0F766E;
    margin-bottom: 2.5rem; /* Reduced margin */
}

/* The grid is already responsive, ensuring min size of 220px and wrapping */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem; /* Slightly smaller gap on mobile */
}

.service-card {
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px; /* Reduced height for smaller cards on mobile */
    object-fit: cover;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem; /* Smaller heading */
    color: #0F766E;
    margin: 1rem 0.5rem;
}

.service-card p {
    font-size: 0.9rem; /* Smaller text */
    color: #374151;
    line-height: 1.6;
    margin: 0 1rem 1rem 1rem;
}

/* ================================================= */
/* Contact Section */
/* ================================================= */

.contact-us {
    background: #f3f4f6;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container h2 {
    font-size: 2rem; /* Consistent heading size */
    color: #0F766E;
    margin-bottom: 2.5rem;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile by default */
    gap: 2rem;
    align-items: start;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr; /* Stack contact cards on smallest screens */
    gap: 1.5rem;
}

.contact-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem; /* Adjusted for consistency */
    color: #0F766E;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.9rem; /* Adjusted for consistency */
    color: #374151;
    margin: 0;
}

.contact-card .icon {
    width: 30px; /* Slightly smaller icon on mobile */
    height: 30px;
    color: #0F766E;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    padding: 1.5rem; /* Reduced padding */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem; /* Slightly smaller padding */
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 1rem;
    width: 100%;
}

.contact-form button {
    padding: 0.75rem 1rem;
    background: #0F766E;
    color: #ffffff;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #0D5C55;
}

/* ================================================= */
/* Media Queries for Tablet/Desktop Overrides */
/* ================================================= */

/* Medium devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    /* General */
    .about, .services, .contact-us {
        padding: 4rem 2rem;
    }
    
    
    /* Hero */
    .hero-overlay h1 {
        font-size: 3.5rem;
    }

    /* About */
    .about-container {
        flex-direction: row; /* Columns side-by-side on tablet/desktop */
    }

    .about-text h2 {
        text-align: left; /* Back to left alignment */
        font-size: 2.5rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr 1fr; /* Info cards | Form side-by-side */
    }

    .contact-cards {
        grid-template-columns: 1fr 1fr; /* Two cards per row */
    }

    .contact-card .icon {
        width: 40px;
        height: 40px;
    }
    
    
}

/* Large devices (Desktops, 1024px and up) */
@media (min-width: 1024px) {
    .hero-overlay h1 {
        font-size: 4rem;
    }
    
    
    .about-text h2 {
        font-size: 3rem;
    }
    
    .services-container h2,
    .contact-container h2 {
        font-size: 3rem;
    }
    
    .service-card img {
        height: 250px; /* Slightly taller images on desktop */
    }

    .service-card h3 {
        font-size: 1.5rem;
    }
}

