/* ===== DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Merriweather:wght@400;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Light Theme */
  --bg-primary: #F8F9FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #F0F1F3;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-tertiary: #7a7a7a;
  --accent-primary: #2D5016;
  --accent-secondary: #8B6F47;
  --accent-gold: #D4A574;
  --accent-bright: #7FD956;
  --border-color: #e0e0e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #0F1419;
  --bg-secondary: #1A2029;
  --bg-tertiary: #252D38;
  --text-primary: #F5F5F5;
  --text-secondary: #E0E0E0;
  --text-tertiary: #B0B0B0;
  --accent-primary: #7FD956;
  --accent-secondary: #C4A577;
  --accent-gold: #FFB84D;
  --accent-bright: #A8E63D;
  --border-color: #3a4451;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.5);
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
}

h4, h5, h6 {
  font-size: 1.1rem;
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-bright);
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all var(--transition);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

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

.theme-toggle, .lang-switch {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition);
  font-weight: 600;
}

.theme-toggle:hover, .lang-switch:hover {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 80px;
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== BENTO GRID SYSTEM ===== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.bento-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.bento-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.bento-item-1x1 { grid-column: span 3; }
.bento-item-2x1 { grid-column: span 6; }
.bento-item-1x2 { grid-column: span 3; grid-row: span 2; }
.bento-item-2x2 { grid-column: span 6; grid-row: span 2; }
.bento-item-full { grid-column: span 12; }

/* Glassmorphism effect */
.bento-glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

[data-theme="dark"] .bento-glass {
  background: rgba(26, 32, 41, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ===== HERO SECTION ===== */
.hero {
  grid-column: span 12;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  padding: 4rem;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

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

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

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

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

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

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

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

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== SECTION SPACING ===== */
.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  transition: all var(--transition);
}

footer a {
  color: var(--accent-gold);
}

footer a:hover {
  color: var(--accent-bright);
}

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

.footer-section h4 {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

/* Stagger animation delay */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .bento-item-1x1 { grid-column: span 4; }
  .bento-item-2x1 { grid-column: span 8; }
  .bento-item-2x2 { grid-column: span 8; }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .navbar-container {
    padding: 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-toggle {
    display: block;
  }

  .header-controls {
    gap: 0.5rem;
  }

  .theme-toggle, .lang-switch {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }

  main {
    padding-top: 60px;
  }

  .bento-grid {
    gap: 1rem;
    margin: 2rem 0;
  }

  .bento-item {
    grid-column: span 12 !important;
    grid-row: auto !important;
    padding: 1.5rem;
  }

  .hero {
    min-height: 300px;
    padding: 2rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 0;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .navbar-container {
    flex-wrap: wrap;
  }

  .header-controls {
    flex-wrap: wrap;
    width: 100%;
    gap: 0.5rem;
    justify-content: flex-start;
  }

  .theme-toggle, .lang-switch {
    flex: 1;
    min-width: 45%;
  }

  .bento-grid {
    gap: 0.75rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }

  .btn-large {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1rem; }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-3 { margin-top: 3rem; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.p-3 { padding: 3rem; }
.p-2 { padding: 2rem; }
.p-1 { padding: 1rem; }

/* ===== 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-width: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

button:focus, a:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}
