/* ============================================================
   Firewall IT GmbH – Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080c17;
  --bg-alt:    #0d1224;
  --bg-card:   #111827;
  --border:    rgba(255,255,255,0.07);
  --cyan:      #00d4ff;
  --cyan-dim:  rgba(0,212,255,0.12);
  --orange:    #ff6b35;
  --orange-dim:rgba(255,107,53,0.12);
  --text:      #e2e8f0;
  --text-muted:#8892a4;
  --grad:      linear-gradient(135deg, #00d4ff, #0080ff);
  --grad-o:    linear-gradient(135deg, #ff6b35, #ff3b6e);
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(0,212,255,0.15);
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

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

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 8px 18px; font-size: 0.88rem; }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,212,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,212,255,0.4); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--cyan); color: var(--cyan); }
.btn-full { width: 100%; justify-content: center; }

/* ── Gradient text ── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section ── */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-alt); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin: 12px 0 16px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(0,212,255,0.2);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s, border-bottom 0.3s;
}
#header.scrolled {
  background: rgba(8,12,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo-icon {
  display: inline-block;
  width: 32px; height: 32px;
  background: var(--grad);
  border-radius: 8px;
  font-size: 14px;
  line-height: 32px;
  text-align: center;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links li a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links li a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 70%),
              radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255,107,53,0.05) 0%, transparent 60%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  max-width: 860px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
}
.badge::before { content: "●"; font-size: 8px; animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  grid-column: span 1;
  border-color: rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,212,255,0.05) 0%, var(--bg-card) 50%);
}

.service-icon {
  width: 48px; height: 48px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cyan);
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 20px; }

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.6;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.project-card:hover {
  border-color: rgba(255,107,53,0.25);
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(255,107,53,0.1);
}

.project-card--featured {
  grid-column: span 3;
  border-color: rgba(0,212,255,0.2);
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, var(--bg-card) 60%);
}
@media (max-width: 1024px) { .project-card--featured { grid-column: span 2; } }
@media (max-width: 768px)  { .project-card--featured { grid-column: span 1; } }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255,107,53,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}
.project-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.project-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; line-height: 1.35; }
.project-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-tag { margin-bottom: 16px; display: inline-block; }
.about-content h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 800; margin-bottom: 24px; line-height: 1.2; }
.about-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }

.about-certs { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.cert-item svg { width: 20px; height: 20px; color: var(--cyan); flex-shrink: 0; }

.tech-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.tech-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.tech-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-grid span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.15);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}

.company-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label { font-size: 0.82rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.info-value { font-size: 0.88rem; font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-info-centered {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', monospace; }
.contact-value { font-weight: 600; font-size: 0.95rem; transition: color var(--transition); }
a.contact-value:hover { color: var(--cyan); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(136,146,164,0.5); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); background: rgba(0,212,255,0.04); }
.form-group select option { background: var(--bg-card); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; line-height: 1.6; }

.footer-links { display: flex; gap: 64px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }

}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; left: 0; right: 0; background: rgba(8,12,23,0.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); padding: 16px 24px; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a { display: block; padding: 14px 0; color: var(--text); font-size: 1rem; }
  .nav-toggle { display: flex; }
  #header { position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 40px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 24px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.20s; }
.services-grid .service-card:nth-child(5) { transition-delay: 0.25s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.30s; }
.projects-grid .project-card:nth-child(1) { transition-delay: 0.05s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.10s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.15s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.20s; }
.projects-grid .project-card:nth-child(5) { transition-delay: 0.25s; }
.projects-grid .project-card:nth-child(6) { transition-delay: 0.30s; }
