/* Custom styling for South Studio website */

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

/* Color Variables and Tokens */
:root {
  --background: #09090b;       /* hsl(240 10% 3.9%) */
  --foreground: #fafafa;       /* hsl(0 0% 98%) */
  --card: #18181b;             /* hsl(240 5.8% 9%) */
  --card-foreground: #fafafa;
  --border: #27272a;           /* hsl(240 5.9% 15%) */
  --border-glow: #3f3f46;
  --primary: #8b5cf6;          /* hsl(263 80% 60%) - Violet */
  --primary-glow: rgba(139, 92, 246, 0.15);
  --secondary: #06b6d4;        /* hsl(190 95% 50%) - Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --muted: #71717a;            /* hsl(240 5% 48%) */
  --muted-foreground: #a1a1aa; /* hsl(240 5% 64.9%) */
  
  --font-sans: 'Outfit', sans-serif;
  --font-display: 'Syne', 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Background Grids */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(128, 128, 128, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(128, 128, 128, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.bg-radial-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, var(--background) 90%);
  pointer-events: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- TUBELIGHT NAVBAR --- */
.navbar-wrapper {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: auto;
}

/* Mobile: Bottom of screen */
@media (max-width: 767px) {
  .navbar-wrapper {
    bottom: 1.5rem;
  }
}

/* Desktop: Top of screen */
@media (min-width: 768px) {
  .navbar-wrapper {
    top: 1.5rem;
  }
}

.navbar-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(24, 24, 27, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.navbar-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.navbar-link:hover {
  color: var(--foreground);
}

.navbar-link.active {
  color: var(--foreground);
}

.navbar-link span.text {
  display: none;
}

.navbar-link span.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .navbar-link {
    padding: 0.5rem 1.5rem;
  }
  .navbar-link span.text {
    display: inline;
  }
  .navbar-link span.icon {
    display: none;
  }
}

/* The lamp effect */
.navbar-lamp {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

/* Glowing lamp light indicators */
.navbar-lamp::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--primary);
}

/* Glow bubbles */
.navbar-lamp::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 1.5rem;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

/* Desktop indicator position (top mount) */
@media (min-width: 768px) {
  .navbar-lamp::before {
    top: -0.25rem;
  }
  .navbar-lamp::after {
    top: -0.25rem;
  }
}

/* Mobile indicator position (bottom mount) */
@media (max-width: 767px) {
  .navbar-lamp::before {
    bottom: -0.25rem;
  }
  .navbar-lamp::after {
    bottom: -0.25rem;
    transform: translateX(-50%) rotate(180deg);
  }
}

/* --- HERO SECTION --- */
.hero-section {
  min-h-screen: 100vh;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 0 4rem 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-logo-container {
  display: inline-block;
  margin-bottom: 2rem;
  position: relative;
}

.hero-logo-glowing {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 3px;
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
  animation: logo-glow 6s ease-in-out infinite alternate;
}

.hero-logo-inner {
  background: var(--background);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-logo-inner span {
  background: linear-gradient(to right, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes logo-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  }
  100% {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.5), 0 0 80px rgba(139, 92, 246, 0.2);
  }
}

.hero-title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to bottom right, #fff 40%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.75rem;
  }
}

.hero-title span.accent {
  background: linear-gradient(to right, var(--primary), #ec4899, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.35rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--foreground);
  color: var(--background);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

/* Social links in hero */
.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-circle:hover {
  background: var(--foreground);
  color: var(--background);
  transform: scale(1.1) translateY(-2px);
}

/* Scroll indicator bounce */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-foreground);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.scroll-indicator:hover {
  opacity: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- SERVICES (FEATURES-2) --- */
.services-section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 768px) {
  .services-section {
    padding: 8rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.25rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-header h2 {
    font-size: 3rem;
  }
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .section-header p {
    font-size: 1.15rem;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

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

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

/* Card Decorator blueprint style */
.card-decorator {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin: 0 auto 2rem auto;
  overflow: hidden;
  /* Radial gradient mask: opaque in center, fades out at edges */
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 75%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 75%, transparent 100%);
}

.decorator-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.decorator-box {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--background);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: -4px -4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.4s ease;
}

.service-card:hover .decorator-box {
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: -4px -4px 15px rgba(6, 182, 212, 0.2);
  transform: rotate(5deg) scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.service-card p {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

/* --- PRICING SECTION --- */
.pricing-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pricing-section {
    padding: 8rem 0;
  }
}

.pricing-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.pricing-container {
  max-width: 750px;
  margin: 0 auto;
  position: relative;
}

/* Bento plus corner layout */
.pricing-grid-card {
  position: relative;
  background: var(--background);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1px; /* Architectural sharp corners or minimal border style */
}

@media (min-width: 768px) {
  .pricing-grid-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Crosshairs in corners */
.corner-plus {
  position: absolute;
  color: var(--muted-foreground);
  opacity: 0.5;
  font-size: 1rem;
  pointer-events: none;
  z-index: 10;
}

.corner-plus-tl { top: -9px; left: -9px; }
.corner-plus-tr { top: -9px; right: -9px; }
.corner-plus-bl { bottom: -9px; left: -9px; }
.corner-plus-br { bottom: -9px; right: -9px; }

/* Pricing card columns */
.pricing-col {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-col-standard {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .pricing-col-standard {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* --- PREMIUM CARD WITH GLOWING BORDER TRAIL --- */
.pricing-col-premium-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
}

/* The rotating glow outline */
.border-trail-glow {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: conic-gradient(from 0deg, transparent 55%, var(--secondary) 85%, var(--primary) 100%);
  animation: rotate-border 6s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes rotate-border {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Inner content area overlapping the glow to form a 1px border trail */
.pricing-col-premium-content {
  position: relative;
  background: var(--card);
  margin: 1px; /* Creates the 1px outline */
  height: calc(100% - 2px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-header {
  margin-bottom: 2.5rem;
}

.plan-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.plan-title-row h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.badge-discount {
  font-size: 0.75rem;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.plan-title-row .badge-discount.cyan-badge {
  background: var(--secondary-glow);
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.2);
}

.plan-subtitle {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.price-row {
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  font-size: 1.15rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.price-row span.dollar {
  align-self: flex-start;
  margin-top: 0.35rem;
  font-weight: 600;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--foreground);
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
}

@media (min-width: 768px) {
  .price-amount {
    font-size: 3.5rem;
  }
}

.pricing-features-list {
  list-style: none;
  margin: 1.5rem 0 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features-list li {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted-foreground);
}

.pricing-features-list li svg {
  color: var(--secondary);
  flex-shrink: 0;
}

.pricing-col-premium-content .pricing-features-list li svg {
  color: var(--primary);
}

.pricing-features-list li span {
  color: var(--foreground);
}

.pricing-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
  margin-top: 2rem;
}

.pricing-security-badge svg {
  color: var(--secondary);
}

/* pricing cta wide button */
.btn-pricing {
  width: 100%;
  text-align: center;
}

/* Pricing Domain & Hosting Toggle */
.pricing-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hosting-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  background: rgba(24, 24, 27, 0.4);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hosting-toggle-label:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(24, 24, 27, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.hosting-checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.hosting-checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 1.5px solid var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  background: var(--background);
}

.hosting-checkbox-input:checked ~ .hosting-checkbox-custom {
  border-color: var(--secondary);
  background: var(--secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.hosting-checkbox-custom .checkbox-icon {
  width: 0.8rem;
  height: 0.8rem;
  stroke: var(--background);
  stroke-width: 3px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.12, 0.4, 0.29, 1.46);
}

.hosting-checkbox-input:checked ~ .hosting-checkbox-custom .checkbox-icon {
  opacity: 1;
  transform: scale(1);
}

.hosting-toggle-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.25s ease;
}

.hosting-checkbox-input:checked ~ .hosting-toggle-text {
  color: var(--foreground);
}

/* --- FOOTER SECTION --- */
.footer-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  margin-bottom: 2rem;
  background: linear-gradient(to right, var(--foreground), var(--muted-foreground));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.footer-social-link {
  color: var(--muted-foreground);
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  color: var(--secondary);
  transform: translateY(-2px);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--muted);
}

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

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

.scale-reveal.active {
  opacity: 1;
  transform: scale(1);
}
