/* ===========================
   The Cyber Mentor - Styles
   =========================== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600;700&family=Fredericka+the+Great&family=Spinnaker&family=EB+Garamond:wght@400;500&display=swap');

:root {
  --bg-dark: #2F2E2E;
  --bg-darker: #1a1a1a;
  --text-light: #F2F2F2;
  --text-muted: #ACACAB;
  --accent-red: #FE6060;
  --accent-red-dark: #9B312D;
  --accent-teal: #05C8A1;
  --accent-blue: #2B6CA3;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ===========================
   Header / Navigation
   =========================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(47, 46, 46, 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  position: relative;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.main-nav a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  transition: color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.header-social {
  position: absolute;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-social a {
  display: flex;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.header-social a:hover {
  opacity: 1;
}

.header-social img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

/* ===========================
   Banner CTA
   =========================== */

.banner {
  margin-top: 40px; /* push below fixed header */
  background: var(--bg-dark);
  text-align: center;
  padding: 12px 24px;
}

.banner a {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-red);
  text-decoration: underline;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.banner a:hover {
  color: #ff8080;
}

/* ===========================
   Hero Section (Home)
   =========================== */

.hero {
  position: relative;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay--dark {
  background: rgba(30, 40, 50, 0.82);
}

.hero-overlay--blue {
  background: rgba(43, 108, 163, 0.75);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 24px 60px;
}

.hero-avatar {
  margin: 0 auto 24px;
}

.hero-avatar img {
  width: 340px;
  height: 340px;
  margin: 0 auto;
  object-fit: contain;
}

.hero-title {
  font-family: 'Fredericka the Great', cursive;
  font-size: clamp(28px, 4.5vw, 42px);
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}

.hero-subtitle {
  font-family: 'Fredericka the Great', cursive;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--text-light);
  margin-bottom: 28px;
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-social a {
  display: flex;
  transition: transform 0.2s;
}

.hero-social a:hover {
  transform: scale(1.1);
}

.hero-social img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

/* ===========================
   Schedule Strip
   =========================== */

.schedule-strip {
  background: var(--bg-dark);
  text-align: center;
  padding: 36px 24px;
}

.schedule-strip p {
  font-family: 'Spinnaker', sans-serif;
  font-size: 18px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ===========================
   About Page Hero
   =========================== */

.hero--short {
  height: 30vh;
  min-height: auto;
}

/* ===========================
   About Page
   =========================== */

.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.about-layout {
  display: flex;
  gap: 40px;
  margin-bottom: 48px;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo img {
  width: 220px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
}

.about-bio p {
  margin-bottom: 16px;
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
}

.about-bio a {
  color: var(--accent-red);
  text-decoration: underline;
  text-decoration-color: rgba(254, 96, 96, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.about-bio a:hover {
  text-decoration-color: var(--accent-red);
}

.section-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-red-dark);
  display: inline-block;
}

.cert-list,
.talks-list {
  margin-bottom: 48px;
}

.cert-list li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.talks-list li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.7;
}

.talks-list li strong {
  color: var(--white);
}

.talks-list a {
  color: var(--accent-red);
  text-decoration: underline;
  text-decoration-color: rgba(254, 96, 96, 0.4);
  text-underline-offset: 3px;
}

.talks-list a:hover {
  text-decoration-color: var(--accent-red);
}

/* ===========================
   Contact Page
   =========================== */

.contact-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.contact-notice {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  text-align: center;
}

.contact-notice a {
  color: var(--accent-teal);
  text-decoration: underline;
}

.hs-form-frame {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  min-height: 600px;
  overflow: visible;
}

.contact-avatar {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 32px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-light);
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
}

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

.btn {
  display: inline-block;
  padding: 12px 40px;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent-red-dark);
  color: var(--white);
}

.btn--primary:hover {
  background: #c0423c;
}

.btn--teal {
  background: var(--accent-teal);
  color: var(--white);
}

.btn--teal:hover {
  background: #04b08d;
}

.form-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 40px;
  margin-bottom: 48px;
}

.form-card h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 32px;
  color: var(--white);
}

.subscribe-section {
  text-align: center;
  margin-top: 48px;
}

.subscribe-section h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white);
}

.subscribe-section p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.subscribe-form {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--text-light);
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--accent-teal);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--accent-teal);
  font-weight: 600;
}

/* ===========================
   Social Bar (used in pages)
   =========================== */

.social-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px 24px;
}

.social-bar a {
  display: flex;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0.8;
}

.social-bar a:hover {
  transform: scale(1.1);
  opacity: 1;
}

.social-bar img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  text-align: center;
  padding: 20px 24px 28px;
  background: var(--bg-dark);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-social a {
  display: flex;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-social a:hover {
  opacity: 1;
}

.footer-social img {
  width: 22px;
  height: 22px;
  border-radius: 2px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    position: absolute;
    left: 16px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background: rgba(47, 46, 46, 0.98);
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 101;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 24px;
    font-size: 13px;
  }

  .header-social {
    display: none;
  }

  .hero-avatar img {
    width: 200px;
    height: 200px;
  }

  .hero-social img {
    width: 48px;
    height: 48px;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo img {
    width: 180px;
    height: 240px;
  }

  .form-card {
    padding: 24px;
  }

  .subscribe-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-social img {
    width: 40px;
    height: 40px;
  }

  .social-bar img {
    width: 40px;
    height: 40px;
  }
}
