/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --color-green-primary: #2E8B57;
  /* Sea Green */
  --color-green-dark: #1E5936;
  --color-green-olive: #556B2F;
  --color-brown-primary: #8B4513;
  --color-brown-light: #A0522D;
  --color-cream: #FFFBF0;
  /* Warm Cream */
  --color-white: #FFFFFF;
  --color-yellow-cta: #F4D03F;
  --color-yellow-hover: #E1C137;
  --color-text-dark: #1A1A1A;
  --color-text-light: #4A4A4A;

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;

  /* Spacing */
  --spacing-container: 1200px;
  --spacing-section: 4rem;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-cream);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Tubelight Navbar */
.tubelight-navbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: auto;
  bottom: 20px;
  /* Default mobile (bottom) */
}

@media (min-width: 768px) {
  .tubelight-navbar {
    bottom: auto;
    top: 20px;
    /* Desktop (top) */
  }
}

.navbar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 253, 240, 0.75);
  /* High visibility cream glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  /* Stronger shadow for depth */
}

.nav-item {
  position: relative;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  border-radius: 9999px;
  color: var(--color-green-dark);
  /* Darker text for contrast */
  font-weight: 700;
  /* Bold as requested */
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.5px;
}

.nav-item:hover {
  color: var(--color-brown-primary);
  background: rgba(0, 0, 0, 0.03);
}

.nav-item.active {
  color: var(--color-green-dark);
  background: transparent;
  /* Lamp effect handles the look, preventing double bg */
}

/* Icons vs Text */
.nav-text {
  display: none;
}

.nav-icon {
  display: block;
  font-size: 1.2rem;
}

@media (min-width: 768px) {
  .nav-text {
    display: inline;
  }

  .nav-icon {
    display: none;
  }
}

/* Lamp Effect */
.lamp-effect {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: 9999px;
  z-index: -10;
  pointer-events: none;
  overflow: hidden;
  /* important for clipping the top glow */
}

.lamp-glow-top {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 6px;
  background: var(--color-green-primary);
  border-radius: 10px 10px 0 0;
}

.lamp-glow-blur {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 20px;
  background: var(--color-green-primary);
  filter: blur(15px);
  opacity: 0.5;
}

/* Container */
.container {
  max-width: var(--spacing-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utility */
.serif {
  font-family: var(--font-serif);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--color-yellow-cta);
  color: var(--color-text-dark);
}

.btn-primary:hover {
  background-color: var(--color-yellow-hover);
  transform: translateY(-2px);
}

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

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

.btn-outline {
  border: 1px solid var(--color-green-primary);
  color: var(--color-green-primary);
  background: transparent;
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

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

/* Header */
header {
  background-color: transparent;
  /* Was white */
  box-shadow: none;
  /* Was shadow */
  position: absolute;
  /* Was sticky */
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  /* ensures no bottom gap */
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--color-text-light);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-green-primary);
}

.nav-cta {
  display: none;
  /* Mobile hidden mainly, or extra info */
}

@media (min-width: 768px) {
  .nav-cta {
    display: block;
    font-weight: 600;
    color: var(--color-green-primary);
  }
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  /* height handled by GSAP pinning, or start with 100vh */
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Remove background color as video covers it */
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Removed second column for image */
  gap: 3rem;
  align-items: center;
  /* Ensure text is readable over video */
  width: 100%;
  height: 100%;
  /* Optional: Center content vertically if flex doesn't */
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    max-width: 1200px;
    padding-left: 0;
    /* Alignment tweak */
  }

  .hero-content {
    max-width: 50%;
    /* Force text to left half */
  }
}

.hero-content {
  z-index: 2;
  padding: 2rem;
  width: 100%;
}

/* Gradient Overlay on Video wrapper instead of explicit element */
.hero-video-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* stronger gradient to support text */
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  /* Increased base size */
  color: var(--color-green-dark);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 62px;
    /* User specific size */
  }

  .subtitle {
    font-size: 1.2rem;
    /* Increased (was default/small) */
  }

  .hero-subtitle {
    font-size: 1.25rem;
    /* Increased from 1.1rem */
    line-height: 1.6;
  }
}

/* Restored Hero Styles */
.hero-subtitle {
  color: var(--color-text-light);
  margin-bottom: 3rem;
  /* Increased spacing */
  font-size: 1.1rem;
  /* Base size, overridden by media query */
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  /* Increased gap between buttons */
  flex-wrap: wrap;
  margin-bottom: 3rem;
  /* Increased spacing before social icons */
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  /* Increased gap between icons */
  color: var(--color-green-primary);
}

.social-icons i {
  font-size: 1.5rem;
  /* Slightly larger icons */
  transition: transform 0.3s ease;
}

.social-icons a:hover i {
  transform: translateY(-3px);
  color: var(--color-green-dark);
}


/* Sections */
section {
  padding: var(--spacing-section) 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-green-dark);
  margin-bottom: 1rem;
}

/* About New Design */
.about-hero-wrapper {
  position: relative;
  border-radius: 80px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-hero-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -25px;
  /* Halfway out but container overflows hidden? No, wrapper has overflow hidden. Need to adjust or change wrapper */
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-dark);
  font-weight: 700;
  white-space: nowrap;
}

/* Special fix for badge overflow: move radius to img instead of wrapper */
.about-hero-container {
  position: relative;
  margin-bottom: 4rem;
  text-align: center;
}

.about-hero-container img {
  border-radius: 80px;
}

.about-hero-container .hero-badge {
  bottom: -20px;
}

.about-grid-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

@media (min-width: 900px) {
  .about-grid-section {
    grid-template-columns: 1fr 1.5fr;
  }
}

.about-intro-left h2 {
  font-size: 1.8rem;
  color: var(--color-text-light);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.about-intro-left h3 {
  font-size: 2.5rem;
  color: #4A90E2;
  /* Blueish from reference, or stick to Green? Reference has light blue. I'll use Green to match brand */
  color: var(--color-green-primary);
  margin-bottom: 1.5rem;
}

.about-text-content p {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* Specialization Grid */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.spec-card {
  background: #E8F5E9;
  /* Light green bg */
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s;
}

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

.spec-card i {
  font-size: 2rem;
  color: var(--color-green-primary);
  margin-bottom: 1rem;
}

.spec-card span {
  display: block;
  font-weight: 600;
  color: var(--color-green-dark);
}

/* Testimonials */
.testimonial-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* Bottom CTA */
.bottom-cta {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  padding: 5rem 2rem;
  text-align: center;
  color: white;
  margin-bottom: 4rem;
}

.bottom-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

.bottom-cta h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}


/* Footer */
footer {
  background-color: var(--color-green-dark);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-yellow-cta);
}

.footer-links li {
  margin-bottom: 0.8rem;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 3rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  box-shadow: 0 8px 32px rgba(46, 139, 87, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-btn {
  padding: 0.75rem 2rem;
  border: 2px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  color: var(--color-text-light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 139, 87, 0.2), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.filter-btn:hover::before {
  width: 300px;
  height: 300px;
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(46, 139, 87, 0.25);
  border-color: rgba(46, 139, 87, 0.3);
  color: var(--color-green-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--color-green-primary), #26a65b);
  color: white;
  border-color: var(--color-green-primary);
  box-shadow: 0 8px 30px rgba(46, 139, 87, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active::after {
  content: '✓';
  margin-left: 0.5rem;
  font-size: 0.9rem;
  animation: checkmark 0.3s ease;
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .filter-buttons {
    padding: 1rem;
    gap: 0.75rem;
  }

  .filter-btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}


/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (min-width: 600px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
}

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
  }
}

.bento-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

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

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

.bento-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.bento-item:hover .bento-overlay {
  opacity: 1;
  transform: translateY(0);
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.bento-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Spans */
.col-span-2 {
  grid-column: span 2;
}

.row-span-2 {
  grid-row: span 2;
}

@media (max-width: 900px) {
  .col-span-2 {
    grid-column: span 1;
  }

  /* Reset on mobile/tablet if needed, or keep for tablet */
}

@media (min-width: 600px) and (max-width: 899px) {
  .col-span-2 {
    grid-column: span 2;
  }

  /* Keep span on tablet */
}