:root {
  /* Dark Theme (Redesigned) */
  --primary: #84cc3b;
  --primary-hover: #99ea48;
  --bg-body: #0b1121; /* Deep space blue */
  --bg-card: rgba(17, 24, 39, 0.7);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --border-radius-lg: 120px;
  --border-radius-full: 9999px;
  --banner-bg: rgba(132, 204, 59, 0.9);
  --banner-text: #000;
  --glass-border: rgba(255, 255, 255, 0.08);
}

[data-theme='light'] {
  --primary: #65a30d; /* Deep lime green */
  --primary-hover: #4d7c0f;
  --bg-body: #f3f4f6; /* Cool gray */
  --bg-card: rgba(255, 255, 255, 0.75);
  --text-main: #111827; /* Near black */
  --text-muted: #4b5563;
  --border-color: rgba(0, 0, 0, 0.06);
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.04);
  --banner-bg: #65a30d;
  --banner-text: #fff;
  --glass-border: rgba(255, 255, 255, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  font-size: 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.theme-toggle:hover {
  transform: rotate(15deg);
  color: var(--primary);
  background: var(--bg-card);
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

[data-theme='dark'] .bg-animation {
  background: radial-gradient(circle at 50% 50%, #131827, #0a0e17);
}

:root:not([data-theme='dark']) .bg-animation {
  background: radial-gradient(circle at 50% 50%, #ffffff, #f0f4f8);
}

.blob {
  position: absolute;
  filter: blur(80px);
  opacity: var(--blob-opacity);
  animation: float 20s infinite ease-in-out alternate;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  animation-duration: 25s;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: #2ecc71; /* Keep or adjust for light mode? Green is fine */
  animation-duration: 30s;
  animation-direction: alternate-reverse;
}

.blob-3 {
  top: 40%;
  left: 40%;
  width: 400px;
  height: 400px;
  background: #a0aec0;
  opacity: 0.15;
  animation-duration: 35s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
  33% {
    transform: translate(30px, -50px) rotate(10deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  66% {
    transform: translate(-20px, 20px) rotate(-5deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

/* Squircle Support */
@supports (corner-shape: squircle) {
  .main-card,
  .service-card,
  .footer,
  .btn,
  .service-icon,
  .usp-tag,
  .theme-toggle,
  .social-icon {
    border-radius: var(--border-radius-lg); /* Fallback or base radius */
    corner-shape: squircle;
  }
  .btn,
  .usp-tag,
  .theme-toggle,
  .social-icon {
    border-radius: var(--border-radius-full);
    corner-shape: squircle;
  }
}

/* Construction Banner (Floating Pill) */
.construction-banner {
  position: fixed; /* Always visible */
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 90%;
  background: rgba(255, 255, 255, 0.9); /* More solid for readability */
  border: 1px solid var(--primary); /* Stronger border */
  color: var(--text-main);
  padding: 10px 24px;
  border-radius: 100px;
  z-index: 2000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: auto; /* Allow interaction if needed */
  animation: slideDown 0.5s ease-out;
}

[data-theme='dark'] .construction-banner {
  background: rgba(17, 24, 39, 0.9);
}

.construction-banner i {
  color: var(--primary);
  font-size: 1.1rem;
  animation: pulse 2s infinite;
}

.construction-banner span {
  margin-top: -5px;
}

@keyframes slideDown {
  from {
    transform: translate(-50%, -100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .construction-banner {
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
    padding: 10px 20px;
    width: 90%;
    border-radius: 20px;
    top: 10px;
  }
}

.container {
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 100;
  box-sizing: border-box;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-subtitle {
  display: none;
}

/* Hero Section */
.main-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 600px;
}

/* Left Side: Content */
.hero-content {
  flex: 1;
  padding: 80px 60px;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 90%;
  line-height: 1.6;
}

.hero h1 span {
  color: var(--primary);
}

.usp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.usp-tag {
  background: rgba(153, 234, 72, 0.15);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(153, 234, 72, 0.2);
}

:root:not([data-theme='dark']) .usp-tag {
  color: #5da020;
  border-color: #84cc3b;
  background: rgba(132, 204, 59, 0.1);
}

/* CTA Buttons in Hero */
.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Right Side: Mascot */
.hero-mascot {
  flex: 1;
  position: relative;
  display: flex;
  align-items: flex-end; /* Align to bottom */
  justify-content: center;
  background: transparent;
  padding-top: 40px; /* Give some breathing room top */
  min-width: 0; /* Allow flex shrink but we control img size */
}

.mascot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center; /* Stick to bottom, center horizontally */
  transition: transform 0.5s ease;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
  min-width: 600px; /* Force large size on desktop */
}

.main-card:hover .mascot-img {
  transform: scale(1.02);
}

/* Services Section */
.services-container {
  padding: 0 10px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-main);
  font-weight: 700;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Wider cards */
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 70px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: left; /* Better for reading */
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  padding: 0;
  background: rgba(153, 234, 72, 0.1);
  border-radius: 20px;
  flex-shrink: 0;
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main);
}

.service-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Footer / Contacts */
.footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.95rem;
  background: var(--bg-card);
  padding: 50px;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
}

.contact-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--text-main);
}

.contact-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--border-radius-full);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.05rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(153, 234, 72, 0.3);
}

[data-theme='dark'] .btn-primary {
  color: #1a1f30;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(153, 234, 72, 0.4);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-secondary {
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-muted);
}

.btn-secondary:hover {
  background: rgba(128, 128, 128, 0.2);
  color: var(--text-main);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.social-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(128, 128, 128, 0.1);
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px) rotate(10deg);
}

[data-theme='dark'] .social-icon:hover {
  color: #1a1f30;
}

/* Responsive */
@media (max-width: 992px) {
  .main-card {
    flex-direction: column-reverse; /* Mascot on top or bottom? User said Split. On mobile Stack. */
    text-align: center;
  }

  .main-card {
    flex-direction: column; /* Image Top, Content Bottom usually better? Or Content then Image. Let's do Content Top, Image Bottom */
  }

  .hero-content {
    text-align: center;
    padding: 40px 30px;
  }

  .hero-actions,
  .usp-tags {
    justify-content: center;
  }

  .hero-mascot {
    width: 100%;
    min-height: 400px;
    overflow: hidden; /* Ensure crop if too big */
  }

  .mascot-img {
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    min-width: auto;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  .logo {
    font-size: 2.5rem;
  }
  .btn {
    width: 100%;
  }
  .theme-toggle {
    top: 70px;
    right: 20px;
  }

  .construction-banner {
    width: 90%;
    max-width: none;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 90px; /* More space for banner */
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    padding: 0 10px;
    margin-top: 10px;
  }

  .main-card {
    border-radius: 30px; /* Smaller radius for mobile */
    margin-top: 20px;
  }

  .hero-content {
    padding: 30px 20px;
  }

  .hero h1 {
    font-size: 1.8rem; /* Smaller title */
    margin-bottom: 16px;
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .usp-tags {
    gap: 8px;
    margin-bottom: 30px;
  }

  .usp-tag {
    font-size: 0.8rem;
    padding: 6px 14px;
  }

  .hero-mascot {
    min-height: 250px; /* Reduce mascot height */
  }

  .footer {
    padding: 30px 20px;
    border-radius: 30px;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .construction-banner {
    font-size: 0.75rem;
    padding: 8px 16px;
  }
  .service-card {
    border-radius: 30px;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  transform: none;
  width: auto;
  max-width: 340px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 12px 16px;
  display: none; /* Hidden by default */
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cookie-banner i {
  color: var(--primary);
  font-size: 1.2rem;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

.cookie-accept {
  padding: 8px 16px;
  font-size: 0.85rem;
  height: auto;
  border-radius: 8px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 15px;
    right: 15px;
    bottom: 15px;
    max-width: none;
    width: auto;
  }
}
