:root {
  --primary-dark: #0B6B3A;
  --primary-light: #46A34A;
  --accent-gold: #D4AF37;
  --bg-dark: #111111;
  --bg-graphite: #222222;
  --text-light: #F8F9FA;
  --text-muted: #C0C0C0;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  
  --glass-bg: rgba(17, 17, 17, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: 700;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: rgba(34, 34, 34, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(11, 107, 58, 0.3);
  border-color: rgba(70, 163, 74, 0.4);
}

/* Buttons */
.btn-premium {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: white;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(11, 107, 58, 0.4);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  z-index: -1;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 107, 58, 0.6);
}

.btn-outline-gold {
  background: transparent;
  color: var(--accent-gold);
  border: 2px solid var(--accent-gold);
  border-radius: 30px;
  padding: 10px 28px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-3px);
}

/* Header */
.navbar {
  transition: all 0.4s ease;
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(15px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-link:hover {
  color: var(--primary-light) !important;
}

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

.navbar-brand img {
  height: 50px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 0 10px rgba(70, 163, 74, 0.3));
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.1); /* For Ken Burns */
  animation: kenBurns 20s infinite alternate ease-in-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 107, 58, 0.7) 0%, rgba(17, 17, 17, 0.9) 100%);
  z-index: -1;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(to right, #ffffff, #A0A0A0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #ddd;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-logo {
  max-width: 300px;
  filter: drop-shadow(0 0 20px rgba(70, 163, 74, 0.5));
  animation: float 6s ease-in-out infinite;
}

.typewriter-container {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(70, 163, 74, 0.4);
}

/* Animations */
@keyframes kenBurns {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15) translate(-2%, -2%); }
}

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

/* General Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 2px;
}

/* About Section */
.about-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.about-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 107, 58, 0.4), transparent);
  z-index: 1;
}

.about-img {
  width: 100%;
  height: auto;
  transition: transform 0.8s ease;
}

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

.cert-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin-right: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.cert-badge:hover {
  background: rgba(70, 163, 74, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-3px);
}

.cert-badge i {
  font-size: 2rem;
  color: var(--accent-gold);
}

.accordion-custom .accordion-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 10px !important;
  overflow: hidden;
}

.accordion-custom .accordion-button {
  background: transparent;
  color: var(--text-light);
  font-weight: 600;
  box-shadow: none;
  padding: 20px;
}

.accordion-custom .accordion-button:not(.collapsed) {
  background: rgba(11, 107, 58, 0.2);
  color: var(--primary-light);
}

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

.accordion-custom .accordion-body {
  color: var(--text-muted);
  line-height: 1.8;
}

/* Materials Section */
.material-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  height: 350px;
  cursor: pointer;
  margin-bottom: 30px;
}

.material-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.material-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17,17,17,1) 0%, rgba(17,17,17,0.3) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  z-index: 1;
}

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

.material-icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

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

.material-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.material-desc {
  font-size: 0.9rem;
  color: #ccc;
  opacity: 0;
  max-height: 0;
  transition: all 0.4s ease;
}

.material-card:hover .material-desc {
  opacity: 1;
  max-height: 100px;
  margin-bottom: 15px;
}

/* Differentials */
.diff-item {
  text-align: center;
  padding: 30px 20px;
  transition: all 0.3s ease;
}

.diff-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(70, 163, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 1px solid rgba(70, 163, 74, 0.3);
  transition: all 0.4s ease;
}

.diff-item:hover .diff-icon-wrapper {
  background: var(--primary-dark);
  transform: rotateY(180deg);
}

.diff-icon-wrapper i {
  font-size: 2.5rem;
  color: var(--primary-light);
  transition: all 0.4s ease;
}

.diff-item:hover .diff-icon-wrapper i {
  color: white;
}

/* Counters */
.counters-section {
  background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)), url('../img/hero_bg.jpg');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  padding: 80px 0;
  border-top: 1px solid rgba(70,163,74,0.2);
  border-bottom: 1px solid rgba(70,163,74,0.2);
}

.counter-box {
  text-align: center;
}

.counter-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-light);
  font-family: var(--font-secondary);
  display: block;
}

.counter-text {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ccc;
}

/* Form */
.form-control, .form-select, .select2-container--default .select2-selection--single {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: white !important;
  border-radius: 8px;
  padding: 12px 15px;
}

.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: var(--primary-light) !important;
  box-shadow: 0 0 0 0.25rem rgba(70, 163, 74, 0.25) !important;
}

.form-label {
  color: #ccc;
  font-weight: 500;
}

/* Select2 overrides for dark theme */
.select2-dropdown {
  background-color: var(--bg-graphite) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: white !important;
  line-height: 24px;
}
.select2-search__field {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: white !important;
}
.select2-results__option {
  color: #ccc;
}
.select2-results__option--highlighted[aria-selected] {
  background-color: var(--primary-dark) !important;
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  max-width: 200px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  margin-right: 10px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* Utilities */
p {
  color: var(--text-light);
}
.text-muted {
  color: var(--text-muted) !important;
}
.text-primary-light {
  color: var(--primary-light) !important;
}
.bg-graphite {
  background-color: var(--bg-graphite);
}

/* Instagram Custom Feed */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.insta-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.insta-img-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1/1;
}
.insta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.insta-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.insta-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(70, 163, 74, 0.2);
  border-color: rgba(70, 163, 74, 0.4);
}
.insta-card:hover .insta-img {
  transform: scale(1.1);
  filter: brightness(1.2);
}
.insta-card:hover .insta-overlay {
  opacity: 1;
}
.insta-btn {
  background-color: var(--primary-light);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-weight: 600;
  text-decoration: none;
}
.insta-card:hover .insta-btn {
  transform: translateY(0);
}
.insta-btn:hover {
  background-color: var(--accent-gold);
  color: var(--bg-dark);
}
.insta-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.insta-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.insta-title {
  color: var(--text-light);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.insta-desc {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.glass-modal {
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-instagram {
  background: var(--primary-dark);
  color: white;
  transition: all 0.3s ease;
}
.btn-instagram:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

@media (min-width: 768px) {
  .swiper-mobile {
    display: none !important;
  }
}

/* Responsiveness */
@media (max-width: 991px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title { font-size: 3rem; }
  .navbar-collapse {
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }
}
@media (max-width: 767px) {
  .insta-grid {
    display: none !important;
  }
  .swiper-mobile {
    display: block;
    width: 100%;
    padding-bottom: 40px;
  }
  .swiper-mobile .swiper-slide {
    height: auto;
  }
  .hero-title { font-size: 2.2rem; }
  .section-padding { padding: 60px 0; }
  .counter-num { font-size: 2.5rem; }
}
