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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

/* THEME COLORS */
:root {
    --bright-green: #2F6B2F;
    --olive-green: #4B4C2B;
    --golden-yellow: #EAAA00;
    --accent-orange: #F28C00;
    --black: #000000;
    --white: #FFFFFF;
    --dark-olive: #182D09; /* for social bar & footer */
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: transparent;
}

/* ======================================================
SOCIAL BAR (Top Contact Bar)
====================================================== */
.social-bar {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: auto;
    background-color: transparent;
    color: var(--white);
    padding: 10px 18px;
    text-align: left;
}

.contact-info {
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 14px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ======================================================
TITLE BAR
====================================================== */
.title-bar {
    position: relative;
    background: linear-gradient(135deg, var(--olive-green), var(--bright-green) 50%, var(--olive-green));
    text-align: center;
    padding: 58px 20px 40px;
}

.title-bar h1 {
    color: var(--golden-yellow);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-bar p.slogan {
    color: var(--white);
}

/* ======================================================
HERO SECTION
====================================================== */
.hero-summary {
    position: relative;
    padding: 60px 20px;
    color: var(--black); /* default, can change to white later */
    background: url("behind.png") no-repeat center center;
    background-size: cover;
}

.hero-summary h2 {
    color: var(--golden-yellow);
    text-align: left;
}

.hero-summary h2 .welcome-to {
    color: var(--golden-yellow);
    -webkit-text-fill-color: transparent; /* transparent fill */
    -webkit-text-stroke: 1px var(--golden-yellow); /* border in golden yellow */
}

/* ======================================================
SERVICES SECTION
====================================================== */
.services {
    padding: 80px 20px;
    transition: filter 0.3s ease; /* for modal blur effect */
    background: transparent; /* removed white background so page background shows */
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    background: transparent; /* ensures no white behind the 4 cards */
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: 0.3s ease;
    height: 432px;
    min-width: 0;
    background: transparent; /* removed white background so page background shows */
}

.card:hover {
    transform: translateY(-6px);
}

.card-image {
    height: 288px;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 60, 60, 0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s ease;
    text-decoration: none;
}

.center-icon {
    width: 55px;
    height: 55px;
    background: #f4b400;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    font-size: 18px;
    transform: scale(0.7);
    transition: 0.3s ease;
}

.card-image:hover .overlay {
    opacity: 1;
}

.card-image:hover .center-icon {
    transform: scale(1);
}

.card-content {
    padding: 20px 22px;
    background: transparent; /* removed white background */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0a2d2d;
    transition: color 0.3s ease;
}

.card-content p {
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
}

/* CARD HOVER EFFECT FOR CONTENT */
.card:hover .card-content {
    background: var(--olive-green); /* hover remains olive green */
    transform: scale(1.05);
}

.card:hover .card-content h3,
.card:hover .card-content p {
    color: #fff;
}

/* ICON BOX */
.corner-icon {
    position: absolute;
    bottom: 120px; 
    left: 18px;
    width: 55px;
    height: 55px;
    background: #fff;
    border: 2px solid #f4b400;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    z-index: 2;
    /* moved up by 32% total */
    transform: translateY(-32%);
}

.corner-icon i {
    font-size: 20px;
    color: #0a2d2d;
}

.corner-icon::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border-left: 3px solid #f4b400;
    border-bottom: 3px solid #f4b400;
    bottom: -10px;
    left: -10px;
}

@media (max-width: 1000px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services {
        padding: 50px 14px;
    }

    .container {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .card {
        height: auto;
    }

    .card-image {
        height: 230px;
    }

    .corner-icon {
        bottom: 110px;
    }
}

/* ======================================================
PORTFOLIO CTA SECTION
====================================================== */
.portfolio-cta {
    padding: 0 20px 80px;
}

.portfolio-cta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-cta-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.portfolio-cta h2 {
    color: var(--dark-olive);
    font-size: 30px;
    margin-bottom: 12px;
}

.portfolio-cta p {
    max-width: 680px;
    margin: 0 auto 24px;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.portfolio-btn {
    display: inline-block;
    background: var(--golden-yellow);
    color: #000;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s ease;
}

.portfolio-btn:hover {
    background: var(--olive-green);
    color: #fff;
    transform: translateY(-2px);
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    backdrop-filter: blur(5px);
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.modal-content h3 {
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 14px;
    color: #333;
}

.modal .close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* ======================================================
BACK-TO-HOME BUTTON
====================================================== */
.back-home {
    position: fixed;
    bottom: 60px;
    left: 20px;
    background: var(--golden-yellow);
    color: #000;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    z-index: 5;
}

.back-home:hover {
    background: var(--olive-green);
    color: #fff;
}

/* ======================================================
FOOTER BAR
====================================================== */
footer {
    background: var(--dark-olive);
    color: var(--white);
    text-align: center;
    padding: 15px 20px;
}

@media screen and (max-width: 480px) {
    .social-bar {
        position: static;
        width: 100%;
        padding: 8px 10px;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
        gap: 10px;
        font-size: 12px;
    }

    .title-bar {
        padding: 30px 15px;
    }

    .title-bar h1 {
        font-size: 28px;
    }

    .hero-summary {
        padding: 40px 14px;
    }

    .portfolio-cta {
        padding: 0 14px 50px;
    }

    .portfolio-cta-container {
        padding: 30px 18px;
    }

    .portfolio-cta h2 {
        font-size: 24px;
    }

    .back-home {
        bottom: 16px;
        left: 14px;
        padding: 10px 16px;
    }
}
