/* Nordic Forest & Amber - Architectural Studio Theme */

:root {
  --primary-color: #1B5E20;
  --secondary-color: #FFA000;
  --dark-green: #0d3310;
  --light-green: #2e7d32;
  --light-amber: #ffb333;
  --dark-amber: #cc8000;
  --forest-gradient: linear-gradient(135deg, #1B5E20 0%, #0d3310 100%);
  --amber-gradient: linear-gradient(135deg, #FFA000 0%, #cc8000 100%);
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  overflow-x: hidden;
  background: #fafafa;
}

/* Navbar Styling */
.navbar {
  background: var(--forest-gradient) !important;
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(27, 94, 32, 0.3);
  transition: all var(--transition-speed) ease;
}

.navbar.sticky-top {
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: transform var(--transition-speed) ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--secondary-color) !important;
}

.navbar-brand .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.navbar-toggler {
  border: 2px solid var(--secondary-color) !important;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFA000' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 160, 0, 0.2) !important;
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.95) 0%, rgba(13, 51, 16, 0.9) 100%),
              url('data:image/svg+xml,%3Csvg width="100" height="100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M10 10h80v80H10z" fill="none" stroke="%23FFA000" stroke-width="0.5" opacity="0.1"/%3E%3C/svg%3E');
  background-size: cover, 100px 100px;
  background-position: center;
  animation: heroBackground 20s ease infinite;
}

@keyframes heroBackground {
  0%, 100% { background-position: center, 0 0; }
  50% { background-position: center, 50px 50px; }
}

.position-absolute.w-100.h-100 {
  background: radial-gradient(circle at 20% 50%, rgba(255, 160, 0, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(27, 94, 32, 0.2) 0%, transparent 50%);
  z-index: 0;
}

.position-relative.overflow-hidden .container {
  position: relative;
  z-index: 1;
}

.display-1 {
  font-weight: 800;
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.3rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1.2s ease;
}

.fs-3 {
  color: var(--secondary-color) !important;
  font-weight: 600;
}

.fs-5 {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Buttons */
.btn {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-lg {
  background: var(--amber-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4);
}

.btn-lg:hover {
  background: var(--dark-amber) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 160, 0, 0.6);
  color: #ffffff !important;
}

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

.btn-outline-success:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
}

.btn-outline-light {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-outline-light:hover {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border-color: #ffffff !important;
}

.btn-light {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid #ffffff !important;
}

.btn-light:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.btn-sm {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  padding: 0.4rem 0.8rem;
}

.btn-sm:hover {
  background: var(--light-green) !important;
  color: #ffffff !important;
}

/* Stats Section */
.py-5 {
  padding: 4rem 0;
}

.py-4 {
  padding: 3rem 0;
}

.col-md-3.col-6 {
  transition: transform var(--transition-speed) ease;
}

.col-md-3.col-6:hover {
  transform: translateY(-10px);
}

.bi-trophy-fill,
.bi-lightning-charge-fill,
.bi-people-fill,
.bi-clock-fill {
  color: var(--secondary-color) !important;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: iconPulse 2s ease infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.fs-1 {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.h2 {
  color: var(--primary-color) !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

.h3 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.h4 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.h5 {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Background Sections */
.bg-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.bg-white {
  background: #ffffff !important;
}

/* Images */
.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  transition: transform var(--transition-speed) ease;
}

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

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* Badges */
.badge {
  background: var(--amber-gradient) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 0.5rem 1rem !important;
}

/* Cards */
.card {
  border: none !important;
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-body {
  padding: 2rem !important;
}

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

.card-text {
  color: #5a6c7d;
  line-height: 1.8;
}

.card-header {
  background: var(--forest-gradient) !important;
  color: #ffffff !important;
  font-weight: 600;
  border: none !important;
  padding: 1rem 1.5rem;
}

/* List Styling */
.list-unstyled {
  list-style: none;
  padding: 0;
}

.list-unstyled li {
  padding: 0.8rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.bi-check-circle-fill {
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
  margin-right: 1rem;
}

/* Program Cards with Flip Effect */
.program-card {
  perspective: 1000px;
  height: 400px;
  cursor: pointer;
}

.program-front,
.program-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.program-front {
  background: var(--forest-gradient);
  color: #ffffff;
}

.program-back {
  background: var(--amber-gradient);
  color: #ffffff;
  transform: rotateY(180deg);
}

.program-card:hover .program-front {
  transform: rotateY(180deg);
}

.program-card:hover .program-back {
  transform: rotateY(360deg);
}

.program-front .bi,
.program-back .bi {
  color: #ffffff !important;
}

/* Timeline */
.timeline-container {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.fade-in-scroll {
  opacity: 1;
  transform: translateY(0);
}

.timeline-dot {
  width: 60px;
  height: 60px;
  background: var(--amber-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4);
  position: relative;
  z-index: 2;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 100px;
  background: var(--primary-color);
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.timeline-item:last-child .timeline-dot::before {
  display: none;
}

/* Accordion */
.accordion-item {
  border: none !important;
  margin-bottom: 1rem;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.accordion-button {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1.2rem 1.5rem;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  background: var(--light-green) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.25) !important;
  border: none !important;
}

.accordion-body {
  padding: 1.5rem;
  background: #ffffff;
  color: #2c3e50;
  line-height: 1.8;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1.2rem;
  font-weight: 500;
}

.alert-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  color: #0d47a1 !important;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%) !important;
  color: #e65100 !important;
}

.alert .bi {
  font-size: 1.3rem;
  margin-right: 0.5rem;
}

/* Forms */
.form-label {
  color: var(--primary-color) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 0.8rem 1rem;
  transition: all var(--transition-speed) ease;
  background: #ffffff;
  color: #2c3e50 !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(27, 94, 32, 0.15) !important;
  background: #ffffff;
  color: #2c3e50 !important;
}

.form-check-input {
  border: 2px solid var(--primary-color) !important;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-check-label {
  color: #2c3e50;
  cursor: pointer;
}

/* Table */
.table {
  border-radius: 12px;
  overflow: hidden;
}

.table-hover tbody tr {
  transition: all var(--transition-speed) ease;
  cursor: pointer;
}

.table-hover tbody tr:hover {
  background: rgba(27, 94, 32, 0.05) !important;
  transform: scale(1.01);
}

.table thead {
  background: var(--forest-gradient) !important;
  color: #ffffff !important;
}

.table thead th {
  color: #ffffff !important;
  font-weight: 600;
  border: none !important;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  color: #2c3e50;
}

/* List Group */
.list-group-item {
  border: 1px solid #e0e0e0 !important;
  border-radius: 10px !important;
  margin-bottom: 0.5rem;
  transition: all var(--transition-speed) ease;
  background: #ffffff;
  color: #2c3e50 !important;
}

.list-group-item:hover {
  background: rgba(27, 94, 32, 0.05) !important;
  border-color: var(--primary-color) !important;
  transform: translateX(5px);
}

.list-group-item .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.8rem;
}

/* Carousel */
.carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  background: rgba(27, 94, 32, 0.5);
  transition: all var(--transition-speed) ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(27, 94, 32, 0.8);
}

/* Benefit Items */
.benefit-item {
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  text-align: center;
  transition: all var(--transition-speed) ease;
  border: 2px solid transparent;
}

.benefit-item:hover {
  border-color: var(--secondary-color);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.benefit-item .bi {
  color: var(--secondary-color) !important;
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Filter Buttons */
.filter-btn {
  background: #ffffff !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
  padding: 0.6rem 1.5rem;
  margin: 0.3rem;
  border-radius: 10px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

/* Founder Story Section */
.founder-story {
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.03) 0%, rgba(255, 160, 0, 0.03) 100%);
  padding: 4rem 2rem;
  border-radius: 20px;
}

.story-content {
  color: #2c3e50;
  line-height: 1.9;
  font-size: 1.1rem;
}

/* Mission Content */
.mission-content {
  background: #ffffff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Sticky Elements */
.position-sticky {
  position: sticky !important;
  top: 100px;
}

/* Text Colors */
.text-white {
  color: #ffffff !important;
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

.text-decoration-none:hover {
  color: var(--secondary-color) !important;
}

/* Display Classes */
.display-1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.display-3 {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 700;
}

.display-4 {
  font-size: clamp(1.8rem, 3.5vw, 3.5rem);
  font-weight: 700;
}

.display-5 {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 700;
}

.display-6 {
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);
  font-weight: 700;
}

/* Footer */
footer {
  background: var(--forest-gradient) !important;
  color: #ffffff !important;
  padding: 3rem 0 1rem;
}

footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

footer a:hover {
  color: var(--secondary-color) !important;
  transform: translateX(5px);
}

footer .bi {
  color: var(--secondary-color) !important;
  margin-right: 0.5rem;
}

footer .btn-sm {
  margin: 0.2rem;
}

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

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-scroll {
  animation: fadeInUp 0.8s ease;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .navbar-nav {
    background: rgba(27, 94, 32, 0.95);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }

  .nav-link {
    margin: 0.3rem 0;
  }

  .display-1 {
    font-size: 2.5rem;
  }

  .display-3 {
    font-size: 2rem;
  }

  .card-img-top {
    height: 200px;
  }

  .carousel-item {
    height: 300px;
  }

  .program-card {
    height: 350px;
  }

  .timeline-dot::before {
    display: none;
  }

  .btn-lg {
    padding: 0.8rem 2rem !important;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .position-relative.overflow-hidden {
    min-height: 90vh;
  }

  .py-5 {
    padding: 2rem 0;
  }

  .card-body {
    padding: 1.5rem !important;
  }

  .founder-story,
  .mission-content {
    padding: 2rem 1.5rem;
  }

  .table-responsive {
    font-size: 0.9rem;
  }
}

/* Hover Effects for Icons */
.bi-facebook:hover {
  color: #1877f2 !important;
}

.bi-instagram:hover {
  color: #e4405f !important;
}

.bi-youtube:hover {
  color: #ff0000 !important;
}

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

/* Selection Color */
::selection {
  background: var(--secondary-color);
  color: #ffffff;
}

::-moz-selection {
  background: var(--secondary-color);
  color: #ffffff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  border: 4px solid rgba(255, 160, 0, 0.2);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Utility Classes */
.rounded-4 {
  border-radius: 20px !important;
}

.rounded-3 {
  border-radius: 16px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.vh-100 {
  height: 100vh !important;
}

.min-vh-100 {
  min-height: 100vh !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fw-semibold {
  font-weight: 600 !important;
}

.fst-italic {
  font-style: italic !important;
}

/* Overlay Effects */
.position-relative .position-absolute {
  z-index: 0;
}

.position-relative > * {
  position: relative;
  z-index: 1;
}

/* Star Rating */
.bi-star-fill {
  color: var(--secondary-color) !important;
}

/* Enhanced Contrast for Accessibility */
a:focus,
button:focus,
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--secondary-color) !important;
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }

  .card {
    break-inside: avoid;
  }
}