/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
  /* Clean Professional SaaS Dark Mode + New Gen Playful */
  --bg-color: #0b1120; /* Deep slate/blue background */
  --bg-surface: #151e32; /* Interactive surface background */
  --bg-card: #1c273c; /* Card background */

  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Vibrant Accents */
  --accent-main: #3b82f6; /* Clean professional blue */
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --accent-vibrant: #8b5cf6; /* Purple hint for new gen feel */

  /* Typography Setup */
  --font-display: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --border-rad: 16px;
  --border-rad-sm: 8px;

  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ThreeJS Canvas */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 7rem 0;
}

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

.w-100 {
  width: 100%;
}

/* New Gen Badges */
.badge {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.new-gen-badge {
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(139, 92, 246, 0.15) 100%
  );
  border-color: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-main),
    var(--accent-vibrant)
  );
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-outline {
  background-color: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* =========================================
   NAVIGATION (Updated Logo)
========================================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-bg-wrapper {
  background-color: #ffffff;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.logo-img {
  height: 30px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  opacity: 0.8;
}

.nav-link:hover {
  opacity: 1;
  color: #60a5fa;
  transform: translateY(-2px);
}

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

.nav-social {
  margin-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================
   CARTOONISH HERO SECTION
========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
}

.floating-cartoon {
  animation: floatSmooth 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

@keyframes floatSmooth {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.floating-cartoon.delay-1 {
  animation-delay: -3s;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

/* =========================================
   GENERIC SECTION HEADERS
========================================= */
.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 3rem;
}

.section-desc {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* =========================================
   ABOUT SECTION
========================================= */
.about {
  background: radial-gradient(
    ellipse at bottom,
    var(--bg-surface) 0%,
    var(--bg-color) 100%
  );
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--accent-main);
  filter: blur(100px);
  opacity: 0.2;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

.about-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.feature-list {
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.icon-orb {
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* =========================================
   WORK WITH US (SERVICES - 3D CARDS)
========================================= */
.perspective-grid {
  perspective: 1000px;
}

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

.service-card {
  background: var(--bg-card);
  border-radius: var(--border-rad);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
  z-index: 10;
}

.card-inner {
  padding: 2.5rem;
  background: linear-gradient(145deg, var(--bg-card), #161f30);
  border-radius: var(--border-rad);
  border: 1px solid var(--glass-border);
  height: 100%;
}

.icon-glass {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.3);
}

.highlight-card .card-inner {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
}

.highlight-card .icon-glass {
  color: #a78bfa;
}

.card-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  transform: translateZ(30px); /* 3D effect depth */
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  transform: translateZ(20px);
}

.card-text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  transform: translateZ(10px);
}

.service-points {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  transform: translateZ(5px);
}

.service-points li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.service-points li::before {
  content: "✓";
  color: #34d399; /* Positive green tick */
  font-weight: bold;
  font-size: 0.8rem;
  background: rgba(52, 211, 153, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

/* =========================================
   TESTIMONIALS
========================================= */
.testimonials {
  background: var(--bg-surface);
  position: relative;
  z-index: 2;
}

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

.review-card {
  background: rgba(255, 255, 255, 0.02);
  padding: 2.5rem;
  border-radius: var(--border-rad);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: transform 0.3s;
}

.review-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
}

.float-anim {
  animation: floatingCards 4s ease-in-out infinite;
}
.float-anim.delay-1 {
  animation-delay: 0s;
}
.float-anim.delay-2 {
  animation-delay: 1s;
}
.float-anim.delay-3 {
  animation-delay: 2s;
}

@keyframes floatingCards {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.rating {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.star.filled {
  color: #fbbf24;
  width: 20px;
  height: 20px;
  fill: #fbbf24;
}

.review-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 2.5rem;
  color: var(--text-primary);
  line-height: 1.7;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.pink-grad {
  background: linear-gradient(135deg, #f43f5e, #db2777);
}
.blue-grad {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.purple-grad {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.reviewer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

/* =========================================
   PARTNERS
========================================= */
.partners {
  background: var(--bg-color);
  overflow: hidden;
  padding: 6rem 0 2rem; /* Reduced bottom padding */
}

.partners-carousel {
  width: 100%;
  padding: 2rem 0;
  position: relative;
}

.partners-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.partner-logo {
  width: 140px;
  height: 140px;
  background: white;
  padding: 1rem;
  border-radius: 20px; /* Rounded corners as requested */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.partner-logo:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
  border-color: var(--accent-main);
}

.partner-logo:hover img {
  transform: scale(1.1);
}

/* =========================================
   CONTACT
========================================= */
.glass-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.card-inner-glass {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: background 0.3s;
}

.card-inner-glass:hover {
  background: rgba(255, 255, 255, 0.06);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.contact-info {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--glass-border);
}

.contact-methods {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.method {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.method h5 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-form-card {
  padding: 5rem 4rem;
  background: rgba(0, 0, 0, 0.1);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.c-form .form-group {
  margin-bottom: 1.8rem;
}

.c-form label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.c-form input,
.c-form select,
.c-form textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-rad-sm);
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.c-form input:focus,
.c-form select:focus,
.c-form textarea:focus {
  outline: none;
  border-color: var(--accent-main);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.c-form select option {
  background: var(--bg-surface);
  color: white;
}

/* =========================================
   FOOTER
========================================= */
.footer {
  background: #080c16;
  padding: 5rem 0 2rem;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 1.2rem;
}

.social-links a {
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--accent-main);
  transform: translateY(-3px);
  border-color: transparent;
}

.links-col h4 {
  margin-bottom: 1.8rem;
  font-size: 1.15rem;
}

.links-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1rem;
  font-size: 1rem;
  transition:
    color 0.2s,
    padding-left 0.2s;
}

.links-col a:hover {
  color: var(--accent-main);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-credit p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.dev-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pulse-heart {
  color: #ef4444;
  font-size: 0.75rem;
  animation: heartPulse 1.5s ease infinite;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}

.dev-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.dev-link:hover {
  color: var(--accent-main);
}

.link-underline {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-main);
  transition: width 0.3s ease;
}

.dev-link:hover .link-underline {
  width: 100%;
}

/* =========================================
   RESPONSIVE (Max 992px Tablets/Mobile)
========================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-visual {
    order: -1; /* Image above text on mobile */
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
  }

  .nav-social {
    margin-left: auto;
    border-left: none;
  }

  .nav-links.active .nav-social {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    width: 100%;
    justify-content: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding-top: 120px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .about-visual {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .section-padding {
    padding: 5rem 0;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .contact-info,
  .contact-form-card {
    padding: 2.5rem 1.5rem;
  }
}
