:root {
  --primary: #0056b3;
  --primary-dark: #003d82;
  --accent: #e65100;
  --accent-hover: #bf4300;
  --text-dark: #1e293b;
  --text-muted: #475569;
  --bg-light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }

h1, h2, h3 { line-height: 1.25; margin-top: 0; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 1.5rem; }

/* Header & Navigation */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}

.logo img { height: 42px; width: auto; }

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

nav a:hover { color: var(--primary); }

.btn-nav, .btn-primary, .btn-secondary {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
}

.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 8px 16px;
}

.btn-nav:hover { background: var(--primary-dark); color: var(--white); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: var(--white);
  padding: 80px 0;
}

.hero h1 { font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }

.hero .subtitle {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-bullets {
  padding-left: 20px;
  margin-bottom: 32px;
  max-width: 680px;
}

.hero-bullets li { margin-bottom: 10px; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  padding: 15px 28px;
  font-size: 1.05rem;
}

.btn-primary:hover { background: var(--accent-hover); }

.micro-copy {
  font-size: 0.875rem;
  color: #cbd5e1;
  margin-top: 10px;
}

/* Services Grid */
.services { background: var(--bg-light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.service-card img { width: 44px; height: 44px; margin-bottom: 16px; }
.service-card h3 { font-size: 1.2rem; color: var(--primary-dark); }
.service-card p { color: var(--text-muted); margin-bottom: 0; }
/* Why ASP.NET & About */
.why-aspnet ul {
  padding-left: 20px;
  max-width: 850px;
}

.why-aspnet li { margin-bottom: 12px; }

.about { background: var(--bg-light); }

.about > .container > img {
  border-radius: var(--radius);
  margin-bottom: 20px;
  max-width: 600px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.trust-badges img { height: 48px; width: auto; }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.portfolio-grid figure {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.portfolio-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.portfolio-grid figcaption {
  padding: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  padding: 13px 24px;
}

.btn-secondary:hover { background: var(--primary-dark); }

/* Testimonials */
.testimonials { background: var(--bg-light); }

.rating-summary {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.testimonials blockquote {
  background: var(--white);
  border-left: 4px solid var(--primary);
  margin: 0 0 20px 0;
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.testimonials blockquote p { margin-top: 0; font-style: italic; }
.testimonials cite { font-style: normal; font-weight: 600; color: var(--text-dark); }

/* Contact Form */
.contact form {
  max-width: 620px;
  background: var(--bg-light);
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 24px;
}

.contact label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.contact input,
.contact select,
.contact textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

.contact button { width: 100%; }

.privacy-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin: 12px 0 0 0;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 0;
  font-size: 0.9rem;
}

footer a { color: #93c5fd; text-decoration: none; }
footer a:hover { text-decoration: underline; }

.social-links {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  header .container { flex-direction: column; align-items: flex-start; }
  nav ul { gap: 12px; }
  .contact form { padding: 20px; }
}
.service-icon {
  width: 48px;
  height: 48px;
  padding: 10px;
  margin-bottom: 16px;
  color: var(--primary);
  background: #e0edff;
  border-radius: var(--radius);
}

/* FAQ Accordion */
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  padding: 18px 22px;
  max-width: 850px;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 14px 0 0 0;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.form-success, .form-error {
  padding: 14px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.form-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}
