:root {
  --primary-color: #4a90e2;
  --secondary-color: #f5c842;
  --success-color: #5cb85c;
  --info-color: #5bc0de;
  --warning-color: #f5c842;
  --danger-color: #d9534f;
  --light-color: #fafbfc;
  --dark-color: #2c3e50;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-muted: #8e9aaf;
}

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

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-weight: 400;
}

/* Nav */
.navbar {
  transition: all 0.3s ease;
  padding: 1.25rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.lang-select {
  background-color: #ffc107; 
  color: #000;
  border: none;
  padding: 14px 30px;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  appearance: none; 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6h-12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
}
.options{
  border: none;
  font-weight: 700;
}

.lang-select:hover {
  background-color: #e0a800;
}
@media (max-width: 768px) {
  .lang-wrapper {
    margin-left: 0 !important; 
    padding-left: 0 !important;
  }
}

.navbar-brand {
  font-size: 2rem;
  font-weight: 700;
  font-variant: small-caps;
  transition: transform 0.3s ease;
  color: var(--primary-color) !important;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.75rem 1rem !important;
  color: var(--text-primary) !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.pulse-btn {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--light-color) 0%, #f1f3f5 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 20px 40px;
  padding-top: 60px;
}

.hover-lift {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

.floating-image {
  animation: float 6s ease-in-out infinite;
}

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

/* Added fade-in animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Icon Circles */
.icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.icon-circle:hover {
  transform: rotate(360deg) scale(1.1);
}

/* Enhanced button animations */
.btn {
  font-weight: 500;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  margin: 0.5rem 0;
  font-size: 0.95rem;
  letter-spacing: 0.025em;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-warning {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
  color: var(--text-primary);
  font-weight: 600;
}

.btn-warning:hover {
  background-color: #f0b90b;
  border-color: #f0b90b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 200, 66, 0.25);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--primary-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.upload-area::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent, rgba(0, 123, 255, 0.1), transparent);
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-area:hover::before {
  opacity: 1;
}

.upload-area:hover {
  background-color: #e9ecef;
  border-color: #0056b3;
  transform: scale(1.02);
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* differnet pages  */
#journey {
  padding-top: 150px;
}
#gallery {
  padding-top: 150px;
}
#vision {
  padding-top: 150px;
}

/* Enhanced gallery animations */

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.gallery-item img {
  transition: all 0.4s ease;
}

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

/* Social Links */
.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* Added staggered animation delays */
.card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Improved section spacing with consistent gaps */
.section-spacing {
  padding: 85px 0;
}

.section-spacing.bg-light {
  background-color: var(--light-color) !important;
}

.section-spacing.bg-warning {
  background-color: #fef9e7 !important;
  color: var(--text-primary);
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 2rem;
}

.card-body {
  padding: 2rem;
}

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

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

/* Enhanced blockquote styling */
.blockquote {
  font-size: 1.125rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-primary);
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

/* Footer Styling */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerGrain" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23fff" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
  pointer-events: none;
}

.footer-brand h4 {
  color: var(--warning-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #e9ecef !important;
  font-weight: 400;
  line-height: 1.6;
}

.footer-links li a {
  transition: all 0.3s ease;
  position: relative;
  padding-left: 0;
}

.footer-links li a::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background-color: var(--warning-color);
  transition: width 0.3s ease;
}

.footer-links li a:hover::before {
  width: 10px;
}

.hover-link:hover {
  color: var(--warning-color) !important;
  transform: translateX(5px);
}

.contact-info a:hover {
  color: var(--warning-color) !important;
}

/* Footer bottom section */
.border-secondary {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

footer .text-warning {
  color: var(--warning-color) !important;
  font-weight: 600;
}

footer .text-light {
  color: #e9ecef !important;
}

footer .text-muted {
  color: #adb5bd !important;
}

/* Responsive footer adjustments */
@media (max-width: 768px) {
  footer .col-lg-4,
  footer .col-lg-2,
  footer .col-lg-3 {
    margin-bottom: 2rem;
  }

  footer .text-md-end {
    text-align: center !important;
    margin-top: 1rem;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  footer .py-5 {
    padding: 3rem 0 !important;
  }

  footer .py-4 {
    padding: 2rem 0 !important;
  }
}

/* Smooth scrolling offset for fixed navbar */
section {
  scroll-margin-top: 80px;
}

/* Loading animation for uploaded images */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.display-4 {
  font-weight: 700;
  line-height: 1.2;
}

.display-5 {
  font-weight: 600;
  line-height: 1.25;
}

.lead {
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

/* Better spacing for content sections */
.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.row {
  margin-bottom: 2rem;
}

.col-md-4,
.col-md-6,
.col-lg-6 {
  margin-bottom: 2rem;
}

/* Impact Section Cards */
.impact-box h3 {
  font-size: 2rem;
  color: var(--primary-color);
}

.impact-box p.card-title {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* Foundation Section Styling */
#foundation {
  background-color: #fef9e7; /* already bg-warning tone */
  /* border-top: 4px solid var(--primary-color); */
}

#foundation ul li {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* Hover effect on foundation image */
#foundation img:hover {
  transform: scale(1.05);
  transition: 0.4s ease;
}
