/* ==========================================================================
   TenMinuteTimer.com - Main Stylesheet
   ========================================================================== */

/* Import Outfit and Inter Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Variables for Design System */
:root {
  /* Dark Theme Variables (Default) */
  --bg-primary: #070913;
  --bg-secondary: #0f132a;
  --bg-glass: rgba(15, 19, 42, 0.65);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.16);
  --shadow-glass: 0 16px 40px 0 rgba(0, 0, 0, 0.4);
  
  --text-primary: #f3f4f6;
  --text-secondary: #a5b4fc;
  --text-muted: #64748b;
  
  --color-primary: #8b5cf6;
  --color-primary-rgb: 139, 92, 246;
  --color-secondary: #06b6d4;
  --color-secondary-rgb: 6, 182, 212;
  --color-accent: #f43f5e;
  
  --gradient-primary: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-bg: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #070913 70%);
  --glow-primary: 0 0 30px rgba(139, 92, 246, 0.35);
  --glow-secondary: 0 0 30px rgba(6, 182, 212, 0.35);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1100px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

[data-theme="light"] {
  /* Light Theme Variables */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-glass-hover: rgba(15, 23, 42, 0.15);
  --shadow-glass: 0 16px 40px 0 rgba(15, 23, 42, 0.06);
  
  --text-primary: #0f172a;
  --text-secondary: #4f46e5;
  --text-muted: #94a3b8;
  
  --color-primary: #6366f1;
  --color-primary-rgb: 99, 102, 241;
  --color-secondary: #0ea5e9;
  --color-secondary-rgb: 14, 165, 233;
  --color-accent: #f43f5e;
  
  --gradient-primary: linear-gradient(135deg, #6366f1, #0ea5e9);
  --gradient-bg: radial-gradient(circle at 50% 30%, #e0e7ff 0%, #f8fafc 75%);
  --glow-primary: 0 0 25px rgba(99, 102, 241, 0.15);
  --glow-secondary: 0 0 25px rgba(14, 165, 233, 0.15);
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  background-image: var(--gradient-bg);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass-hover);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  transition: background var(--transition-normal), border var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.8;
  position: relative;
  padding: 0.25rem 0;
}

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

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

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

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

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--border-glass);
  border-color: var(--border-glass-hover);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hamburger Menu */
.menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.25rem;
}

.menu-btn svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Main Layout Container
   ========================================================================== */
main {
  flex: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem 1.5rem;
}

/* ==========================================================================
   Timer Section (Hero)
   ========================================================================== */
.timer-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
}

.timer-card {
  width: 100%;
  max-width: 580px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: border var(--transition-normal), box-shadow var(--transition-normal);
}

.timer-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.timer-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

/* SVG Progress Timer */
.timer-display-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  z-index: 1;
}

.timer-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: var(--border-glass);
  stroke-width: 6px;
}

.timer-ring-progress {
  fill: none;
  stroke: url(#timer-gradient);
  stroke-width: 8px;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

.timer-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-digits {
  font-family: 'Outfit', sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--text-primary);
  -webkit-background-clip: text;
  color: var(--text-primary);
  transition: color var(--transition-normal);
  text-shadow: var(--glow-primary);
}

.timer-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  opacity: 0.85;
}

/* Main Controls */
.timer-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  z-index: 1;
}

.control-btn {
  background: var(--border-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border-radius: 50%;
}

.control-btn:hover {
  background: var(--border-glass-hover);
  border-color: var(--text-muted);
}

.control-btn svg {
  fill: currentColor;
}

.btn-play-pause {
  width: 72px;
  height: 72px;
  background: var(--gradient-primary);
  border: none;
  color: #ffffff;
  box-shadow: var(--glow-primary);
}

.btn-play-pause:hover {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.5);
  background: var(--gradient-primary);
}

.btn-play-pause svg {
  width: 28px;
  height: 28px;
}

.btn-reset {
  width: 52px;
  height: 52px;
}

.btn-reset svg {
  width: 20px;
  height: 20px;
}

/* Panel Toggles (Settings & Custom) */
.settings-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  z-index: 1;
}

.settings-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-row label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.settings-control-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Custom Select Dropdowns */
.select-wrapper {
  position: relative;
  flex: 1;
}

.select-wrapper select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all var(--transition-fast);
}

.select-wrapper select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.select-wrapper::after {
  content: '\25BC';
  font-size: 0.65rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.btn-icon-action {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon-action:hover {
  background: var(--border-glass);
  border-color: var(--color-secondary);
}

.btn-icon-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Volume Slider */
.volume-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 0.5rem 1rem;
  flex: 1;
}

.volume-control svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  flex-shrink: 0;
}

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border-glass-hover);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--color-secondary);
  cursor: pointer;
  transition: transform var(--transition-fast);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

/* Presets Bar */
.presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 1rem;
  z-index: 1;
}

.preset-btn {
  flex: 1 1 calc(33.333% - 0.5rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.preset-btn:hover {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.preset-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--glow-primary);
}

/* Custom Drawer */
.custom-drawer {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
}

.custom-drawer.open {
  max-height: 150px;
}

.custom-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.custom-input-group input {
  width: 50px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  outline: none;
}

.custom-input-group input::-webkit-outer-spin-button,
.custom-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.custom-input-group input[type=number] {
  -moz-appearance: textfield;
}

.custom-input-group span {
  font-weight: 600;
  color: var(--text-muted);
}

.btn-custom-start {
  background: var(--color-secondary);
  border: none;
  color: #ffffff;
  font-family: inherit;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  margin-left: auto;
  transition: all var(--transition-fast);
  box-shadow: var(--glow-secondary);
}

.btn-custom-start:hover {
  background: #0891b2;
  transform: translateY(-1px);
}

/* Visual Pulse Alarm Overlay */
.timer-pulse-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(244, 63, 94, 0.15);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  transition: opacity var(--transition-fast);
}

.timer-card.alarm-active .timer-pulse-overlay {
  animation: pulseAlarm 1s infinite alternate;
}

.timer-card.alarm-active .timer-digits {
  animation: jitter 0.2s infinite alternate;
  color: var(--color-accent) !important;
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
}

/* ==========================================================================
   SEO Content & Text Layout
   ========================================================================== */
.seo-section {
  max-width: 800px;
  margin: 0 auto;
}

.seo-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-glass);
  margin-bottom: 2.5rem;
}

.seo-card h1 {
  font-size: 2.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.seo-card h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.seo-card p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.seo-card p strong {
  color: var(--text-primary);
}

.seo-card ul, .seo-card ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.seo-card li {
  margin-bottom: 0.5rem;
}

/* Grid layout for columns */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  transition: transform var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.feature-box h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.feature-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* FAQ Accordion */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-glass);
  padding: 1.25rem 0;
}

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  padding: 0.5rem 0;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 2.5;
  transition: transform var(--transition-normal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) cubic-bezier(0, 1, 0, 1), padding var(--transition-normal);
  padding-right: 1.5rem;
}

.faq-answer p {
  padding-top: 0.75rem;
  font-size: 1rem;
  margin-bottom: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  stroke: var(--color-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height var(--transition-normal) cubic-bezier(1, 0, 1, 0);
}

/* ==========================================================================
   Standard Forms (Contact Us)
   ========================================================================== */
.form-card {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.25);
}

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

.btn-submit {
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  width: 100%;
  transition: all var(--transition-fast);
  box-shadow: var(--glow-primary);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.45);
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  display: none;
}

.form-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgb(16, 185, 129);
  color: #10b981;
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-glass);
  padding: 3rem 1.5rem;
  margin-top: auto;
  transition: background var(--transition-normal), border var(--transition-normal);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 300px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulseAlarm {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

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

/* ==========================================================================
   Responsive Helper Styles
   ========================================================================== */
.logo-text-mobile {
  display: none;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 15, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Language Switcher Dropdown */
.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.language-switcher select {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1.4rem 0.45rem 0.6rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all var(--transition-fast);
}

.language-switcher select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.language-switcher::after {
  content: '\25BC';
  font-size: 0.5rem;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

/* ==========================================================================
   Media Queries & Responsive Styling
   ========================================================================== */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
    z-index: 101;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-glass);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transition: right var(--transition-normal);
    z-index: 100;
  }
  
  .nav-links.open {
    right: 0;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
  }
  
  .nav-actions {
    margin-right: 1rem;
  }
  
  .timer-card {
    padding: 2.5rem 1.5rem;
  }
  
  .timer-display-wrapper {
    width: 240px;
    height: 240px;
  }
  
  .timer-digits {
    font-size: 3.75rem;
  }
  
  .seo-card {
    padding: 2rem 1.25rem;
  }
  
  .seo-card h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .settings-dropdowns-group {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  main {
    padding: 1rem 0.75rem 3rem 0.75rem;
  }
  
  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .logo-text-desktop {
    display: none;
  }
  
  .logo-text-mobile {
    display: inline;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .timer-card {
    padding: 1.75rem 1rem;
  }
  
  .timer-display-wrapper {
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem;
  }
  
  .timer-digits {
    font-size: 3.15rem;
  }
  
  .presets-grid {
    margin-top: 0.75rem;
  }
  
  .preset-btn {
    padding: 0.6rem 0.3rem;
    font-size: 0.85rem;
  }
  
  .custom-input-group {
    padding: 0.5rem 0.75rem;
  }
  
  .custom-input-group input {
    width: 42px;
    font-size: 1.1rem;
  }
  
  .btn-custom-start {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .seo-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .seo-card h1 {
    font-size: 1.45rem;
  }
  
  .seo-card h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .seo-card p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

