@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

:root {
    --brand: #ff4d29;
    --dark: #092032;
    --body: #516171;
    --border: rgba(0,0,0,0.08);
    --shadow: 0px 6px 30px rgba(0, 0, 0, 0.08);
    
}

body {
    font-family: "Barlow", sans-serif;
    color: var(--body);
}



/* Default Styles for Navbar */
.navbar {
    background-color: #484c50;  /* Ash color background */
    transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth transition for background and padding */
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: white !important;  /* White text */
}

/* On Scroll, apply smaller height */
.navbar.smaller {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #b0b0b0;  /* Slightly darker ash color when scrolled */
}

/* Adjust links when navbar shrinks */


/* Increase text size for navbar links */
.navbar-nav .nav-link {
    font-size: 18px; /* Adjust the size as needed */
    font-weight: bold; /* Optional: to make the text bold */
}


/* Navbar scroll effect - reduces height */
.navbar-toggler-icon {
    background-color: white;
}


.navbar .nav-link {
    color: var(--dark); /* Default color */
    transition: color 0.3s ease;
}

.navbar .nav-link.active {
    color: var(--brand) !important; /* Orange for active link */
}

.navbar .nav-link:hover {
    color: var(--brand); /* Orange on hover */
}

h1,h2,h3,h4,h5,h6,
.display-1,.display-2,.display-3,.display-4 {
    font-weight: 700;
    color: var(--dark);
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

img {
    width: 100%;
}

a {
    color: var(--dark);
    transition: all 0.4s ease;
    font-weight: 500;
}

a:hover {
    color: var(--brand);
}

.text-brand {
    color: var(--brand) !important;
}


/* navbar */
.top-nav {
    background-color: var(--brand);
    color: #fff;
    padding-top: 5px;
    padding-bottom: 5px;
}

.top-nav p {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 10px;
}

.top-nav span,
.top-nav i {
    vertical-align: middle;
}

.navbar {
    box-shadow: var(--shadow);
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--brand);
}

.navbar .navbar-nav .nav-link.active {
    color: var(--brand);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
    font-weight: bold;
}

.navbar-brand .dot {
    color: var(--brand);
}

.btn {
    padding: 8px 26px;
}

.btn-brand {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
}

.btn-brand:hover {
    background-color: #d64022;
    border-color: #d64022;
    color: #fff;
}


footer {
    background: linear-gradient(0deg, rgba(8, 32, 50, 0.9), rgba(8, 32, 50, 0.9));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

footer .footer-top {
    padding-top: 80px;
    padding-bottom: 40px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    padding-top: 20px;
}

footer .navbar-brand {
    color: #fff;
}

footer p {
    color: #ADB3B9;
}


.loader {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: red;
    z-index: 99999;
    position: fixed;
    left: 0;
    right: 0;
}


input.form-control {
    border-color: transparent;
    height: 44px;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.04);;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--brand);
}

#home {
    position: relative; /* Allows positioning child elements relative to this section */
    text-align: center; /* Centers the text horizontally */
}

#home img {
    width: 100%; /* Ensures the image is responsive */
    height: 50%; /* Maintains aspect ratio */
}

.image-text {
    position: absolute; /* Positions the text over the image */
    top: 50%; /* Centers vertically */
    left: 50%; /* Centers horizontally */
    transform: translate(-50%, -50%); /* Corrects alignment */
    color: #51c245; /* Sets the text color */
    font-weight: bold; /* Makes text bold */
    text-align: center; /* Centers text */
}

/* Responsive text size */
.image-text h1 {
    color: #51c245;
    font-size: 6vw; /* Scales text based on viewport width */
    margin: 0; /* Removes default margin */
    line-height: 1.2; /* Adjusts line height for better readability */
}




@media (max-width: 991px) {
    .image-text h1 {
        font-size: 6vw; /* Larger text for smaller devices */
        color: #51c245;
    }
}

@media (min-width: 992px) {
    .image-text h1 {
        font-size: 5vw; /* Smaller text for larger devices */
        color: #51c245;
    }
}


#home {
    position: relative;
}

.custom-img {
    width: 100%; /* Full width */
    height: auto; /* Maintain aspect ratio */
}

.image-text {
    position: absolute;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust for perfect centering */
    color: #51c245; /* White text */
    border-radius: 8px; /* Rounded corners (optional) */
    text-align: center; /* Center-align text */
    max-width: 80%; /* Restrict width on larger screens */
    font-size: 2rem; /* Adjust text size */
}

@media (max-width: 768px) {
    .image-text {
        position: absolute;
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for perfect centering */
        background-color: rgba(0, 0, 0, 0.7); /* Black background with 70% opacity */
        color: #51c245; /* White text */
        padding: 10px 10px; /* Padding around the text */
        border-radius: 8px; /* Rounded corners (optional) */
        text-align: center; /* Center-align text */
        max-width: 80%; /* Restrict width on larger screens */
        font-size: 10px; /* Adjust text size */
    }
}


@media (max-width: 768px) {
    .custom-img {
        max-width: 100%;
        max-height: 200px; /* Smaller height for smaller screens */
    }
}

@media (min-width: 769px) {
    .custom-img {
        max-width: 100%;
        max-height: 600px;
    }
}




/* About Section Base Styling */
#about {
    position: relative;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
    min-height: 100vh; /* Ensure full-screen height for the section */
    display: flex; /* Use flexbox for vertical alignment */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

#about img {
    width: 100%; /* Full-width image */
    height: auto; /* Maintain aspect ratio */
    position: absolute; /* Make the image a background layer */
    top: 0;
    left: 0;
    z-index: -1; /* Send the image to the background */
}

/* Card Styling */
.image-card {
    background-color: white; /* White background for the card */
    padding: 30px 20px; /* Add padding for spacing */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow for visibility */
    max-width: 600px; /* Constrain card width */
    text-align: center; /* Center the text */
    overflow: visible; /* Ensure content isn't hidden */
}

/* Heading Styling */
.image-card h1 {
    font-size: 2rem; /* Base size */
    color: #333; /* Dark heading color */
    margin-bottom: 15px; /* Spacing below the heading */
}

/* Paragraph Styling */
.image-card p {
    color: #000; /* Paragraph text color */
    font-size: 1rem; /* Base paragraph size */
    line-height: 1.6; /* Readable line spacing */
    margin-bottom: 15px; /* Add space between paragraphs */
}

/* Responsive Styling for Mobile Devices */
@media (max-width: 768px) {
    #about img {
        width: 100%; /* Full-width image */
        height: 100%; /* Maintain aspect ratio */
        position: absolute; /* Make the image a background layer */
        top: 0;
        left: 0;
        z-index: -1; /* Send the image to the background */
    }

    .image-card {
        padding: 20px 15px; /* Adjust padding for smaller screens */
        max-width: 90%; /* Make the card more adaptive */
    }

    .image-card h1 {
        font-size: 1.5rem; /* Smaller heading for mobile */
        margin-bottom: 10px; /* Adjust spacing */
    }

    .image-card p {
        font-size: 0.85rem; /* Smaller paragraph font */
        line-height: 1.4; /* Adjust line spacing */
    }
}

/* Responsive Styling for Tablets */
@media (min-width: 769px) and (max-width: 991px) {
    .image-card {
        padding: 25px 20px; /* Medium padding for tablets */
        max-width: 80%; /* Slightly wider card for tablets */
    }

    .image-card h1 {
        font-size: 1.8rem; /* Medium heading size */
    }

    .image-card p {
        font-size: 0.95rem; /* Medium paragraph size */
    }
}

/* Desktop and Larger Screens */
@media (min-width: 992px) {
    .image-card h1 {
        font-size: 2rem; /* Larger heading for desktops */
    }

    .image-card p {
        font-size: 1.09rem; /* Standard paragraph size for desktops */
    }
}

/* General Section Styling */
section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 50px; /* Ensures some spacing between sections */
}


/* Mobile View Adjustments */
@media (max-width: 768px) {
    #products {
        padding: 0rem 0;
    }
    /* Contact Section */
#contact {
    padding: 0rem 0;
}
    /* Ensure sections are not stacked on each other */
    #products .row,
    #contact .row {
        flex-direction: column;
        align-items: center;
    }
    
    /* Adjust iframe height for better mobile display */
    #contact iframe {
        height: 250px;
    }

    /* Add some spacing between text and content */
    #contact p,
    #products p {
        margin-bottom: 20px;
    }
}
