.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero {
    text-align: center;
    color: var(--white);
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--coral);
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-subtle);
}

.card h2 {
    color: var(--coral);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.card p {
    line-height: 1.6;
    color: var(--text-dark);
}

.services-grid,
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-item,
.equipment-item {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(26, 69, 101, 0.95) 100%);
    border: 2px solid var(--coral);
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.service-item:hover,
.equipment-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(232, 166, 135, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h3,
.equipment-item h3 {
    color: var(--coral);
    margin-bottom: 0.5rem;
}

.service-item p,
.equipment-item p {
    color: rgba(255, 255, 255, 0.95);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: linear-gradient(135deg, rgba(10, 37, 64, 0.95) 0%, rgba(26, 69, 101, 0.95) 100%);
    border: 2px solid var(--coral);
    height: 250px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-subtle);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--coral);
}

.submit-btn {
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--light-navy) 100%);
    border: 2px solid var(--coral);
    color: var(--white);
    padding: 1rem 3rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    background: var(--coral);
    color: var(--navy-blue);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 2px solid;
}

.alert-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

/* ========================================
   HERO CAROUSEL WITH BACKGROUND IMAGES
   ======================================== */
.hero-carousel-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    max-height: 600px;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 37, 64, 0.6),
        rgba(10, 37, 64, 0.8)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 1000px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    color: var(--coral);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   TABLET RESPONSIVE (768px and below)
   ======================================== */
@media (max-width: 768px) {
    .content {
        padding: 2rem 1rem;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .card h2 {
        font-size: 1.6rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Hero Carousel Mobile */
    .hero-carousel-container {
        padding-bottom: 75%; /* Taller aspect ratio on mobile */
        max-height: 450px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* ========================================
   SMALL PHONE RESPONSIVE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    .content {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .card h2 {
        font-size: 1.4rem;
    }

    .service-item {
        padding: 1.25rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    /* Hero Carousel Small Mobile */
    .hero-carousel-container {
        padding-bottom: 100%; /* Square-ish on very small screens */
        max-height: 380px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}