/* ==========================================================================
   MAMSPAG - GLOBAL & PUBLIC STYLESHEET
   Futuristic, Dark Tech Theme with Neon Accents (Electric Blue & Cyan AI)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Brighter, Creative Agency Vibe */
  --bg-darker: #060516;     /* Rich Dark Indigo-Black */
  --bg-dark: #0a0928;       /* Deep Violet Navy */
  --bg-card: rgba(18, 16, 52, 0.45); /* Glassmorphic Base with Violet tint */
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(0, 242, 254, 0.4);
  
  --primary: #0066ff;       /* Punchy Electric Blue */
  --primary-hover: #0052ff;
  --primary-glow: rgba(0, 102, 255, 0.4);
  
  --secondary: #ff007f;     /* Creative Neon Magenta */
  --secondary-glow: rgba(255, 0, 127, 0.45);
  
  --accent-cyan: #00f2fe;   /* Neon Cyan */
  --accent-purple: #8b5cf6; /* Creative Violet */
  
  --dark-teal: #003b46;     /* Logo dark accent */
  --dark-ocean: #0b4f6c;    /* Logo medium-dark accent */
  
  --text-primary: #ffffff;  /* Pure White */
  --text-secondary: #cbd5e1;/* High contrast slate gray */
  --text-muted: #64748b;
  
  --gradient-tech: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 50%, var(--secondary) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  --gradient-card: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(255, 0, 127, 0.03) 100%);
  
  --shadow-neon: 0 0 25px rgba(0, 102, 255, 0.25);
  --shadow-neon-cyan: 0 0 25px rgba(0, 242, 254, 0.3);
  --shadow-neon-magenta: 0 0 25px rgba(255, 0, 127, 0.3);
  
  --bg-light: #f8fafc;       /* Clean Light Blue-Gray */
  --bg-light-card: #ffffff;  /* Pure White for light cards */
  --text-light-primary: #0f172a;   /* Dark Slate */
  --text-light-secondary: #475569; /* Slate Gray */
  --text-light-muted: #94a3b8;
  --border-light-glass: rgba(0, 0, 0, 0.08);
  --shadow-light: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-light-hover: 0 20px 40px rgba(79, 70, 229, 0.12), 0 0 25px rgba(236, 72, 153, 0.08);
  --gradient-creative: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 50%, #ec4899 100%);
  
  --radius-lg: 20px;        /* Softened, more organic corners */
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother elastic transition */
}

/* ==========================================================================
   1. Reset & Core Elements
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  position: relative;
  font-family: var(--font-body);
  background-color: var(--bg-darker);
  background-image: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: rgba(30, 136, 229, 0.3);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==========================================================================
   2. Layout & Utility Classes
   ========================================================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section-padding {
  padding: 100px 0;
  overflow: hidden;
}
@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

.text-gradient {
  background: var(--gradient-tech);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-tech);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.45), 0 0 20px rgba(255, 0, 127, 0.25);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
  transform: translateY(-3px);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.45);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 102, 255, 0.18), 0 0 20px rgba(255, 0, 127, 0.15);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  background: rgba(30, 136, 229, 0.15);
  color: var(--primary);
  border: 1px solid rgba(30, 136, 229, 0.3);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.3);
}

/* Grid helper */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(30, 136, 229, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    display: none; /* Controlled by JS toggle */
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 30px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
  }
  .nav.active {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
}

/* ==========================================================================
   4. Landing Page / Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at 75% 25%, rgba(0, 242, 254, 0.18) 0%, transparent 55%),
              radial-gradient(circle at 15% 75%, rgba(255, 0, 127, 0.18) 0%, transparent 50%),
              radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 35px;
  max-width: 600px;
}
@media (max-width: 992px) {
  .hero-content p {
    margin: 0 auto 35px;
  }
}

.hero-actions {
  display: flex;
  gap: 15px;
}
@media (max-width: 992px) {
  .hero-actions {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-blob {
  position: relative;
  width: 320px;
  height: 320px;
  background: var(--gradient-tech);
  border-radius: 40% 60% 60% 40% / 65% 35% 65% 35%;
  animation: morph 8s ease-in-out infinite alternate;
  box-shadow: 0 0 50px rgba(30, 136, 229, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-blob::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  background: var(--bg-darker);
  border-radius: inherit;
}
.hero-icon {
  position: relative;
  z-index: 2;
  font-size: 5rem;
  animation: float 4s ease-in-out infinite;
}

@keyframes morph {
  0% { border-radius: 40% 60% 60% 40% / 65% 35% 65% 35%; }
  100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ==========================================================================
   5. Home Services Summary
   ========================================================================== */
.home-services {
  background: var(--bg-dark);
}
.home-service-card {
  text-align: left;
}
.home-service-card .icon {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 20px;
  display: inline-block;
}
.home-service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}
.home-service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.home-service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.home-service-link:hover {
  gap: 10px;
}

/* ==========================================================================
   6. Testimonials Section
   ========================================================================== */
.testimonials-section {
  position: relative;
  overflow: hidden;
}
.testimonial-carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.testimonial-card {
  text-align: center;
  padding: 40px;
  display: none; /* Controlled by JS */
}
.testimonial-card.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
.testimonial-rating {
  color: #ffb800;
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.testimonial-content {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-primary);
}
.testimonial-client {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}
.testimonial-info h4 {
  font-size: 1.1rem;
}
.testimonial-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ==========================================================================
   7. Services Page (Detailed)
   ========================================================================== */
.services-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.services-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
}
.tab-btn {
  padding: 10px 20px;
  border: 1px solid var(--border-glass);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--gradient-tech);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

.service-tab-content {
  display: none;
}
.service-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.package-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.package-card.highlighted {
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
  background: linear-gradient(180deg, rgba(30,136,229,0.08) 0%, rgba(15,23,42,0.6) 100%);
}
.package-header {
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.package-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 10px;
}
.package-price span {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}
.package-features {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}
.package-features li {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.package-features li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: bold;
}
.package-card .btn {
  width: 100%;
}

.package-note {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   8. Portfolio Grid & Filters
   ========================================================================== */
.portfolio-filters {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-bottom: 40px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.filter-row span {
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--text-muted);
  align-self: center;
}
.filter-btn {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  transition: var(--transition);
}
.portfolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}
.portfolio-img-container {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}
.portfolio-info-overlay {
  padding: 25px;
}
.portfolio-info-overlay h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.portfolio-info-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 15px;
}
.portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.portfolio-meta .tag {
  background: rgba(255,255,255,0.05);
  padding: 3px 10px;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}
.portfolio-link {
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.portfolio-link:hover {
  gap: 8px;
}

/* ==========================================================================
   9. Blog List & Single Post Pages
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.blog-card-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.blog-card-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.blog-card-link:hover {
  gap: 8px;
}

/* Blog Search Header */
.blog-search-bar {
  display: flex;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto 50px;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(30,136,229,0.25);
}

/* Single Blog Page */
.blog-post-header {
  padding: 140px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(30,136,229,0.1) 0%, transparent 60%);
}
.blog-post-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.blog-post-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.blog-post-cover {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 50px;
}
.blog-post-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e2e8f0;
}
.blog-post-body p {
  margin-bottom: 25px;
}
.blog-post-body h2, .blog-post-body h3 {
  margin: 40px 0 20px;
  color: var(--text-primary);
}
.blog-post-body ul, .blog-post-body ol {
  margin-bottom: 25px;
  padding-left: 20px;
}
.blog-post-body li {
  margin-bottom: 10px;
}
.blog-post-body strong {
  color: var(--secondary);
}
.blog-post-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-secondary);
  margin: 30px 0;
}
.blog-post-body code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: monospace;
}
.blog-post-footer {
  max-width: 800px;
  margin: 50px auto 0;
  padding-top: 30px;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   10. Contact Page & Form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.contact-info-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.contact-info-item .icon {
  font-size: 1.8rem;
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.contact-info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}
.contact-info-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.contact-form-card {
  padding: 40px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

.form-alert {
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.form-alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ==========================================================================
   11. About Us (Nosotros) Page
   ========================================================================== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
@media (max-width: 992px) {
  .about-story {
    grid-template-columns: 1fr;
  }
}
.about-story-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.about-story-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.values-grid {
  margin-top: 80px;
}
.value-card {
  text-align: center;
}
.value-card .icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-glass);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 20px 0;
  max-width: 300px;
}
.footer-socials {
  display: flex;
  gap: 15px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.social-icon:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-neon);
}

.footer-column h3 {
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact-info li {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.footer-contact-info .icon {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
@media (max-width: 576px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   13. Secure Login Page Layout
   ========================================================================== */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  background: radial-gradient(circle at center, rgba(30, 136, 229, 0.1) 0%, var(--bg-darker) 100%);
}
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}
.login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-logo {
  height: 60px;
  width: auto;
  margin: 0 auto 15px;
}
.login-header h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.login-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.login-card .btn {
  width: 100%;
  margin-top: 15px;
}

/* ==========================================================================
   14. Animations Helper
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SEO Schema structural styling helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   15. Navigation Dropdown Menu Styles
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  min-width: 230px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

/* Invisible bridge to keep hover active across the 10px gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  text-align: left;
}

.dropdown-item i {
  color: var(--secondary);
  font-size: 0.95rem;
  width: 16px;
  text-align: center;
}

.dropdown-item:hover {
  background: rgba(30, 136, 229, 0.1);
  color: var(--text-primary);
  padding-left: 25px;
}

/* Adjustments for mobile view navigation menu list */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.02);
    border: none;
    box-shadow: none;
    margin-top: 10px;
    padding: 0;
    width: 100%;
    display: none;
    animation: none;
  }
  .dropdown-item {
    justify-content: center;
    padding: 10px 0;
    font-size: 0.9rem;
  }
  .dropdown-item:hover {
    padding-left: 0;
    background: none;
    color: var(--primary);
  }
}

/* ==========================================================================
   16. Floating WhatsApp Button Styles
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  background-color: #20ba5a;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #fff;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Adjust size on mobile viewports */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}

/* ==========================================================================
   17. Floating Chatbot Widget Styles
   ========================================================================== */
.chatbot-widget {
  position: fixed;
  bottom: 110px; /* Stacked above the WhatsApp button (which is at bottom: 30px) */
  right: 30px;
  z-index: 9998; /* Just below the chat window and header */
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 8px 25px rgba(30, 144, 255, 0.6);
}

.chatbot-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.6);
  animation: pulse-chatbot 2s infinite;
  pointer-events: none;
}

@keyframes pulse-chatbot {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(30, 144, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(30, 144, 255, 0);
  }
}

/* Chat Window Container */
.chatbot-window {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  height: 520px;
  background: rgba(13, 21, 39, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10000;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Chat Window Header */
.chatbot-header {
  padding: 15px 20px;
  background: rgba(30, 136, 229, 0.1);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
}

.chatbot-brand h4 {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
}

.chatbot-status {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #25d366;
}

.chatbot-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-close:hover {
  color: #ef4444;
}

/* Chat Window Body (Messages) */
.chatbot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  scroll-behavior: smooth;
}

/* Scrollbar styles for chat */
.chatbot-body::-webkit-scrollbar {
  width: 5px;
}
.chatbot-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}
.chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

/* Message Styles */
.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  position: relative;
  animation: message-slide 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  word-wrap: break-word;
}

@keyframes message-slide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message p {
  margin: 0;
}

.chat-message p + p {
  margin-top: 8px;
}

.chat-message strong {
  color: #fff;
  font-weight: 600;
}

/* Markdown style bullet points in chat */
.chat-message ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}

.chat-message li {
  margin-top: 4px;
}

/* Payment Link CTA buttons inside Chat */
.chat-message .chat-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25d366, #20ba5a);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 12px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s;
}

.chat-message .chat-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  background: linear-gradient(135deg, #20ba5a, #25d366);
}

.bot-message {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.user-message {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.2), rgba(0, 242, 254, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 6px;
  text-align: right;
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Chat Input Footer */
.chatbot-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-glass);
  background: rgba(13, 21, 39, 0.95);
}

.chatbot-footer form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  color: #fff;
  font-size: 0.92rem;
  transition: all 0.3s;
}

.chatbot-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(30, 136, 229, 0.2);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chatbot-send:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chatbot-widget {
    bottom: 85px; /* Offset stacked vertically above WhatsApp mobile (bottom: 20px) */
    right: 20px;
  }
  
  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  
  .chatbot-window {
    bottom: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    height: calc(100% - 40px);
    max-height: 550px;
  }
}

/* Ambient background glow blobs container to prevent horizontal scroll bugs */
.glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Ambient background glow blobs */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  -webkit-filter: blur(130px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
  animation: float-blob 22s infinite alternate ease-in-out;
}
.blob-1 {
  background: var(--accent-cyan);
  width: 450px;
  height: 450px;
  top: 15%;
  left: -150px;
}
.blob-2 {
  background: var(--secondary);
  width: 550px;
  height: 550px;
  top: 45%;
  right: -200px;
  animation-delay: -6s;
}
.blob-3 {
  background: var(--primary);
  width: 400px;
  height: 400px;
  bottom: 15%;
  left: 20%;
  animation-delay: -12s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(60px, 90px) scale(1.15) rotate(180deg);
  }
  100% {
    transform: translate(-40px, -60px) scale(0.85) rotate(360deg);
  }
}

/* ==========================================================================
   18. Alternating Section Background Styles (Creative & Alegre)
   ========================================================================== */
.section-light {
  background-color: var(--bg-light) !important;
  background-image: none !important;
  color: var(--text-light-primary) !important;
}

.section-light .section-title h2 {
  color: var(--text-light-primary) !important;
}

.section-light .section-title p {
  color: var(--text-light-secondary) !important;
}

.section-light .light-card {
  background: var(--bg-light-card) !important;
  border: 1px solid var(--border-light-glass) !important;
  box-shadow: var(--shadow-light) !important;
  color: var(--text-light-primary) !important;
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: var(--transition);
}

.section-light .light-card h3 {
  color: var(--text-light-primary) !important;
  margin-bottom: 15px;
}

.section-light .light-card p {
  color: var(--text-light-secondary) !important;
}

.section-light .light-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-light-hover) !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.section-light .light-card .icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-light .home-service-card .icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
}

.section-light .home-service-card .icon i {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-light .home-service-link {
  color: #4f46e5 !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.section-light .home-service-link:hover {
  color: #ec4899 !important;
  gap: 10px;
}

/* Form styles for light background sections */
.section-light .form-group label {
  color: var(--text-light-secondary) !important;
}
.section-light .form-input {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.16) !important;
  color: var(--text-light-primary) !important;
}
.section-light .form-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.15) !important;
}
.section-light select.form-input {
  background-color: #ffffff !important;
}
.section-light select.form-input option {
  background-color: #ffffff !important;
  color: var(--text-light-primary) !important;
}

/* Gradient Section (e.g. Testimonials) */
.section-gradient {
  background: var(--gradient-creative) !important;
  color: #ffffff !important;
}

.section-gradient .section-title h2 {
  color: #ffffff !important;
}

.section-gradient .section-title p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.section-gradient .testimonial-card {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
}

.section-gradient .testimonial-rating {
  color: #ffd700 !important;
}

.section-gradient .testimonial-info p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.section-gradient .carousel-dot {
  background: rgba(255, 255, 255, 0.3) !important;
}

.section-gradient .carousel-dot.active {
  background: #ffffff !important;
}

/* ==========================================================================
   19. Scroll Reveal Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view,
.reveal-zoom.in-view {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Hero Visual Animation and Glow */
/* Hero Pets Visualization Styles (No Background, Large & Eye-Catching) */
.pets-animation-wrapper {
  animation: float-pets-img 6s ease-in-out infinite;
  z-index: 5;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img.hero-pets-image {
  filter: drop-shadow(0 15px 35px rgba(0, 102, 255, 0.45)) drop-shadow(0 0 25px rgba(255, 0, 127, 0.25));
  max-width: 100%;
  max-height: 725px; /* 25% increase from 580px */
  width: auto;
  height: auto;
  z-index: 5;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes float-pets-img {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.glow-backdrop-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 525px; /* 25% increase from 420px */
  height: 525px; /* 25% increase from 420px */
  z-index: 1;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pets-glow-backdrop {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.45) 0%, rgba(255, 0, 127, 0.3) 50%, transparent 70%);
  filter: blur(55px);
  -webkit-filter: blur(55px);
  pointer-events: none;
  border-radius: 50%;
  animation: pulse-glow-backdrop 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow-backdrop {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

/* Adjustments for tablets and mobiles */
@media (max-width: 992px) {
  .hero-visual img.hero-pets-image {
    max-height: 575px; /* 25% increase from 460px */
    margin: 0 auto;
  }
  .glow-backdrop-wrapper {
    width: 400px; /* 25% increase from 320px */
    height: 400px; /* 25% increase from 320px */
  }
}
@media (max-width: 480px) {
  .hero-visual img.hero-pets-image {
    max-height: 450px; /* 25% increase from 360px */
  }
}

/* ==========================================================================
   20. Lightbox Modal Gallery for Portfolio Designs
   ========================================================================== */
.modal-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 5, 22, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}

.modal-content-wrapper {
  width: 90%;
  max-width: 900px;
  background: rgba(18, 16, 52, 0.7);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  padding: 40px 30px 30px;
  box-shadow: var(--shadow-neon);
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2.5rem;
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2010;
}
.modal-close:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

.modal-slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.modal-image-wrapper {
  flex: 1;
  max-height: 55vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.modal-image-wrapper img {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  transition: opacity 0.12s ease;
}

.modal-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  transition: var(--transition);
}
.modal-nav-btn:hover {
  background: var(--gradient-tech);
  border-color: transparent;
  transform: scale(1.1);
}

.thumbnails-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  justify-content: center;
  margin-top: 20px;
  padding: 10px 0;
  max-width: 100%;
}
.thumbnails-strip::-webkit-scrollbar {
  height: 6px;
}
.thumbnails-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.thumbnail-item {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.thumbnail-item.active {
  opacity: 1;
  border-color: var(--accent-cyan);
}
.thumbnail-item:hover {
  opacity: 0.9;
}

/* ==========================================================================
   21. Masonry Grid Layout (Pinterest / Instagram Details Style)
   ========================================================================== */
.masonry-grid {
  column-count: 3;
  column-gap: 20px;
  width: 100%;
}

@media (max-width: 992px) {
  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .masonry-grid {
    column-count: 1;
    column-gap: 0;
  }
}

.masonry-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  break-inside: avoid;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.masonry-item:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.25);
}

.masonry-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 5, 22, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay i {
  color: #fff;
  font-size: 1.8rem;
  text-shadow: 0 0 10px var(--accent-cyan);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.masonry-item:hover .masonry-overlay i {
  transform: scale(1);
}





