:root {
  --primary: #001f3f;
  /* Navy Blue */
  --secondary: #fbbf24;
  /* Gold */
  --accent: #3b82f6;
  /* Electric Blue */
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --bg-light: #f8fafc;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 31, 63, 0.95);
  /* Navy with opacity */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.page-spacer {
  height: 100px;
  /* Header height + 10px space */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.1;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--secondary);
  color: var(--primary);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid var(--secondary);
}

.btn:hover {
  background: transparent;
  color: var(--secondary);
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-dark);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Hamburger default hidden */
.hamburger {
  display: none;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 250px;
  box-shadow: var(--shadow);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)),
    url('../images/hero_industrial_1769792752725.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-light);
  margin-top: -80px;
  /* Offset header height */
  padding-top: 120px;
  /* Header height + extra spacing */
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 4rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  margin: 1rem auto 0;
}

/* About Preview */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Services Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--secondary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .service-card img {
    height: 200px;
    flex-shrink: 0;
  }
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-content p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #475569;
  flex-grow: 1;
}

.service-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
}

.service-link:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-spacer {
    height: 80px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav-links {
    position: absolute;
    right: 0;
    height: 100vh;
    top: 0;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    padding-top: 5rem;
    z-index: 998;
  }

  .nav-links.active {
    transform: translateX(0%);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .nav-links li {
    opacity: 0;
  }

  .nav-links.active li {
    opacity: 1;
    transition: opacity 0.5s ease-in 0.3s;
  }

  .nav-links a {
    font-size: 1.2rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 999;
  }

  .hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px;
    transition: all 0.3s ease;
  }

  /* Hamburger Animation */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-grid div {
    align-items: center;
  }
}