:root {
    /* Color Variables */
    --light-color: #ffffff;
    --dark-color: #000000;
    --dark-gray: #cccccc;
    --med-gray: #e2e1e1;
    --light-gray: #f7f7f7;

    /* Custom Colors */
    --paragraph-color: var(--dark-color);
    --body-bg: var(--light-gray);
    --border-color: var(--dark-gray);
    --heading-color: var(--dark-color);
    --link-color: var(--dark-color);
    --link-hover-color: var(--light-color);
    --button-text-color: var(--light-color);
    --button-bg: var(--dark-color);
    --button-hover-bg: var(--light-color);
    --gradient-start: var(--dark-gray);
    --gradient-end: var(--dark-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Smooth scrolling */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--paragraph-color);
    background-color: var(--body-bg); /* Background color */
}

.hr-line {
    border: 1px solid var(--border-color); /* Horizontal line styling */
    margin: 0.5rem 0;
}

.companylogo img {
    width: 130px;
    height: auto;
}

.bi-list,
.bi-x {
    font-size: 40px;
    background-color: var(--dark-color);
    color: var(--body-bg);
    padding: 0 8px;
    border-radius: 4px;
}

/* Navbar Styling */
.navbar-header {
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: space-between;
    background: url("../All-Media/Images/header-image.jpg") no-repeat center
        center;
    background-size: cover;
    color: white; /* Text color for contrast */
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center; /* Center items vertically */
}

nav ul li {
    padding: 0 1.15rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--link-color);
    font-size: 1.35rem;
    font-weight: 550;
    transition: color 0.1s linear; /* Smooth color transition */
}

nav ul li a:hover {
    color: var(--link-hover-color);
    text-decoration: underline; /* Underline on hover */
}

/* Home Section */
#home {
    padding: 6rem 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home h1 {
    font-size: 50px;
    font-weight: 600;
    color: var(--heading-color); /* Heading color */
}

#home p {
    font-size: 18px;
    font-weight: 540;
    color: var(--paragraph-color); /* Paragraph color */
}

.homeBtn {
    text-decoration: none;
    padding: 16px 24px;
    margin-top: 10px;
    color: var(--button-text-color);
    background-color: var(--button-bg);
    font-size: 16px;
    border: none;
    border-radius: 50px; /* Rounded button */
}

.homeBtn:hover {
    background-color: var(--button-hover-bg);
    color: var(--dark-color);
    cursor: pointer;
    transition: 0.2s linear; /* Smooth hover transition */
}

/* Mobile Menu Icon */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
}

.menu-icon .bar {
    height: 3px;
    width: 25px;
    background-color: var(--dark-color);
    margin: 4px 0;
    transition: all 0.3s ease; /* Smooth transition for bars */
}

.menu-icon .close {
    display: none; /* Initially hidden */
    position: absolute;
    top: -24px;
    left: -46px;
}

/* Menu Icon Open State */
.menu-icon.open .bar {
    opacity: 0; /* Hide bars when open */
}

.menu-icon.open .close {
    display: block; /* Show close button */
    transition: all 0.3s ease; /* Smooth transition */
}

/* Footer Styling */
footer {
    display: flex;
    flex-direction: column;
    background-color: var(--link-color);
    color: var(--body-bg);
    margin-top: 200px;
}

.footer-links {
    display: grid;
    grid-template-columns: 35% 25% 25%;
    grid-gap: 7%;
    padding: 4rem;
}

.footer-info {
    display: grid;
    grid-template-columns: 49% 49%;
    grid-gap: 2%;
    padding: 1rem 4rem;
    border-top: 1px solid var(--body-bg); /* Separator */
}

.footer-links-divone p,
.footer-links-divtwo div,
.footer-links-divthree div {
    margin-top: 14px;
}

.footer-links-divone p {
    margin-top: 16px;
}

.footer-links-divtwo div a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--body-bg);
    transition: text-decoration 0.1s linear, font-weight 0.1s linear; /* Smooth transition */
}

.footer-links-divtwo div a:hover {
    text-decoration: underline;
    font-weight: 600;
}

.bi-whatsapp,
.bi-facebook,
.bi-instagram,
.bi-envelope {
    font-size: 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: var(--body-bg); /* Icon color */
}

.bi-whatsapp {
    background: #25d366;
}
.bi-facebook {
    background: #1877f2;
}
.bi-instagram {
    background: #ff70a9;
}
.bi-envelope {
    background: #c71610;
}

.bi-whatsapp:hover,
.bi-facebook:hover,
.bi-instagram:hover,
.bi-envelope:hover {
    background-color: transparent;
    border: 2px solid;
}

.bi-whatsapp:hover {
    color: #25d366;
    border-color: #25d366;
}
.bi-facebook:hover {
    color: #1877f2;
    border-color: #1877f2;
}
.bi-instagram:hover {
    color: #ff70a9;
    border-color: #ff70a9;
}
.bi-envelope:hover {
    color: #c71610;
    border-color: #c71610;
}

/* Loader Styling */
.loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
    animation: changeColor 10s linear infinite;
    z-index: 100;
}

.loader {
    width: 60px;
    padding: 4px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, #000000, #000000);
    --_m: conic-gradient(#0000 10%, #000000),
        linear-gradient(#000000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear; /* Infinite rotation */
}

/* Fullscreen styles */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    display: none; /* Initially hidden */
    padding: 20px; /* Start with 0 opacity for fade-in effect */
}

.fullscreen .card-content {
    display: flex;
    width: 94%;
    max-height: 94%;
    background-color: var(--light-color);
    border-radius: 6px;
    overflow: hidden;
}

.fullscreen .card-image {
    flex: 1.35;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-gray);
}

.fullscreen .card-image img {
    width: 100%;
    height: 680px;
    object-fit: cover;
}

.fullscreen .card-details {
    flex: 1;
    padding: 30px 40px;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.fullscreen .card-details .card-heading {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    -webkit-line-clamp: 6;
}

.fullscreen .card-details .card-description {
    font-size: 22px;
    -webkit-line-clamp: 6;
    margin: 0rem;
}

.card-button a {
    text-decoration: none;
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--light-color);
    border: 1px solid var(--dark-color);
    border-radius: 4px;
    padding: 10px 18px;
}

.card-button a:hover {
    background-color: var(--light-color);
    color: var(--dark-color);
    transition: all 0.2s ease;
}

.head-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.close-button {
    background-color: var(--dark-color);
    color: var(--light-color);
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

@keyframes l3 {
    to {
        transform: rotate(1turn);
    }
}

@keyframes changeColor {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

/* Media Queries */

/* Extra small devices (phones, 250px to 400px) */
@media only screen and (min-width: 250px) and (max-width: 400px) {
    .companylogo {
        font-size: 14px;
    }

    .navbar-header {
        padding: 0.5rem 1rem;
    }

    .navbar {
        justify-content: space-between;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: -100%; /* Initially hidden */
        left: 0;
        width: 100%;
        background-color: var(--body-bg);
        transition: top 0.3s ease-in-out; /* Slide down on activation */
    }

    .bi-x {
        z-index: 50;
    }

    .nav-links.active {
        top: 0;
    } /* Show menu on activation */

    nav ul li {
        padding: 1rem 0;
        text-align: center;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    nav ul li a {
        font-size: 14px;
    }

    .menu-icon {
        display: flex;
        margin-left: auto;
    }

    #home {
        padding: 2rem 1rem;
    }

    #home h1 {
        font-size: 22px;
        text-align: center;
    }

    #home p {
        font-size: 14px;
        text-align: center;
    }

    .homeBtn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .footer-links-divone h2,
    .footer-links-divtwo h2,
    .footer-links-divthree h2 {
        font-size: 20px;
    }

    .footer-links-divone p {
        font-size: 14px;
    }

    .footer-links-divtwo div a {
        font-size: 14px;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
    }

    .footer-info div {
        text-align: center !important;
    }

    .footer-info div span {
        font-size: 14px;
    }

    .footer-links-divtwo {
        padding: 1rem 0; /* Spacing between links */
    }
}

@media screen and (min-width: 400px) and (max-width: 480px) {
    .companylogo {
        font-size: 15px;
    }

    .navbar-header {
        padding: 0.5rem 1rem;
    }

    .navbar {
        justify-content: space-between;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: -100%; /* Initially hidden */
        left: 0;
        width: 100%;
        background-color: var(--body-bg);
        transition: top 0.3s ease-in-out; /* Slide down on activation */
    }

    .bi-x {
        z-index: 50;
    }

    .nav-links.active {
        top: 0;
    } /* Show menu on activation */

    nav ul li {
        padding: 1rem 0;
        text-align: center;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    nav ul li a {
        font-size: 15px;
    }

    .menu-icon {
        display: flex;
        margin-left: auto;
    }

    #home {
        padding: 2rem 1rem;
    }

    #home h1 {
        font-size: 24px;
        text-align: center;
    }

    #home p {
        font-size: 15px;
        text-align: center;
    }

    .homeBtn {
        padding: 8px 16px;
        font-size: 15px;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .footer-links-divone h2,
    .footer-links-divtwo h2,
    .footer-links-divthree h2 {
        font-size: 22px;
    }

    .footer-links-divone p {
        font-size: 15px;
    }

    .footer-links-divtwo div a {
        font-size: 15px;
    }

    .footer-info {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
    }

    .footer-info div {
        text-align: center !important;
    }

    .footer-info div span {
        font-size: 15px;
    }

    .footer-links-divtwo {
        padding: 1rem 0; /* Spacing between links */
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 480px) and (max-width: 850px) {
    .companylogo {
        font-size: 16px;
    }

    .navbar-header {
        padding: 0.5rem 1rem; /* Less padding for smaller screens */
    }

    .navbar {
        justify-content: space-between;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: -100%; /* Start off-screen */
        left: 0;
        width: 100%;
        background-color: var(--body-bg);
        transition: top 0.3s ease-in-out;
    }
    .bi-x {
        z-index: 50;
    }

    .nav-links.active {
        top: 0px; /* Adjusted for better placement */
    }

    nav ul li {
        padding: 1rem 0; /* Spacing between links */
        text-align: center;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    nav ul li a {
        font-size: 16px;
    }

    .menu-icon {
        display: flex;
        margin-left: auto; /* Align to the right */
    }

    #home {
        padding: 2rem 1rem; /* Adjust padding for smaller screens */
    }

    #home h1 {
        font-size: 24px;
        text-align: center;
    }

    #home p {
        font-size: 16px;
        text-align: center;
    }

    .homeBtn {
        padding: 12px 18px;
        font-size: 16px;
    }

    .footer-links {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        padding: 1rem; /* Reduced padding */
        gap: 1rem; /* Adjust gap as needed */
    }

    .footer-info {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        padding: 1rem; /* Reduced padding */
    }

    .footer-links-divone,
    .footer-links-divtwo,
    .footer-links-divthree {
        margin: 0rem 0.2rem;
    }

    .footer-info div {
        text-align: center !important; /* Force center alignment */
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 850px) and (max-width: 950px) {
    .companylogo {
        font-size: 18px;
    }

    .navbar-header {
        padding: 0.5rem 1rem; /* Less padding for smaller screens */
        height: 380px;
    }

    .navbar {
        justify-content: space-between;
    }

    nav ul {
        flex-direction: column;
        position: absolute;
        top: -100%; /* Start off-screen */
        left: 0;
        width: 100%;
        background-color: var(--body-bg);
        transition: top 0.3s ease-in-out;
    }
    .bi-x {
        z-index: 50;
    }

    .nav-links.active {
        top: 0px; /* Adjusted for better placement */
    }

    nav ul li {
        padding: 1rem 0; /* Spacing between links */
        text-align: center;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    nav ul li a {
        font-size: 22px;
    }

    .menu-icon {
        display: flex;
        margin-left: auto; /* Align to the right */
    }

    #home {
        padding: 2rem 1rem; /* Adjust padding for smaller screens */
    }

    #home h1 {
        font-size: 26px;
        text-align: center;
    }

    #home p {
        font-size: 22px;
        text-align: center;
    }

    .homeBtn {
        padding: 12px 18px;
        font-size: 22px;
    }

    .footer-links {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        padding: 1.5rem; /* Reduced padding */
        gap: 1rem; /* Adjust gap as needed */
    }

    .footer-info {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        padding: 1.5rem; /* Reduced padding */
    }

    .footer-links-divone h2,
    .footer-links-divtwo h2,
    .footer-links-divthree h2 {
        font-size: 26px;
    }

    .footer-links-divone p {
        font-size: 20px;
    }

    .footer-links-divtwo div a {
        font-size: 20px;
    }

    .footer-links-divone,
    .footer-links-divtwo,
    .footer-links-divthree {
        margin: 0rem 0.2rem;
    }

    .footer-info div {
        text-align: center !important; /* Force center alignment */
    }

    .footer-info div span {
        font-size: 20px;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 950px) and (max-width: 1200px) {
    .companylogo {
        font-size: 18px;
    }

    .navbar-header {
        height: max-content;
    }

    nav ul li {
        padding: 0rem 1rem;
    }

    nav ul li a {
        font-size: 18px;
    }

    #home {
        padding: 3rem 5rem;
    }

    #home h1 {
        font-size: 30px;
    }

    #home p {
        font-size: 20px;
    }

    .homeBtn {
        font-size: 20px;
    }

    .footer-links {
        grid-template-columns: 40% 25% 31%;
        gap: 2%;
        padding: 1rem;
    }

    .footer-info {
        padding: 1rem;
    }

    .footer-links-divone h2,
    .footer-links-divtwo h2,
    .footer-links-divthree h2 {
        font-size: 26px;
    }

    .footer-links-divone p {
        font-size: 16px;
    }

    .footer-links-divtwo div a {
        font-size: 16px;
    }

    .footer-info div span {
        font-size: 16px;
    }
}
