/* =========================
   RESET & BASE
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    padding: 20px;
    min-height: 100vh;

    /* Page background */
    background-image: url("images/image1.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80% auto;
}

/* =========================
   GRID LAYOUT
========================= */
.container {
    height: calc(100vh - 40px); /* account for body padding */
    display: grid;
    gap: 20px;

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 30fr 50fr 20fr;
    grid-template-areas:
        "top top"
        "left right"
        "footer footer";
}

/* =========================
   COMMON SECTION STYLE
========================= */
.box {
    background: rgba(255, 255, 255, 0.7); /* 30% transparent */
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* =========================
   TOP SECTION (LOGO + NAME)
========================= */
.top {
    grid-area: top;
}

.logo-wrapper {
    gap: 0; 
    height: 100%;
    max-width: 400px;

    display: flex;
    flex-direction: column;
}

.logo-area {
    flex: 7; /* 70% */
    display: flex;
    justify-content: center;
    align-items: center;
}

.name-area {
    flex: 3; /* 30% */
    display: flex;
    justify-content: center;
    align-items: flex-start;   /* 🔑 move to top */
    padding-top: 10px; 
}

.logo {
    margin: 0;
    padding: 0;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.company-name {
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #222;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

/* =========================
   BACKGROUND IMAGE SECTIONS
========================= */
.bg-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay for readability */
.bg-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    z-index: 0;
}

/* Section text */
.section-title {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
}

/* Individual background images */
.left {
    grid-area: left;
    background-image: url("images/export.jpg");
}

.right {
    grid-area: right;
    background-image: url("images/bpo.jpg");
}

/* =========================
   FOOTER
========================= */
.footer {
    grid-area: footer;
    font-size: 14px;
    color: #444;
}

/* Hover animation for image sections */
.bg-section {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
}

/* Background zoom on hover */
.bg-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: transform 0.5s ease;
}

/* Hover state */
.bg-section:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.bg-section:hover::after {
    transform: scale(1.08);
}

/* Darken overlay slightly on hover */
.bg-section:hover::before {
    background: rgba(0, 0, 0, 0.45);
}


/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: 30fr 25fr 25fr 20fr;
        grid-template-areas:
            "top"
            "left"
            "right"
            "footer";
    }

    body {
        background-size: 90% auto;
    }

    .company-name {
        font-size: 26x;
    }

    .section-title {
        font-size: 20px;
    }
}
