* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fff;
    text-align: center;
    overflow-x: hidden;
}

.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    font-weight: bold;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 30px;
}

.logo img {
    width: 160px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links li {
    list-style: none;
    position: relative;
    font-size: 18px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 8px 12px;
    position: relative;
}

/* Underline Animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 2px;
    background-color: #3f3f3f;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links .active::after {
    transform: scaleX(1);
}

/* Employee Login Button (No Underline) */
.login-btn {
    background-color: #c3c0c0;
    color: rgb(248, 247, 247);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s ease-in-out;
    position: relative;
}

.login-btn::after {
    display: none; /* Removes underline animation */
}

.login-btn:hover {
    background-color: #d4d5d5;
}

.our-products {
    text-align: center;
    padding: 80px 0;
    background: white;
    color:#353535
}

.section-title {
    font-size: 2.5em;
    font-weight: bold;
}

.bento-grid {
    display: block;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-50px);
}

.section-title span {
    color: #336aaa;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

.product-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    padding: 20px;
}

.product-box {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 40px 5%;
    background: white;
    text-align: left;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-in-out;
}

.product-box.visible {
    transform: translateY(0);
    opacity: 1;
}

.product-img {
    width: 15%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.product-content {
    width: 80%;
    padding-left: 20px;
}

.product-title {
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-description {
    font-size: 1.1em;
    color: #272626;
    line-height: 1.6;
}

.product-description ul {
    list-style: disc;
    padding-left: 20px;
}

.product-description h4 {
    margin-top: 20px;
    font-size: 1.3em;
    font-weight: bold;
    color: #1a1a1a;
}

.product-description li {
    margin-bottom: 10px;
    font-size: 18px;
}

.product-description p{
    font-size: 18px;
}

.product-title {
    font-size: 1.7em;
    margin: 15px 0;
    font-weight: bold;
    position: relative;
    display: inline-block;
    cursor: pointer;
    color:#1e1e1f
}

.product-title::after {
    content: "";
    width: 0;
    height: 2px;
    background-color: #232323;
    position: absolute;
    left: 50%;
    bottom: -5px;
    transition: width 0.4s ease-in-out, left 0.4s ease-in-out;
    transform: translateX(-50%);
}

.product-box:hover .product-title::after {
    width: 100%;
    left: 50%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    width: 100vw;
    max-width: 1240px;
    height: 80vh;
    margin-top: 10px;
    margin-left: 190px;
}


.box {
    background: #ccc;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.box1 {
    grid-column: span 1;
    grid-row: span 2;
    border-radius: 50px;
}

.box2 {
    grid-column: span 2;
    border-radius: 30px;
}

.box3 {
    grid-column: span 1;
    border-radius: 30px;
}

.box4 {
    grid-column: span 2;
    grid-row: span 2;
    border-radius: 50px;
}

.box5 {
    grid-column: span 1;
    border-radius: 30px;
}

.capitals-logo {
  max-width: 380px;
  width: 100%;
  padding: 20px;
  display: block;
  margin: 0 0 20px 0; /* Removes auto-centering */
  object-fit: contain;
  text-align: left; /* Optional: affects inline content alignment */
}



footer {
    background: linear-gradient(135deg, #3c3c3c, #505151);
    color: white;
    padding: 50px 0;
    font-family: 'Arial', sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}

.footer-logo {
    width: 150px;
    margin-bottom: 15px;
    position: relative;
    top: -50px;
}

.footer-about p {
    font-size: 17px;
    color: #ddd;
    line-height: 1.6;
    max-width: 300px;
    margin-top: -100px;
}

.footer-about, .footer-links, .footer-contact {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-about h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-links h3, .footer-contact h3 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

.footer-links ul li a:hover {
    color: #6ad0ff;
    transform: translateX(5px);
}

.footer-contact form {
    display: flex;
    gap: 10px;
}

.footer-contact input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #222;
    color: white;
}

.footer-contact button {
    background: #b6d5e4;
    color: rgb(56, 55, 55);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}


.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 14px;
}


/* ===================== MEDIA QUERIES ===================== */

/* Mobile (Android/iOS) */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        align-items: flex-start;
    }

    .logo {
        align-self: flex-start;
        margin-right: 10px;
    }

    .logo img {
        width: 120px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 20px;
        justify-content: center;
    }

    .nav-links li {
        flex: none; /* prevents extra spacing */
        text-align: left;
        font-size: 16px;
        white-space: nowrap; /* Keeps "Our Products" in one line */
    }

    .nav-links a {
        display: inline-block;  /* Prevents full-width hover effect */
        padding: 6px;
        position: relative;
    }

    /* Underline effect only for text */
    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 100%;
        height: 2px;
        background-color: #3f3f3f;
        transform: scaleX(0);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links a:hover::after,
    .nav-links .active::after {
        transform: scaleX(1);
    }

    /* Login button below navigation */
    .login {
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }


    .login-btn {
        display: inline-block;
        width: auto;
        padding: 8px 12px;  /* Reduced width */
        font-size: 14px;
        background-color: #ccc;
        border-radius: 5px;
        font-weight: bold;
        text-decoration: none;
    }

    .section-title {
        font-size: 1.8em;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%; /* Stretches full width */
        margin: 0; /* Aligns to left */
        padding: 0 10px;  /* Keeps content inside screen */
        
    }

    .box1, .box4 { grid-column: span 2; grid-row: span 1; }
    .box2, .box3, .box5, .box6, .box7 { grid-column: span 1; }

    .product-box {
        flex-direction: column;
        gap: 20px;
        padding: 20px 5%;
    }

    .box {
        border-radius: 10px;
    }

    .box img {
        border-radius: 10px;
        width: 100%;
        height: auto;
    }

    .product-img {
        width: 80%;
        height: auto;
    }
    .product-content {
        width: 100%;
        padding: 0;
    }
    .product-title {
        font-size: 1.5em;
    }
    .product-description {
        font-size: 1em;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        padding: 0 15px;
    }

    .footer-about, .footer-links, .footer-contact {
        display: flex;
        flex-direction: column;
        min-width: 100%;
        text-align: left;
        align-items: flex-start;  /* Align content to the left */

    }

    .footer-logo {
        width: 120px;
        margin-bottom: 0px;  /* 🔹 Remove extra gap */
        text-align: left;
    }

    .footer-about p {
        font-size: 16px;
        margin-top: -30px;   /* 🔹 Reduce top margin to bring text closer */
        text-align: left;
    }

    .footer-links ul {
        padding-left: 0;
        text-align: left;
    }

    .footer-contact form {
        flex-direction: column;
        gap: 8px;
    }

    .footer-contact input {
        width: 100%;
    }

    .footer-contact button {
        width: 100%;
    }

    .social-icons {
        display: flex;
        justify-content: center;
    }

    .footer-bottom {
        font-size: 12px;
    }
}


/* Mobile Landscape View (Android & iOS) */
@media (max-width: 768px) and (orientation: landscape) {
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Adjusts to 3 columns */
        grid-template-rows: repeat(3, auto); /* 3 rows to fit 7 images */
        gap: 10px; /* Space between images */
        width: 100vw; /* Full viewport width */
        padding: 10px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .box {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensures full image coverage */
        border-radius: 10px; /* Rounded edges */
    }

    /* Center and enlarge the main image */
    .box.main {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Adjust the last image to span full width if needed */
    .box:last-child {
        grid-column: span 2; /* Makes the last image wider */
    }
}



/* Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .header {
        display: flex;
        justify-content: space-between;  /* Ensures items are spread out */
        align-items: center;
        padding: 10px 30px;
        height: auto;
    }

    .logo {
        flex: 1; /* Allows the logo to take available space on the left */
    }

    .logo img {
        width: 140px;
    }

    .nav-links {
        display: flex;
        flex: 2; /* Gives nav links more space */
        justify-content: center;
        gap: 20px;
        flex-wrap: nowrap; /* Prevents links from breaking into new rows */
    }

    .nav-links li {
        font-size: 17px;
        white-space: nowrap; /* Ensures text does not wrap */
    }

    .login-btn {
        flex: 1; /* Pushes the login button to the right */
        text-align: right;
        font-size: 17px;
        padding: 8px 15px;
        background-color: #ccc;
        border-radius: 5px;
        font-weight: bold;
        text-decoration: none;
    }

    .section-title {
        font-size: 2.2em;
    }

    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 10px;
        width: 100%;
    }

    .box1 { grid-column: span 1; grid-row: span 2; }
    .box4 { grid-column: span 2; grid-row: span 2; }

    /* ✅ Ensure images fully fit in tablet view */
    .box img {
        width: 100%;
        height: 100%;
        object-fit: cover;  /* Ensures images fill containers properly */
    }

    .product-box {
        flex-direction: column;
        gap: 25px;
        padding: 25px 5%;
    }

    .box {
        border-radius: 15px;
    }

    .box img {
        border-radius: 15px;
    }

    .product-img {
        width: 60%;
        height: auto;
    }
    .product-content {
        width: 100%;
        padding: 0;
    }
    .product-title {
        font-size: 1.6em;
    }
    .product-description {
        font-size: 1.1em;
    }

    .footer-container {
        margin-top: auto;
        flex-wrap: wrap;
        text-align: center;
    }

    .footer-logo {
        width: 120px;
        margin-bottom: 0px; /* Remove extra bottom space */
        display: block;
    }

    .footer-about p {
        font-size: 16px;
        margin-top: -65px; /* Reduce space between logo and paragraph */
    }

    .footer-about, .footer-links, .footer-contact {
        flex: 1;
        min-width: 45%;
        text-align: left;
    }

    .footer-contact form {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    } 
}


@media screen and (orientation: landscape) and (max-width: 1024px) {
    .bento-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Dynamic grid */
        grid-auto-rows: auto;
        gap: 10px; /* Adds spacing between images */
        width: 100vw; /* Full width */
        padding: 0 5vw; /* Prevents shrinkage on edges */
        margin: 0 auto;
    }

    .box {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .box img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Ensure images fit inside the grid */
        border-radius: 10px; /* Optional: Adds smooth edges */
    }
}




/* Laptops */
@media (min-width: 1025px) and (max-width: 1366px) {
    .header {
        padding: 15px 50px;
    }

    .nav-links {
        gap: 25px;
    }

    .nav-links li {
        font-size: 18px;
    }

    .section-title {
        font-size: 2.5em;
    }

    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1240px;
        height: auto;
    }

    .product-box {
        flex-direction: row;
        gap: 40px;
    }
    .product-img {
        width: 20%;
    }
    .product-content {
        width: 75%;
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        max-width: 1200px;
        margin: auto;
        text-align: left;
    }


    .footer-about, .footer-links, .footer-contact {
        flex: 1;
        min-width: 300px;
    }
}


/* Large desktops */
@media (min-width: 1367px) {
    .header {
        padding: 15px 80px;
    }

    .nav-links {
        gap: 30px;
    }

    .nav-links li {
        font-size: 20px;
    }

    .section-title {
        font-size: 3em;
    }

    .footer-container {
        max-width: 1400px;
    }

    .footer-about p {
        font-size: 18px;
        text-align: center;
        margin-left: 30px;
    }

    .footer-links h3, .footer-contact h3 {
        font-size: 22px;
    }

    .footer-links ul li a {
        font-size: 18px;
    }
}
