:root {
  /* Theme: Creamy Blue + White + Black */
  --bg-body: #f5f7fa; /* Very light creamy grey/blue */
  --bg-white: #ffffff;
  --text-main: #1a1a1a; /* Black */
  --text-muted: #64748b; /* Slate Grey */

  /* Accents */
  --creamy-blue: #d6e4f0; /* Soft Blue for backgrounds/accents */
  --accent-blue: #4a90e2; /* Primary Action Blue */
  --accent-dark: #1e293b; /* Dark Blue/Black for strong elements */

  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);

  --font-main: "Outfit", sans-serif;
  --radius-l: 24px;
  --radius-m: 16px;
  --container-max: 1200px;

  /* Legacy support */
  --accent-pink: #ff0055;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Navigation (Wireframe: Logo | Links | Signup) --- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-main);
}

.logo-circle {
  width: 40px;
  height: 40px;
  background: var(--text-main);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-signup {
  padding: 0.6rem 1.8rem;
  background: var(--text-main);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* My Orders Button - Desktop */
.btn-my-orders {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    font-family: var(--font-main);
}
.btn-my-orders:hover { transform: translateY(-2px); }

/* Mobile Logic for Buttons */
@media (max-width: 768px) {
    .hamburger { display: block; }
    
    /* Turn 'My Orders' into a small Circle Icon on Mobile */
    .btn-my-orders {
        padding: 0;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--text-main);
        color: var(--text-main);
    }
    .btn-my-orders .btn-text { display: none; } /* Hide text */
    .btn-my-orders i { font-size: 1.1rem; }
}

/* --- Hero Section (Digital Production Loop) --- */
.hero-section {
  padding-top: 100px;
  padding-bottom: 80px;
  text-align: center;
  background-color: #f5f7fa;
  background-image: radial-gradient(rgba(0, 0, 0, 0.3) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  position: relative;
  overflow: hidden;
}

/* Background Gradients */
.hero-section::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(74, 144, 226, 0.15) 0%,
    transparent 70%
  );
  top: -150px;
  left: -100px;
  z-index: 0;
  animation: pulseGlow 8s infinite alternate;
}
.hero-section::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 100, 100, 0.1) 0%,
    transparent 70%
  );
  bottom: -100px;
  right: -100px;
  z-index: 0;
  animation: pulseGlow 10s infinite alternate-reverse;
}
@keyframes pulseGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.1);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-shadow: 2px 2px 0px #d1d5db, 4px 4px 0px rgba(0,0,0,0.1);
  font-weight: 800; /* Make it extra bold for better 3D effect */
  letter-spacing: -1px; /* Tighten slightly for impact */
}
.hero-sub {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* MONITOR FRAME (SPLIT IDE LAYOUT) */
.hero-monitor {
  width: 90%;
  max-width: 900px;
  height: 500px;
  margin: 0 auto;
  background: #1e1e1e; /* Dark IDE Frame */
  border: 1px solid #333;
  border-radius: 12px;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

/* IDE Toolbar (Top) */
.ide-toolbar {
  height: 30px;
  background: #252526;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 10px;
}
.window-controls {
  display: flex;
  gap: 6px;
}
.ctrl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Screen Content: Split View */
.screen-content {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* LEFT PANE: Persistent Code Editor */
.editor-pane {
  flex: 1.4; /* 60%ish */
  background: #1e1e1e;
  border-right: 1px solid #333;
  padding: 20px;
  position: relative;
  font-family: "Fira Code", monospace;
  font-size: 13px;
  color: #d4d4d4;
  overflow: hidden;
}

/* Line Numbers */
.line-numbers {
  position: absolute;
  left: 0;
  top: 20px;
  width: 40px;
  text-align: right;
  color: #555;
  padding-right: 10px;
  font-size: 12px;
  line-height: 1.6;
  user-select: none;
}
.code-area {
  margin-left: 35px;
  line-height: 1.6;
}

/* RIGHT PANE: Live Preview (Slideshow) */
.preview-pane {
  flex: 1; /* 40%ish */
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* Preview Scenes Switching */
.preview-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-in-out;
}
.preview-scene.active {
  opacity: 1;
  transform: translateY(0);
}

/* Web Preview Styles */
.web-mock {
  width: 85%;
  height: 70%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #eee;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.web-mock-head {
  height: 12%;
  background: var(--accent-blue);
}
.web-mock-body {
  padding: 10px;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.web-block {
  background: #f0f0f0;
  border-radius: 4px;
}

/* App Preview Styles */
.app-mock {
  width: 100px;
  height: 200px;
  background: #000;
  border-radius: 18px;
  border: 4px solid #333;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.app-mock-screen {
  background: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status Bar (Bottom) */
.ide-statusbar {
  height: 22px;
  background: #007acc;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
  font-family: sans-serif;
  justify-content: space-between;
}

/* Animations */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent-blue);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Holographic Grid (Subtle Background for Editor) */
.editor-pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* --- Plans/Services Section (Wireframe: Tabs + Cards + Detail) --- */
.plans-section {
  padding: 60px 5%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.tabs-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 2px solid var(--text-main);
  border-radius: 10px 10px 0 0; /* Tab shape */
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--text-main);
  color: white;
}

.tab-content {
  display: none;
  grid-template-columns: 2fr 1fr; /* Cards : Detail */
  gap: 2rem;
}

.tab-content.active {
  display: grid;
}

/* Cards Wrapper */
.cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: white;
  padding: 2rem;
  border: 2px solid var(--text-main);
  border-radius: 0 20px 20px 20px; /* Match tab */
}

.service-card {
  background: var(--bg-body);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-5px);
  background: #e8f0fe; /* Light Blue hover */
}

.service-card h3 {
  margin-bottom: 0.5rem;
  color: #000; /* Force black title */
}

.service-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.service-card ul li {
  margin-bottom: 0.5rem;
}
.service-card ul li:before {
  content: "• ";
  color: var(--accent-blue);
}

/* Panel adjustment for Table */
.detail-panel {
  background: white; /* Changed from black to white for table readability */
  color: var(--text-main);
  border-radius: var(--radius-m);
  border: 2px solid var(--text-main); /* Match cards wrapper border */
  padding: 0; /* Remove padding to let table fill */
  display: block; /* Remove flex centering */
  overflow: hidden;
}

.detail-panel::before {
  display: none;
} /* Remove rotating bg */
.detail-content {
  display: none;
} /* Hide old content */

/* Feature Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  height: 100%;
}

.comparison-table th {
  background: var(--text-main);
  color: white;
  padding: 12px 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparison-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}
.comparison-table tr:nth-child(even) {
  background: #f9f9f9;
}

/* First column align left */
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  padding-left: 15px;
  color: var(--text-main);
}

.mark-check {
  color: #00d26a;
  font-size: 1.1rem;
}
.mark-cross {
  color: #ff4d4d;
  font-size: 1rem;
}

/* --- Showcase Section (Continuous Sliding) --- */
.showcase-section {
  padding: 80px 0;
  overflow: hidden;
  background: white;
}

#project-details-inline {
    background: #1a1a1a !important;
    color: white !important;
    border: 1px solid #333 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

#project-details-inline h3 {
    color: white !important;
}

#project-details-inline p {
    color: #ccc !important;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: var(--text-main);
  text-shadow: 2px 2px 0px #d1d5db, 4px 4px 0px rgba(0,0,0,0.1);
  font-weight: 800;
  letter-spacing: -1px;
}

/* Marquee Container - Scrollable Area */
.marquee-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    will-change: scroll-position;
    contain: layout style;
}
.marquee-container::-webkit-scrollbar {
    display: none;
}

/* Track - Flex Container */
.marquee-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 1rem 0;
}

.marquee-container:active {
    cursor: grabbing;
}

.showcase-card {
  min-width: 350px;
  height: 220px;
  background: var(--bg-body);
  border-radius: var(--radius-m);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 5px 5px 0px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  overflow: hidden;
  padding-bottom: 1rem;
  margin: 1rem 0;
  contain: layout paint;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: transform 0.5s;
}

.showcase-card span {
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-shadow: 1px 1px 0px #d1d5db, 2px 2px 0px rgba(0,0,0,0.1);
  font-weight: 800;
}

.showcase-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
  z-index: 2;
}

.showcase-card:hover img {
  transform: scale(1.1);
}

/* === Custom Cylindrical Scrollbar (Desktop Only) === */
.showcase-scrollbar {
    display: none; /* Hidden by default (mobile) */
    position: relative;
    width: 80%;
    max-width: 600px;
    height: 8px;
    margin: 20px auto 10px;
    background: linear-gradient(180deg, #e0e0e0 0%, #d0d0d0 50%, #e0e0e0 100%);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.15), 0 1px 0 rgba(255,255,255,0.8);
}

.showcase-scrollbar-thumb {
    position: absolute;
    top: -4px;
    left: 0;
    width: 80px;
    height: 16px;
    background: linear-gradient(180deg, #666 0%, #444 40%, #333 60%, #444 100%);
    border-radius: 10px;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    transition: background 0.2s, box-shadow 0.2s;
}

.showcase-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #555 0%, #333 40%, #222 60%, #333 100%);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
}

.showcase-scrollbar-thumb:active {
    cursor: grabbing;
    background: linear-gradient(180deg, #4A90E2 0%, #357ABD 40%, #2A6099 60%, #357ABD 100%);
    box-shadow: 0 3px 12px rgba(74,144,226,0.4);
}

/* Show the scrollbar only on Desktop */
@media (min-width: 769px) {
    .showcase-scrollbar {
        display: block;
    }
}

/* --- Contact Section (Wireframe: Form -> Whatsapp) --- */
.contact-section {
  padding: 80px 5%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  border: 1px solid #eee;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: var(--bg-body);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus {
  border-color: var(--accent-blue);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--text-main); /* Black */
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: #333;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 80px 5%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-section h2 {
  text-shadow: 2px 2px 0px #d1d5db, 4px 4px 0px rgba(0,0,0,0.1);
  font-weight: 800;
  letter-spacing: -1px;
}

.faq-item {
  background: white;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid #eee;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question i {
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}
.faq-item.active .faq-question {
  color: var(--accent-blue);
}
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* --- Footer --- */
footer {
  background: var(--text-main);
  color: white;
  text-align: center;
  padding: 3rem;
  margin-top: 50px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide for now, can implement mobile menu later if asked */
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .hamburger {
    display: block;
  }
  .nav-links.active {
    display: flex;
  }

  .tab-content {
    grid-template-columns: 1fr;
  }
  .contact-section {
    grid-template-columns: 1fr;
  }
  .cards-wrapper {
    padding: 1rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Toast Notification (Keep existing style but adaptive) */
.toast-notification {
  background: var(--text-main);
  color: white;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 300px;
  padding: 15px 25px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  overflow: hidden;
  z-index: 10000;
  animation: slideInRight 0.4s ease-out forwards;
}

/* --- "Crazy Mode" Styles (Matrix/Hacker Theme) --- */
body.crazy-mode {
  --bg-body: #000000;
  --text-main: #00ff41;
  --text-muted: #008f11;
  --accent-blue: #00ff41;
  --bg-white: #0a0a0a;
}

body.crazy-mode .navbar {
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid #00ff41;
}

body.crazy-mode .hero-section::before,
body.crazy-mode .hero-section::after {
  background: radial-gradient(
    circle,
    rgba(0, 255, 65, 0.2) 0%,
    transparent 70%
  );
}

body.crazy-mode .hero-monitor {
  border-color: #00ff41;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

body.crazy-mode * {
  font-family: "Courier New", monospace !important;
}

/* 3D Tilt Effect for Cards */
.tilt-card {
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  z-index: 10;
}

/* Magic Mouse Trail */
.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
  transition: transform 0.1s, opacity 0.5s;
  animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
  to {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  width: 100%;
}

/* Auth Modal Styles (Kept Minimal) */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}
.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.auth-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eee;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  color: var(--text-muted);
}
.auth-tab.active {
  color: var(--accent-blue);
  border-bottom: 2px solid var(--accent-blue);
  font-weight: bold;
}
.auth-form {
  display: none;
}
.auth-form.active {
  display: block;
}

/* --- Google Sign In Button --- */
.google-btn {
    width: 100%;
    padding: 0.8rem;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.google-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}
.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ddd;
    z-index: -1;
}
.auth-divider span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 0.8rem;
}

/* --- Checkout Modal (Pay Time UI) --- */
.checkout-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    max-width: 500px; /* Slightly wider */
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
}
.plan-summary-card {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
}
.step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.sms-btn {
    background: #333;
    color: white;
    border: none;
    padding: 0 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}
.verify-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}
.verify-btn:hover { background: #357abd; }

/* QR Section */
.qr-container {
    text-align: center;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    border: 2px dashed #eee;
}
.qr-container img {
    width: 200px;
    height: 200px;
}
.qr-instruction {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.pay-confirm-btn {
    width: 100%;
    padding: 1.2rem;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    transition: transform 0.2s;
}
.pay-confirm-btn:hover { transform: scale(1.02); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(79, 172, 254, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); }
}

/* --- Project Modal (Glassy & Jazz) --- */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

#projectModal .modal-content {
    background: rgba(0, 0, 0, 0.75); /* Darker Glassy for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    color: white !important;
    max-width: 320px; /* Compact */
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    font-family: 'Caveat', cursive, sans-serif; /* Jazz-like */
}

#projectModal h2 {
    color: #fff !important;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-family: 'Caveat', cursive, sans-serif;
}

#projectModal p {
    color: #eee !important;
    font-size: 1.2rem;
    line-height: 1.3;
    font-weight: 500;
    font-family: 'Caveat', cursive, sans-serif;
}

#projectModal .submit-btn {
    background: white;
    color: #333;
    border: none;
    font-family: 'Caveat', cursive, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 8px 25px;
    border-radius: 50px;
    transition: transform 0.2s;
}
#projectModal .submit-btn:hover {
    transform: scale(1.05);
    background: #f0f0f0;
}

/* Ensure placeholder color is subtle */
.phone-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
}

/* Mobile Optimization for Phone Modal */
@media (max-width: 768px) {
    .phone-modal-content {
        padding: 2rem 1.5rem;
        width: 95%; /* Use almost full width */
    }
    
    .phone-input-field {
        font-size: 1.2rem; /* Larger text */
        padding: 18px 15px 18px 65px; /* Larger touch area */
    }
    
    .phone-prefix {
        font-size: 1.2rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .phone-input-wrapper {
        margin: 25px 0; /* More spacing */
    }

    button[type="submit"] {
        padding: 16px !important; /* Larger button */
        font-size: 1.1rem !important;
    }
}
#projectModal .close-modal {
    color: rgba(255,255,255,0.7);
    top: 10px;
    right: 15px;
    font-weight: 400;
}
#projectModal .close-modal:hover {
    color: white;
}

@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); box-shadow: 0 0 15px rgba(74, 144, 226, 0.6); }
    100% { transform: scale(1); }
}
.pop-animation {
    animation: pop 2s ease infinite;
}

/* --- Team Section --- */
.team-section {
  padding: 80px 5%;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.team-pill-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.team-pill {
  border: 1px solid #ddd;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-weight: 600;
}

.team-grid {
  /* Legacy grid — not used; carousel replaces this */
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

/* Globe Placeholder */
.team-placeholder {
  width: 100%;
  height: 100%;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 50px;
}

.globe-spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #e0e0e0;
  border-top-color: var(--accent-blue);
  animation: spin 1s cubic-bezier(0.55, 0.055, 0.675, 0.19) infinite;
  will-change: transform;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Default Social Media Avatar Style */
.default-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: #cfd8dc; /* Generic grey */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
    overflow: hidden;
    position: relative;
}
.default-avatar-placeholder i {
    font-size: 8rem !important; /* Force large size */
    color: #90a4ae; /* Darker grey for visibility */
    transform: translateY(20px);
}

.team-info-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.95);
  padding: 15px;
  border-top: 1px solid #eee;
  text-align: center;
  z-index: 2;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.team-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Founder Special Animation */
.founder-card {
    background: radial-gradient(circle at 50% 60%, rgba(74, 144, 226, 0.15) 0%, transparent 60%);
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: 105%; /* Slightly taller to fit well */
    object-fit: contain; /* Fix face cutting */
    object-position: bottom center; /* Align to bottom */
    display: block;
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%); /* Soft fade at very bottom if needed */
    -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    animation: float3D 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.15)); /* Real shadow for PNG */
    will-change: transform, filter;
}

@keyframes float3D {
    0%, 100% { 
        transform: translateY(10px) scale(0.95); 
        filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
    }
    50% { 
        transform: translateY(0px) scale(1.08); 
        filter: drop-shadow(0 25px 15px rgba(0,0,0,0.15)); 
    }
}

/* =====================================================
   TEAM CAROUSEL — Transform-Based, Screen-Size Agnostic
   No scroll. No calc(). No padding hacks. No breakpoints.
   Works on: 320px phone → laptop → PC → TV → 8K screens.
   JS measures the wrapper at runtime, applies translateX.
   ===================================================== */

.team-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 50px 0 30px;
}

.team-carousel-track {
    display: flex;
    gap: 24px;
    /* No overflow-x. No scroll. No padding.
       JS slides this track via transform: translateX() */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Every card: fixed size, same on all screens */
.team-carousel-track .team-card {
    width: 250px;
    min-width: 250px;
    height: 350px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    opacity: 0.5;
    transform: scale(0.84);
    transition: opacity 0.5s ease,
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.5s ease,
                border-color 0.5s ease;
    cursor: pointer;
    user-select: none;
}

/* Active center card — same on ALL screens, no breakpoints */
.team-carousel-track .team-card.active-center {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 25px 55px rgba(0,0,0,0.18);
    border: 2px solid var(--accent-blue);
    z-index: 10;
}

/* Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 2.5rem;
}
.nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}
.nav-btn:hover {
    background: var(--text-main);
    color: white;
    transform: scale(1.1);
}

/* Dots */
.nav-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}
.nav-dot {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.nav-dot.active {
    background: var(--text-main);
    width: 16px;
    border-radius: 10px;
}

/* Founder card */
@keyframes float3D-cover {
    0%, 100% { 
        transform: translateY(3px) scale(1.02); 
    }
    50% { 
        transform: translateY(-3px) scale(1.08); 
    }
}

.founder-card .founder-img {
    height: 290px;
    object-fit: cover;
    object-position: center top;
    mask-image: none;
    -webkit-mask-image: none;
    animation: float3D-cover 6s ease-in-out infinite;
    filter: none;
}





/* --- Floating Social Buttons (Black & White) --- */
/* --- Floating Social Buttons (Corners with Animation) --- */
.social-corner-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Default Shadow */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    font-size: 28px;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Instagram Specifics */
.insta-btn {
    color: #E1306C; /* Insta Brand Color Icon */
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}
.insta-btn:hover {
    background: #E1306C;
    color: white;
    box-shadow: 0 10px 25px rgba(225, 48, 108, 0.6);
}

/* WhatsApp Specifics */
.wa-btn {
    color: #25D366; /* WA Brand Color Icon */
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}
.wa-btn:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.left-corner { left: 30px; }
.right-corner { right: 30px; }

/* Animations: Pop & Glow */
@keyframes instaPop {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(225, 48, 108, 0.7); }
}

@keyframes waPop {
    0%, 100% { transform: scale(1); box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4); }
    50% { transform: scale(1.1); box-shadow: 0 0 25px rgba(37, 211, 102, 0.7); }
}

.insta-btn.pop-animate { animation: instaPop 3s infinite ease-in-out; }
.wa-btn.pop-animate { animation: waPop 3s infinite ease-in-out; }

.delay-anim { animation-delay: 1.5s; }

.delay-anim {
    animation-delay: 1.5s; /* Alternate the pulsing */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .left-corner {
        left: 20px;
        bottom: 20px;
    }
    .right-corner {
        right: 20px;
        bottom: 20px;
    }
    .social-corner-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* --- PAYMENT MODAL REDESIGN (Basic) --- */
.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); /* Soft Glassy Shadow */
    border: 1px solid rgba(0,0,0,0.1); /* Thin Gentle Border */
    color: #000;
}

/* Force Black Theme for Project Modal (Decoupled Class) */
.modal-content-dark {
    background: #1a1a1a !important;
    color: white !important;
    border: 1px solid #333 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7) !important;
    /* Copied base modal styles */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 450px;
    margin: 10vh auto; /* Center vertically */
}

/* Close button for dark modal */
.modal-content-dark .close-modal {
    color: #aaa !important;
    transition: color 0.3s;
}
.modal-content-dark .close-modal:hover {
    color: #fff !important;
}

#profileModal .modal-content {
    background: #fff !important; 
}

.info-section {
    background: #f0fff4 !important;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05) !important;
    margin-bottom: 15px;
}

/* Inputs */
.styled-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc !important;
    border-radius: 8px;
    background: #fff !important;
    font-size: 1rem;
    font-family: var(--font-main);
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

.styled-input-simple {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc !important;
    border-radius: 8px;
    background: #f8f8f8 !important;
    font-weight: 700;
    color: #333;
}

/* Payment Cards */
.payment-methods {
    display: flex;
    gap: 15px;
}

.payment-card {
    flex: 1;
    border: 1px solid #eee !important;
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    background: #ffffff;
    font-weight: 600;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Soft Initial Shadow */
}

.payment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.payment-card.selected {
    background: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    box-shadow: 0 10px 25px rgba(212, 237, 218, 0.6) !important; /* Glowing Green Shadow */
    transform: translateY(-2px);
}

.payment-card span i {
    margin-left: 5px;
    font-size: 1.1rem;
}

/* Coupon Wrapper */
.coupon-wrapper {
    display: flex;
    gap: 10px;
}

.coupon-wrapper input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc !important;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: bold;
    background: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.coupon-wrapper button {
    padding: 0 20px;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.coupon-wrapper button:hover {
    background: #333 !important;
    transform: translateY(-1px);
}

/* Book Button */
.book-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #000, #333) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px; /* Modern Pill Shape */
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Labels */
label {
    color: #000;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Close Button Override */
.close-modal {
    color: #000 !important;
    font-size: 2rem !important;
    font-weight: bold;
    opacity: 1;
}

/* CONFETTI ANIMATION */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #f2d74e;
    animation: fall linear forwards;
    top: -10%;
    z-index: 10001;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(720deg);
        top: 110%;
    }
}

/* FIX: Mobile Phone Modal Adjustments */
@media (max-width: 768px) {
    .phone-modal-content {
        padding: 1.5rem; /* Reduced padding */
        width: 90%; 
    }

    .phone-input-wrapper {
        position: relative; /* Ensure relative for absolute prefix */
        margin: 15px 0;
    }
    
    .phone-input-field {
        font-size: 1.1rem; /* Standard readable size */
        padding: 14px 15px 14px 60px !important; /* Fixed padding for text */
        height: auto;
    }
    
    .phone-prefix {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.1rem;
        color: var(--accent-blue);
        z-index: 10;
        pointer-events: none;
        display: block !important; /* Force show */
        border-right: 1px solid rgba(255,255,255,0.2);
        padding-right: 10px;
        height: 20px;
        line-height: 20px;
    }

    button[type="submit"] {
        padding: 12px !important;
        font-size: 1rem !important;
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 60px 0;
    background: #fdfdfd;
    overflow: hidden;
    position: relative;
    border-top: 1px solid #eee;
}

.testimonials-container {
    padding: 20px 0;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: max-content;
    max-width: none;
    animation: testimonialsRail 35s linear infinite;
    will-change: transform;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes testimonialsRail {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Testimonials Section Styling --- */
.testimonials-section {
    padding: 80px 5%;
    background: #fdfdfd;
    text-align: center;
}

.testimonials-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: flex-start;
    padding: 20px 0;
    width: max-content;
    max-width: none;
    animation: testimonialsRail 35s linear infinite;
}

.testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 25px;
    width: 360px;
    max-width: 360px;
    min-width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    gap: 15px;
    overflow: hidden; /* Prevent content spill */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.testimonial-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.testimonial-user-info .testimonial-name {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    margin: 0;
}

.testimonial-verified {
    font-size: 0.75rem;
    color: #4CAF50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    flex: 0 0 360px;
    display: block;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    max-height: 6.4em; /* 4 lines * 1.6 line-height */
    transition: max-height 0.3s ease;
}

.testimonial-card.expanded .testimonial-text,
.admin-review-cell.expanded .testimonial-text {
    max-height: none;
}

.admin-review-cell .testimonial-text {
    max-width: 200px;
    font-size: 0.8rem;
    font-style: normal;
}

.testimonial-text a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
}

.testimonial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f5f5f5;
    font-size: 0.8rem;
    color: #999;
}

.testimonial-service {
    font-weight: 600;
    color: var(--accent-blue);
}

.testimonial-text a {
    color: var(--accent-blue);
    text-decoration: underline;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: normal;
}

.read-more-btn {
    color: var(--accent-blue);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    margin-top: -5px;
    margin-bottom: 10px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 30px 4% !important;
        overflow-x: hidden !important;
    }
    .testimonials-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .testimonials-track {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 14px !important;
        width: max-content !important;
        max-width: none !important;
        animation: testimonialsRail 24s linear infinite !important;
        padding: 15px 0 !important;
    }
    .testimonial-card {
        width: 82vw !important;
        max-width: 82vw !important;
        min-width: 82vw !important;
        flex: 0 0 82vw !important;
        padding: 15px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    }
    .testimonial-text {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        display: block !important;
        overflow: hidden !important;
        max-height: 4.2em !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
    }
    
    .testimonial-card.expanded .testimonial-text {
        max-height: none !important;
    }

    /* Admin Mobile Fixes */
    .admin-container {
        padding: 5px !important;
    }
    .admin-container table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .admin-container td {
        max-width: 150px !important;
        white-space: normal !important;
        word-break: break-all !important;
    }
}

@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  body > * {
    max-width: 100vw;
  }

  .navbar {
    width: 100vw;
    max-width: 100vw;
    padding: 0.8rem 4%;
    gap: 0.6rem;
  }

  .logo-container {
    min-width: 0;
    font-size: 1rem;
    gap: 0.5rem;
  }

  #navUserProfile {
    flex: 0 0 auto;
    max-width: 108px;
    gap: 8px !important;
    align-items: center !important;
  }

  #navUserName {
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #navUserProfile span[style*="View Profile"] {
    display: none !important;
  }

  #userAvatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
  }

  #userAvatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50% !important;
    display: block;
  }

  .btn-signup {
    padding: 0.58rem 1rem;
    min-width: 0;
    max-width: 120px;
    font-size: 0.88rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    flex: 0 0 auto;
  }

  .hero-section,
  .plans-section,
  .showcase-section,
  .team-section,
  .testimonials-section,
  .contact-section,
  .faq-section,
  footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-monitor,
  .detail-panel,
  .contact-form-wrapper,
  .modal-content,
  .modal-content-dark {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
    padding: 1.5rem !important;
  }

  .tabs-container,
  .cards-wrapper,
  .comparison-table,
  .faq-container {
    width: 100%;
    max-width: 100%;
  }

  .service-card,
  .showcase-card,
  .testimonial-card {
    max-width: 100% !important;
  }

  .marquee-container {
    max-width: 100%;
    overflow-x: auto;
  }

  .showcase-section {
    padding-left: 4%;
    padding-right: 4%;
  }

  .marquee-track {
    width: auto !important;
    max-width: none;
    gap: 1rem;
  }

  .showcase-card {
    width: 82vw !important;
    min-width: 82vw !important;
    max-width: 82vw !important;
  }

  .testimonial-card {
    width: 82vw !important;
    max-width: 82vw !important;
    min-width: 82vw !important;
    flex-basis: 82vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .testimonial-header,
  .testimonial-footer {
    min-width: 0;
  }

  .testimonial-text {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
}

@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 70% { transform: scale(1.05); } 100% { transform: scale(1); opacity: 1; } } #finalPriceContainer { animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
