/* WebologyGroup global styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');

:root {
  --bg-dark: #111827;
  --bg-muted: #1f2937;
  --bg-light: #f9fafb;
  --text-dark: #0b1221;
  --text-light: #e5e7eb;
  --accent: #00bcd4;
  --accent-dark: #00a2b8;
  --accent-soft: rgba(0, 188, 212, 0.12);
  --card: #ffffff;
  --shadow: 0 15px 40px rgba(17, 24, 39, 0.12);
  --radius: 14px;
  --gradient: linear-gradient(135deg, rgba(0, 188, 212, 0.16), rgba(31, 41, 55, 0.9));
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 10px;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--text-light);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  display: inline-block;
  padding: 6px 10px;
  background: var(--accent-soft);
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  transition: 0.25s ease;
  color: var(--text-light);
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  background: rgba(0, 188, 212, 0.16);
  color: #fff;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text-light);
  transition: 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #0b1221;
  font-weight: 700;
  letter-spacing: 0.1px;
  box-shadow: 0 14px 30px rgba(0, 188, 212, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 16px 34px rgba(0, 162, 184, 0.35);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  padding: 120px 0 90px;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero .bg-shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 188, 212, 0.18), transparent 40%),
              linear-gradient(200deg, rgba(255, 255, 255, 0.06), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero img {
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(0, 188, 212, 0.16);
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 54px);
  letter-spacing: -1px;
  margin: 16px 0 12px;
}

.hero p {
  color: #d1d5db;
  font-size: 17px;
  margin: 0 0 26px;
}

.cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section.light {
  background: var(--bg-light);
}

.section.dark {
  background: var(--bg-muted);
  color: var(--text-light);
}

.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}

.section p.section-subtitle {
  margin: 0 0 34px;
  color: #6b7280;
}

.section.dark p.section-subtitle {
  color: #cbd5e1;
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.18);
}

.card.icon-card {
  display: grid;
  gap: 12px;
}

.icon-pill {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 10px;
  color: #4b5563;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #4b5563;
}

.card .tag {
  display: inline-flex;
  padding: 6px 10px;
  background: rgba(0, 188, 212, 0.14);
  color: #035e6e;
  border-radius: 10px;
  font-weight: 600;
  margin-top: 8px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 700;
  margin-top: 8px;
  transition: 0.2s ease;
}

.link-arrow:hover {
  gap: 12px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.12);
}

.feature-card h4 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: #4b5563;
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 16px;
  padding: 0;
  background: #0f172a;
  color: #fff;
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
}

.team-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}

.portfolio-card .content {
  padding: 18px;
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: 0.3s ease;
  padding: 20px;
  text-align: center;
}

.portfolio-card:hover .overlay {
  opacity: 1;
}

.filter-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-buttons button {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 0.2s ease;
  font-weight: 600;
}

.filter-buttons button.active,
.filter-buttons button:hover {
  background: var(--accent);
  color: #0b1221;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(0, 188, 212, 0.24);
}

.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.testimonial-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  color: #0f172a;
}

.testimonial-card .quote {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 6px;
}

.testimonial-card p {
  color: #1f2937;
}

.testimonial-card small {
  color: #4b5563;
}

.testimonial-card strong {
  color: #0f172a;
}

.testimonial-card .meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.testimonial-card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.map-preview {
  margin-top: 14px;
  border-radius: 14px;
  height: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

.cta-banner {
  padding: 34px;
  background: var(--gradient);
  color: #e5e7eb;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
  color: var(--text-dark);
}

.stat-card h3 {
  margin: 0;
  font-size: 26px;
  color: var(--accent-dark);
}

.timeline {
  border-left: 2px solid rgba(0, 0, 0, 0.08);
  padding-left: 18px;
  display: grid;
  gap: 18px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(0, 188, 212, 0.18);
}

.values-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form {
  display: grid;
  gap: 14px;
  max-width: 540px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-family: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.12);
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #67e8f9;
  display: none;
}

footer {
  background: #0b1221;
  color: #cbd5e1;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.footer-brand h3 {
  margin: 0 0 10px;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
}

.footer-links a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
  transition: 0.2s ease;
}

.social-links a:hover {
  background: var(--accent);
  color: #0b1221;
}

.footer-bottom {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  font-size: 14px;
  color: #9ca3af;
}

/* Animation helpers */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(18px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

  .hero img {
    order: -1;
  }

  .cta-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 16px;
    flex-direction: column;
    background: #0b1221;
    padding: 14px;
    border-radius: 14px;
    width: 220px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s ease;
  }

  .nav-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 90px 0 70px;
  }

  .navbar {
    padding: 12px 0;
  }

  .section {
    padding: 70px 0;
  }

  .cta-group {
    width: 100%;
  }

  .cta-group .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .portfolio-card img {
    height: 180px;
  }
}
