:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #475569;
  --text: #0f172a;
  --text-light: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); background: linear-gradient(to right, var(--primary), var(--primary-dark)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); color: var(--text); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--secondary); }

/* Layout Utilities */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 2rem; }
.section { padding: 5rem 0; }
.bg-alt { background-color: var(--bg-alt); }

/* Header */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 40px; width: auto; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--secondary); }
.nav-links a:hover { color: var(--primary); }

/* Mobile Menu Toggle */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.hamburger div { width: 25px; height: 2px; background: var(--text); transition: 0.3s; }

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero .lead { font-size: 1.25rem; color: var(--text-light); margin-bottom: 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: white; color: var(--text); border: 1px solid var(--border); margin-left: 1rem; }
.btn-secondary:hover { background: var(--bg-alt); transform: translateY(-2px); }

/* Cards (Services & Portfolio) */
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.card h3 { margin-bottom: 1rem; }
.card-icon { margin-bottom: 1rem; color: var(--primary); display: inline-flex; }
.card-icon svg { width: 48px; height: 48px; stroke-width: 1.5; }

/* About Section */
.about-content { display: flex; gap: 3rem; align-items: center; }
.about-text { flex: 1; }

/* Contact Form */
.contact-wrapper { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
input, textarea {
  width: 100%;
  padding: 0.875rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: 0.2s;
  background: var(--bg-alt);
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); background: white; }

/* Footer */
footer {
  margin-top: auto;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}
footer a { margin: 0 10px; text-decoration: underline; text-decoration-color: transparent; transition: 0.3s; }
footer a:hover { text-decoration-color: var(--primary); color: var(--primary); }

/* Legal Pages */
.legal-page { padding: 4rem 1.5rem; max-width: 800px; margin: 0 auto; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2rem; font-size: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--primary); font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.active { display: flex; }
  .hero { padding: 4rem 0; }
  .hero-btns { margin: 10px;}
  .grid-2 { grid-template-columns: 1fr; }
  .btn { width: 100%; margin: 0.5rem 0; }
}