/* style.css – Enhanced premium dark theme with glassmorphism, animations, and micro‑interactions */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  /* Core palette */
  --font-family: 'Inter', sans-serif;
  --bg-color: #0a0a0a;
  --primary-color: #00b4d8; /* electric blue */
  --primary-dark: #0096c2;
  --accent-color: #e0e0e0;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-primary: #e0e0e0;
  --text-muted: #a0a0a0;

  /* Animation timing */
  --duration-short: 0.2s;
  --duration-medium: 0.4s;
  --duration-long: 0.8s;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: var(--font-family);
  background: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth; /* smooth page scroll */
}

/* Glassmorphism helper – reusable */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(8px);
}

header .logo {
  height: 48px;
  width: auto;
  transition: transform var(--duration-short) var(--easing);
}
header .logo:hover {
  transform: rotate(5deg) scale(1.05);
}

nav a {
  margin-left: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color var(--duration-short) var(--easing);
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--duration-medium) var(--easing);
}
nav a:hover {
  color: var(--primary-color);
}
nav a:hover::after {
  width: 100%;
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/hero-pattern.svg') center/cover no-repeat;
  opacity: 0.07;
}
.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  margin-bottom: 1rem;
  color: var(--primary-color);
  animation: fadeInUp var(--duration-long) var(--easing) forwards;
}
.hero p {
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 600px;
  animation: fadeInUp var(--duration-long) var(--easing) 0.2s forwards;
  opacity: 0;
}
.hero .btn-primary {
  animation: fadeInUp var(--duration-long) var(--easing) 0.4s forwards;
  opacity: 0;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background var(--duration-short) var(--easing), transform var(--duration-short) var(--easing);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px) scale(1.02);
}

/* Sections */
section.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
section.section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
}
section.section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  transition: transform var(--duration-short) var(--easing), box-shadow var(--duration-short) var(--easing);
  cursor: default;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.service-card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

/* Map container */
.map-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form label {
  font-weight: 600;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-family: var(--font-family);
  transition: background var(--duration-short) var(--easing), border-color var(--duration-short) var(--easing);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255,255,255,0.08);
}

/* Footer */
footer.footer {
  padding: 2rem;
  text-align: center;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(6px);
}
footer .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
footer .footer-item {
  max-width: 250px;
  font-size: 0.9rem;
}
footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--duration-short) var(--easing);
}
footer a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* Scrollbar – subtle dark theme */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
  border: 2px solid var(--bg-color);
}

/* Keyframe animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.5rem;
  }
  nav a {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.9rem;
  }
}
