/* FONT IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;700&display=swap');

/* CSS VARIABLES & GLOBAL STYLES */
:root {
    --dark-teal: #003D40;
    --dark-teal-card: #084C4F;
    --turquoise: #40E0D0;
    --white: #FFFFFF;
    --shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-teal);
    color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.card {
    background-color: var(--dark-teal-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    background-color: var(--turquoise);
    color: var(--dark-teal);
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0px 5px 15px rgba(64, 224, 208, 0.3);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 25px rgba(64, 224, 208, 0.5);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    max-width: 800px;
    margin-bottom: 20px;
}

.hero-content p {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 800px;
    margin-bottom: 30px;
    opacity: 0.85;
}

/* CASE STUDIES SECTION */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.case-study-media {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.case-study-card h3 {
    font-size: 1.8rem;
    color: var(--white);
}

.case-study-card > .card-content > p {
    opacity: 0.7;
    margin-bottom: 30px;
}

.metrics {
    display: flex;
    justify-content: space-between;
    text-align: left;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--turquoise);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* RESULTS GALLERY */
.results-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 61, 64, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    color: var(--turquoise);
    font-size: 1.5rem;
}
.gallery-item:hover .overlay {
    opacity: 1;
}


/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
}

.service-icon {
    font-size: 3rem;
    color: var(--turquoise);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* BOTTOM CTA */
.bottom-cta {
    text-align: center;
    padding: 100px 20px;
    background-color: var(--dark-teal-card);
}

.bottom-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.btn-glow {
    animation: glow 2s infinite;
}

@keyframes glow {
    0% { box-shadow: 0px 5px 15px rgba(64, 224, 208, 0.3); }
    50% { box-shadow: 0px 8px 30px rgba(64, 224, 208, 0.6); }
    100% { box-shadow: 0px 5px 15px rgba(64, 224, 208, 0.3); }
}

/* JAVASCRIPT ANIMATION CLASS */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

/* IMAGE MODAL (LIGHTBOX) */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .section-title, .bottom-cta h2 { font-size: 2rem; }
    .case-studies-grid, .services-grid { grid-template-columns: 1fr; }
    .metrics { flex-wrap: wrap; }
    .metric-item { flex-basis: 45%; }
}