/* ============================================
   Professional Cybersecurity Portfolio
   Light · Minimalist · Modern
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg: #FAF8F5;
  --bg-alt: #FFFFFF;
  --primary: #B45309;
  --primary-light: #FEF3C7;
  --accent: #C4943A;
  --accent-light: #FCF6E8;
  --text: #2D2D2D;
  --text-secondary: #5A5A5A;
  --text-muted: #888888;
  --border: #E2DDD6;
  --shadow: 0 4px 24px rgba(30, 41, 59, 0.06);
  --shadow-lg: 0 12px 48px rgba(30, 41, 59, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(180, 83, 9, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(196, 148, 58, 0.02) 0%, transparent 50%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Main Content --- */
.main {
  padding-top: 68px;
}

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

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 560px;
}

/* --- Hero / Introduction --- */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  padding: 80px 0;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg) 100%);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 
    0 4px 6px -1px rgba(180, 83, 9, 0.1),
    0 2px 4px -1px rgba(180, 83, 9, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(180, 83, 9, 0.15);
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 10px 15px -3px rgba(180, 83, 9, 0.15),
    0 4px 6px -2px rgba(180, 83, 9, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.card-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.card-info h4 {
  font-size: 1rem;
  font-weight: 600;
}

.card-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(27, 107, 94, 0.25);
}

.btn-primary:hover {
  background: #15574c;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 107, 94, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
}

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Video Section --- */
.video-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--text);
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 41, 59, 0.15);
  opacity: 0;
  transition: var(--transition);
}

.video-wrapper:hover .video-overlay {
  opacity: 1;
}

.video-play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-play-btn:hover {
  transform: scale(1.08);
}

.video-play-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  margin-left: 4px;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: var(--transition);
}

.video-wrapper:hover .video-controls {
  opacity: 1;
}

.video-control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: var(--transition);
}

.video-control-btn:hover {
  opacity: 1;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  color: white;
  gap: 16px;
}

.video-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.4;
}

.video-placeholder p {
  font-size: 1rem;
  opacity: 0.6;
}

/* --- Articles --- */
.articles-grid {
  display: grid;
  gap: 24px;
}

.article-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(27, 107, 94, 0.2);
  transform: translateY(-2px);
}

.article-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.article-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-footer span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-footer svg {
  width: 16px;
  height: 16px;
}

.view-all {
  text-align: center;
  margin-top: 40px;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.contact-item div p:first-child {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-item div p:last-child,
.contact-item div a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.contact-item div a:hover {
  color: var(--primary);
}

/* Social Links */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary-light);
  border-color: rgba(27, 107, 94, 0.2);
}

.social-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.social-link .social-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.social-link .social-handle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Contact Form --- */
.contact-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 94, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

/* --- Admin / Password Gate --- */
.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow);
}

.gate-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.gate-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}

.gate-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  transition: var(--transition);
}

.gate-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 107, 94, 0.1);
}

.gate-error {
  color: #DC2626;
  font-size: 0.875rem;
  margin-top: 12px;
}

.gate-success {
  color: var(--primary);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* Admin Dashboard */
.admin-dashboard {
  padding: 100px 0 60px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-nav {
  display: flex;
  gap: 8px;
}

.admin-tab {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab:hover,
.admin-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.logout-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.logout-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  transition: var(--transition);
  background: var(--bg);
}

.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-zone-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.upload-zone-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.upload-zone h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.upload-zone p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.file-input {
  display: none;
}

/* Content Table */
.content-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.content-table th,
.content-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.content-table th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
}

.content-table td {
  color: var(--text-secondary);
}

.content-table tr:last-child td {
  border-bottom: none;
}

.content-table .actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  transition: var(--transition);
}

.action-btn:hover {
  background: var(--bg);
}

.action-btn.delete:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
  }

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

  .nav-links a {
    padding: 12px 0;
  }

  .nav-toggle {
    display: block;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .hero-stats {
    gap: 24px;
  }

  .section {
    padding: 64px 0;
  }

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

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

  .gate-card {
    padding: 32px 24px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* --- Admin Document Cards --- */
#uploadedFilesList > div:hover {
  box-shadow: var(--shadow);
  border-color: rgba(180, 83, 9, 0.2);
}

/* --- Animations --- */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ============================================
   UNIQUE SCROLL ANIMATIONS
   ============================================ */

/* Text Scramble Reveal */
.scramble-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scramble-text.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scramble-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px) rotateX(-90deg);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scramble-text.revealed .char {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Liquid Morph Reveal */
.liquid-reveal {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.liquid-reveal.revealed {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Velocity Skew Effect */
.velocity-skew {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Magnetic Float - elements subtly follow scroll */
.magnetic-float {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

/* Line Draw Animation */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.line-draw.revealed {
  stroke-dashoffset: 0;
}

/* Ripple Reveal - concentric circles */
.ripple-reveal {
  position: relative;
  overflow: hidden;
}

.ripple-reveal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-light);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.8s ease, height 0.8s ease;
  z-index: -1;
}

.ripple-reveal.revealed::before {
  width: 300%;
  height: 300%;
}

/* Perspective Tilt on Scroll */
.perspective-tilt {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Stagger Cascade - items fall into place */
.cascade-item {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cascade-item.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Word Split Animation */
.word-split .word {
  display: inline-block;
  overflow: hidden;
}

.word-split .word-inner {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.word-split.revealed .word-inner {
  transform: translateY(0);
}

/* Smooth Parallax Container */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Scroll Progress Indicator (thin line at top) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Elastic Snap Effect */
.elastic-snap {
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Character Wave Animation */
@keyframes charWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.char-wave .char {
  animation: charWave 0.6s ease infinite;
  animation-play-state: paused;
}

.char-wave:hover .char {
  animation-play-state: running;
}

/* Section Transition Marker */
.section-marker {
  position: absolute;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary);
  transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-marker.revealed {
  height: 100%;
}

/* --- Lights Off / Dark Mode --- */
body.lights-off {
  --bg: #1a1a1a;
  --bg-alt: #252525;
  --text: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --border: #333333;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.4);
}

body.lights-off .nav {
  background: rgba(26, 26, 26, 0.85);
  border-bottom-color: #333;
}

body.lights-off .hero-card,
body.lights-off .contact-info-card,
body.lights-off .contact-form-card {
  background: #252525;
  border-color: #333;
}

body.lights-off .video-placeholder {
  background: #252525;
}

body.lights-off .article-card {
  background: #252525;
  border-color: #333;
}

body.lights-off .admin-dashboard {
  background: #1a1a1a;
}

/* Lights Toggle Button */
.lights-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lights-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

body.lights-off .lights-toggle {
  color: var(--primary);
}

body.lights-off .lights-toggle:hover {
  background: rgba(180, 83, 9, 0.2);
}

/* --- Utilities --- */
.hidden {
  display: none !important;
}

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