/* MODERN DESIGN SYSTEM - THE COUNTY ADDRESS
================================================== */

/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap");

/* Futuristic Green Color Palette - Matching Logo */
:root {
  --primary-green: #2d5f3f;
  --forest-green: #1a4d2e;
  --emerald: #4a7c59;
  --light-green: #6fa287;
  --mint: #a8d5ba;
  --sage: #c8e6c9;
  --gold-accent: #d4af37;
  --bronze: #8b6914;
  --primary-dark: #0d1f15;
  --text-dark: #1a2e1f;
  --text-light: #5a7d68;
  --bg-light: #f0f7f4;
  --white: #ffffff;
  --shadow-sm: 0 4px 15px rgba(45, 95, 63, 0.1);
  --shadow-md: 0 8px 30px rgba(45, 95, 63, 0.15);
  --shadow-lg: 0 15px 50px rgba(45, 95, 63, 0.25);
  --shadow-glow: 0 0 30px rgba(74, 124, 89, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #f0f7f4 0%, #e8f5e9 50%, #dcedc8 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(74, 124, 89, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(45, 95, 63, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 20%,
      rgba(212, 175, 55, 0.02) 0%,
      transparent 40%
    );
  pointer-events: none;
  z-index: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

p {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
}

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

/* Futuristic Navbar with Glassmorphism */
#mainNav {
  background: linear-gradient(
    135deg,
    rgba(45, 95, 63, 0.95) 0%,
    rgba(26, 77, 46, 0.98) 100%
  );
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 0.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 32px rgba(45, 95, 63, 0.3),
    0 0 1px rgba(255, 255, 255, 0.3) inset;
  border-bottom: 1px solid rgba(168, 213, 186, 0.2);
  position: relative;
  z-index: 1000;
}

#mainNav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--gold-accent) 25%,
    var(--mint) 50%,
    var(--gold-accent) 75%,
    transparent 100%
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

#mainNav .navbar-brand {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--gold-accent) 0%, var(--mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  position: relative;
}

#mainNav .navbar-brand:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}

#mainNav .navbar-brand .navbar-logo {
  height: 70px;
  width: auto;
  max-width: 70px;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: drop-shadow(0 4px 12px rgba(74, 124, 89, 0.4));
  animation: logoFloat 3s ease-in-out infinite;
}

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

#mainNav .navbar-brand:hover .navbar-logo {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 6px 20px rgba(212, 175, 55, 0.6));
}

#mainNav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.2rem !important;
  margin: 0 0.3rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  background: transparent;
  overflow: hidden;
}

#mainNav .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(168, 213, 186, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

#mainNav .nav-link:hover::before {
  left: 100%;
}

#mainNav .nav-link:hover {
  color: var(--gold-accent) !important;
  background: linear-gradient(
    135deg,
    rgba(168, 213, 186, 0.2),
    rgba(74, 124, 89, 0.2)
  );
  transform: translateY(-3px);
  box-shadow:
    0 6px 20px rgba(74, 124, 89, 0.3),
    0 0 20px rgba(212, 175, 55, 0.2);
}

#mainNav .nav-link i {
  margin-right: 6px;
  transition: all 0.3s ease;
}

#mainNav .nav-link:hover i {
  transform: scale(1.3) rotate(10deg);
  color: var(--gold-accent);
}

/* Futuristic Button Styles */
.btn {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 50px;
  padding: 14px 36px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.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-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--emerald),
    var(--light-green)
  );
  background-size: 200% 200%;
  border-color: var(--gold-accent);
  color: white;
  box-shadow:
    0 6px 20px rgba(45, 95, 63, 0.4),
    0 0 30px rgba(74, 124, 89, 0.2);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--emerald),
    var(--light-green),
    var(--gold-accent)
  );
  background-size: 200% 200%;
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    0 15px 35px rgba(45, 95, 63, 0.5),
    0 0 40px rgba(212, 175, 55, 0.4);
}

.btn-outline-primary {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.btn-outline-primary:hover {
  background: var(--primary-gold);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(196, 153, 108, 0.4);
}

.btn-light {
  background: white;
  color: var(--primary-dark);
  border: none;
}

.btn-light:hover {
  background: var(--accent-cream);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  border-color: white;
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline-success {
  border-color: var(--success-green);
  color: var(--success-green);
}

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

.btn-outline-warning {
  border-color: #ffc107;
  color: #ffc107;
}

.btn-outline-warning:hover {
  background: #ffc107;
  color: white;
}

/* Card Styles */
.card {
  border-radius: 20px;
  border: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

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

/* Image Styles */
img {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

img:hover {
  transform: scale(1.05);
}

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

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

/* Section Spacing */
section {
  position: relative;
  overflow: hidden;
}

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

/* Utility Classes */
.text-gold {
  color: var(--primary-gold);
}

.bg-gold {
  background-color: var(--primary-gold);
}

.text-cream {
  color: var(--accent-cream);
}

.bg-cream {
  background-color: var(--accent-cream);
}

/* Footer Styles */
/* Futuristic Footer */
.page-footer,
footer {
  background: linear-gradient(
    135deg,
    var(--forest-green) 0%,
    var(--primary-green) 50%,
    var(--primary-dark) 100%
  );
  color: rgba(255, 255, 255, 0.9);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-footer::before,
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold-accent) 0%,
    var(--mint) 25%,
    var(--gold-accent) 50%,
    var(--mint) 75%,
    var(--gold-accent) 100%
  );
  background-size: 200% 100%;
  animation: footerShine 4s linear infinite;
}

@keyframes footerShine {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

footer h6 {
  color: var(--gold-accent) !important;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  background: none !important;
  -webkit-text-fill-color: var(--gold-accent) !important;
}

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

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-accent);
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: var(--gold-accent);
  transform: translateX(8px);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

footer .fab,
footer .fas {
  color: var(--mint);
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 5px rgba(168, 213, 186, 0.3));
}

footer .fab:hover,
footer .fas:hover {
  transform: scale(1.3) rotate(5deg);
  color: var(--gold-accent);
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.6));
}

/* Responsive Design */
@media (max-width: 991px) {
  #mainNav .navbar-brand {
    font-size: 1.2rem;
  }

  #mainNav .nav-link {
    margin: 0.5rem 0;
  }

  .display-1 {
    font-size: 3rem !important;
  }

  .display-4 {
    font-size: 2rem !important;
  }

  .hero-content h1 {
    font-size: 2.5rem !important;
  }
}

@media (max-width: 767px) {
  .display-1 {
    font-size: 2.5rem !important;
  }

  .display-4 {
    font-size: 1.75rem !important;
  }

  .hero-content h1 {
    font-size: 2rem !important;
  }

  .btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

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

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

.fade-in-up {
  animation: fadeInUp 1s ease-out;
}

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

/* Parallax Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Loading Spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid var(--accent-cream);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Futuristic Scrollbar */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--sage) 100%);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary-green) 0%,
    var(--emerald) 100%
  );
  border-radius: 10px;
  border: 2px solid var(--sage);
  box-shadow: 0 0 10px rgba(74, 124, 89, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    var(--emerald) 0%,
    var(--light-green) 100%
  );
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

/* Selection Color */
::selection {
  background: var(--primary-green);
  color: var(--mint);
  text-shadow: 0 0 10px rgba(168, 213, 186, 0.5);
}

::-moz-selection {
  background: var(--primary-green);
  color: var(--mint);
}

/* Futuristic Card & Section Enhancements */
.card,
.info-card,
.contact-card,
.feature-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 213, 186, 0.3) !important;
  box-shadow:
    0 8px 32px rgba(45, 95, 63, 0.15),
    0 0 0 1px rgba(168, 213, 186, 0.1) inset !important;
  position: relative;
  overflow: hidden;
}

.card::before,
.info-card::before,
.contact-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(168, 213, 186, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  animation: cardShine 6s infinite;
}

@keyframes cardShine {
  0% {
    transform: rotate(45deg) translateY(-100%);
  }
  100% {
    transform: rotate(45deg) translateY(100%);
  }
}

/* Floating Animation for Elements */
.aos-animate {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(0) translateX(-5px);
  }
  75% {
    transform: translateY(10px) translateX(5px);
  }
}

/* Glow Effect for Important Elements */
.glow-green {
  box-shadow:
    0 0 20px rgba(74, 124, 89, 0.5),
    0 0 40px rgba(74, 124, 89, 0.3),
    0 0 60px rgba(74, 124, 89, 0.1);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(74, 124, 89, 0.5),
      0 0 40px rgba(74, 124, 89, 0.3),
      0 0 60px rgba(74, 124, 89, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(74, 124, 89, 0.7),
      0 0 60px rgba(74, 124, 89, 0.5),
      0 0 90px rgba(74, 124, 89, 0.3);
  }
}
