@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #1D3557;
  /* Deep Navy */
  --secondary: #00B4D8;
  /* Bright Cyan - Wave Color */
  --accent: #00B4D8;
  /* SEL Cyan Accent */
  --text-dark: #1e293b;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  --bg-light: #f1f5f9;
  --bg-white: #ffffff;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography Utilities */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 5rem 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: #d32f2f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-outline:hover {
  background-color: var(--text-light);
  color: var(--primary);
}

/* Header & Glassmorphism Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-md);
  background: rgba(15, 23, 42, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}



.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  letter-spacing: 1px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
}

.dropdown-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}

.dropdown-btn:hover::after,
.dropdown:hover .dropdown-btn::after {
  width: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--bg-white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  border-radius: 8px;
  top: 100%;
  margin-top: 10px;
  left: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease;
}

/* Invisible bridge for hover gap */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px;
}

.dropdown-content a {
  color: var(--primary) !important;
  padding: 12px 20px;
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-content a::after {
  display: none;
  /* No underline on dropdown items */
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--secondary) !important;
  padding-left: 25px;
  /* Slight indent on hover */
}

/* Show the dropdown menu on click via JavaScript */
.dropdown-content.show {
  display: block;
}

.mobile-menu-btn {
  display: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Inner Hero Section (Secondary Pages & Components) */
.inner-hero {
  height: 40vh;
  min-height: 300px;
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.9)), url('https://images.unsplash.com/photo-1541888081180-60b8a1de2813?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  margin-bottom: 5rem;
  padding-top: 80px;
}

/* Hero Section (Homepage Main) */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1541888081180-60b8a1de2813?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6vw;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  z-index: 1;
  user-select: none;
  pointer-events: none;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease both;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

/* Services Grid (Home) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--accent);
  /* Default */
}

/* Unique Icon Colors for Spectrum */
.icon-mech {
  color: #f59e0b;
}

/* Amber */
.icon-elec {
  color: #3b82f6;
}

/* Blue */
.icon-auto {
  color: #8b5cf6;
}

/* Purple */
.icon-civil {
  color: #10b981;
}

/* Emerald */
.icon-real {
  color: #14b8a6;
}

/* Teal */
.icon-consult {
  color: #6366f1;
}

/* Indigo */
.icon-supply {
  color: #f43f5e;
}

/* Rose */

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* About Section Snippet */
.about-flex {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--bg-white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: #cbd5e1;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links li a {
  color: #cbd5e1;
}

.footer-links li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.form-control:focus {
  border-color: var(--secondary);
  outline: none;
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Animations (Reveal on Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 991px) {
  .about-flex {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-watermark {
    font-size: 8vw;
    top: 25%;
  }
}

@media (max-width: 768px) {
  .hero-watermark {
    font-size: 5vw;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    width: 90%;
    top: 20%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    padding: 80px 30px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }

  .nav-links.active {
    right: 0;
  }

  /* Mobile Dropdown Reset */
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background-color: transparent;
    border: none;
    min-width: 100%;
    margin-top: 10px;
  }

  .dropdown:hover .dropdown-content {
    display: none;
    /* Disable hover on mobile */
  }

  .dropdown-content.show {
    display: block !important;
  }

  .dropdown-content a {
    color: var(--text-light) !important;
    padding: 10px 15px;
  }

  .dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light) !important;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }
}