/* Forest Sage Architectural Studio Theme */
/* Primary Color: #2C5F41 (Forest Green) */
/* Secondary Color: #E8D5B7 (Sage Beige) */

/* ===== ROOT VARIABLES ===== */
:root {
  --primary-color: #2C5F41;
  --secondary-color: #E8D5B7;
  --primary-dark: #1a3828;
  --primary-light: #3d7a59;
  --accent-color: #8B7355;
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --shadow-sm: 0 0.125rem 0.25rem rgba(44, 95, 65, 0.075);
  --shadow: 0 0.5rem 1rem rgba(44, 95, 65, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(44, 95, 65, 0.25);
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* ===== GLOBAL RESETS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700 !important;
  color: var(--primary-color) !important;
  letter-spacing: -0.5px;
  margin-bottom: 1rem;
}

.display-1 { font-size: clamp(3rem, 8vw, 6rem) !important; }
.display-2 { font-size: clamp(2.5rem, 6vw, 5rem) !important; }
.display-3 { font-size: clamp(2rem, 5vw, 4rem) !important; }
.display-4 { font-size: clamp(1.75rem, 4vw, 3rem) !important; }
.display-5 { font-size: clamp(1.5rem, 3vw, 2.5rem) !important; }
.display-6 { font-size: clamp(1.25rem, 2.5vw, 2rem) !important; }

.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--primary-color) !important;
}

.fs-1 { font-size: clamp(2rem, 4vw, 3rem) !important; }
.fs-3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem) !important; }
.fs-5 { font-size: clamp(1rem, 1.5vw, 1.25rem) !important; }

.lead {
  font-size: 1.25rem !important;
  font-weight: 300;
  color: var(--text-dark) !important;
  line-height: 1.8;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-white {
  color: var(--text-light) !important;
}

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

.text-dark {
  color: var(--text-dark) !important;
}

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

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
  z-index: 1050;
  box-shadow: var(--shadow);
}

.navbar.sticky-top {
  box-shadow: var(--shadow-lg);
}

.navbar-dark {
  background: rgba(44, 95, 65, 0.95) !important;
}

.navbar-brand {
  color: var(--text-light) !important;
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  transition: var(--transition-base);
  text-transform: uppercase;
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

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

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

.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='%23E8D5B7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-nav {
  gap: 1rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-color) !important;
  background-color: rgba(232, 213, 183, 0.1) !important;
  border-radius: 5px;
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 80%;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: var(--transition-base) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translate(-50%, -50%) scale(2);
}

.btn-primary,
.btn-lg {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
  color: var(--text-light) !important;
  box-shadow: var(--shadow);
  border: 2px solid transparent !important;
}

.btn-primary:hover,
.btn-lg:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text-light) !important;
}

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

.btn-outline-secondary:hover {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.5rem 1.5rem !important;
  font-size: 0.875rem !important;
}

.filter-btn {
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--secondary-color) !important;
  margin: 0.25rem;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-color) !important;
  color: var(--text-light) !important;
  border-color: var(--primary-color) !important;
}

/* ===== HERO SECTION ===== */
.hero-wrapper {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
  transition: var(--transition-slow);
  animation: zoomIn 20s ease infinite alternate;
}

@keyframes zoomIn {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 95, 65, 0.7) 0%, rgba(26, 56, 40, 0.8) 100%);
  z-index: 1;
}

.hero-wrapper .position-absolute {
  z-index: 2;
}

.hero-wrapper h1,
.hero-wrapper .display-2 {
  color: var(--text-light) !important;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.hero-wrapper p {
  color: var(--secondary-color) !important;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1.2s ease;
}

.hero-wrapper .btn {
  animation: fadeInUp 1.4s ease;
}

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

/* ===== CARDS ===== */
.card {
  border: none !important;
  border-radius: 15px !important;
  overflow: hidden;
  transition: var(--transition-base);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.card-text {
  color: var(--text-dark) !important;
  line-height: 1.7;
}

/* ===== PORTFOLIO ===== */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 2rem;
  padding: 2rem 0;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 2rem;
  animation: fadeIn 0.6s ease;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition-base);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 95, 65, 0.9) 0%, rgba(26, 56, 40, 0.95) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
  padding: 2rem;
  text-align: center;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: var(--text-light) !important;
  margin-bottom: 1rem;
  transform: translateY(20px);
  transition: var(--transition-base);
}

.portfolio-overlay p {
  color: var(--secondary-color) !important;
  transform: translateY(20px);
  transition: var(--transition-base) 0.1s;
}

.portfolio-card:hover .portfolio-overlay h3,
.portfolio-card:hover .portfolio-overlay p {
  transform: translateY(0);
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  background-color: var(--secondary-color) !important;
  color: var(--primary-color) !important;
  font-size: 0.875rem !important;
}

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

.form-control,
.form-select {
  padding: 0.75rem 1rem !important;
  border: 2px solid var(--secondary-color) !important;
  border-radius: 10px !important;
  transition: var(--transition-base);
  background-color: #ffffff !important;
  color: var(--text-dark) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 65, 0.15) !important;
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted) !important;
}

.form-check-input {
  width: 1.5em !important;
  height: 1.5em !important;
  border: 2px solid var(--primary-color) !important;
  border-radius: 5px !important;
  cursor: pointer;
}

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

.form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(44, 95, 65, 0.15) !important;
}

.form-check-label {
  color: var(--text-dark) !important;
  cursor: pointer;
  margin-left: 0.5rem;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 10px !important;
  border: none !important;
  padding: 1rem 1.5rem !important;
  animation: slideDown 0.3s ease;
}

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

.alert-success {
  background-color: rgba(44, 95, 65, 0.1) !important;
  color: var(--primary-color) !important;
  border-left: 4px solid var(--primary-color) !important;
}

/* ===== ICONS ===== */
.bi {
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

.bi-telephone-fill,
.bi-envelope-fill,
.bi-geo-alt-fill,
.bi-info-circle,
.bi-send,
.bi-check-circle-fill,
.bi-clock,
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter,
.bi-lightning-charge-fill,
.bi-droplet-fill,
.bi-recycle,
.bi-tree-fill,
.bi-sun,
.bi-bricks,
.bi-moisture,
.bi-gear-fill,
.bi-book,
.bi-calculator,
.bi-hammer {
  color: var(--primary-color) !important;
  font-size: 1.5rem;
}

/* ===== IMAGES ===== */
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.rounded-circle {
  border-radius: 50% !important;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

/* ===== RATIO (VIDEO EMBEDS) ===== */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* ===== TIMELINE ===== */
.timeline-section {
  position: relative;
  padding: 3rem 0;
}

.timeline-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateX(-50%);
}

.timeline-section .align-items-start {
  position: relative;
  z-index: 1;
}

/* ===== SECTIONS ===== */
section,
.py-5 {
  padding: 5rem 0 !important;
}

.my-5 {
  margin: 5rem 0 !important;
}

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

.pt-5 {
  padding-top: 5rem !important;
}

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

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

/* ===== BORDERS ===== */
.border {
  border: 1px solid rgba(44, 95, 65, 0.2) !important;
}

.border-top {
  border-top: 1px solid rgba(44, 95, 65, 0.2) !important;
}

.border-bottom {
  border-bottom: 1px solid rgba(44, 95, 65, 0.2) !important;
}

.border-0 {
  border: none !important;
}

.border-secondary {
  border-color: var(--secondary-color) !important;
}

/* ===== UTILITIES ===== */
.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.position-sticky {
  position: sticky;
  top: 0;
  z-index: 1020;
}

.top-0 { top: 0; }
.start-0 { left: 0; }
.end-0 { right: 0; }
.bottom-0 { bottom: 0; }

.top-50 { top: 50% !important; }
.start-50 { left: 50% !important; }

.translate-middle {
  transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
  transform: translateX(-50%) !important;
}

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

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.overflow-hidden {
  overflow: hidden;
}

.d-flex {
  display: flex !important;
}

.d-none {
  display: none !important;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-grow-1 {
  flex-grow: 1;
}

.align-items-center {
  align-items: center !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.text-center {
  text-align: center !important;
}

.text-md-start {
  text-align: left !important;
}

.text-md-end {
  text-align: right !important;
}

.text-lg-end {
  text-align: right !important;
}

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

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

.list-unstyled {
  list-style: none;
  padding-left: 0;
}

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

/* ===== SPACING ===== */
.p-3 { padding: 1.5rem !important; }
.p-4 { padding: 2rem !important; }
.p-5 { padding: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-4 { padding-left: 2rem !important; padding-right: 2rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.pt-4 { padding-top: 2rem !important; }
.pt-5 { padding-top: 3rem !important; }
.pb-4 { padding-bottom: 2rem !important; }

.ps-lg-5 { padding-left: 3rem !important; }

.m-3 { margin: 1.5rem !important; }

.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

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

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

.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.ms-2 { margin-left: 0.5rem !important; }
.ms-4 { margin-left: 2rem !important; }
.ms-auto { margin-left: auto !important; }

.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 2rem !important; }

.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2rem !important; }

/* ===== GRID SYSTEM ===== */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 1200px;
}

.container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.g-0 {
  margin-right: 0;
  margin-left: 0;
}

.g-0 > * {
  padding-right: 0;
  padding-left: 0;
}

.g-3 {
  gap: 1rem;
}

.g-4 {
  gap: 1.5rem;
}

.g-5 {
  gap: 2rem;
}

.col-6,
.col-12,
.col-sm-6,
.col-md-3,
.col-md-4,
.col-md-6,
.col-md-10,
.col-md-12,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-10 {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Mobile First - Base (xs) */
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Small devices (sm - 576px and up) */
@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Medium devices (md - 768px and up) */
@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  
  .text-md-start { text-align: left !important; }
  .text-md-end { text-align: right !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
}

/* Large devices (lg - 992px and up) */
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  
  .offset-lg-2 { margin-left: 16.666667%; }
  
  .order-lg-1 { order: 1; }
  .order-lg-2 { order: 2; }
  
  .text-lg-end { text-align: right !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .ps-lg-5 { padding-left: 3rem !important; }
}

/* ===== SOCIAL MEDIA LINKS ===== */
.bi-facebook,
.bi-instagram,
.bi-linkedin,
.bi-twitter {
  font-size: 1.5rem;
  transition: var(--transition-base);
  color: var(--primary-color) !important;
}

a .bi-facebook:hover { color: #1877f2 !important; }
a .bi-instagram:hover { color: #e4405f !important; }
a .bi-linkedin:hover { color: #0077b5 !important; }
a .bi-twitter:hover { color: #1da1f2 !important; }

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--text-light) !important;
  padding: 3rem 0 1rem;
}

footer h5,
footer h6 {
  color: var(--secondary-color) !important;
  margin-bottom: 1.5rem;
}

footer p,
footer li,
footer a {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: var(--transition-base);
}

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

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 12px;
}

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

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

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

/* ===== LOADING ANIMATION ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-light);
  animation: spin 1s ease-in-out infinite;
}

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

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablets and below */
@media (max-width: 991px) {
  .navbar-nav {
    gap: 0.5rem;
    padding: 1rem 0;
  }
  
  .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .hero-wrapper {
    min-height: 500px;
  }
  
  .display-2 {
    font-size: 2.5rem !important;
  }
  
  section,
  .py-5 {
    padding: 3rem 0 !important;
  }
  
  .masonry-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1.5rem;
  }
  
  .col-lg-5,
  .col-lg-6,
  .col-lg-7,
  .col-lg-8,
  .col-lg-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Mobile devices */
@media (max-width: 767px) {
  .container,
  .container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
  }
  
  .px-5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .hero-wrapper {
    min-height: 400px;
  }
  
  .display-2 {
    font-size: 2rem !important;
  }
  
  .btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.9rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    grid-gap: 1rem;
  }
  
  .timeline-section::before {
    left: 20px;
  }
  
  .col-md-3,
  .col-md-4,
  .col-md-6,
  .col-md-10 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 575px) {
  .display-2 {
    font-size: 1.75rem !important;
  }
  
  .display-3 {
    font-size: 1.5rem !important;
  }
  
  h1, .h1 { font-size: 2rem !important; }
  h2, .h2 { font-size: 1.75rem !important; }
  h3, .h3 { font-size: 1.5rem !important; }
  h4, .h4 { font-size: 1.25rem !important; }
  
  .btn {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
  }
  
  .navbar-brand {
    font-size: 1.25rem !important;
  }
  
  .card-body {
    padding: 1rem !important;
  }
  
  .p-5 {
    padding: 2rem !important;
  }
  
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .btn,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}