/* =========================================
   Pepe's Neuronautical Realm - Modern Frog Theme
   ========================================= */

/* CSS Variables for consistent theming */
:root {
  --primary-green: #2d5a27;
  --dark-green: #1a472a;
  --light-green: #4CAF50;
  --accent-gold: #FFD700;
  --accent-pink: #FF69B4;
  --water-blue: #87CEEB;
  --lily-green: #90EE90;
  --text-light: #f8f9fa;
  --text-dark: #333333;
  --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

/* Frog Theme Background */
.frog-theme {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  min-height: 100vh;
  position: relative;
}

/* Animated Background Effect */
.frog-theme::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(144, 238, 144, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Navigation Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary-green) !important;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
  color: var(--light-green) !important;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '🐸';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s ease;
  opacity: 0;
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green) !important;
}

/* Dropdown Styles */
.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-hover);
  border-radius: 10px;
  padding: 0.5rem;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background: var(--light-green);
  color: white;
  transform: translateX(5px);
}

/* Button Styles */
.btn-success {
  background: linear-gradient(135deg, var(--light-green) 0%, var(--primary-green) 100%);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  color: white;
}

.btn-outline-success {
  border-radius: 50px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background: var(--light-green);
  color: white;
  transform: scale(1.05);
}

/* Card Styles */
.frog-card {
  background: white;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  overflow: hidden;
  height: 100%;
}

.frog-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-hover);
}

.card {
  border: none;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-title {
  color: var(--primary-green);
  font-weight: 700;
}

/* Jumbotron / Hero Section */
.jumbotron {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: var(--text-light);
  border-radius: 20px;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.jumbotron::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50%, -50%); }
}

.jumbotron h1,
.jumbotron h2,
.jumbotron h3 {
  position: relative;
  z-index: 1;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
  color: var(--text-light);
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '🐸';
  position: absolute;
  font-size: 20rem;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.page-header::before {
  top: -50%;
  left: -20%;
}

.page-header::after {
  content: '🪷';
  position: absolute;
  font-size: 15rem;
  opacity: 0.1;
  animation: float 8s ease-in-out infinite reverse;
}

.page-header::after {
  bottom: -30%;
  right: -10%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Testimonial Blockquote */
.blockquote {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border-left: 5px solid var(--light-green);
  transition: all 0.3s ease;
}

.blockquote:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
}

.blockquote-footer {
  color: var(--primary-green);
  font-weight: 600;
}

/* Form Styles */
.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid #e0e0e0;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--light-green);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
  outline: none;
}

/* Search Form */
.form-inline .form-control {
  border-radius: 50px 0 0 50px;
}

.form-inline .btn {
  border-radius: 0 50px 50px 0;
  margin-left: -5px;
}

/* Footer Styles */
footer {
  background: var(--dark-green);
  color: var(--text-light);
  padding: 3rem 0;
  margin-top: 4rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--light-green), var(--accent-gold), var(--light-green));
}

footer h4 {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Image Styles */
.rounded-circle {
  border: 4px solid var(--light-green);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-hover);
  transform: scale(1.1);
}

/* NOUGHT Modal Styles */
#noughtContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#noughtFrame {
  width: 95%;
  height: 95%;
  margin: 2.5% auto;
  background: white;
  border-radius: 10px;
}

#closeNought {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: linear-gradient(135deg, var(--light-green), var(--primary-green));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  transition: all 0.3s ease;
}

#closeNought:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .jumbotron,
  .page-header {
    padding: 2rem 1rem;
  }
  
  .jumbotron h1 {
    font-size: 2rem;
  }
  
  .frog-card {
    margin-bottom: 1.5rem;
  }
  
  .blockquote {
    padding: 1.5rem;
  }
  
  #closeNought {
    top: 10px;
    right: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .form-inline .form-control,
  .form-inline .btn {
    width: 100%;
    border-radius: 50px;
  }
  
  .form-inline .btn {
    margin-top: 0.5rem;
  }
}

/* Utility Classes */
.text-frog {
  color: var(--primary-green) !important;
}

.bg-frog {
  background: var(--primary-green) !important;
}

.shadow-frog {
  box-shadow: var(--shadow-soft);
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--dark-green);
}

::-webkit-scrollbar-thumb {
  background: var(--light-green);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Ripple Effect for Buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Hover Effects for Links */
a {
  position: relative;
  text-decoration: none;
}

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--light-green);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

a:hover::after {
  width: 100%;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease;
}

.slide-up {
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Menu Improvements */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.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='rgba(45, 90, 39, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Special Froge Butt Section */
.froge-butt-section {
  background: linear-gradient(135deg, var(--accent-pink), var(--light-green));
  padding: 3rem;
  border-radius: 20px;
  margin: 2rem 0;
  text-align: center;
  color: white;
  box-shadow: var(--shadow-hover);
}

.froge-butt-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Contact Form Enhancement */
#feedbackForm {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-soft);
}

#feedbackForm .form-group {
  margin-bottom: 1.5rem;
}

/* Copyright Notice */
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
