/* ==========================================================================
   Comic / Meme Design System & Variables
   ========================================================================== */

:root {
  /* Fonts */
  --font-heading: 'Bangers', Impact, sans-serif;
  --font-subheading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme: Dark (Default) */
  --bg-primary: #18181b;
  --bg-secondary: #09090b;
  --bg-card: #27272a;
  --bg-card-hover: #3f3f46;
  
  --text-primary: #fafafa;
  --text-secondary: #d4d4d8;
  --text-dark: #000000;
  
  /* Comic Accents */
  --accent-yellow: #facc15; /* Saturated Yellow */
  --accent-orange: #f97316; /* Comic Orange */
  --accent-blue: #3b82f6;   /* Comic Blue */
  --accent-red: #ef4444;    /* Panic Red */
  
  /* Thick Comic Outlines & Shadow Offset */
  --comic-border: 4px solid #000000;
  --comic-border-thin: 2px solid #000000;
  --comic-shadow: 6px 6px 0px #000000;
  --comic-shadow-hover: 10px 10px 0px #000000;
  --comic-shadow-sm: 4px 4px 0px #000000;

  --transition-speed: 0.2s;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-primary: #fef08a; /* Comic Yellow base */
  --bg-secondary: #fef9c3;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  
  --text-primary: #18181b;
  --text-secondary: #3f3f46;
  
  --comic-shadow: 6px 6px 0px #000000;
  --comic-shadow-hover: 10px 10px 0px #000000;
}

/* ==========================================================================
   Base Styles & Comic Overlay
   ========================================================================== */

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 20px;
}

/* Halftone dotted texture overlay */
.comic-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 16px 16px;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.15) 1.5px, transparent 1.5px);
  z-index: 1;
  pointer-events: none;
}

[data-theme="dark"] .comic-grid-overlay {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px);
}

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

.section {
  padding: 80px 0;
  position: relative;
  z-index: 10;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-left: var(--comic-border-thin);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-yellow);
  border: var(--comic-border-thin);
}

/* ==========================================================================
   Typography & Comic Headers
   ========================================================================== */

.comic-font {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.comic-font-sub {
  font-family: var(--font-subheading);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.comic-title {
  font-family: var(--font-heading);
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow: 3px 3px 0px #000;
}

.comic-title-sec {
  font-family: var(--font-heading);
  font-size: 48px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  background-color: var(--accent-yellow);
  color: #000;
  padding: 6px 20px;
  transform: rotate(-2deg);
  border: var(--comic-border);
  box-shadow: var(--comic-shadow-sm);
}

.highlight-text {
  background-color: var(--accent-orange);
  color: #000;
  padding: 4px 16px;
  display: inline-block;
  transform: rotate(1deg);
  border: var(--comic-border);
  box-shadow: var(--comic-shadow-sm);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tagline {
  font-family: var(--font-subheading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  color: var(--accent-blue);
  background: var(--bg-card);
  border: var(--comic-border-thin);
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 2px 2px 0px #000;
}

[data-theme="light"] .section-tagline {
  color: #000;
  background: #fff;
}

.section-line {
  display: none; /* Removed for comic style */
}

/* ==========================================================================
   Shared Components (Buttons & Comic Cards)
   ========================================================================== */

/* Comic Cards */
.comic-card {
  background-color: var(--bg-card);
  border: var(--comic-border);
  box-shadow: var(--comic-shadow);
  border-radius: 4px; /* flat edges */
  padding: 30px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .comic-card {
  background-color: #ffffff;
}

.comic-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--comic-shadow-hover);
}

/* Buttons */
.btn-comic {
  font-family: var(--font-heading);
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow-sm);
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-comic:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #000;
}

.btn-primary {
  background-color: var(--accent-yellow);
  color: #000000;
}
.btn-primary:hover {
  background-color: #eab308;
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
}
.btn-secondary:hover {
  background-color: #f4f4f5;
}

.btn-panic {
  background-color: var(--accent-red);
  color: #ffffff;
  animation: jitter 0.5s infinite alternate;
}

.btn-panic:hover {
  background-color: #dc2626;
}

@keyframes jitter {
  0% { transform: rotate(-1deg); }
  100% { transform: rotate(1deg); }
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: var(--bg-primary);
  border-bottom: var(--comic-border-thin);
}

.header.sticky {
  height: 70px;
  background: var(--bg-secondary);
  border-bottom: var(--comic-border);
  box-shadow: 0 4px 0px rgba(0,0,0,0.15);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 30px;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-shadow: 2px 2px 0px #000;
}

.logo-accent {
  color: var(--accent-yellow);
}

.logo-dot {
  color: var(--accent-orange);
}

.nav-menu ul {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-subheading);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 8px 12px;
  border: 2px solid transparent;
  transition: all var(--transition-speed) ease;
}

.nav-link:hover,
.nav-link.active {
  color: #000000;
  background-color: var(--accent-yellow);
  border: var(--comic-border-thin);
  box-shadow: 2px 2px 0px #000;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #000000;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-card);
  border: var(--comic-border-thin);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  box-shadow: 2px 2px 0px #000;
}

[data-theme="light"] .theme-toggle {
  background: #ffffff;
  color: #000000;
}

.theme-toggle:hover {
  transform: scale(1.05);
  background-color: var(--accent-yellow);
  color: #000;
}

/* Toggle visibility depending on theme */
[data-theme="dark"] .toggle-icon-light { display: none; }
[data-theme="dark"] .toggle-icon-dark { display: block; }
[data-theme="light"] .toggle-icon-light { display: block; }
[data-theme="light"] .toggle-icon-dark { display: none; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 24px;
}

.hidden {
  display: none !important;
}

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

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

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
}

.hero-badge-container {
  margin-bottom: 24px;
}

.comic-badge {
  font-family: var(--font-subheading);
  font-weight: 800;
  text-transform: uppercase;
  background-color: #000000;
  color: var(--accent-yellow);
  border: var(--comic-border-thin);
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--comic-shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-red);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.hero-subtitle {
  display: none; /* Replaced by speech bubble */
}

/* Comic Speech Bubble styling */
.speech-bubble-wrapper {
  position: relative;
  margin-bottom: 40px;
  max-width: 680px;
}

.speech-bubble {
  background: #ffffff;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow);
  border-radius: 16px;
  padding: 24px;
  color: #000000;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.speech-bubble strong {
  color: var(--accent-blue);
  font-weight: 800;
}

.speech-tail {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 60px;
  width: 0;
  height: 0;
  border-width: 20px 20px 0 0;
  border-style: solid;
  border-color: #000000 transparent transparent transparent;
}

.speech-tail::after {
  content: '';
  position: absolute;
  top: -24px;
  left: 4px;
  width: 0;
  height: 0;
  border-width: 18px 18px 0 0;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  z-index: 10;
}

.mouse {
  width: 28px;
  height: 48px;
  border: 3px solid #000;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  background-color: var(--bg-card);
  box-shadow: 3px 3px 0px #000;
}

[data-theme="light"] .mouse {
  background-color: #ffffff;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 20px;
  animation: scroll-wheel 1.5s infinite ease-in-out;
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

/* Left side profile card */
.about-card-wrapper {
  perspective: 1000px;
}

.profile-card {
  text-align: center;
  padding: 40px 30px;
}

.profile-frame {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 24px auto;
  border-radius: 4px; /* flat */
  padding: 4px;
  background: #000000;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow-sm);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
  z-index: 1;
}

.avatar-initials {
  font-family: var(--font-heading);
  font-size: 64px;
  color: #000000;
  z-index: 2;
  letter-spacing: -1px;
}

.profile-info h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 4px;
}

.profile-info p {
  color: var(--text-secondary);
  font-family: var(--font-subheading);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

[data-theme="light"] .profile-info p {
  color: var(--accent-orange);
}

.profile-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.profile-socials a {
  width: 44px;
  height: 44px;
  border: var(--comic-border-thin);
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  box-shadow: 3px 3px 0px #000;
}

.profile-socials a:hover {
  transform: translate(-2px, -2px);
  background: var(--accent-yellow);
  box-shadow: 5px 5px 0px #000;
}

/* Right side details */
.about-heading {
  font-family: var(--font-subheading);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.3;
  color: var(--accent-orange);
}

[data-theme="light"] .about-heading {
  color: #000000;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 16px;
}

[data-theme="light"] .about-text {
  color: #1c1917;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  text-align: center;
  padding: 24px 12px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 48px;
  color: var(--accent-yellow);
  text-shadow: 2px 2px 0px #000;
}

[data-theme="light"] .stat-number {
  color: var(--accent-orange);
}

.stat-plus {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--text-primary);
}

[data-theme="light"] .stat-plus {
  color: #000;
}

.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

[data-theme="light"] .stat-label {
  color: #000;
}

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

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

.contact-heading {
  font-family: var(--font-subheading);
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
  color: var(--accent-blue);
}

[data-theme="light"] .contact-heading {
  color: #000;
}

.contact-text {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 16px;
}

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

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-blue);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border: var(--comic-border-thin);
  box-shadow: 2px 2px 0px #000;
}

.info-details span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

[data-theme="light"] .info-details span {
  color: var(--text-secondary);
}

.info-details p {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2px;
}

[data-theme="light"] .info-details p {
  color: #000;
}

/* Thor Dog Pun Card Styles */
.thor-dog-card {
  margin-top: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow);
  background: var(--bg-card);
}

.thor-dog-img-wrapper {
  width: 100%;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: var(--comic-border-thin);
}

.thor-dog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.thor-dog-card:hover .thor-dog-img {
  transform: scale(1.05) rotate(-1deg);
}

.pun-title {
  font-family: var(--font-subheading);
  font-weight: 900;
  color: var(--accent-yellow);
  font-size: 18px;
  margin-bottom: 6px;
}

[data-theme="light"] .pun-title {
  color: var(--accent-orange);
}

.pun-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 600;
}

/* SRE Database Incident Meme Card Styles */
.sre-meme-card {
  margin-top: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow);
  background: var(--bg-card);
}

.sre-meme-img-wrapper {
  width: 100%;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: var(--comic-border-thin);
}

.sre-meme-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.sre-meme-card:hover .sre-meme-img {
  transform: scale(1.05) rotate(1deg);
}

.meme-title {
  font-family: var(--font-subheading);
  font-weight: 900;
  color: var(--accent-yellow);
  font-size: 18px;
  margin-bottom: 6px;
}

[data-theme="light"] .meme-title {
  color: var(--accent-orange);
}

.meme-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 600;
}

[data-theme="light"] .pun-text,
[data-theme="light"] .meme-text {
  color: #000;
}

/* Contact Form Container & Form Control Styles */
.contact-form-wrapper {
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  position: relative;
  width: 100%;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 15px;
  border: var(--comic-border-thin);
  box-shadow: inset 2px 2px 0px rgba(0,0,0,0.3);
  transition: border-color var(--transition-speed) ease;
}

[data-theme="light"] .input-group input,
[data-theme="light"] .input-group textarea {
  background: #fafafa;
  color: #000000;
}

.input-group textarea {
  resize: none;
}

/* Floating labels */
.input-group label {
  position: absolute;
  top: 14px;
  left: 12px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  pointer-events: none;
  transition: all var(--transition-speed) ease;
}

[data-theme="light"] .input-group label {
  color: var(--text-secondary);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -20px;
  left: 0;
  font-size: 11px;
  color: var(--accent-yellow);
  text-shadow: 1px 1px 0px #000;
}

[data-theme="light"] .input-group input:focus ~ label,
[data-theme="light"] .input-group input:not(:placeholder-shown) ~ label,
[data-theme="light"] .input-group textarea:focus ~ label,
[data-theme="light"] .input-group textarea:not(:placeholder-shown) ~ label {
  color: var(--accent-orange);
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-yellow);
  box-shadow: 3px 3px 0px #000;
}

[data-theme="light"] .input-group input:focus,
[data-theme="light"] .input-group textarea:focus {
  border-color: var(--accent-orange);
}

/* Validation */
.input-group.invalid input,
.input-group.invalid textarea {
  border-color: var(--accent-red) !important;
}

.input-group.invalid label {
  color: var(--accent-red) !important;
}

.error-msg {
  display: none;
  font-size: 11px;
  color: var(--accent-red);
  font-weight: 800;
  margin-top: 4px;
  position: absolute;
  bottom: -20px;
  left: 0;
}

.input-group.invalid .error-msg {
  display: block;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 22px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form success overlay */
.form-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border: var(--comic-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

[data-theme="light"] .form-status-overlay {
  background: #ffffff;
}

.status-content {
  text-align: center;
  padding: 40px;
  max-width: 320px;
}

.status-icon {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: var(--comic-border-thin);
  background: var(--accent-yellow);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px auto;
  box-shadow: 3px 3px 0px #000;
}

.status-content h3 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin-bottom: 8px;
}

.status-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  font-weight: 600;
}

[data-theme="light"] .status-content p {
  color: #000;
}

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

.footer {
  border-top: var(--comic-border);
  background: var(--bg-secondary);
  padding: 60px 0;
  z-index: 10;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-left p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

[data-theme="light"] .footer-left p {
  color: #000;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
}

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

[data-theme="light"] .footer-links a {
  color: #000;
}
[data-theme="light"] .footer-links a:hover {
  color: var(--accent-orange);
}

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Back to top button */
.btn-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: var(--comic-border-thin);
  background: var(--accent-yellow);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 3px 3px 0px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
  z-index: 99;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0px #000;
}

/* ==========================================================================
   Alarm Overlay (SEV1 Panic System)
   ========================================================================== */

.alarm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(239, 68, 68, 0.95);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flash-red 0.5s infinite alternate;
}

@keyframes flash-red {
  0% { background-color: rgba(239, 68, 68, 0.95); }
  100% { background-color: rgba(127, 29, 29, 0.98); }
}

.alarm-content {
  background: #ffffff;
  border: var(--comic-border);
  box-shadow: 12px 12px 0px #000;
  border-radius: 4px;
  padding: 50px 30px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  color: #000000;
  animation: shake-siren 0.2s infinite;
}

@keyframes shake-siren {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(0px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(2px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.alarm-siren {
  font-size: 80px;
  margin-bottom: 20px;
}

.alarm-title {
  font-family: var(--font-heading);
  font-size: 50px;
  color: var(--accent-red);
  text-shadow: 3px 3px 0px #000;
  margin-bottom: 12px;
}

.alarm-text {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.alarm-meme-text {
  font-family: var(--font-heading);
  font-size: 38px;
  background-color: var(--accent-yellow);
  display: inline-block;
  padding: 6px 20px;
  border: var(--comic-border);
  box-shadow: var(--comic-shadow-sm);
  transform: rotate(-3deg);
  margin-bottom: 36px;
}

/* ==========================================================================
   Scroll Animation Reveals & Delays
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  animation: fade-in 0.6s forwards ease;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: slide-up 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-slide-up-delayed {
  opacity: 0;
  transform: translateY(40px);
  animation: slide-up 0.6s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.15s;
}

.animate-fade-in-delayed {
  opacity: 0;
  animation: fade-in 0.6s forwards ease;
  animation-delay: 0.3s;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes slide-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 1024px) {
  .comic-title {
    font-size: 60px;
  }
  
  .about-grid {
    gap: 40px;
  }
  
  .contact-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: var(--comic-border);
    padding: 100px 40px;
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 18px;
  }
  
  .comic-title {
    font-size: 48px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .stats-grid {
    gap: 16px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .thor-dog-card {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .comic-title {
    font-size: 38px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-actions .btn-comic {
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-right {
    align-items: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
}
