/* ============================================================
   DAP Brand - Computer Systems Design & Related Services
   Main Stylesheet
   ============================================================ */

:root {
  --bg-deep: #060b16;
  --bg-primary: #0a1120;
  --bg-surface: #111b2e;
  --bg-card: #152036;
  --bg-card-hover: #1a2846;
  --bg-input: #0d1526;
  --border: #1e2d4a;
  --border-light: #253858;

  --text-primary: #f0f3f9;
  --text-secondary: #b8c5d9;
  --text-muted: #6e7d96;
  --text-dim: #4a5770;

  --accent: #e8a817;
  --accent-light: #f0c144;
  --accent-dark: #c48c10;
  --accent-glow: rgba(232, 168, 23, 0.15);

  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --teal: #14b8a6;
  --purple: #8b5cf6;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(232, 168, 23, 0.08);

  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg-deep);
}

::-moz-selection {
  background: var(--accent);
  color: var(--bg-deep);
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

h4 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(232, 168, 23, 0.2);
  margin-bottom: 16px;
}

.section-desc {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 12px 0 40px;
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(6, 11, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.main-nav a:hover {
  color: var(--text-primary);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 168, 23, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(232, 168, 23, 0.2);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent);
  position: relative;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 20px 0 32px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  box-shadow: 0 4px 16px rgba(232, 168, 23, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232, 168, 23, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================================
   Hero Visual / Diagram
   ============================================================ */
.hero-visual {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-shape-1 {
  width: 320px;
  height: 320px;
  background: rgba(232, 168, 23, 0.06);
  top: -40px;
  right: -40px;
}

.hero-shape-2 {
  width: 200px;
  height: 200px;
  background: rgba(59, 130, 246, 0.06);
  bottom: 0;
  left: 0;
}

.hero-shape-3 {
  width: 160px;
  height: 160px;
  background: rgba(139, 92, 246, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  z-index: 1;
}

.hero-diagram .diagram-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.diagram-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  z-index: 2;
  transition: all var(--transition);
}

.diagram-node:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.node-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(232, 168, 23, 0.5);
}

.diagram-node span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.node-a { top: 0; left: 0; }
.node-b { top: 0; right: 0; }
.node-c { bottom: 0; left: 0; }
.node-d { bottom: 0; right: 0; }

/* ============================================================
   Services Section
   ============================================================ */
.services {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
  opacity: 1;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 4px;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ============================================================
   About Section
   ============================================================ */
.about {
  padding: 100px 0;
  background: var(--bg-deep);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.75;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* About visual cards */
.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: all var(--transition);
}

.visual-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.visual-card h4 {
  margin-bottom: 6px;
}

.visual-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   Expertise Section
   ============================================================ */
.expertise {
  padding: 100px 0;
  background: var(--bg-primary);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.expertise-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.expertise-card:hover {
  border-left-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.expertise-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.expertise-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(232, 168, 23, 0.05) 0%, transparent 60%),
              var(--bg-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-banner h2 {
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* ============================================================
   Contact Section
   ============================================================ */
.contact {
  padding: 100px 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-item:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item h4 {
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Contact Form */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 23, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236e7d96'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

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

.contact-form .btn {
  width: 100%;
  margin-top: 4px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-top: 16px;
  max-width: 300px;
}

.footer-logo {
  margin-bottom: 0;
}

.footer-links h4 {
  color: var(--text-primary);
  margin-bottom: 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 5px 0;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-legal a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.separator {
  color: var(--border);
}

/* ============================================================
   Legal Pages (Privacy & Terms)
   ============================================================ */
.legal-hero {
  padding: 140px 0 48px;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 168, 23, 0.05) 0%, transparent 60%);
}

.legal-hero h1 {
  margin-bottom: 8px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-content {
  padding: 0 0 100px;
}

.legal-body {
  max-width: 760px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-primary);
}

.legal-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-body ul {
  margin: 12px 0 20px 20px;
  list-style: disc;
}

.legal-body ul li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.93rem;
  line-height: 1.65;
}

.legal-body ul li strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-contact {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 20px 0;
}

.legal-contact p {
  margin-bottom: 4px !important;
  font-size: 0.92rem !important;
}

.legal-contact strong {
  font-size: 1.05rem;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-content,
.service-card,
.visual-card,
.expertise-card,
.contact-item {
  animation: fadeInUp 0.6s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.05s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.15s; }
.service-card:nth-child(4) { animation-delay: 0.2s; }
.service-card:nth-child(5) { animation-delay: 0.25s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    height: 280px;
  }

  .hero-diagram {
    width: 260px;
    height: 260px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    height: 60px;
  }

  .main-nav {
    gap: 20px;
  }

  .main-nav a {
    font-size: 0.82rem;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .about-visual {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-diagram .diagram-lines {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .about-stats {
    flex-direction: column;
    gap: 16px;
  }
}
