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

/* Light theme variables */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 12px;
  --max-width: 800px;
}

/* Dark theme variables */
[data-theme="dark"] {
  --primary-color: #e8f4f8;
  --secondary-color: #5dade2;
  --accent-color: #ec7063;
  --text-color: #e8f4f8;
  --light-bg: #1a1a1a;
  --card-bg: #2d2d2d;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
  background: linear-gradient(135deg, var(--light-bg) 0%, #0f0f0f 100%);
}

header {
  padding: 2rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  transition: background 0.3s ease;
}

.header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.title-section {
  text-align: left;
}

.title-section h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.title-section p {
  font-size: 1.1rem;
  font-weight: 300;
  opacity: 0.9;
  margin: 0;
}

.header-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  width: 100px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lang-toggle .en-flag {
  color: var(--text-color);
  opacity: 0.7;
}

.lang-toggle .ta-flag {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 1rem;
}

.lang-toggle .hi-flag {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.8rem;
}

[data-lang="en"] .lang-toggle .en-flag {
  opacity: 1;
  color: var(--accent-color);
}

[data-lang="ta"] .lang-toggle .ta-flag {
  opacity: 1;
  color: var(--accent-color);
}

[data-lang="hi"] .lang-toggle .hi-flag {
  opacity: 1;
  color: var(--accent-color);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
}

/* Emoji styling */
section h2 {
  transition: transform 0.3s ease;
}

section h2:hover {
  transform: translateY(-2px);
}

/* Enhanced card styling with emojis */
.thought-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.thought-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.thought-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thought-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.thought-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.thought-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thought-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.thought-card p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.thought-card strong {
  color: var(--secondary-color);
  font-weight: 600;
}

.reflection {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--secondary-color);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-left-color 0.3s ease;
}

.reflection:hover {
  transform: translateY(-3px);
}

.reflection h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.reflection p {
  font-size: 1.1rem;
  line-height: 1.7;
}

#fear {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, color 0.3s ease;
}

#fear h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

#fear h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  border-radius: 2px;
}

#fear p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

#future {
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, color 0.3s ease;
}

#future p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--primary-color);
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 2rem auto;
  max-width: 500px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: var(--accent-color);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

/* Emoji animations */
@keyframes emojiFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

section h2 .emoji {
  display: inline-block;
  animation: emojiFloat 3s ease-in-out infinite;
  margin-left: 0.5rem;
}

.thought-card h3 .emoji {
  display: inline-block;
  animation: emojiFloat 2s ease-in-out infinite;
  margin-right: 0.3rem;
}

/* Enhanced contact section */
.contact-section {
  text-align: center;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 3rem 2rem;
  margin: 4rem auto;
  max-width: 600px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.contact-section:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
}

.contact-section h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
  border-radius: 2px;
}

.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.8;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-link i {
  font-size: 1.2rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--card-bg);
  color: var(--text-color);
  margin-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
}

/* Responsive design */
@media (max-width: 768px) {
  header {
    padding: 1.5rem;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .title-section {
    text-align: center;
  }

  .title-section h1 {
    font-size: 2.2rem;
  }

  .title-section p {
    font-size: 1rem;
  }

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

  .lang-toggle {
    width: 70px;
    height: 35px;
    font-size: 0.8rem;
  }

  .theme-toggle {
    align-self: center;
  }

  #fear {
    padding: 1.5rem;
  }

  #fear h2 {
    font-size: 1.8rem;
  }

  .contact-section {
    padding: 2rem 1.5rem;
    margin: 3rem auto;
  }

  .contact-section h2 {
    font-size: 1.8rem;
  }

  .contact-link {
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
  }

  main {
    padding: 0 1rem 3rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .thought-card,
  .reflection {
    padding: 1.5rem;
  }

  .thought-card h3,
  .reflection h3 {
    font-size: 1.4rem;
  }

  #future {
    padding: 2rem 1.5rem;
  }

  blockquote {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .title-section h1 {
    font-size: 1.8rem;
  }

  #fear {
    padding: 1rem;
  }

  #fear h2 {
    font-size: 1.5rem;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .lang-toggle {
    width: 60px;
    height: 32px;
    font-size: 0.7rem;
  }

  .contact-section {
    padding: 1.5rem 1rem;
    margin: 2rem auto;
  }

  .contact-section h2 {
    font-size: 1.5rem;
  }

  .contact-link {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 0.3rem;
  }

  section h2 {
    font-size: 1.6rem;
  }

  .thought-card,
  .reflection {
    padding: 1rem;
  }

  .thought-card h3,
  .reflection h3 {
    font-size: 1.2rem;
  }
}

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

/* Focus styles for accessibility */
.thought-card:focus,
.reflection:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Proof image styling */
.proof-image {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.proof-image:hover {
  transform: translateY(-3px);
}

.creation-proof {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.creation-proof:hover {
  transform: scale(1.02);
}

.image-caption {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  font-style: italic;
  margin: 0;
}

[data-theme="dark"] .image-caption {
  opacity: 0.7;
}

/* Responsive image styling */
@media (max-width: 768px) {
  .proof-image {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .creation-proof {
    max-width: 90%;
  }

  .image-caption {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .proof-image {
    padding: 0.8rem;
    margin: 1rem 0;
  }

  .creation-proof {
    max-width: 95%;
  }
}
