/*
Theme Name: Mangoes Web Development
Theme URI: https://mangoesmm.com/
Author: mangoesmm
Author URI: https://mangoesmm.com/
Description: A professional one-page web development agency theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mangoes-theme
Tags: one-column, custom-logo, custom-menu, featured-images, theme-options
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --card: #ffffff;
  --card-dark: #1e293b;
  --text: #1e293b;
  --text-light: #f8fafc;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --secondary-bg: #f1f5f9;
  --border: #e2e8f0;
  --border-dark: #334155;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --gradient-dark: linear-gradient(135deg, #1e293b 0%, #1e3a5f 100%);
  --shadow-soft: 0 4px 20px -2px rgba(37, 99, 235, 0.15);
  --shadow-strong: 0 10px 40px -10px rgba(37, 99, 235, 0.25);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.menu a {
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

.menu a:hover { color: var(--text); }

.menu-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}

.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-lg { padding: 16px 32px; font-size: 18px; }

.hero {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-dark);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 96px 0 80px;
  text-align: center;
}

@media (min-width: 768px) { .hero-content { padding: 128px 0 96px; } }
@media (min-width: 1024px) { .hero-content { padding: 160px 0 120px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(37, 99, 235, 0.2);
  border-radius: 9999px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
@media (min-width: 1024px) { .hero h1 { font-size: 60px; } }

.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto 32px;
}

@media (min-width: 768px) { .hero-subtitle { font-size: 20px; } }

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 640px) { .hero-buttons { flex-direction: row; justify-content: center; } }

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.hero-wave svg { width: 100%; height: auto; display: block; }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

@media (min-width: 768px) { .section-header h2 { font-size: 36px; } }

.section-header p {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s;
}

.card:hover .card-icon { transform: scale(1.1); }

.card-icon svg { width: 24px; height: 24px; color: white; }

.card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.card:hover h3 { color: var(--primary); }

.card p { color: var(--muted); font-size: 14px; }

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

.why-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) { .why-grid { grid-template-columns: 1fr 1fr; } }

.why-features {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) { .why-features { grid-template-columns: repeat(2, 1fr); } }

.why-feature {
  display: flex;
  gap: 16px;
}

.why-icon {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg { width: 20px; height: 20px; color: var(--primary); }

.why-feature h4 { font-size: 16px; margin-bottom: 4px; }
.why-feature p { color: var(--muted); font-size: 14px; }

.expertise-card {
  background: var(--gradient-primary);
  border-radius: 16px;
  padding: 32px;
}

@media (min-width: 768px) { .expertise-card { padding: 48px; } }

.expertise-card h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 32px;
}

.expertise-list { list-style: none; }

.expertise-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  margin-bottom: 16px;
}

.expertise-list svg { width: 20px; height: 20px; flex-shrink: 0; }

.stats-section {
  background: var(--gradient-dark);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

@media (min-width: 768px) { .stat-number { font-size: 48px; } }

.stat-label { color: rgba(255,255,255,0.7); }

.testimonials-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.quote-icon {
  width: 40px;
  height: 40px;
  color: rgba(37, 99, 235, 0.2);
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 15px;
}

.stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.stars svg { width: 16px; height: 16px; color: var(--primary); fill: var(--primary); }

.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { color: var(--muted); font-size: 14px; }

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

.cta-content {
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 30px;
  margin-bottom: 16px;
}

@media (min-width: 768px) { .cta-content h2 { font-size: 36px; } }

.cta-content p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 32px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group { margin-bottom: 16px; }

.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-success {
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius);
  color: #16a34a;
  margin-bottom: 24px;
}

.form-error {
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: #dc2626;
  margin-bottom: 24px;
}

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p { color: var(--muted); font-size: 14px; }

@media (max-width: 767px) {
  .menu { display: none; }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
  }
  .menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}
