
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: black;
  color: #222;
  line-height: 1.6;
}

header {
  background: black;
  margin-bottom: 40px;
 
}
/* Navigation Container */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px); /* Modern frosted look */
  position: fixed; /* Changed from sticky to fixed for consistent positioning */
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  
}

.logo {
  height: 100px;
  transition: transform 0.4s ease;
}

.logo:hover {
  transform: scale(1.15);
}

/* Nav Links Styling */
.navlinks {
  display: flex;
  list-style: none;
  gap: 10px;
  align-items: center;
}

.navlinks li a {
  position: relative;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border-radius: 50px;
}

/* The Catchy Hover Effect */
.navlinks li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50px;
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: -1;
}

.navlinks li a:hover {
  color: #2563eb;
}

.navlinks li a:hover::before {
  transform: scale(1);
  opacity: 1;
}

/* Special Styling for the 'Get a Quote' Button */
.nav-cta {
  background: #2563eb;
  color: white !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.nav-cta::before {
  display: none;
}

/* Mobile Burger (Basic setup) */
#menu-toggle { display: none; }
.burger { display: none; cursor: pointer; font-size: 24px; }

@media (max-width: 768px) {
  .burger { display: block; }
  .navlinks {
    /* Add logic here to show mobile menu */
    display: none; 
  }
}

/* --- ADDED CSS FOR THE DROPDOWN MENU --- */

.nav-item-has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);

    min-width: 240px;

    /* 🔥 IMPORTANT FIX */
    max-height: 70vh;
    overflow-y: auto;

    z-index: 1000;
    visibility: hidden;
    opacity: 0;

    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.4);
  border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}


.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: #0f172a;
    text-align: left;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 400;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: #2563eb;
}

/* Add this new CSS rule */
.nav-item-has-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.burger {
  display: none;
  cursor: pointer;
  font-size: 26px;
  color: #0f172a;
}
.burger:hover {
  color: #E31B23;
}


/* Mobile adjustments for the dropdown */
@media (max-width: 768px) {

  .burger {
    display: block;
  }

  .navlinks {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;

    flex-direction: column;
    align-items: center;
    gap: 15px;

    padding: 20px 0;
    display: none;
  }

  /* 🔥 THIS IS THE MISSING LINE */
  #menu-toggle:checked ~ .navlinks {
    display: flex;
  }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

h1.about-us-title {
    font-size: 1rem;
    border-bottom: 3px solid var(--mgs-red);
    padding-bottom: 10px;
    display: inline-block;
}

/* Placeholder styles for user's existing elements */
.placeholder-header, .placeholder-footer {
    background-color: var(--text-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* --- Section 1: Hero About Us --- */
/* --- Section 1: Hero About Us --- */
.about-hero-section {
    background: var(--background-color);
    padding: 80px 0;
    overflow: hidden; /* Important: Prevents horizontal scrollbar during animation */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-container {
    flex: 1;
    max-width: 50%;
}

.texth2{
    font-size: 4rem;
}
.textsize{
    font-size: 1rem;
}
.logo-container {
    flex: 1;
    text-align: right;
    max-width: 40%;
}

.animated-logo {
    max-width: 100%;
    height: auto;
    opacity: 0; /* Start hidden */
    /* Animation definition */
    animation: slideFromCenter 1.5s forwards cubic-bezier(0.1, 0.7, 1.0, 0.1);
}

/* Defines the animation path: from the center of the viewport to its final position */
@keyframes slideFromCenter {
    from {
        /* This moves the logo from its final position back towards the horizontal center of the screen */
        transform: translateX(-50vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* --- Section 2: Who We Are (Image/Text Rows) --- */
.who-we-are-section {
   background: radial-gradient(circle at 20% 30%, #FF0000 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, #000000 0%, transparent 50%);
    padding: 60px 0;
}

.content-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.image-column, .text-column {
    flex: 1;
}
.text-column p,
.textpcol {
    color: #ffffff;
    line-height: 1.7;
    font-size: 16px;
}

.image-column img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Scroll Reveal Animation Styles (JS applied class) */
.scroll-reveal-img, .scroll-reveal-text {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal-img.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-text.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s; /* Slightly delay text reveal after image */
}
/* --- Catchy Background Animation: Subtle Gradient Shift --- */

/* Apply the animation to the body class */
.glass-card {
  position: relative;
  z-index: 10; /* Ensures the card is above the animation */
  background: #f9f9f9; /* Slightly transparent white */
  backdrop-filter: blur(25px); /* The frosted glass look */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 1100px;
  margin: auto; /* Centers the card */
}

/* 1. Background Container */
.aurora-bg {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0f19; /* Professional Navy */
    overflow: hidden; /* Keeps blobs inside */
}

/* 2. The Aurora Blobs */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    filter: blur(90px);
    opacity: 0.4;
    z-index: 0;
    animation: move 20s infinite alternate ease-in-out;
}

.blob-1 { background: #d51117; top: -10%; left: -5%; }
.blob-2 { background: #db1118; bottom: 10%; right: -5%; animation-delay: -5s; }
.blob-3 { background: #d50e15; top: 40%; left: 30%; animation-duration: 25s; }

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(150px, 50px) scale(1.1); }
}

/* 3. The Glass Card Effect */
.glass-card {
    position: relative;
    z-index: 2; /* Sits above blobs */
    background: rgba(255, 255, 255, 0.03); /* Very faint white */
    backdrop-filter: blur(15px); /* Frosted effect */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin: 50px auto;
    max-width: 1100px;
}

/* Optional: Small glass effect for the "Who We Are" text box */
.glass-card-mini {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 4. Text Adjustments for Dark Background */
.about-us-title, .texth2, .textsize {
    color: #ffffff !important;
}

.textsize b {
    color: #00d4ff; /* Highlighted blue for readability */
}

/* Ensure the hero section doesn't have a solid background anymore */
.about-hero-section {
    background: transparent !important;
    padding: 100px 20px;
}

.who-we-are-section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.modern-footer {
    background: linear-gradient(135deg, #000000, #000000 , #d51117);
    color: #ffffff;
    padding: 60px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 40px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-contact,
.footer-map {
    flex: 1;
    min-width: 280px;
}

.footer-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-desc {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 25px;
    line-height: 1.6;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #00c6ff;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.contact-item .icon {
    font-size: 20px;
}

.contact-item.email {
    font-weight: bold;
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.map-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border: 1px solid #00c6ff;
    border-radius: 30px;
    color: #00c6ff;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.map-link:hover {
    background: #00c6ff;
    color: #0f2027;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* Reset basic styles and define amazing fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff; 
    background-color: #f9f9f9;
}

.hero-founder-section {
     background: linear-gradient(135deg, #000000 0%, #FF0000 100%);
    padding: 100px 20px;
    box-shadow: 0 10px 30px rgba(0, 50, 73, 0.3);
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center; 
}
.founder-left, .founder-right {
    flex: 1;
    min-width: 300px;
    font-size: 1rem;
    line-height: 40px;
}

.colorh2 {
    color: white;
}
/* Updated CSS for the professional, larger image */
.founder-image-container {
    margin-bottom: 30px;
    cursor: pointer; /* Indicates the image is clickable */
    transition: transform 0.2s;
    display: inline-block;
}

.founder-image-container:hover {
    transform: scale(1.02); /* Slight hover effect */
}

.founder-pic {
    width: 100%;
    max-width: 350px;
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Professional, slightly rounded corners */
    object-fit: cover; 
    border: 4px solid #e0f7fa; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


.subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #e0f7fa; 
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.founder-left h2 {
    font-family: 'Playfair Display', serif; 
    font-size: 44px; 
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

/* ... rest of the previous CSS code below ... */

.key-details span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    margin-right: 10px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Modal/Lightbox Styles --- */
/* ... (Keep all the previous CSS code above this part the same) ... */

/* --- Modal/Lightbox Styles --- */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1000; 
    padding-top: 50px; /* Adjusted padding top to give more vertical space */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.95); /* Slightly darker background to emphasize the large image */
}

/* Modal Content (Image) - UPDATED FOR BIGGER SIZE */
.modal-content {
    margin: auto;
    display: block;
    width: 90%; /* Increased width percentage */
    max-width: 1000px; /* Increased max-width in pixels (from 700px) */
    max-height: 90vh; /* Use viewport height to ensure it fits on screen better */
    object-fit: contain; 
}

/* Caption of Modal Image (Optional) */
#caption {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1000px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* Add Animation (These remain the same as they control the smooth appearance) */
.modal-content, #caption {
    -webkit-animation-name: zoom;
    -webkit-animation-duration: 0.6s;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
    from {-webkit-transform:scale(0.5)} /* Starts animation slightly larger than zero */
    to {-webkit-transform:scale(1)}
}

@keyframes zoom {
    from {transform:scale(0.5)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsiveness (Keep this section the same) */
@media (max-width: 768px) {
    /* ... (rest of mobile styles) ... */
    .modal-content {
        width: 95%; /* Make it fill mobile screens more */
    }
}


/* Responsiveness */
@media (max-width: 768px) {
    .founder-container {
        flex-direction: column;
        gap: 30px;
    }
    .founder-left h2 {
        font-size: 32px;
    }
    .hero-founder-section {
        padding: 60px 20px;
    }
    .modal-content {
        width: 90%;
    }
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-content, .content-row {
        flex-direction: column;
        text-align: center;
    }

    .text-container, .logo-container, .image-column, .text-column {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .logo-container {
        text-align: center;
    }
    
    h1.about-us-title {
        display: block;
        border-bottom: none;
    }
}
@media (max-width: 768px) {
  .texth2 {
    font-size: 2.2rem;
  }
}
@media (max-width: 768px) {
  .blob {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }
}
.navlinks a {
    text-decoration: none;
    color: white; /* default color */
    transition: color 0.3s;
}

.navlinks a.activepage {
    color: red; /* highlight the active page */
    font-weight: bold; /* optional: make it stand out more */
}
.navlinks a:hover {
    color: #ff6666; /* lighter red on hover */
}

