/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root{
    /* Colors */
    --white-color:#fff;
    --dark-color:#252525;
    --primary-color:#203359;
    --secondary-color:#7293a6;
    --third-color:#688f9c;
    --light-pink-color:#faf4f5;
    --medium-gray-color:#ccc;

    /* Font Size */
    --font-size-s: 0.9rem;
    --font-size-n: 1rem;
    --font-size-m: 1.12rem;
    --font-size-l: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-xxl: 2.3rem;

    /* Font Weight */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Border Radius */
    --border-radius-s: 8px;
    --border-radius-m: 30px;
    --border-radius-circle: 50%;

    /* Max width of the site*/
    --site-max-width: 13000px;
}

html {
    scroll-behavior: smooth;
}

/* Style for the whole site */
ul {
    list-style: none;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;

}

img {
    width: 100%;
}

.section-content {
    margin: 0 auto;
    padding: 0 20px;
    max-width: var(--site-max-width);
}

.section-title {
    text-align: center;
    padding: 60px 0 100px;
    text-transform: uppercase;
    font-size: var(--font-size-xl);
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    display: block;
    margin: 10px auto 0;
    border-radius: var(--border-radius-s);
    background: var(--primary-color);
}

/* Navbar style */
header {
    position: fixed;
    width: 100%;
    z-index: 5;
    background: var(--primary-color);
}

header .navbar {
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;

}

.navbar .nav-logo .logo-text {
    color: var(--white-color);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.navbar .back-to-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    margin-right: 18px;
    padding: 8px 12px;
    color: var(--white-color);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius-s);
    font-size: var(--font-size-s);
    font-weight: var(--font-weight-semibold);
    transition: 0.3s ease;
}

.navbar .back-to-site img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.navbar .back-to-site:hover,
.navbar .back-to-site:focus-visible {
    color: var(--primary-color);
    background: var(--secondary-color);
    outline: none;
}

.navbar .nav-menu {
    display: flex;
    gap: 10px;

}

.navbar .nav-menu .nav-link {
    padding: 10px 18px;
    color: var(--white-color);
    font-size: var(--font-size-m);
    border-radius: var(--border-radius-m);
    transition: 0.3s ease;
}

.navbar .nav-menu .nav-link:hover {
    color: var(--primary-color);
    background: var(--secondary-color);
}

.navbar :where(#menu-close-button, #menu-open-button) {
    display: none;

}

/* Hero section style */
.hero-section {
    padding: 120px 0;
    background-image: url('images/backgroundimgradient.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}

.hero-section .section-content {
    display: flex;
    align-items: center;
    min-height: 100vh;
    color: var(--white-color);
    justify-content: space-between;
}

.hero-section .hero-details .title {
    font-size: var(--font-size-xxl);
    color: var(--secondary-color);
    font-family: Arial, Helvetica, sans-serif;
}

.hero-section .hero-details .subtitle {
    margin-top: 8px;
    max-width: 70%;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

.hero-section .hero-details .description {
    max-width: 70%;
    margin: 24px 0 40px;
    font-size: var(--font-size-m);
}

/* Introduction section style */
.about-section {
    padding: 120px 0;
    background-image: url('images/backgroundimgradient.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}

.about-section .section-content {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: space-between;
    color: var(--white-color);
}

.about-section .about-image-wrapper .about-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-circle);
}


.about-section .about-details .section-title {
    padding: 0;
}

.about-section .aboutd-details .text {
    line-height: 30px;
    margin: 50px 0 30px;
    text-align: center;
    font-size: var(--font-size-m);
}

.about-section .social-link-list {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.about-section .social-link-list .social-link {
    color: var(--primary-color);
    font-size: var(--font-size-l);
    transition: 0.2s ease; 
}

.about-section .social-link-list .social-link:hover {
    color: var(--secondary-color);
}

/* Menu section style */
.menu-section {
    padding: 120px 0;
    background-image: url('images/backgroundimgradient.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 100vh;
    color: var(--white-color);
}

.card {
    position: relative;
    width: 300px;
    height: 350px;
    margin: 20px;
    border-radius: 20px;
    transition: 0.5s;
    transition-delay: 0.5s;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card:hover {
    width: 600px;
    transition-delay: 0s;
}

.card .circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card .circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    clip-path: circle(120px at center);
    transition: 0.5s;
}

.card:hover .circle::before {
    clip-path: circle(400px at center);

}

.card .circle .logo {
    position: relative;
    width: 200px;
    transition: 0.5s;
    transition-delay: 0.5s;
}

.card:hover .circle .logo {
    transform: scale(0);
    transition-delay: 0s;
}

.content {
    position: relative;
    width: 50%;
    left: 20;
    padding: 20px 20px 20px 40px;
    opacity: 0;
    transition: 0.5s;
    visibility: hidden;

}

.card:hover .content {
    left: 0;
    opacity: 1;
    visibility: visible;
    transition-delay: 0.5s;
}

.content h2 {
    color: #fff;
    text-transform: uppercase;
    font-size: 2.5em;
    line-height: 1em;
}

.content p {
    color: #fff;

}

.card .product {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    height: 1000px;
    width: 450px;
    transition: 0.5s;
    transition-delay: 0s;
}

.card:hover .product {
    left: 90%;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.5s;
}

.card .rating {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    height: 700px;
    width: 300px;
    transition: 0.5s;
    transition-delay: 0s;
}

.card:hover .rating {
    left: -30%;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.5s;
}

/* About Us section style */
.about-section {
    padding: 100px 0;
    background-color: var(--background-color);
    color: var(--white-color);
  }
  
  .about-card {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    background-color: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }
  
  .about-card.reverse {
    flex-direction: row-reverse;
  }
  
  .card-image {
    flex: 1;
    min-height: 350px;
    overflow: hidden;
  }
  
  .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
  }
  
  .about-card:hover .card-image img {
    transform: scale(1.05);
  }


  /* A logo is not a photograph. The card is built for photos - full bleed,
     cropped to fill, zooming on hover - which turns a logo into a cropped,
     over-scaled mess. This gives it a brand-navy panel and room to breathe. */
  .card-image.is-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 3rem;
  }

  .card-image.is-logo img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 200px;
    object-fit: contain;
  }

  .about-card:hover .card-image.is-logo img {
    transform: none;
  }

  
  .card-content {
    flex: 1;
    padding: 3rem;
  }
  
  .card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--white-color);
  }
  
  .card-content p {
    font-size: 1.1rem;
    color: var(--white-color);
    line-height: 1.8;
  }
  
  
  .parallax-section {
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/image/cert.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.2;
    filter: blur(2px);
  }
  
  .parallax-content {
    position: relative;
    z-index: 2;
    color: var(--text-color);
    max-width: 700px;
    padding: 0 20px;
  }
  
  .parallax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .parallax-content p {
    font-size: 1.2rem;
    color: var(--text-light);
  }

/* Map section style*/
:root {
    --dark-blue: #203359;
    --light-blue: #172a45;
    --accent-blue: #1875d2;
    --text-white: #e6f1ff;
    --text-light: #8892b0;
    --shadow-color: #64a2ff33;
}

/* Base Styles */
body {
    overflow-x: hidden;
    background-color: var(--dark-blue);
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-white);
}

/* Header Styles */
.site-header {
    background-color: var(--light-blue);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 100;
    animation: slideDown 0.8s ease-out;
}

.site-header h1 {
    margin: 0;
    color: var(--text-white);
    font-size: 2rem;
}

.highlight {
    color: var(--accent-blue);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--accent-blue);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--accent-blue);
}

.site-header:hover .highlight::after {
    transform: scaleX(1);
}

.home-button {
    background-color: transparent;
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.home-button:hover {
    background-color: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
    transform: translateY(-2px);
}

/* Layout */
.container {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - 70px);
    padding: 2rem;
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
}

/* Map Styles */
.map-container {
    position: relative;
    width: 600px;  
    height: 700px;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem;
    transition: all 0.5s ease;
    animation: fadeIn 1s ease-out;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.map-container:hover {
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.25);
    transform: scale(1.01);
}

.company-map {
    width: 100%;
    height: 100%;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.5s ease;
}

.active-map {
    filter: brightness(1.1) contrast(1.2);
}

/* Building Hover Areas */
.hover-area {
    position: absolute;
    background-color: rgba(100, 255, 218, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.hover-area:hover, .hover-area.active {
    background-color: rgba(100, 255, 218, 0.2);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

#building-a {
    top: 65px;
    left: 120px;
    width: 150px;
    height: 280px;
}

#building-b {
    top: 65px;
    right: 150px;
    width: 150px;
    height: 280px;
}

#building-c {
    top: 360px;
    right: 320px;
    width: 150px;
    height: 130px;
}

#building-e {
    top: 550px;
    right: 175px;
    width: 110px;
    height: 90px;
}

/* Building Markers */
.building-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 rgba(100, 255, 218, 0.7);
    animation: pulse 2s infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.marker[data-building="a"] {
    top: 200px;
    left: 195px;
    animation-delay: 0s;
}

.marker[data-building="b"] {
    top: 200px;
    left: 360px;
    animation-delay: 0.4s;
}

.marker[data-building="c"] {
    top: 425px;
    left: 205px;
    animation-delay: 0.8s;
}

.marker[data-building="e"] {
    top: 590px;
    left: 375px;
    animation-delay: 1.6s;
}

/* Info Panels */
.info-container {
    width: 400px;
    position: relative;
    margin: 1rem;
}

.info-panel {
    width: 100%;
    max-height: 650px;
    overflow-y: auto;
    background-color: var(--light-blue);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    color: var(--text-white);
    border: 1px solid rgba(100, 255, 218, 0.2);
    position: sticky;
    top: 2rem;
}

.panel-header {
    margin-bottom: 20px;
    position: relative;
}

.info-panel h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: var(--accent-blue);
    padding-bottom: 8px;
    display: inline-block;
    position: relative;
}

.info-panel h3::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    bottom: 0;
    left: 0;
    box-shadow: 0 0 8px var(--accent-blue);
}

.info-panel h5 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: var(--text-light);
}

.badge {
    display: inline-block;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    margin-top: 10px;
    border: 1px solid rgba(100, 255, 218, 0.3);
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.info-panel img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-panel img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 10px rgba(100, 255, 218, 0.3);
}

.info-panel p {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: var(--text-light);
    font-size: 1.1em;
}

.key-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.info-item {
    background-color: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.info-item:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

.icon {
    font-size: 1.2em;
}

/* Map Legend */
.legend {
    background-color: var(--light-blue);
    padding: 15px;
    border-radius: 8px;
    margin-top: 2rem;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1.2s ease-out;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.legend h4 {
    width: 100%;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-blue);
    font-size: 1.2em;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 15px;
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 8px;
    border-radius: 3px;
}

.legend-color.plant {
    background-color: rgba(100, 255, 218, 0.4);
    border: 1px solid var(--accent-blue);
}

.legend-color.qad {
    background-color: rgba(100, 200, 255, 0.4);
    border: 1px solid rgb(100, 200, 255);
}

.legend-color.admin {
    background-color: rgba(255, 180, 100, 0.4);
    border: 1px solid rgb(255, 180, 100);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
    }
}

.info-panel.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

/* Scrollbar Styling */
.info-panel::-webkit-scrollbar {
    width: 8px;
}

.info-panel::-webkit-scrollbar-track {
    background: var(--dark-blue);
    border-radius: 10px;
}

.info-panel::-webkit-scrollbar-thumb {
    background-color: var(--accent-blue);
    border-radius: 10px;
}

/* Contact Us section style*/
.contact-section {
    padding: 50px 0 100px;
}

.contact-section .section-content {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-section .contact-info-list .contact-info {
    display: flex;
    gap: 20ox;
    margin: 20px 0;
    align-items: center;
}

.contact-section .contact-info-list .contact-info i {
    font-size: var(--font-size-m);
}

/* Footer section style*/
.footer-section {
    padding: 20px 0;
    background: var(--secondary-color);
}

.footer-section .section-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size-l);
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
    
    .info-container {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .map-container {
        width: 100%;
        height: 500px;
    }
    
    .site-header {
        flex-direction: column;
        padding: 1rem;
        gap: 10px;
    }
    
    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 400px;
    }
    
    .info-panel {
        padding: 15px;
    }
    
    .key-info {
        flex-direction: column;
    }
}

/* Media Query for maximum width 1024px */
@media screen and (max-width: 1024px) {
    .menu-section .card .circle .logo {
        gap: 60px;        
    }
    .menu-section .card .circle .logo {
        width: calc(100% / 3 - 60px);
    }
}
  
/* Media Query for maximum width 900px */
@media  screen and (max-width: 900px) {
    :root {
    --font-size-m: 1.rem;
    --font-size-l: 1.3rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 1.8rem;

    }

    body.show-mobile-menu header::before {
        content: "";
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(5px);
        background: rgba(0, 0, 0, 0.2);
    }
    .navbar :where(#menu-close-button, #menu-open-button) {
        display: block;
        font-size: var(--font-size-l);
    }

    .navbar #menu-close-button {
        position: absolute;
        right: 30px;
        top: 30px;

    }

    .navbar #menu-open-button {
        color: var(--white-color);

    }
    .navbar .nav-menu {
        display: block;
        position: fixed;
        left: -300px;
        top: 0%;
        width: 300px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
        background: var(--white-color);
        transition: left 0.2s ease;
    }

    .navbar .back-to-site {
        margin-right: 12px;
        padding: 6px 9px;
        font-size: 0.75rem;
    }

    .navbar .back-to-site img {
        width: 22px;
        height: 22px;
    }

    body.show-mobile-menu .navbar .nav-menu {
        left: 0%;
    }

    .navbar .nav-menu .nav-link {
        color: var(--dark-color);
        display: block;
        margin-top: 17px;
        font-size: var(--font-size-l);

    }

    .hero-section .section-content {
        gap: 50px;
        text-align: center;
        padding: 30px 20px 20px;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .hero-section .hero-details :is(.subtitle, .description), .about-section .aboutd-details {
        max-width: 100%; 
    }

    .hero-section .hero-details {
        justify-content: center;
    }

    .hero-section .hero-image-wrapper {
        max-width: 270px;
        margin-right: 0;
    }

    .about-section .section-content {
        gap: 70px;
        flex-direction: column-reverse;
    }

    .about-section .about-image-wrapper .about-image {
        width: 100%;
        height: 100%;
        max-width: 250px;
        aspect-ratio: 1;
    }
}

/* Media Query for maximum width 640px */
@media screen and (max-width: 640px) {
    .menu-section .card .circle .logo {
        gap: 60px;  
        width: 100%;      
    }
}