:root {
  --ebb: #ffffff;
  --cannon-pink: #914876;
  --everglade: #224e2d;
  --olive-green: #99b24c;
  --body-bg: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  --text-dark: #1e293b;
  --gradient-primary: linear-gradient(135deg, #914876 0%, #b45a8a 50%, #914876 100%);
  --gradient-secondary: linear-gradient(135deg, #224e2d 0%, #2d6640 50%, #224e2d 100%);
  --gradient-accent: linear-gradient(135deg, #99b24c 0%, #a8c25a 50%, #99b24c 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--body-bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Premium Navbar */
.custom-navbar {
  background: black;
  backdrop-filter: blur(20px);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: 1000;
}

.custom-navbar.scrolled {
  background: black;
  backdrop-filter: blur(30px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.navbar-brand {
  transition: transform 0.3s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.nav-link {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  color: white !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
  transition: left 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  left: 0;
}

.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  color: var(--text-dark);
  transition: all 0.3s ease;
  font-weight: 500;
  border-radius: 8px;
  margin: 4px 8px;
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateX(8px);
}

.map-container {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Hero Section with Background Image */
.hero-section {
  min-height: 50vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 70px;
  background-image: url('../assets/contact.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  filter: brightness(0.1);
  top: 0;
  left: 0;
}

.hero-content {
  text-align: center;
  padding: 3rem 2rem;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 400;
}

/* 3D Canvas */
#three-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Main Content */
.contact-main {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

/* Premium Glass Card */
.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  margin-bottom: 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(145, 72, 118, 0.1);
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.contact-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.contact-card:hover::after {
  opacity: 1;
  transform: rotate(45deg) translate(50%, 50%);
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(145, 72, 118, 0.15);
  border-color: rgba(145, 72, 118, 0.3);
}

.contact-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cannon-pink);
  margin-bottom: 0.5rem;
}

.contact-header p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

/* Form Styles */
.contact-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  padding: 0.85rem 1.2rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cannon-pink);
  background: white;
  box-shadow: 0 0 0 3px rgba(145, 72, 118, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.btn-submit {
  padding: 0.85rem 2.5rem;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 24px rgba(145, 72, 118, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #b45a8a 0%, #914876 50%, #b45a8a 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(145, 72, 118, 0.4);
}

.btn-submit:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Info and Map Wrapper */
.info-map-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Contact Info Card */
.contact-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(153, 178, 76, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--gradient-accent);
}

.contact-info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(153, 178, 76, 0.15);
  border-color: rgba(153, 178, 76, 0.3);
}

.info-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-icon {
  font-size: 2.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.info-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive-green);
  margin: 0;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(8px);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--olive-green);
  min-width: 24px;
  margin-top: 2px;
}

.info-item div strong {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.info-item div p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Map Card */
.map-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(153, 178, 76, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.map-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
}

.map-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(34, 78, 45, 0.15);
  border-color: rgba(34, 78, 45, 0.3);
}

.map-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.map-header i {
  font-size: 2rem;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.map-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--everglade);
  margin: 0;
}

.map-container {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.map-container-1 {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
}

.map-container iframe,
.map-container-1 iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Premium Footer */
.footer-section {
  background: black;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-accent);
}

.footer-logo {
  max-width: 120px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  color: white;
  text-decoration: none;
}

.social-link:hover {
  background: var(--gradient-accent);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 16px rgba(153, 178, 76, 0.3);
  color: white;
}

.footer-section a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--olive-green) !important;
}

/* Responsive Design */
@media (max-width: 992px) {
  .custom-navbar {
    font-size: 1rem;
  }

  .logo {
    height: 38px;
  }

  .hero-section {
    min-height: 45vh;
  }

  .contact-card {
    padding: 2.5rem 2rem;
  }

  .contact-header h2 {
    font-size: 1.75rem;
  }

  .info-map-wrapper {
    grid-template-columns: 1fr;
  }

  .map-container-1 {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 40vh;
    margin-top: 60px;
    background-attachment: scroll;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .contact-main {
    margin: 2rem auto;
    padding: 0 1rem 3rem;
  }

  .contact-card {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 20px;
  }

  .contact-header h2 {
    font-size: 1.5rem;
  }

  .contact-header p {
    font-size: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .btn-row {
    justify-content: center;
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 2rem;
    font-size: 1rem;
  }

  .contact-info-card,
  .map-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .info-header,
  .map-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .info-header h3,
  .map-header h3 {
    font-size: 1.3rem;
  }

  .info-icon {
    font-size: 2rem;
  }

  .map-header i {
    font-size: 1.75rem;
  }

  .info-item {
    padding: 0.85rem;
  }

  .info-item:hover {
    transform: translateX(4px);
  }

  .map-container {
    height: 250px;
  }

  .map-container-1 {
    height: 300px;
  }

  .footer-section {
    margin-top: 3rem;
  }

  .footer-logo {
    max-width: 100px;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 35vh;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .contact-main {
    padding: 0 0.75rem 2rem;
  }

  .contact-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
  }

  .contact-header h2 {
    font-size: 1.3rem;
  }

  .contact-header p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .form-row {
    gap: 0.85rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 10px;
  }

  .form-group textarea {
    min-height: 90px;
  }

  .btn-submit {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 40px;
  }

  .contact-info-card,
  .map-card {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .info-header h3,
  .map-header h3 {
    font-size: 1.2rem;
  }

  .info-icon {
    font-size: 1.75rem;
  }

  .map-header i {
    font-size: 1.5rem;
  }

  .info-item {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .info-item i {
    font-size: 1.3rem;
  }

  .info-item div strong {
    font-size: 0.9rem;
  }

  .info-item div p {
    font-size: 0.85rem;
  }

  .map-container {
    height: 200px;
    border-radius: 12px;
  }

  .map-container-1 {
    height: 250px;
    border-radius: 12px;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .contact-card {
    padding: 1.25rem 0.85rem;
  }

  .contact-header h2 {
    font-size: 1.2rem;
  }

  .btn-submit {
    font-size: 0.9rem;
    padding: 0.7rem 1.25rem;
  }

  .contact-info-card,
  .map-card {
    padding: 1.25rem 0.85rem;
  }

  .map-container-1 {
    height: 220px;
  }
}

/* Animations */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-10px); 
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ripple Effect */
.btn-submit {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}