/* ============================================================
   Reset & Base
   ============================================================ */

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

/* ============================================================
   Design Tokens
   ============================================================ */

:root {
  /* Dark mode (default) */
  --bg: #13140f;
  --fg: #fefefe;
  --accent: #14C38E;
  --accent2: #d4ff00;
  --orange: #f79f99;
  --blue: #89b4fa;
  --green: #a6e3a1;
  --muted: #cacaca;
  --card-bg: #1c1d17;
  --border: rgba(255, 255, 255, 0.12);
  --header-bg: rgba(19, 20, 15, 0.9);
  
  /* Typography */
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Inter', 'Roboto', sans-serif;
  
  /* Spacing */
  --section-padding: clamp(4rem, 8vw, 8rem);
}

/* Light mode colors */
[data-theme="light"] {
  --bg: #ffffff;
  --fg: #000000;
  --accent: #14C38E;
  --accent2: #f59e0b;
  --orange: #f97316;
  --blue: #3b82f6;
  --green: #10b981;
  --muted: #6b7280;
  --card-bg: #f8fafc;
  --border: rgba(0, 0, 0, 0.1);
  --header-bg: rgba(255, 255, 255, 0.95);
}

/* ============================================================
   Global Styles
   ============================================================ */

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent2);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
}

.logo img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  transition: color 0.3s;
}

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

.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent) !important;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
}

/* ============================================================
   Theme Toggle
   ============================================================ */

.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--border);
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  background: var(--accent);
}

.theme-toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--fg);
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

[data-theme="light"] .theme-toggle-slider {
  transform: translateX(30px);
}

/* ============================================================
   Progress Bar
   ============================================================ */

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 2000;
  animation: progressBar 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

@keyframes progressBar {
  from { width: 0; }
  to   { width: 100%; }
}

/* ============================================================
   Typography Animations
   ============================================================ */

@keyframes typing {
  0%  { content: ""; }
  12% { content: "S"; }
  25% { content: "Si"; }
  37% { content: "Sic"; }
  50% { content: "Sicc"; }
  62% { content: "Siccs"; }
  75% { content: "Siccseg"; }
  87% { content: "Siccseg"; }
  100%{ content: "Siccsegv"; }
}

@keyframes blink {
  50% { opacity: 0; }
}

.typewriter::before {
  content: "";
  animation: typing 2s steps(8, end) 0.4s forwards;
}

.typewriter::after {
  content: "|";
  color: var(--accent);
  animation: blink 0.7s step-end infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Layout
   ============================================================ */

.section {
  padding: var(--section-padding) 2rem;
  position: relative;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(20, 195, 142, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 255, 0, 0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(20, 195, 142, 0.1);
  border: 1px solid rgba(20, 195, 142, 0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.2s both;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.7s 0.3s both;
}

.hero-logo {
  width: clamp(60px, 8vw, 100px);
  height: auto;
  vertical-align: middle;
  margin-right: 1rem;
  display: inline;
}

.highlight {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 700px;
  animation: fadeUp 0.7s 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeUp 0.7s 0.5s both;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

/* ============================================================
   Pacman Animation
   ============================================================ */

.path { 
  position: relative; 
  width: 100%; 
  height: 100px; 
  background: transparent; 
  padding: 20px; 
  box-sizing: border-box;
} 

/* New inner element to contain pacman only */
.path-track {
  position: absolute;
  inset: 0;
  overflow: hidden; /* clips pacman */
  pointer-events: none;
}

.path:hover .pacman {
  animation-play-state: paused;
}

.pacman { 
    position: absolute; 
    z-index: 99; 
    top: 50%; 
    animation: moveForward 8s linear infinite forwards; 
}

@keyframes moveForward { 

  0% {
    left: -15%; 
  }

  100% { 
    left: 105%; 
  }
} 

.pacman::before, .pacman::after { 
  content: ""; 
  display: block; 
  height: 0; 
  width: 0; 
  position: absolute; 
  border: solid 20px var(--accent); 
  margin-top: -23px;
  border-radius: 50%; 
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: mouthTop 0.7s ease infinite; 
} 

.pacman::after { 
  border-color: var(--accent); 
  border-right-color: transparent;
  border-top-color: transparent;
  animation: mouthBottom 0.7s ease infinite; 
}

@keyframes mouthTop { 
  50% { 
    transform: rotate(44deg); 
  } 
}

@keyframes mouthBottom { 
  50% { 
    transform: rotate(-44deg); 
  } 
}

.path .dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-decoration: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.2s, background 0.2s;
}

.path .dot.hidden { 
  opacity: 0
} 

.path .dot:hover {
  transform: translateY(-50%) scale(1.3);
  background: transparent;
}
.path .dot:nth-child(2) { left: 20%; }
.path .dot:nth-child(3) { left: 40%; }
.path .dot:nth-child(4) { left: 60%; }
.path .dot:nth-child(5) { left: 80%; }

.path .dot::before {
  content: attr(data-label);
  font-family: var(--font-body); 
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  color: var(--yellow);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid var(--border);
}

.path .dot:hover::before {
  opacity: 1;
}

/* ============================================================
   Section Headers
   ============================================================ */

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: rgba(20, 195, 142, 0.1);
  border: 1px solid rgba(20, 195, 142, 0.3);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  min-width: 120px;
  text-align: center;
}
.section-badge-no-margin {
  margin-bottom: -1.5rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ============================================================
   Features Grid
   ============================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Two Column Layouts
   ============================================================ */

.two-col-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 4rem;
  align-items: center;
}

@media (max-width: 900px) {
  .two-col-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.content-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 0.5rem;
}

.content-text {
  font-size: 1.05rem;
  color: var(--fg);
  opacity: 0.85;
  line-height: 1.8;
}

/* ============================================================
   Info Box
   ============================================================ */

.info-box {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.info-box h4 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.check-list i {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ============================================================
   Pentest Types
   ============================================================ */

.pentest-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pentest-type {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s;
}

.pentest-type:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.pentest-type-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.25rem;
}

.pentest-type-icon.orange {
  background: rgba(247, 159, 153, 0.1);
  color: var(--orange);
}

.pentest-type-icon.blue {
  background: rgba(137, 180, 250, 0.1);
  color: var(--blue);
}

.pentest-type h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pentest-type p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   Stats Grid
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   Courses Grid
   ============================================================ */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.course-card.featured {
  border-color: var(--accent);
  position: relative;
}

.course-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.3rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 1;
}

.course-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.course-header.bash {
  background: rgba(230, 230, 230, 0.05);
}

.course-header.python {
  background: rgba(84, 148, 200, 0.05);
}

.course-header.c-lang {
  background: rgba(247, 159, 153, 0.05);
}

.course-header i {
  font-size: 2rem;
}

.course-header.bash i { color: #e6e6e6; }
.course-header.python i { color: #5494c8; }
.course-header.c-lang i { color: var(--orange); }

.course-header h3 {
  font-size: 1.5rem;
}

.course-content {
  padding: 2rem;
  flex: 1;
}

.course-topics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-topics li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg);
  opacity: 0.85;
}

.course-topics li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.course-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  margin: 0 2rem 2rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 500;
  transition: all 0.3s;
}

.course-link:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================================
   Tools Showcase
   ============================================================ */

.tools-showcase {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tools-showcase h4 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.tools-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-tag {
  padding: 0.5rem 1rem;
  background: rgba(20, 195, 142, 0.1);
  border: 1px solid rgba(20, 195, 142, 0.3);
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.tool-tag:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ============================================================
   Pricing Grid
   ============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pricing-card {
  padding: 2.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-header h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.pricing-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}

.pricing-price {
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  color: var(--accent);
}

.pricing-price .amount {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent);
}

.pricing-price .period {
  font-size: 1rem;
  color: var(--muted);
}

.pricing-save {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 0.95rem;
}

.save-badge {
  padding: 0.25rem 0.65rem;
  background: rgba(20, 195, 142, 0.15);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-renewal {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  opacity: 0.85;
}

.pricing-features i {
  color: var(--accent);
  font-size: 0.9rem;
}

.pricing-btn {
  display: block;
  padding: 0.875rem;
  text-align: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 500;
  transition: all 0.3s;
}

.pricing-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============================================================
   Scripting Grid
   ============================================================ */

.scripting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.scripting-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.scripting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.scripting-card.orange {
  border-color: var(--orange);
}

.scripting-card.green {
  border-color: var(--green);
}

.scripting-card.blue {
  border-color: var(--blue);
}

.scripting-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.scripting-header i {
  font-size: 2rem;
}

.scripting-card.orange .scripting-header i { color: var(--orange); }
.scripting-card.green .scripting-header i { color: var(--green); }
.scripting-card.blue .scripting-header i { color: var(--blue); }

.scripting-header h3 {
  font-size: 1.5rem;
}

.scripting-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.scripting-features li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--fg);
  opacity: 0.85;
}

.scripting-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.scripting-card.orange .scripting-features li::before { color: var(--orange); }
.scripting-card.green .scripting-features li::before { color: var(--green); }
.scripting-card.blue .scripting-features li::before { color: var(--blue); }

.scripting-btn {
  display: block;
  padding: 0.875rem;
  text-align: center;
  border: 1px solid;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
}

.scripting-card.orange .scripting-btn {
  border-color: var(--orange);
  color: var(--orange);
}

.scripting-card.orange .scripting-btn:hover {
  background: var(--orange);
  color: var(--bg);
}

.scripting-card.green .scripting-btn {
  border-color: var(--green);
  color: var(--green);
}

.scripting-card.green .scripting-btn:hover {
  background: var(--green);
  color: var(--bg);
}

.scripting-card.blue .scripting-btn {
  border-color: var(--blue);
  color: var(--blue);
}

.scripting-card.blue .scripting-btn:hover {
  background: var(--blue);
  color: var(--bg);
}

/* ============================================================
   About Section
   ============================================================ */

.about-layout {
  display: grid;
  gap: 4rem;
}

.about-content {
  max-width: 900px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s, background-color 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.value-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.value-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   Contact Section
   ============================================================ */

.contact-section {
  background: linear-gradient(135deg, rgba(20, 195, 142, 0.05) 0%, transparent 100%);
  transition: background 0.3s ease;
}

/* Light mode contact section */
#theme-toggle:checked ~ main .contact-section {
  background: linear-gradient(135deg, rgba(15, 168, 118, 0.04) 0%, transparent 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  height: 100%;
  justify-content: space-between;
}

.contact-card {
  padding: 3rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(20, 195, 142, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--accent);
}

.contact-card h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-card a,
.contact-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.social-links {
  padding: 3rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.social-links h4 {
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-icons a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(20, 195, 142, 0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ============================================================
   Contact Form
   ============================================================ */

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

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s;
}

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

.form-group textarea {
  resize: vertical;
}

/* Google Form Wrapper Styling */
.google-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.google-form-wrapper:hover {
  border-color: var(--accent);
}

.form-header {
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(20, 195, 142, 0.1) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  transition: background 0.3s ease;
}

#theme-toggle:checked ~ main .form-header {
  background: linear-gradient(135deg, rgba(15, 168, 118, 0.08) 0%, transparent 100%);
}

.form-header i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.form-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.form-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-notice {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(20, 195, 142, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 0.9rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.form-notice i {
  color: var(--accent);
}

.form-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.form-link:hover {
  color: var(--accent2);
}

.google-form-iframe {
  display: block;
  border: none;
  background: transparent;
  width: 100%;
}

.form-footer {
  padding: 1.25rem 2rem;
  background: rgba(20, 195, 142, 0.05);
  border-top: 1px solid var(--border);
  text-align: center;
  transition: background 0.3s ease;
}

#theme-toggle:checked ~ main .form-footer {
  background: rgba(15, 168, 118, 0.04);
}

.form-footer p {
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-footer i {
  color: var(--accent);
}

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

.footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 40px;
  height: 40px;
}

.footer-col p {
  color: var(--muted);
  line-height: 1.7;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   Light Mode Specific Styles
   ============================================================ */

/* Update some specific elements for better light mode contrast */
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .section-alt {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .contact-section {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03) 0%, transparent 100%);
}

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

@media (max-width: 600px) {
  .section {
    padding: 3rem 1.5rem;
  }

  .hero-text { 
    text-align: center;
  } 

  .hero-logo {
    margin-right: 0rem;
  }

  .hero-title {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    margin: 1rem;
  }

  .btn {
    width: 100%;
  }

  .features-grid,
  .courses-grid,
  .pricing-grid,
  .scripting-grid {
    grid-template-columns: 1fr;
  }

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