body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  background-color: #0f0f0f;
  position: relative;
  overflow-x: hidden;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  z-index: -1;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #C9A14A; /* Vintage gold */
}

.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li a {
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 500;
  color: #fff;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #181818;              /* Subtle dark color */
  font-weight: 300;            /* Thin font */
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.18); /* Soft light shadow for legibility */
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #181818;              /* Subtle dark color */
  font-weight: 500;            /* Thin font */
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.18); /* Soft light shadow for legibility */
}

/* Make the CTA button translucent */
.cta-button {
  background: linear-gradient(90deg, #C9A14A 0%, #BFA046 100%);
  color: #181818;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  border: none;
  transition: all 0.3s;
  opacity: 0.85; /* 15% transparent */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cta-button:hover {
  background: linear-gradient(90deg, #BFA046 0%, #C9A14A 100%);
  color: #fff;
  border: 1.5px solid #C9A14A;
}

/* Make hero buttons (Discover More & Contact Us) more lustrous and remove underline */
.hero-buttons .cta-button {
  text-decoration: none;
  background: linear-gradient(90deg, #FFD700 0%, #C9A14A 50%, #FFF6B7 100%);
  color: #181818;
  font-weight: 700;
  border: none;
  box-shadow: 0 4px 18px 0 rgba(201,161,74,0.18);
  opacity: 1;
  transition: 
    background 0.3s cubic-bezier(.4,2,.6,1),
    color 0.2s cubic-bezier(.4,2,.6,1),
    box-shadow 0.2s cubic-bezier(.4,2,.6,1),
    transform 0.15s cubic-bezier(.4,2,.6,1);
}

.hero-buttons .cta-button:hover, 
.hero-buttons .cta-button:focus {
  background: linear-gradient(90deg, #FFF6B7 0%, #FFD700 100%);
  color: #181818; /* Keep font color black on hover */
  box-shadow: 0 6px 24px 0 rgba(201,161,74,0.28);
  text-decoration: none;
  outline: none;
}

/* SERVICES */
.service-bg {
  padding: 5rem 1.5rem;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.5);
}

.card-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* CARDS */
.mini-card {
  background: linear-gradient(135deg, #C9A14A 0%, #BFA046 100%);
  border-radius: 20px;
  padding: 1.5rem 1rem;      /* Reduced padding */
  width: 220px;              /* Thinner card width */
  text-align: center;
  transition: 
    transform 0.4s cubic-bezier(.4,2,.6,1), 
    box-shadow 0.4s, 
    background 0.4s;
  position: relative;
  overflow: visible;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  color: #fff; /* White text for contrast */
  font-weight: 400;
}

.mini-card:hover {
  transform: translateY(-10px) scale(1.04);
  background: rgba(255,255,255,0.28);
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}

.mini-card h2 {
  font-size: 1.4rem;
  font-weight: 300;           /* Thin font */
  margin-bottom: 1rem;
  color: #fff;                /* White for contrast on blue */
  letter-spacing: 1.5px;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10); /* Subtle shadow for legibility */
}

/* Remove the toggle button styles */
.toggle-btn {
  display: none;
}

/* Features */
.features-list {
  opacity: 0;
  max-height: 0;
  transform: translateY(20px);
  transition: 
    opacity 0.4s cubic-bezier(.4,2,.6,1),
    max-height 0.4s cubic-bezier(.4,2,.6,1),
    transform 0.4s cubic-bezier(.4,2,.6,1);
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
  /* Gradient white background for slide-out */
  background: linear-gradient(135deg, #fff 80%, #f3f7fa 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  color: #181818;
  font-weight: 400;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 0;
}

.features-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.features-list li:last-child {
  border-bottom: none;
}

.hidden {
  display: none;
}

/* Remove always-visible features-list override */
.mini-card .features-list {
  /* Remove or comment out these lines to allow hover animation to work */
  /* opacity: 1;
  max-height: none;
  overflow: visible;
  transition: none;
  background: transparent;
  position: static;
  box-shadow: none;
  padding: 0; */
}

/* Slide out and show details on hover */
.mini-card:hover .features-list {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: rgba(0,0,0,0.5);
  font-size: 0.9rem;
}

.card-action-btn {
  display: inline-block;
  padding: 0.4rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  /* Blue gradient background */
  background: linear-gradient(90deg, #C9A14A 0%, #BFA046 100%);
  color: #181818;
  box-shadow: 0 2px 12px 0 rgba(0,124,240,0.10);
  cursor: pointer;
  transition: 
    background 0.2s cubic-bezier(.4,2,.6,1),
    color 0.2s cubic-bezier(.4,2,.6,1),
    box-shadow 0.2s cubic-bezier(.4,2,.6,1),
    transform 0.15s cubic-bezier(.4,2,.6,1);
  margin-top: 1.2rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
  outline: none;
  border: 1.5px solid transparent;
}

.card-action-btn:hover, .card-action-btn:focus {
  background: linear-gradient(90deg, #BFA046 0%, #C9A14A 100%);
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(0,124,240,0.18);
  transform: translateY(-2px) scale(1.04);
  border: 1.5px solid #C9A14A;
}

/* CONTACT SECTION */
.contact-section {
  background: rgba(255,255,255,0.93); /* Less transparent, more solid */
  padding: 3rem 2rem 3rem 2rem;
  text-align: center;
  border-radius: 18px;
  margin: 3rem auto 2rem auto;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,209,255,0.07);
}

.contact-section h2 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  color: #00D1FF;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid #C9A14A;
  font-size: 1rem;
  font-family: inherit;
  background: #f8fcff;
  color: #181818;
  resize: vertical;
  transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1.5px solid #BFA046;
  outline: none;
}

.contact-form button {
  align-self: center;
}

.email-link {
  color: #C9A14A;
}

.email-link:hover {
  color: #BFA046;
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: none;           /* Remove background */
  border-radius: 0;           /* Remove border radius */
  box-shadow: none;           /* Remove shadow */
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.modal-iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 18px;
  background: transparent;
}

.modal-close {
  position: absolute;
  top: 10px; right: 18px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #00D1FF;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #00aaff;
}

/* Add this wherever you display the email link, for example in your footer or nav */
a[href="mailto:sales@gritcore.co"] {
  color: #C9A14A;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-weight: 500;
}

a[href="mailto:sales@gritcore.co"] svg {
  fill: #C9A14A;
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

a[href="mailto:sales@gritcore.co"]:hover {
  color: #BFA046;
}

a[href="mailto:sales@gritcore.co"]:hover svg {
  fill: #BFA046;
}

/* Hide dropdowns by default */
.nav-links .dropdown {
  display: none;
  background: rgba(0,0,0,0.92);
  border-radius: 8px;
  margin-top: 0.3rem;
  padding: 0.5rem 0.7rem;
  position: absolute;
  left: 0;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  font-size: 0.95em;
}

/* Make nav menu fit in one row and clickable for dropdowns */
.nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li a {
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  cursor: pointer;
}

/* On mobile, shrink font and padding to fit in one row */
@media (max-width: 900px) {
  .nav-links li a {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }
  .card-row,
  .mini-card,
  .features-list,
  .toggle-btn {
    display: none !important;
  }
}

/* Dropdown toggle on click for mobile */
@media (max-width: 900px) {
  .dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-top: 0.2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95em;
    width: max-content;
    min-width: 180px;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .has-dropdown {
    position: relative;
  }
  /* Show dropdown when radio is checked */
  #tech-sales-toggle:checked ~ .dropdown,
  #ecommerce-toggle:checked ~ .dropdown,
  #uiux-toggle:checked ~ .dropdown {
    display: block !important;
    opacity: 1;
  }
  /* Hide dropdowns on hover/focus for mobile */
  .nav-links .has-dropdown:focus-within .dropdown,
  .nav-links .has-dropdown:hover .dropdown {
    display: none !important;
  }
}

/* Responsive: Stack nav menu under logo and shrink font for mobile */
@media (max-width: 600px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    padding: 1rem 1rem;
  }
  .logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
  }
  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }
  .nav-links li {
    margin: 0;
    padding: 0;
  }
  .nav-links li a {
    font-size: 0.85rem;
    padding: 0.3rem 0.5rem;
    white-space: nowrap;
  }
  /* Hide only Discover More button, keep Contact Us */
  .hero-buttons .cta-button:first-child {
    display: none !important;
  }
  .hero-buttons .cta-button.contact-link {
    display: inline-block !important;
  }
}

@media (max-width: 600px) {
  .hero-buttons .cta-button.contact-link {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.95rem;
  }
}

/* Hide triangle icon from dropdown labels */
.dropdown-label {
  display: none;
  cursor: pointer;
  color: #FFD700;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.2em;
}

/* Remove triangle from mobile menu */
@media (max-width: 900px) {
  .nav-links .has-dropdown > a::after,
  .dropdown-label::after {
    content: "";
    display: none;
  }
  .dropdown-label {
    display: inline-block;
  }
  /* Make dropdowns overlay content, not push it down */
  .nav-links .dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-top: 0.2rem;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95em;
    width: max-content;
    min-width: 180px;
  }
  .has-dropdown {
    position: relative;
  }
  /* Show dropdown when toggled */
  .dropdown-toggle:checked + .dropdown-label + .dropdown {
    display: block !important;
  }
  .dropdown {
    display: none;
  }
}

/* Remove pointer cursor from dropdown labels and links */
.nav-links .dropdown-label,
.nav-links .has-dropdown > a {
  cursor: default !important;
}

/* On mobile: show dropdown only when checkbox is checked, not on hover/focus */
@media (max-width: 900px) {
  .nav-links .has-dropdown:focus-within .dropdown,
  .nav-links .has-dropdown:hover .dropdown {
    display: none !important;
  }
  .dropdown-label {
    display: inline-block;
    cursor: default !important;
  }
  .dropdown {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .dropdown-toggle:checked + .dropdown-label + .dropdown {
    display: block !important;
    opacity: 1;
  }
  /* Hide dropdowns on hover/focus for mobile */
  .nav-links .has-dropdown:focus-within .dropdown,
  .nav-links .has-dropdown:hover .dropdown {
    display: none !important;
  }
}
