@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700&display=swap');

:root {
  --primary: #0F172A;        /* Deep slate/blue */
  --secondary: #1E293B;      /* Lighter slate */
  --accent: #2563EB;         /* Vibrant blue */
  --accent-hover: #1D4ED8;
  --text-dark: #334155;
  --text-light: #94A3B8;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 5rem 0;
}

.text-center { text-align: center; }
.text-white { color: var(--bg-white); }
.bg-primary { background-color: var(--primary); }
.bg-light { background-color: var(--bg-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-white);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--bg-white);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links li a {
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  font-size: 1rem;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8)), url('https://images.unsplash.com/photo-1545622783-b3e021430fee?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
  color: var(--bg-white);
  padding-top: 80px; /* offset for navbar */
  text-align: center;
}

.hero h1 {
  color: var(--bg-white);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeUp 1s ease 0.2s both;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #CBD5E1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 1s ease 0.4s both;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeUp 1s ease 0.6s both;
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border-top: 4px solid transparent;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}

.card-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
}

.card:hover .card-icon {
  background-color: var(--accent);
  color: var(--bg-white);
  transform: scale(1.1);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-light);
  flex-grow: 1;
}

/* Service Detail Layout */
.service-detail {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.service-detail:nth-child(even) {
  flex-direction: row-reverse;
}

.service-detail-img {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.service-detail-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.service-detail-img:hover img {
  transform: scale(1.05);
}

.service-detail-content {
  flex: 1;
}

.service-detail-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.service-detail-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  border-radius: 2px;
}

.service-detail-content p {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--bg-white);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

.footer-col p {
  color: #94A3B8;
  margin-bottom: 1rem;
}

.footer-col a {
  color: #94A3B8;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-col a:hover {
  color: var(--bg-white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
}

.social-links a:hover {
  background-color: var(--accent);
  padding-left: 0;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #94A3B8;
}

/* Forms */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-info-card {
  background: var(--primary);
  color: var(--bg-white);
  padding: 3rem 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  color: var(--bg-white);
  margin-bottom: 2rem;
  font-size: 1.8rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.contact-info-item p {
  color: #CBD5E1;
}

.contact-info-item a {
  color: var(--bg-white);
}

.contact-form {
  background: var(--bg-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: #F8FAFC;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: var(--bg-white);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Generic inner page header */
.page-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-white);
  padding: 10rem 0 5rem;
  text-align: center;
}

.page-header h1 {
  color: var(--bg-white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: #CBD5E1;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-dark);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transform: translateY(-150%);
    transition: var(--transition);
    z-index: -1;
    opacity: 0;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-toggle {
    display: block;
  }

  .hero h1 { font-size: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .service-detail { flex-direction: column !important; gap: 2rem; }
}
