:root {
  --bg-main: #121212;
  --bg-sec: #1e1e1e;
  --bg-zinc: #27272a;
  --orange: #ff4500; /* Vivid Orange */
  --orange-hover: #ff6347;
  --white: #ffffff;
  --gray: #a1a1aa;
  --border: #3f3f46;
  --font-display: "Syne", sans-serif;
  --font-body: "Inter", sans-serif;
  --container: 1240px;
}

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

body {
  background-color: var(--bg-main);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

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

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

.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  word-break: break-word; /* Prevents overflow */
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 20px;
}

.orange-text {
  color: var(--orange);
}

.center {
  text-align: center;
}

/* Buttons */
.btn-orange {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  padding: 14px 28px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-display);
}

.btn-orange:hover {
  background: transparent;
  color: var(--orange);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 14px 28px;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-display);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--bg-main);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--orange);
  padding: 16px 32px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.btn-white:hover {
  background: var(--bg-main);
  color: var(--white);
}

.lg {
  padding: 18px 40px;
  font-size: 16px;
}
.sm {
  padding: 8px 16px;
  font-size: 12px;
}
.full-w {
  width: 100%;
}

.link-hover {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}
.link-hover:hover {
  color: var(--orange);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

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

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

.logo-txt {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.desk-nav {
  display: flex;
  gap: 30px;
}

.desk-nav a {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray);
}

.desk-nav a:hover {
  color: var(--orange);
}

.h-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger Button */
.burger {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
}

.bar {
  width: 28px;
  height: 3px;
  background: var(--white);
  transition: 0.3s;
}

/* Mobile Menu */
.mob-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-main);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-menu.active {
  transform: translateX(0);
}

.mm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.mm-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.icon-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.mm-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.mm-links a {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.mm-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.mm-cta {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--orange);
  text-decoration: underline;
  margin-bottom: 10px;
}

.mm-footer p {
  font-size: 12px;
  color: var(--gray);
}

/* Hero */
.hero {
  padding-top: 140px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.label-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 69, 0, 0.1);
  border: 1px solid var(--orange);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 25px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--orange);
}

.hero-desc {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Safety for small screens */
  margin-bottom: 30px;
}

.hero-note {
  font-size: 12px;
  color: #555;
  font-style: italic;
}

.hero-visual {
  position: relative;
}

.code-art {
  background: #000;
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.code-art pre {
  font-family: monospace;
  font-size: 14px;
  color: #ccc;
  line-height: 1.5;
}

.float-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--orange);
  color: var(--white);
  padding: 15px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(255, 69, 0, 0.3);
}

.float-badge span {
  display: block;
  font-size: 10px;
  font-weight: 700;
}
.float-badge strong {
  font-size: 14px;
  font-family: var(--font-display);
}

/* Ticker */
.ticker-wrapper {
  background: var(--bg-sec);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--gray);
  animation: scroll 25s linear infinite;
}

.ticker span {
  margin: 0 25px;
  color: var(--orange);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Philosophy */
.sec-head {
  margin-bottom: 60px;
}
.sec-head p {
  color: var(--gray);
  font-size: 18px;
  max-width: 600px;
  margin-top: 15px;
}

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

.card {
  background: var(--bg-sec);
  border: 1px solid var(--border);
  padding: 35px;
  transition: 0.3s;
}

.card:hover {
  border-color: var(--orange);
  transform: translateY(-5px);
}

.num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.5;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}
.card p {
  font-size: 14px;
  color: var(--gray);
}

/* Courses */
.bg-zinc {
  background: var(--bg-zinc);
}

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

.course-item {
  display: block;
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 30px;
  transition: 0.3s;
}

.course-item:hover {
  border-color: var(--orange);
}

.ci-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.ci-head i {
  color: var(--orange);
}
.ci-head h3 {
  font-size: 20px;
}

.course-item p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 25px;
}

.link-arr {
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
}

.course-item.highlight {
  border-color: var(--orange);
  background: rgba(255, 69, 0, 0.05);
}

/* Blog */
.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.btn-link {
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
}

.blog-main {
  display: block;
  background: var(--bg-sec);
  border: 1px solid var(--border);
}

.bm-img {
  height: 350px;
  overflow: hidden;
}
.bm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.blog-main:hover img {
  transform: scale(1.05);
}

.bm-content {
  padding: 30px;
}

.date {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.bm-content h3 {
  font-size: 28px;
  margin-bottom: 15px;
}
.bm-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

.read-more {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--white);
}

.bs-item {
  border-bottom: 1px solid var(--border);
  padding-bottom: 25px;
  margin-bottom: 25px;
}

.bs-item h4 {
  font-size: 18px;
  margin-bottom: 10px;
}
.bs-item p {
  font-size: 14px;
  color: var(--gray);
}

/* CTA Banner */
.bg-orange {
  background: var(--orange);
}

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}

.cta-text h2 {
  color: var(--white);
  margin-bottom: 10px;
}
.cta-text p {
  color: #111;
  font-weight: 600;
  font-size: 18px;
  max-width: 600px;
}

/* FAQ */
.bg-dark {
  background: var(--bg-main);
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.mb-60 {
  margin-bottom: 60px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.acc-item {
  border: 1px solid var(--border);
  background: var(--bg-sec);
}

.acc-head {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s ease;
}

.acc-body p {
  padding: 0 20px 20px;
  color: var(--gray);
}

/* Contact Form */
.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.sf-info h2 {
  font-size: 40px;
  margin-bottom: 20px;
}
.sf-info p {
  color: var(--gray);
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cl-row {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
}

.cl-row i {
  color: var(--orange);
}

.sf-box {
  background: var(--bg-sec);
  padding: 40px;
  border: 1px solid var(--border);
}

.inp-wrap {
  margin-bottom: 20px;
  position: relative;
}

.inp-wrap label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 5px;
}

.inp-wrap input {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 12px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
}

.inp-wrap input:focus {
  outline: none;
  border-color: var(--orange);
}

.err {
  position: absolute;
  bottom: -18px;
  left: 0;
  font-size: 11px;
  color: #ff6347;
  display: none;
}

.inp-wrap.error input {
  border-color: #ff6347;
}
.inp-wrap.error .err {
  display: block;
}

.check-wrap {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.check-wrap input {
  margin-top: 5px;
  accent-color: var(--orange);
}
.check-wrap label {
  font-size: 12px;
  color: var(--gray);
}
.check-wrap a {
  color: var(--white);
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 20px;
  background: #000;
}

.f-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.f-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 15px;
}

.f-brand p {
  color: var(--gray);
  max-width: 300px;
  margin-bottom: 20px;
}

.f-contacts-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #aaa;
}
.f-contacts-links a:hover {
  color: var(--white);
}

.f-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.f-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--gray);
  font-size: 14px;
}

.f-col a:hover {
  color: var(--white);
}

.f-bottom {
  text-align: center;
  font-size: 12px;
  color: #444;
  padding-top: 20px;
  border-top: 1px solid #111;
}

/* Cookie Pop-up */
.cookie-modal {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-sec);
  border: 1px solid var(--orange);
  padding: 20px;
  z-index: 5000;
  display: none;
  max-width: 300px;
}

.cm-content p {
  margin-bottom: 10px;
  font-size: 14px;
}

/* -------------------------------- */
/* RESPONSIVE BREAKPOINTS (CRITICAL)*/
/* -------------------------------- */

@media (max-width: 1024px) {
  /* Hide Desktop Elements */
  .desk-nav,
  .h-actions {
    display: none;
  }

  /* Show Burger */
  .burger {
    display: flex;
    margin-left: auto;
  }

  /* Adjust Grids to 1 Column */
  .hero-layout,
  .grid-3,
  .courses-grid,
  .blog-layout,
  .split-form,
  .f-grid {
    grid-template-columns: 1fr;
  }

  /* Center Text on Mobile Hero */
  .hero-layout {
    text-align: center;
    gap: 40px;
  }

  .hero-btns {
    justify-content: center;
  }

  /* Adjust Banner */
  .cta-box {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  /* Adjust Blog Image Height */
  .bm-img {
    height: 250px;
  }

  /* Form Inputs full width */
  .inp-wrap input {
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Smaller Fonts for Mobile */
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .split {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Fix Hero Code Box Overflow */
  .code-art {
    display: none; /* Hide complex code block on very small screens to save space */
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 10px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 22px;
    margin-top: 25px;
  }
  .margin {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .pages {
    padding: 90px 0 50px;
  }
  .pages h1 {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .text-wrapper {
    padding: 20px 15px;
    border-radius: 10px;
  }
  .text-wrapper h2 {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  .text-wrapper h3 {
    font-size: 16px;
  }
  .text-wrapper p {
    font-size: 13px;
    line-height: 1.6;
  }
  .margin {
    font-size: 24px;
    margin: 80px 0 30px;
  }
  .split-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .pages {
    padding: 80px 0 40px;
  }
  .pages h1 {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .text-wrapper {
    padding: 15px 10px;
  }
  .text-wrapper h2 {
    font-size: 16px;
    margin-top: 15px;
  }
  .text-wrapper h3 {
    font-size: 14px;
  }
  .text-wrapper p {
    font-size: 12px;
  }
  .margin {
    font-size: 20px;
    margin: 60px 0 20px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-page-main {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .cp-title {
    font-size: clamp(2rem, 6vw, 4rem);
  }

  .cp-phone-link {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 120px;
    text-align: center;
  }

  .cp-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .cp-divider {
    margin: 0 auto 30px auto;
  }

  .cp-status {
    font-size: 14px;
    padding: 8px 16px;
    margin-bottom: 40px;
  }

  .cp-phone-link {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .cp-details {
    gap: 8px;
  }

  .cp-label {
    font-size: 12px;
  }

  .cp-address-box {
    padding-top: 20px;
    max-width: 100%;
  }

  .cp-addr {
    font-size: 16px;
  }

  .cp-email {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .contact-page-main {
    padding-top: 100px;
    min-height: 70vh;
  }

  .cp-title {
    font-size: 22px;
  }

  .cp-divider {
    width: 50px;
  }

  .cp-status {
    font-size: 12px;
  }

  .cp-phone-link {
    font-size: 20px;
  }

  .cp-addr {
    font-size: 14px;
  }

  .cp-email {
    font-size: 12px;
  }
}
