html {
  scroll-behavior: smooth;
}

:root {
  --blue: #39a2d3;
  --green: #79c15b;
  --dark: #0f172a;
  --light-bg: #f8fafc;
  --glass: rgba(255, 255, 255, 0.9);
  --gradient: linear-gradient(135deg, var(--blue), var(--green));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated Background Pattern */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.05;
  background-image: radial-gradient(var(--blue) 0.5px, transparent 0.5px);
  background-size: 30px 30px;
}

/* Navigation */
nav {
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1001;
}

.logo span {
  color: var(--green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  transition: 0.3s ease;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue);
  z-index: 1001;
}

/* Hero Section */
.hero {
  padding: 80px 5% 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero p {
  font-size: clamp(1rem, 4vw, 1.25rem);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #64748b;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 20px rgba(57, 162, 211, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(57, 162, 211, 0.4);
}

/* Services Grid */
section {
  padding: 80px 5%;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}
.tagline {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  transition: 0.4s;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--blue);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card i {
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

/* About Section (Responsive Stack) */
.about-section, .contact-form {
  background: var(--light-bg);
}

.about-box {
  background: var(--dark);
  color: white;
  border-radius: 30px;
  padding: 3rem;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.about-content {
  flex: 1;
}
.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}
.about-content p {
  opacity: 0.8;
  margin-bottom: 1.2rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.visual-card {
  background: var(--gradient);
  width: 100%;
  max-width: 350px;
  height: 350px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

/* Contact Section (Responsive Wrapper) */
.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

.contact-sidebar {
  background: var(--gradient);
  padding: 3rem;
  color: white;
  flex: 1;
}

.contact-form {
  padding: 3rem;
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem;
  background: #f8fafc;
  border: 2px solid transparent;
  border-radius: 12px;
  outline: none;
  font-size: 1rem;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  background: white;
}

.town-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  display: inline-block;
  margin: 4px;
}

footer {
  text-align: center;
  padding: 3rem 5%;
  color: #64748b;
  font-size: 0.85rem;
}

/* --- RESPONSIVE BREAKPOINTS --- */

@media (max-width: 968px) {
  .about-box {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .visual-card {
    height: 250px;
    width: 250px;
  }
  .contact-wrapper {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: -1000px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    top: 70px;
  }

  .hero {
    padding: 60px 5% 80px;
  }
  .badge-grid {
    grid-template-columns: 1fr;
  }
  .contact-sidebar,
  .contact-form {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    text-align: center;
  }
  .logo {
    font-size: 1.2rem;
  }
}
