
* {
  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;
  }
}


.contact-page {
    padding: 100px 8%;
}

.contact-header {
    text-align: center;
    margin-bottom: 70px;
}

.contact-header h1 {
    color: #e10600;
    font-size: 3rem;
}

.contact-header p {
    opacity: 0.8;
    color: #f1f5f9;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
}

.contact-left h2 {
    color: #e10600;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 18px;
    margin-bottom: 15px;
    border-left: 4px solid #e10600;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-item:hover {
    transform: translateX(6px);
    background: rgba(225,6,0,0.15);
}

.contact-item small {
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Form styling */
.quote-form {
    margin-top: 40px;
}

.quote-form input,
.quote-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: none;
    padding: 14px;
    margin-bottom: 15px;
    color: #fff;
    border-left: 3px solid #e10600;
}

.quote-form textarea {
    resize: none;
    height: 120px;
}

.quote-form button {
    width: 100%;
    background: #e10600;
    color: #fff;
    border: none;
    padding: 14px;
    font-weight: bold;
    cursor: pointer;
}

#form-status {
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Custom Dropdown Input */
.dropdown-input {
    position: relative;
}

.dropdown-input input {
    cursor: pointer;
}

.dropdown-input ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    border: 1px solid #e10600;
    border-radius: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 10;
    color: #E31B23;
}

.dropdown-input ul li {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-input ul li:hover {
    background: rgba(225,6,0,0.2);
}

/* RIGHT */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.building-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 16px;
}

.map {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 16px;
}

/* Mobile */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
.dropdown-input {
  position: relative;
  width: 100%;
}

.dropdown-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
}

/* Scrollbar styling (optional but nice) */
.dropdown-options::-webkit-scrollbar {
  width: 6px;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

.dropdown-options li {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}

.dropdown-options li:hover {
  background: #f2f2f2;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .dropdown-options {
    max-height: 180px;
  }
}
