/* Modern Resume Theme CSS */

/* CSS Variables */
:root {
  --primary-color: #0ea5e9;
  --secondary-color: #06b6d4;
  --accent-color: #22d3ee;
  --water-primary: #0ea5e9;
  --water-secondary: #38bdf8;
  --water-accent: #7dd3fc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Dark mode variables */
[data-theme="dark"] {
  --primary-color: #00ff41;
  --secondary-color: #ff0040;
  --accent-color: #00ffff;
  --hacker-green: #00ff41;
  --hacker-red: #ff0040;
  --hacker-cyan: #00ffff;
  --text-primary: #00ff41;
  --text-secondary: #00ff41;
  --text-muted: #008f11;
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --border-color: #00ff41;
}

/* Hacker mode button effects */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] a.btn.btn-primary {
  background: #00ff41 !important;
  color: #000000 !important;
  border: 1px solid #00ff41 !important;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] a.btn.btn-primary:hover {
  background: #00cc33 !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.6) !important;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] a.btn.btn-secondary {
  background: #00ffff !important;
  color: #000000 !important;
  border: 1px solid #00ffff !important;
  text-shadow: 0 0 3px rgba(0, 255, 255, 0.8) !important;
}

[data-theme="dark"] .btn-secondary:hover,
[data-theme="dark"] a.btn.btn-secondary:hover {
  background: #00cccc !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6) !important;
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-outline,
[data-theme="dark"] a.btn.btn-outline {
  background: transparent !important;
  color: #00ffff !important;
  border: 2px solid #00ffff !important;
  text-shadow: 0 0 3px rgba(0, 255, 255, 0.8) !important;
}

[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] a.btn.btn-outline:hover {
  background: #00cccc !important;
  color: #000000 !important;
  border-color: #00cccc !important;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.6) !important;
  transform: translateY(-2px);
}

/* Dark mode button transitions */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .btn-outline {
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover:not(.btn) {
  color: var(--secondary-color);
}

/* Container and layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-sm { padding: 2rem 0; }
.section-lg { padding: 6rem 0; }

/* Grid system */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.md-grid-cols-2 { 
  grid-template-columns: repeat(1, 1fr); 
}
@media (min-width: 768px) {
  .md-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

.lg-grid-cols-3 { 
  grid-template-columns: repeat(1, 1fr); 
}
@media (min-width: 1024px) {
  .lg-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

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

.justify-between {
  justify-content: space-between;
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Header and Navigation */
.header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(var(--bg-primary-rgb), 0.8);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-item {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  border-top: 3px solid var(--primary-color);
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color 0.2s ease;
  border-radius: var(--radius-sm);
}

.nav-dropdown-link:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #7dd3fc 100%);
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

/* Hacker Mode Hero */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #111111 100%);
}

/* Water Flow Effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at top left, rgba(14, 165, 233, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(56, 189, 248, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(125, 211, 252, 0.2) 0%, transparent 60%);
  animation: waterFlow 8s ease-in-out infinite;
}

/* Hacker Mode Digital Effect */
[data-theme="dark"] .hero::before {
  background: 
    radial-gradient(ellipse at top left, rgba(0, 255, 65, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at center, rgba(0, 255, 255, 0.05) 0%, transparent 60%);
  animation: hackerFlow 6s ease-in-out infinite;
}

@keyframes waterFlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-10px) scale(1.02);
    opacity: 0.7;
  }
  75% {
    transform: translateY(-30px) scale(1.08);
    opacity: 0.9;
  }
}

@keyframes hackerFlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
    filter: hue-rotate(0deg);
  }
  25% {
    transform: translateY(-10px) scale(1.02);
    opacity: 0.9;
    filter: hue-rotate(90deg);
  }
  50% {
    transform: translateY(-5px) scale(1.01);
    opacity: 0.7;
    filter: hue-rotate(180deg);
  }
  75% {
    transform: translateY(-15px) scale(1.03);
    opacity: 0.95;
    filter: hue-rotate(270deg);
  }
}

/* Water Wave Animation */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(14, 165, 233, 0.1) 0%, transparent 100%);
  clip-path: polygon(
    0 50%, 
    25% 45%, 
    50% 55%, 
    75% 45%, 
    100% 50%, 
    100% 100%, 
    0 100%
  );
  animation: waveAnimation 6s ease-in-out infinite;
}

/* Hacker Mode Digital Wave */
[data-theme="dark"] .hero::after {
  background: linear-gradient(0deg, rgba(0, 255, 65, 0.1) 0%, transparent 100%);
  animation: hackerWave 4s ease-in-out infinite;
}

@keyframes waveAnimation {
  0%, 100% {
    clip-path: polygon(
      0 50%, 
      25% 45%, 
      50% 55%, 
      75% 45%, 
      100% 50%, 
      100% 100%, 
      0 100%
    );
  }
  50% {
    clip-path: polygon(
      0 45%, 
      25% 55%, 
      50% 45%, 
      75% 55%, 
      100% 45%, 
      100% 100%, 
      0 100%
    );
  }
}

@keyframes hackerWave {
  0%, 100% {
    clip-path: polygon(
      0 30%, 
      20% 70%, 
      40% 40%, 
      60% 60%, 
      80% 30%, 
      100% 50%, 
      100% 100%, 
      0 100%
    );
  }
  50% {
    clip-path: polygon(
      0 60%, 
      20% 30%, 
      40% 70%, 
      60% 40%, 
      80% 60%, 
      100% 30%, 
      100% 100%, 
      0 100%
    );
  }
}

/* Floating Water Bubbles */
.water-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.4) 0%, rgba(125, 211, 252, 0.1) 70%, transparent 100%);
  border-radius: 50%;
  animation: floatBubble 12s ease-in-out infinite;
}

/* Hacker Mode Floating Digits */
[data-theme="dark"] .bubble {
  background: transparent;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  font-weight: bold;
  color: var(--hacker-green);
  text-shadow: 0 0 5px currentColor;
  animation: floatDigit 8s linear infinite;
  border-radius: 0;
}

[data-theme="dark"] .bubble:nth-child(even) {
  color: var(--hacker-red);
}

[data-theme="dark"] .bubble:nth-child(3n) {
  color: var(--hacker-cyan);
}

.bubble:nth-child(1) {
  width: 80px;
  height: 80px;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 10s;
}

.bubble:nth-child(2) {
  width: 60px;
  height: 60px;
  left: 30%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.bubble:nth-child(3) {
  width: 100px;
  height: 100px;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 15s;
}

.bubble:nth-child(4) {
  width: 40px;
  height: 40px;
  left: 70%;
  animation-delay: 6s;
  animation-duration: 8s;
}

.bubble:nth-child(5) {
  width: 70px;
  height: 70px;
  left: 85%;
  animation-delay: 8s;
  animation-duration: 11s;
}

/* Hacker Mode Digit Sizes */
[data-theme="dark"] .bubble:nth-child(1) {
  width: auto;
  height: auto;
  font-size: 16px;
}

[data-theme="dark"] .bubble:nth-child(2) {
  width: auto;
  height: auto;
  font-size: 14px;
}

[data-theme="dark"] .bubble:nth-child(3) {
  width: auto;
  height: auto;
  font-size: 18px;
}

[data-theme="dark"] .bubble:nth-child(4) {
  width: auto;
  height: auto;
  font-size: 12px;
}

[data-theme="dark"] .bubble:nth-child(5) {
  width: auto;
  height: auto;
  font-size: 15px;
}

@keyframes floatBubble {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    transform: translateY(50vh) scale(1);
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) scale(0.3);
    opacity: 0;
  }
}

@keyframes floatDigit {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0;
  }
}

/* Dynamic bubbles */
.dynamic-bubble {
  animation: floatBubble 15s ease-in-out forwards;
}

/* Mouse interaction enhancement */
.hero {
  transition: transform 0.3s ease;
}

.hero:hover::before {
  transform: translateY(calc(-10px + var(--mouse-y, 0) * 20px)) scale(calc(1 + var(--mouse-x, 0) * 0.05));
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--water-primary), var(--water-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(14, 165, 233, 0.3);
}

/* Hacker Mode Title */
[data-theme="dark"] .hero-title {
  background: linear-gradient(45deg, var(--hacker-green), var(--hacker-red), var(--hacker-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
  animation: hackerGlitch 3s ease-in-out infinite;
  font-family: 'Courier New', monospace;
}

@keyframes hackerGlitch {
  0%, 100% {
    text-shadow: 
      0 0 20px rgba(0, 255, 65, 0.5),
      2px 2px 0 rgba(255, 0, 64, 0.3);
  }
  25% {
    text-shadow: 
      -2px -2px 0 rgba(0, 255, 255, 0.3),
      0 0 25px rgba(0, 255, 65, 0.7);
  }
  50% {
    text-shadow: 
      2px -2px 0 rgba(255, 0, 64, 0.4),
      0 0 15px rgba(0, 255, 255, 0.6);
  }
  75% {
    text-shadow: 
      -2px 2px 0 rgba(0, 255, 255, 0.3),
      0 0 30px rgba(0, 255, 65, 0.8);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
}

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

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary,
a.btn.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover,
a.btn.btn-primary:hover {
  background: #2563eb !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
  margin-top: 50px;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.tag {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}

.tag-primary {
  background: var(--primary-color);
  color: white;
}

/* Blog Cards */
.blog-card {
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Skills */
.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-level {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-sm);
  transition: width 1s ease;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1rem;
  margin-top: 6rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  width: 40px;
  height: 40px;
}

.social-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

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

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 1rem;
  font-weight: 500;
}

.form-message--success {
  background-color: #10b981;
  color: white;
  border: 1px solid #059669;
}

.form-message--error {
  background-color: #ef4444;
  color: white;
  border: 1px solid #dc2626;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
}

/* Print styles */
@media print {
  .header,
  .theme-toggle,
  .btn {
    display: none;
  }
  
  .section {
    padding: 1rem 0;
  }
}