:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --accent: #00d2ff;
  --bg-color: #f8f9fa;
  --surface-color: #ffffff;
  --text-color: #333333;
  --text-muted: #666666;
  --border-radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --header-height: 70px;
  --gradient-brand: linear-gradient(135deg, #007bff 0%, #00d2ff 100%);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

ul {
  list-style: disc;
  padding-left: 20px;
  margin: 10px 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Header */
header {
  background: var(--surface-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.9em;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none; /* Reset for navigation */
  padding: 0;
  margin: 0;
}

nav a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

nav a:hover, nav a.active {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-brand);
  transition: width 0.3s;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--surface-color);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,210,255,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background: var(--gradient-brand);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

/* Slider */
.hero-slider {
  position: relative;
  height: 450px;
  overflow: hidden;
  color: white;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Overlay to make text readable */
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  padding: 0;
}

.slider-dot.active {
  background: white;
  transform: scale(1.2);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.6);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

@media (max-width: 768px) {
  .slider-btn {
    display: none;
  }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Specific Grid for Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on Mobile */
  gap: 30px;
  margin-top: 40px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.5fr; /* Side by side on Desktop */
  }
}

.card {
  background: var(--surface-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 4px solid transparent;
  display: block; /* Ensure it behaves like a block when used as anchor */
  color: inherit; /* Ensure text color is inherited */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-top-color: var(--accent);
  text-decoration: none; /* Prevent underline on hover */
}

.card.no-hover:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-top-color: transparent;
}

.card h3 {
  margin-top: 0;
  color: var(--primary-dark);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: inline-block;
  background: rgba(0,123,255,0.1);
  padding: 10px;
  border-radius: 12px;
  color: var(--primary);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--text-color);
}

.form-control {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  width: 100%; /* Ensure full width */
  box-sizing: border-box; /* Handle padding correctly */
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: #343a40;
  color: #fff;
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info h4 {
  margin-top: 0;
  color: var(--accent);
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #adb5bd;
}

.footer-links a:hover {
  color: white;
}

/* Google Maps Placeholder */
.map-placeholder {
  width: 100%;
  height: 100%;
  background: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.map-placeholder p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.map-btn {
  background: var(--text-muted);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.map-btn:hover {
  background: var(--text-color);
}

/* Custom Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 15px;
}

.modal-message {
  margin-bottom: 25px;
  color: var(--text-color);
  line-height: 1.6;
}

.modal-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}

.modal-btn:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  nav ul {
    gap: 15px;
    font-size: 0.9rem;
  }
  
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-slider {
    height: 500px;
  }
  .slide h2 {
    font-size: 2rem;
  }
}
