@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #0a2540;
  --secondary: #ff8c00;
  --tertiary: #1b8adb;
  --bg-color: #f8fafc;
  --text-main: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Base Layout Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Glassmorphism Classes */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #ff5722);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(255, 140, 0, 0.4);
}

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

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

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 10px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
}

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

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--primary);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9), rgba(27, 138, 219, 0.7)), url('../assets/images/homepage_hero_image.png') center/cover no-repeat;
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeUp 1s ease forwards;
}

.hero h1 {
  color: var(--white);
  font-size: 64px;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

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

/* Section Common */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 40px;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

/* Features/About Snippet */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.img-wrapper {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.img-wrapper img {
  transition: transform 0.5s ease;
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.feature-list {
  margin-top: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(27, 138, 219, 0.1);
  color: var(--tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Projects Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  padding: 32px;
  transition: var(--transition);
  text-align: left;
}

.card:hover {
  transform: translateY(-10px);
}

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.card p {
  color: var(--text-light);
  margin-bottom: 24px;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(10,37,64,0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-overlay h3 {
  color: var(--white);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-info {
  padding: 40px;
}

.contact-detail {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.contact-detail i {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.social-links a {
  width: 48px;
  height: 48px;
  background: var(--bg-color);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-5px);
}

.contact-form {
  padding: 40px;
}

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

.form-control {
  width: 100%;
  padding: 16px 24px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--tertiary);
  box-shadow: 0 0 0 4px rgba(27, 138, 219, 0.1);
}

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

/* Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about p {
  opacity: 0.8;
  margin-top: 20px;
  max-width: 400px;
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

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

/* Page Headers */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, rgba(10, 37, 64, 0.9), rgba(27, 138, 219, 0.8));
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  font-size: 48px;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 20px;
  opacity: 0.9;
}

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

/* Traction Section */
.traction-section {
  background: var(--primary);
  color: var(--white);
  padding: 60px 0;
}

.traction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  text-align: center;
}

.traction-card {
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.traction-card h3 {
  font-size: 48px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.traction-card p {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

/* Donate Section */
.donate-section {
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.1), rgba(27, 138, 219, 0.1));
}

.donate-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
}

.donate-container h2 {
  font-size: 36px;
  margin-bottom: 24px;
}

.donate-container p {
  font-size: 18px;
  margin-bottom: 32px;
  color: var(--text-main);
}

.donate-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Animated Text */
.animated-text {
  display: inline-block;
  transition: opacity 0.5s ease;
}

.hero-subtext {
  transition: opacity 0.5s ease;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 48px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    color: var(--primary);
    font-size: 20px;
  }
  
  .mobile-toggle {
    display: block;
    z-index: 1001;
  }
  
  .hero h1 {
    font-size: 36px;
  }
}
