/* Forest Guardian Architecture Studio - Custom Styles */

:root {
  --primary-color: #2E7D32;
  --secondary-color: #FF8F00;
  --primary-dark: #1B5E20;
  --secondary-dark: #E65100;
  --light-green: #81C784;
  --dark-text: #1a1a1a;
  --light-text: #f8f9fa;
  --forest-gradient: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
  --sunset-gradient: linear-gradient(135deg, #FF8F00 0%, #E65100 100%);
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
.display-2, .display-3, .display-4, .display-5 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
}

/* Navigation */
.navbar {
  background: var(--forest-gradient) !important;
  padding: 1rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
  color: var(--light-text) !important;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.9) !important;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: all 0.3s ease;
  position: relative;
}

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
  width: 80%;
}

.navbar-toggler {
  border: 2px solid rgba(255,255,255,0.5) !important;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25) !important;
}

/* Buttons */
.btn {
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transition: left 0.3s ease;
  z-index: -1;
}

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

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

.btn-primary {
  background: var(--forest-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(46,125,50,0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46,125,50,0.4);
  color: #ffffff !important;
}

.btn-secondary {
  background: var(--sunset-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(255,143,0,0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255,143,0,0.4);
  color: #ffffff !important;
}

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

.btn-light:hover {
  background: var(--primary-color) !important;
  color: #ffffff !important;
  transform: translateY(-3px);
}

.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;
  transform: translateY(-2px);
}

/* Hero Section */
.position-relative.overflow-hidden {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(46,125,50,0.95) 0%, rgba(27,94,32,0.95) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232E7D32" width="1200" height="600"/><path fill="%231B5E20" d="M0 400 Q300 350 600 400 T1200 400 V600 H0 Z"/></svg>');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.position-relative.overflow-hidden::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,143,0,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}

@keyframes heroGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.text-white {
  color: #ffffff !important;
  position: relative;
  z-index: 2;
}

.display-2 {
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.lead {
  animation: fadeInUp 1.2s ease-out;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

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

.bi-chevron-down {
  animation: bounce 2s infinite;
  cursor: pointer;
  font-size: 2rem;
  color: var(--secondary-color) !important;
  transition: all 0.3s ease;
}

.bi-chevron-down:hover {
  color: #ffffff !important;
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Feature Cards */
.col-md-4 {
  transition: transform 0.3s ease;
}

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

.bi-lightning-charge-fill,
.bi-people-fill,
.bi-trophy-fill {
  font-size: 3rem;
  color: var(--secondary-color) !important;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.col-md-4:hover .bi-lightning-charge-fill,
.col-md-4:hover .bi-people-fill,
.col-md-4:hover .bi-trophy-fill {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary-color) !important;
}

/* Badge */
.badge {
  background: var(--sunset-gradient) !important;
  color: #ffffff !important;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Images */
.img-fluid {
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.img-fluid:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Service Cards */
.h-100 {
  background: #ffffff;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(46,125,50,0.1);
  height: 100%;
}

.h-100:hover {
  box-shadow: 0 10px 30px rgba(46,125,50,0.2);
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.bi-person-workspace,
.bi-people,
.bi-bar-chart-steps,
.bi-activity,
.bi-egg-fried,
.bi-rocket-takeoff {
  font-size: 2.5rem;
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

.h-100:hover .bi-person-workspace,
.h-100:hover .bi-people,
.h-100:hover .bi-bar-chart-steps,
.h-100:hover .bi-activity,
.h-100:hover .bi-egg-fried,
.h-100:hover .bi-rocket-takeoff {
  color: var(--secondary-color) !important;
  transform: scale(1.1);
}

/* Stats Section */
.col-6.col-md-3 {
  position: relative;
}

.display-3 {
  color: var(--primary-color) !important;
  font-weight: 800;
}

/* Social Icons */
.bi-facebook,
.bi-instagram,
.bi-youtube,
.bi-twitter-x {
  font-size: 1.5rem;
  color: var(--primary-color) !important;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(46,125,50,0.1);
}

.bi-facebook:hover,
.bi-instagram:hover,
.bi-youtube:hover,
.bi-twitter-x:hover {
  color: #ffffff !important;
  background: var(--primary-color);
  transform: translateY(-3px) rotate(5deg);
}

/* Footer */
footer {
  background: var(--forest-gradient) !important;
  color: var(--light-text) !important;
}

footer h5 {
  color: var(--secondary-color) !important;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

footer a {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

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

.list-unstyled li {
  margin-bottom: 0.5rem;
}

.bi-geo-alt-fill,
.bi-telephone-fill,
.bi-envelope-fill {
  color: var(--secondary-color) !important;
}

/* Contact Form */
.form-control,
.form-select {
  border: 2px solid rgba(46,125,50,0.2);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background: #ffffff !important;
  color: var(--dark-text) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(46,125,50,0.15) !important;
  outline: none;
}

.form-control-lg,
.form-select-lg {
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
}

.form-label {
  color: var(--dark-text) !important;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-input {
  position: relative;
}

.contact-input.error .form-control,
.contact-input.error .form-select {
  border-color: #dc3545 !important;
}

.contact-input.success .form-control,
.contact-input.success .form-select {
  border-color: var(--primary-color) !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.contact-input.error .error-message {
  display: block;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.shadow-sm {
  box-shadow: 0 0.125rem 0.625rem rgba(0,0,0,0.075) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.card-body {
  padding: 2rem;
}

/* Rounded Elements */
.rounded {
  border-radius: 10px !important;
}

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

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

/* Background Colors */
.bg-light {
  background-color: #f8f9fa !important;
}

/* Program Cards */
.program-card {
  background: #ffffff;
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  border: 2px solid rgba(46,125,50,0.1);
  transition: all 0.3s ease;
}

.program-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(46,125,50,0.2);
  transform: translateY(-5px);
}

.bi-shield-fill-check,
.bi-person-fill-gear,
.bi-check-circle-fill {
  font-size: 2rem;
  color: var(--primary-color) !important;
}

/* Table */
.table {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.table-bordered {
  border: 2px solid rgba(46,125,50,0.1);
}

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

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

.table tbody tr {
  transition: all 0.3s ease;
}

.table tbody tr:hover {
  background: rgba(46,125,50,0.05);
  transform: scale(1.01);
}

.table td {
  padding: 1rem;
  vertical-align: middle;
}

.table-responsive {
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Accordion */
.accordion-item {
  border: 2px solid rgba(46,125,50,0.1);
  border-radius: 10px !important;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-button {
  background: linear-gradient(to right, rgba(46,125,50,0.05), transparent) !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.25rem 1.5rem;
  border: none;
}

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

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(46,125,50,0.15) !important;
  border-color: var(--primary-color);
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(33%) sepia(89%) saturate(835%) hue-rotate(93deg);
}

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

.accordion-body {
  padding: 1.5rem;
  background: #ffffff;
  color: var(--dark-text);
}

.accordion-collapse {
  border-top: 2px solid rgba(46,125,50,0.1);
}

/* Privacy Content */
.privacy-content {
  line-height: 1.8;
}

.privacy-content h3 {
  color: var(--primary-color) !important;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.privacy-content p {
  margin-bottom: 1rem;
}

/* Spacing Utilities */
.py-5 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}

.py-4 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}

.my-5 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.my-4 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mt-4 {
  margin-top: 2rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

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

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--primary-color);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(27,94,32,0.98);
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
  }
  
  .display-2 {
    font-size: 2.5rem;
  }
  
  .display-3 {
    font-size: 2rem;
  }
  
  .display-4 {
    font-size: 1.75rem;
  }
  
  .display-5 {
    font-size: 1.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
  
  .position-relative.overflow-hidden {
    min-height: 100vh;
    background-attachment: scroll;
  }
}

@media (max-width: 767.98px) {
  .col-md-4,
  .col-md-6,
  .col-lg-4,
  .col-lg-6,
  .col-lg-7 {
    margin-bottom: 2rem;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .program-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .display-2 {
    font-size: 2rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Text Colors */
.text-muted {
  color: #6c757d !important;
}

.text-white {
  color: #ffffff !important;
}

/* Text Decoration */
.text-decoration-none {
  text-decoration: none !important;
}

/* Font Weights */
.fw-bold {
  font-weight: 700 !important;
}

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

/* Font Sizes */
.fs-2 {
  font-size: 2rem !important;
}

.fs-4 {
  font-size: 1.5rem !important;
}

.fs-5 {
  font-size: 1.25rem !important;
}

.small {
  font-size: 0.875rem !important;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden !important;
}

/* Position */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

/* Border */
.border-0 {
  border: 0 !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

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

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