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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Hide radio buttons */
input[name="theme"] {
  display: none;
}

/* Theme Switcher Styles */
.theme-switcher {
  position: fixed;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 10px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 5px;
  z-index: 1000;
}

.theme-switcher label {
  cursor: pointer;
  padding: 5px 10px;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.theme-switcher label:hover {
  background: #e0e0e0;
}

/* Style active theme labels */
#t-complementary:checked ~ .theme-switcher label[for="t-complementary"],
#t-analogous:checked ~ .theme-switcher label[for="t-analogous"],
#t-custom:checked ~ .theme-switcher label[for="t-custom"] {
  background: #333;
  color: white;
  border-color: #333;
}

/* Default Theme Variables */
.page {
  /* Fixed Elements */
  --text: #333333;
  --shadow: rgba(0, 0, 0, 0.1);
  
  /* Theme Colors - Default (Complementary) */
  --bg: #fff9f4;
  --surface: #ffffff;
  --primary: #3b63ff;
  --accent: #ff8c3b;
  --card1-bg: #e6f2ff; /* Light blue tint */
  --card2-bg: #fff2e6; /* Light orange tint */
  --card3-bg: #f0f8ff; /* Very light blue */
  --gradient-start: #3b63ff;
  --gradient-end: #ff8c3b;
  --shadow: rgba(255, 255, 255, 0.2); /* Light shadow for dark theme */

}

/* 
 * COMPLEMENTARY THEME - Soft Blue & Warm Orange
 * 
 * Theory: Complementary colors are opposite on the color wheel (180° apart)
 * Effect: Creates pleasant contrast without overwhelming the viewer
 * Psychology: Professional, balanced, approachable yet dynamic
 * Use case: Corporate websites, educational platforms, professional services
 */
#t-complementary:checked ~ .page {
  --bg: #f8faff;        /* Very light blue - Soft, professional foundation */
  --text: #2c3e50;      /* Dark blue-gray - Easy on eyes, professional */
  --surface: #ffffff;   /* Pure white - Clean, neutral surface */
  --primary: #3498db;   /* Soft blue - Friendly, trustworthy primary */
  --accent: #e67e22;    /* Warm orange - Complementary but not aggressive */
  --card1-bg: #ebf3fd;  /* Light blue tint - Subtle, harmonious */
  --card2-bg: #fdf2e9;  /* Light orange tint - Warm but gentle */
  --card3-bg: #e8f4f8;  /* Very light blue - Soft variation */
  --gradient-start: #3498db; /* Soft blue start - Gentle transition */
  --gradient-end: #e67e22;   /* Warm orange end - Balanced flow */
}

/* 
 * ANALOGOUS THEME - Green, Yellow-Green & Blue-Green
 * 
 * Theory: Analogous colors are adjacent on the color wheel (30-60° apart)
 * Effect: Creates harmony, unity, and natural flow
 * Psychology: Calming, natural, balanced, trustworthy
 * Use case: Environmental brands, health/wellness, financial services
 */
#t-analogous:checked ~ .page {
  --bg: #0d2818;        /* Deep forest - Rich, natural dark foundation */
  --text: #ffffff;      /* Pure white - Clean contrast against dark greens */
  --surface: #1a3d2e;   /* Dark green - Harmonious surface, slightly lighter */
  --primary: #00cc66;   /* Vibrant green - Pure green, nature's primary */
  --accent: #66ff99;    /* Light yellow-green - Warm green, spring-like */
  --card1-bg: #0e5c3a;  /* Forest green - Deep, stable, earthy tone */
  --card2-bg: #1f7a4d;  /* Yellow-green - Warmer green, growth and vitality */
  --card3-bg: #2a6b5c;  /* Blue-green (teal) - Cool green, water and tranquility */
  --gradient-start: #00cc66; /* Green start - Natural progression */
  --gradient-end: #66ff99;   /* Light green end - Gentle, harmonious flow */
}

/* 
 * STUDENT THEME - Your Custom Design
 * 
 * Instructions: This is your canvas! Choose your own color theory:
 * 
 * TRIADIC: Use 3 colors equally spaced on color wheel (120° apart)
 *   Example: Red (#ff0000), Yellow (#ffff00), Blue (#0000ff)
 *   Effect: Vibrant, balanced, playful
 * 
 * MONOCHROMATIC: Use different shades/tints of one color
 *   Example: Light blue (#add8e6), Blue (#0000ff), Dark blue (#000080)
 *   Effect: Sophisticated, cohesive, elegant
 * 
 * SPLIT-COMPLEMENTARY: One color + two colors adjacent to its complement
 *   Example: Blue (#0000ff), Yellow-orange (#ffaa00), Red-orange (#ff4400)
 *   Effect: High contrast but more subtle than complementary
 * 
 * Tips:
 * - Consider color psychology (warm = energetic, cool = calming)
 * - Ensure sufficient contrast for readability
 * - Test your colors in different lighting conditions
 * - Think about your target audience and brand message
 */
#t-custom:checked ~ .page {
  --bg: #77bbdd;        /* Background - Sets the overall mood and foundation */
  --text: #3181a8;      /* Text - Keep dark for readability on light backgrounds */
  --surface: #a4d6ef;   /* Surface - Cards and panels, should complement bg */
  --primary: #ff9d83;   /* Primary - Your main brand/theme color */
  --accent: #ffdd83;    /* Accent - Highlights, buttons, important elements */
  --card1-bg: #d9f0fb;  /* Card 1 - First section background */
  --card2-bg: #ffe2da;  /* Card 2 - Second section background */
  --card3-bg: #fff5da;  /* Card 3 - Third section background */
  --gradient-start: #ff9d83; /* Gradient start - Beginning of color transition */
  --gradient-end: #ffdd83;   /* Gradient end - End of color transition */
  --shadow: rgba(0, 0, 0, 0.2);
}

/* Apply Variables Across Components */
.page {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 0;
}

header {
  text-align: center;
  padding: 50px 40px;
  margin-bottom: 0;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: var(--primary);
  text-shadow: 2px 2px 4px var(--shadow);
}

.subtitle {
  font-size: 1.2em;
  color: var(--accent);
  font-style: italic;
  text-shadow: 2px 2px 2px var(--shadow);
}

/* Card Container Layout */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

/* Page Cards */
.page-card {
  width: 100%;
  min-height: 100vh;
  border-radius: 0;
  padding: 60px 40px;
  box-shadow: none;
  transition: all 0.3s ease;
  border: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-card:hover {
  transform: none;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.home-card {
  background: var(--card1-bg);
}

.about-card {
  background: var(--card2-bg);
}

.contact-card {
  background: var(--card3-bg);
}

/* Card Headers */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--primary);
}

.card-header h2 {
  color: var(--primary);
  font-size: 2em;
  margin: 0;
  text-shadow: 1px 1px 3px var(--shadow);
}

/* Card Content Layout */
.card-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.card-content > p {
  grid-column: 1 / -1;
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

/* Color Indicators */
.color-indicator {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.primary-indicator {
  background: var(--primary);
}

.accent-indicator {
  background: var(--accent);
}

.surface-indicator {
  background: var(--surface);
  border-color: var(--text);
}

/* Feature Boxes */
.feature-box {
  background: var(--surface);
  padding: 20px;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.accent-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--card2-bg) 100%);
  border-left: 4px solid var(--accent);
}

/* Buttons */
.btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 5px;
  display: inline-block;
}

.btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

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

.secondary-btn {
  background: var(--accent);
}

.form-btn {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  width: 100%;
}

/* Color Palette Display */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
  padding: 20px;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
  justify-content: center;
  align-items: flex-end;
}

.color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.1);
}

.color-label {
  font-size: 0.75em;
  font-family: 'Courier New', monospace;
  color: var(--text);
  font-weight: bold;
  text-align: center;
}

.palette-separator {
  width: 2px;
  height: 60px;
  background: var(--text);
  opacity: 0.3;
  margin: 0 5px;
  border-radius: 2px;
}

.bg-color { background: var(--bg); }
.text-color { background: var(--text); }
.surface-color { background: var(--surface); }
.primary-color { background: var(--primary); }
.accent-color { background: var(--accent); }
.card1-color { background: var(--card1-bg); }
.card2-color { background: var(--card2-bg); }
.card3-color { background: var(--card3-bg); }

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  animation: fillProgress 2s ease-in-out;
}

@keyframes fillProgress {
  from { width: 0%; }
  to { width: 75%; }
}

/* Tags */
.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.tag {
  background: var(--accent);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
}

/* Gradient Demo */
.gradient-demo {
  height: 60px;
  background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Form Styles */
.demo-form {
  background: var(--surface);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

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

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.info-item {
  background: var(--surface);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  margin-top: 0;
  padding: 40px;
  border-top: none;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.theme-info {
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-container {
    gap: 0;
    padding: 0;
  }
  
  .page-card {
    padding: 40px 20px;
    border-radius: 0;
    min-height: 100vh;
  }
  
  header {
    padding: 40px 20px;
    min-height: 100vh;
  }
  
  footer {
    padding: 30px 20px;
    min-height: 100vh;
  }
  
  .card-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .card-header h2 {
    font-size: 1.5em;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  header h1 {
    font-size: 2em;
  }
  
  .color-palette {
    gap: 10px;
    padding: 15px;
  }
  
  .color-swatch {
    width: 35px;
    height: 35px;
  }
}