/* Custom CSS Variables */
:root {
  --primary-color: #0F5132;
  --secondary-color: #D4AF37;
  --bg-color: #F9F9F9;
  --text-color: #1E1E1E;
  --white: #FFFFFF;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--primary-color);
}

/* Typography elements */
p {
  margin-bottom: 1rem;
}

/* Structure and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.gap-2 { gap: 1rem; }

/* Flex utilities */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 10px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
}

.btn-primary:hover {
  background-color: #0c4329;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 81, 50, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  background-color: #c29d2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

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

.btn-white {
  background-color: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

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

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

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Animations - Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.left { transform: translateX(-30px); }
.reveal.right { transform: translateX(30px); }
.reveal.left.active, .reveal.right.active { transform: translateX(0); }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--glass-border);
}
.navbar.solid-bg {
  background: var(--white);
  padding: 15px 0;
  box-shadow: var(--shadow-soft);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar.scrolled .logo, .navbar.solid-bg .logo { color: var(--primary-color); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
  font-family: var(--font-heading);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.navbar.scrolled .nav-links a, .navbar.solid-bg .nav-links a { color: var(--text-color); }
.navbar.scrolled .nav-links a:hover, .navbar.solid-bg .nav-links a:hover { color: var(--primary-color); }

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}
.navbar.scrolled .menu-toggle, .navbar.solid-bg .menu-toggle {
  color: var(--text-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 800px;
  padding-top: 80px;
}
.hero h1 {
  font-size: 4.5rem;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  line-height: 1.1;
}
.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease;
  color: rgba(255, 255, 255, 0.9);
}
.hero-btns {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1.4s ease;
}

/* Page Header */
.page-header {
  padding: 160px 0 80px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: url('https://images.unsplash.com/photo-1586201375761-83865001e31c?auto=format&fit=crop&q=80') center/cover;
  opacity: 0.1;
}
.page-header h1 {
  color: var(--white);
  font-size: 3rem;
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  background-color: #111;
  color: var(--white);
  padding: 80px 0 20px;
  border-top: 5px solid var(--primary-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 { 
  color: var(--white); 
  margin-bottom: 25px; 
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}
.footer-col p { color: #aaa; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #aaa; text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--secondary-color); padding-left: 5px; }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #aaa;
  margin-bottom: 20px;
}
.footer-contact i {
  color: var(--secondary-color);
  font-size: 18px;
  margin-top: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #888;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 250px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    align-items: flex-start;
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: var(--text-color); }
  .menu-toggle { display: block; z-index: 1001; }
  .menu-toggle.active { color: var(--text-color); }
  
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .hero-btns { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-color);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.form-control:read-only {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

/* Success Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef7f2;
  color: var(--primary-color);
  font-size: 40px;
  transform: scale(0);
}

.success-message-screen.active .success-checkmark {
  animation: scale-up 0.5s ease-out forwards;
}

@keyframes scale-up {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.success-message-screen {
  display: none;
  text-align: center;
  padding: 20px 0;
}
