/* ========================================
   Derby City Cyber — Main Stylesheet
   Colors: #0F1923 (bg), #2B579A (accent), #4A7FD4 (light accent)
   Font: Inter
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0F1923;
  color: #E8ECF1;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #4A7FD4;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #6B9AE8;
}

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

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Titles --- */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background-color 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav.scrolled {
  background-color: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  text-decoration: none;
}

.nav-logo:hover {
  color: #fff;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #B0BEC5;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background-color: #2B579A;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background-color: #3568B5;
  transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.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-color: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, #0a1118 0%, #0F1923 60%, #111f2e 100%);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(43, 87, 154, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.3rem;
  font-weight: 500;
  color: #4A7FD4;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 1.1rem;
  color: #8A9BB0;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: #2B579A;
  color: #fff;
}

.btn-primary:hover {
  background-color: #3568B5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(43, 87, 154, 0.4);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: 100px 0;
  background-color: #0F1923;
}

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

.service-card {
  background: linear-gradient(135deg, rgba(43, 87, 154, 0.08) 0%, rgba(15, 25, 35, 0.5) 100%);
  border: 1px solid rgba(43, 87, 154, 0.15);
  border-radius: 12px;
  padding: 36px 28px;
  transition: border-color 0.3s, transform 0.2s;
}

.service-card:hover {
  border-color: rgba(43, 87, 154, 0.35);
  transform: translateY(-3px);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: #8A9BB0;
  line-height: 1.6;
}

/* ========================================
   WHY US
   ======================================== */
.why-us {
  padding: 100px 0;
  background: linear-gradient(180deg, #111f2e 0%, #0F1923 100%);
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.credential-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: rgba(43, 87, 154, 0.06);
  border: 1px solid rgba(43, 87, 154, 0.1);
  border-radius: 10px;
}

.credential-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.credential-icon svg {
  width: 100%;
  height: 100%;
}

.credential-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.credential-card p {
  font-size: 0.9rem;
  color: #8A9BB0;
  line-height: 1.5;
}

/* Founder quote */
.founder-quote {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  border-left: 3px solid #2B579A;
  background: rgba(43, 87, 154, 0.06);
  border-radius: 0 10px 10px 0;
}

.founder-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: #B0BEC5;
  line-height: 1.7;
  margin-bottom: 12px;
}

.founder-quote cite {
  font-size: 0.9rem;
  color: #4A7FD4;
  font-style: normal;
  font-weight: 600;
}

/* ========================================
   FREE ASSESSMENT (Featured)
   ======================================== */
.free-assessment {
  padding: 100px 0;
  background-color: #0F1923;
}

.assessment-box {
  background: linear-gradient(135deg, rgba(43, 87, 154, 0.2) 0%, rgba(43, 87, 154, 0.05) 100%);
  border: 2px solid rgba(43, 87, 154, 0.3);
  border-radius: 16px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.assessment-box::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -20%;
  width: 140%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(43, 87, 154, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.assessment-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
}

.assessment-box p {
  font-size: 1.05rem;
  color: #B0BEC5;
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.7;
  position: relative;
}

.assessment-note {
  font-size: 0.9rem !important;
  color: #6B8AA8 !important;
  margin-bottom: 28px !important;
}

.assessment-box .btn {
  position: relative;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, #111f2e 0%, #0F1923 100%);
}

.contact-subtitle {
  text-align: center;
  color: #8A9BB0;
  margin-top: -32px;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

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

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #B0BEC5;
}

.required {
  color: #4A7FD4;
}

.optional {
  color: #5A6A7A;
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4A5568;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2B579A;
  box-shadow: 0 0 0 3px rgba(43, 87, 154, 0.2);
}

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

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-info-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.95rem;
  color: #8A9BB0;
}

.contact-info-item a:hover {
  color: #4A7FD4;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.footer p {
  font-size: 0.85rem;
  color: #5A6A7A;
}

.footer-sub {
  margin-top: 4px;
  font-size: 0.8rem !important;
  color: #3E4E5E !important;
}

/* ========================================
   RESPONSIVE — Tablet
   ======================================== */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.7rem;
    margin-bottom: 36px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background-color: #0a1118;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-cta {
    text-align: center;
  }

  /* Hero */
  .hero {
    padding: 130px 0 80px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Services */
  .services {
    padding: 72px 0;
  }

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

  .service-card {
    padding: 28px 24px;
  }

  /* Why Us */
  .why-us {
    padding: 72px 0;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .founder-quote {
    padding: 24px;
  }

  .founder-quote p {
    font-size: 0.95rem;
  }

  /* Free Assessment */
  .free-assessment {
    padding: 72px 0;
  }

  .assessment-box {
    padding: 36px 24px;
  }

  .assessment-box h2 {
    font-size: 1.4rem;
  }

  .assessment-box p {
    font-size: 0.95rem;
  }

  /* Contact */
  .contact {
    padding: 72px 0;
  }

  .contact-subtitle {
    margin-top: -20px;
    margin-bottom: 36px;
  }

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

/* ========================================
   RESPONSIVE — Small mobile
   ======================================== */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .assessment-box h2 {
    font-size: 1.25rem;
  }
}
