/* Dreamz Foundation - Navy Blue, Golden, Grey Theme */

:root {
  /* Color Palette - Navy Blue, Light Golden, Grey Shades */
  --grey-50: #fafafa;
  --grey-100: #f5f5f5;
  --grey-200: #eeeeee;
  --grey-300: #e0e0e0;
  --grey-400: #bdbdbd;
  --grey-500: #9e9e9e;
  --grey-600: #757575;
  --grey-700: #616161;
  --grey-800: #424242;
  --grey-900: #212121;
  
  --navy-50: #e8eaf6;
  --navy-100: #c5cae9;
  --navy-200: #9fa8da;
  --navy-300: #7986cb;
  --navy-400: #5c6bc0;
  --navy-500: #3f51b5;
  --navy-600: #3949ab;
  --navy-700: #303f9f;
  --navy-800: #283593;
  --navy-900: #1a237e;
  
  /* Light Golden Shades */
  --gold-50: #fffbf0;
  --gold-100: #fef7e0;
  --gold-200: #fdefc2;
  --gold-300: #fce6a3;
  --gold-400: #fbde85;
  --gold-500: #f9d56e;
  --gold-600: #f0c867;
  --gold-700: #e6b85e;
  --gold-800: #dca856;
  --gold-900: #c99446;
  
  /* Theme Colors */
  --bg-primary: #f7f7f7;
  --bg-secondary: #f0f2f5;
  --bg-card: #fafafa;
  --text-primary: var(--grey-900);
  --text-secondary: var(--grey-700);
  --text-muted: var(--grey-600);
  --border-color: var(--grey-300);
  --shadow-color: rgba(0, 0, 0, 0.08);
  --accent-gold: var(--gold-600);
  --accent-navy: var(--navy-700);
  --nav-bg: #ffffff;
  --hero-overlay: rgba(30, 63, 159, 0.7);
}

body.dark-mode {
  --bg-primary: var(--grey-900);
  --bg-secondary: var(--grey-800);
  --bg-card: var(--grey-800);
  --text-primary: #ffffff;
  --text-secondary: var(--grey-300);
  --text-muted: var(--grey-400);
  --border-color: var(--grey-700);
  --shadow-color: rgba(0, 0, 0, 0.3);
  --accent-gold: var(--gold-500);
  --accent-navy: var(--navy-300);
  --nav-bg: var(--grey-900);
  --hero-overlay: rgba(26, 29, 32, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.3s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  box-shadow: 0 2px 4px var(--shadow-color);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  max-width: 100%;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: nowrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo img {
  height: 50px;
  width: 50px;
  border-radius: 8px;
  object-fit: contain;
  padding: 4px;
  background: white;
  border: 2px solid var(--grey-200);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-navy);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.nav-logo-tagline {
  font-size: 0.7rem;
  color: var(--text-secondary);
  white-space: nowrap;
  font-weight: 400;
  display: none;
}

@media (min-width: 1200px) {
  .nav-logo-tagline {
    display: block;
  }
}

.nav-menu {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--grey-200);
  color: var(--accent-navy);
}

.dark-mode .nav-menu a:hover,
.dark-mode .nav-menu a.active {
  background: var(--grey-700);
  color: var(--accent-gold);
}

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

.btn-donate {
  background: var(--accent-gold);
  color: var(--grey-900);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.btn-donate:hover {
  background: var(--gold-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.theme-toggle {
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: var(--grey-300);
}

.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  font-size: 1.5rem;
}

/* Hero with Navy Blue Overlay */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 4rem 2rem;
  animation: fadeInUp 1s;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold-300);
  margin-bottom: 2rem;
}

/* Video Section */
.video-section {
  background: var(--bg-secondary);
  padding: 5rem 0;
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow-color);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--grey-900);
  box-shadow: 0 4px 14px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
  background: var(--gold-700);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--accent-navy);
  border: 2px solid white;
}

.btn-secondary:hover {
  background: transparent;
  color: white;
}

.btn-outline {
  border: 2px solid var(--accent-navy);
  color: var(--accent-navy);
}

.btn-outline:hover {
  background: var(--accent-navy);
  color: white;
}

/* Sections */
section { padding: 5rem 0; }

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

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-navy);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-navy), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grids */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

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

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-color);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gold-100);
  color: var(--gold-900);
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-navy);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1rem;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: all 0.3s;
}

.stat-card:hover { transform: scale(1.05); }

.stat-icon { font-size: 3rem; margin-bottom: 1rem; }
.stat-number { font-size: 2.5rem; font-weight: bold; color: var(--accent-gold); margin-bottom: 0.5rem; }
.stat-label { font-size: 1.125rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; }
.stat-description { font-size: 0.875rem; color: var(--text-secondary); }

/* Newsletter Table */
.newsletter-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow-color);
  margin-top: 2rem;
}

.newsletter-table thead {
  background: var(--accent-navy);
  color: white;
}

.newsletter-table th,
.newsletter-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.newsletter-table tbody tr:hover {
  background: var(--bg-secondary);
}

.newsletter-table a {
  color: var(--accent-navy);
  text-decoration: underline;
}

.newsletter-table a:hover {
  color: var(--accent-gold);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); }

/* Blog Content */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.blog-content h2 {
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.blog-content p { margin-bottom: 1.5rem; }
.blog-content ul { margin-bottom: 1.5rem; padding-left: 2rem; }

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-excerpt {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* Forms */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s;
}

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

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

/* Footer */
.footer {
  background: var(--grey-900);
  color: white;
  padding: 3rem 0 1rem;
}

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

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--gold-400);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  height: 40px;
  width: 40px;
  border-radius: 6px;
  object-fit: contain;
  background: white;
  padding: 3px;
}

.footer-tagline {
  color: var(--gold-300) !important;
  font-style: italic;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { opacity: 0.9; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--gold-400); }

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grey-700);
  transition: all 0.3s;
  position: relative;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: transform 0.3s;
}

.social-icon:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(240, 200, 103, 0.4);
}

.social-icon:hover svg {
  transform: scale(1.1);
}

.social-icon .tooltip {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grey-800);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.social-icon:hover .tooltip { opacity: 1; }

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

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--navy-800), var(--gold-600));
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.cta-title { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-description { font-size: 1.25rem; margin-bottom: 2rem; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.8s; }
.animate-fade-in-up { animation: fadeInUp 0.8s; }

/* Utilities */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
  .nav-menu { gap: 0.5rem; }
  .nav-menu a { 
    padding: 0.4rem 0.6rem; 
    font-size: 0.875rem;
  }
  .btn-donate {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 1rem;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 6px var(--shadow-color);
    gap: 0.5rem;
    z-index: 999;
  }
  
  .nav-menu a {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
  }
  
  .nav-menu.active { display: flex; }
  .mobile-menu-toggle { display: block; }
  
  .hero {
    min-height: 500px;
    padding: 2rem 0;
  }
  
  .hero h1 { 
    font-size: 2rem; 
    line-height: 1.3;
  }
  
  .hero p { 
    font-size: 1rem; 
    margin-bottom: 1.5rem;
  }
  
  .hero-tagline {
    font-size: 1.25rem;
  }
  
  .hero-content {
    padding: 2rem 1rem;
  }
  
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 1rem; }
  
  section { padding: 3rem 0; }
  
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-content { grid-template-columns: 1fr; }
  
  .newsletter-table { font-size: 0.875rem; }
  .newsletter-table th, .newsletter-table td { padding: 0.5rem; }
  
  .nav-logo img {
    height: 40px;
    width: 40px;
  }
  
  .nav-logo-title { font-size: 1.25rem; }
  .nav-logo-tagline { display: none; }
  
  .stat-number { font-size: 2rem; }
  .stat-label { font-size: 1rem; }
  
  .card {
    padding: 1.5rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .cta-title { font-size: 1.75rem; }
  .cta-description { font-size: 1rem; }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .section-title { font-size: 1.5rem; }
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  .footer-logo {
    height: 32px;
    width: 32px;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--grey-200); }
.dark-mode ::-webkit-scrollbar-track { background: var(--grey-800); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

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