@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Figtree:wght@300;400;500;600&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 270 25% 98%;
    --foreground: 274 10% 25%;
    --card: 0 0% 100%;
    --card-foreground: 274 10% 25%;
    --popover: 0 0% 100%;
    --popover-foreground: 274 10% 25%;
    --primary: 283 68% 36%;
    --primary-foreground: 0 0% 100%;
    --secondary: 270 20% 95%;
    --secondary-foreground: 274 10% 25%;
    --muted: 270 15% 94%;
    --muted-foreground: 274 8% 45%;
    --accent: 40 45% 60%;
    --accent-foreground: 274 10% 25%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 270 20% 90%;
    --input: 270 20% 90%;
    --ring: 283 68% 70%;
    --radius: 0.75rem;
    --gradient-start: 283 68% 46%;
    --gradient-end: 283 68% 30%;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }

  * {
    @apply border-border;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    @apply bg-background text-foreground font-figtree;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-sora;
  }
}

@layer components {
  .section-container {
    @apply max-w-7xl mx-auto px-6 lg:px-8;
  }

  .gradient-primary {
    background: linear-gradient(135deg, hsl(283, 68%, 46%), hsl(283, 68%, 30%));
  }

  .text-balance {
    text-wrap: balance;
  }

  .text-pretty {
    text-wrap: pretty;
  }
}

h2{
  font-size: 3rem !important;
}

/* Core Layout Styles */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Utilities */
.bg-secondary\/50 {
  background-color: rgba(243, 244, 246, 0.5);
}

/* Spacing Utilities */
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.pt-32 {
  padding-top: 8rem;
}

.pb-32 {
  padding-bottom: 8rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-1-5 {
  margin-bottom: 0.375rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Text Utilities */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-figtree {
  font-family: 'Figtree', sans-serif;
}

.font-sora {
  font-family: 'Sora', sans-serif;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.tracking-wide {
  letter-spacing: 0.08em;
}

.uppercase {
  text-transform: uppercase;
}

.text-accent {
  color: #8b5cf6;
}

.text-foreground {
  color: #111827;
}

.text-muted-foreground {
  color: #6b7280;
}

.text-primary {
  color: #8b5cf6;
}

.text-white {
  color: #ffffff;
}

.text-white\/80 {
  color: rgba(255, 255, 255, 0.8);
}

.text-white\/85 {
  color: rgba(255, 255, 255, 0.85);
}

.leading-relaxed {
  line-height: 1.7;
}

.leading-tight {
  line-height: 1.1;
}

/* Typography */
h2 {
  font-size: clamp(1.8rem, 4vw + 0.5rem, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Cards */
.card-elevated {
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-elevated:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-5 {
  gap: 1.25rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-16 {
  gap: 4rem;
}

/* Responsive Grid */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .lg\:py-0 {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Flexbox */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

/* Positioning */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.-z-10 {
  z-index: -10;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

/* Icons */
.icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-wrapper i {
  font-size: 1.5rem;
  color: #8b5cf6;
}

.group:hover .icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
}

/* Contact Items */
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.contact-item .icon-wrapper {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
}

.contact-item .icon-wrapper i {
  font-size: 1.25rem;
}

.contact-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: #111827;
  font-weight: 500;
}

/* Map Container */
.map-container {
  overflow: hidden;
  min-height: 320px;
  border-radius: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

/* Testimonials */
.quote-icon {
  font-size: 2.5rem;
  color: rgba(139, 92, 246, 0.2);
  margin-bottom: 1.5rem;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #111827;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8b5cf6;
  letter-spacing: 0.08em;
}

/* CSS-only Slider */
.slider-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.slides {
  position: relative;
  min-height: 400px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.nav-radio {
  display: none;
}

.nav-labels {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.nav-label {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #e5e7eb;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.nav-label:hover {
  background-color: #8b5cf6;
}

/* Show slides based on radio selection */
#slide1:checked ~ .slides .slide:nth-child(1),
#slide2:checked ~ .slides .slide:nth-child(2),
#slide3:checked ~ .slides .slide:nth-child(3),
#slide4:checked ~ .slides .slide:nth-child(4) {
  opacity: 1;
  visibility: visible;
}

#slide1:checked ~ .nav-labels .nav-label:nth-child(1),
#slide2:checked ~ .nav-labels .nav-label:nth-child(2),
#slide3:checked ~ .nav-labels .nav-label:nth-child(3),
#slide4:checked ~ .nav-labels .nav-label:nth-child(4) {
  background-color: #8b5cf6;
}

/* Form Styles */
.space-y-5 > * + * {
  margin-top: 1.25rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

input, textarea {
  font-family: 'Figtree', sans-serif;
}

input:focus, textarea:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
  outline: none;
}

.w-full {
  width: 100%;
}

.h-12 {
  height: 3rem;
}

.h-\[52px\] {
  height: 52px;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.bg-background {
  background-color: #ffffff;
}

.border {
  border: 1px solid #e5e7eb;
}

.border-border {
  border-color: #e5e7eb;
}

.resize-none {
  resize: none;
}

/* Button Styles */
button, .btn {
  cursor: pointer;
  transition: all 0.2s ease;
}

button:hover, .btn:hover {
  transform: scale(1.03);
}

button:active, .btn:active {
  transform: scale(0.97);
}

/* Hero Section */
.min-h-\[90vh\] {
  min-height: 90vh;
}

.object-cover {
  object-fit: cover;
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-purple-600 {
  --tw-gradient-from: #9333ea;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(147, 51, 234, 0));
}

.to-purple-800 {
  --tw-gradient-to: #6b21a5;
}

.opacity-60 {
  opacity: 0.6;
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-\[\#f7f5fc\] {
  --tw-gradient-from: #f7f5fc;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(247, 245, 252, 0));
}

/* About Section */
.max-w-2xl {
  max-width: 42rem;
}

.max-w-\[55ch\] {
  max-width: 55ch;
}

.max-w-\[65ch\] {
  max-width: 65ch;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Image Styles */
.w-72 {
  width: 18rem;
}

.h-72 {
  height: 18rem;
}

@media (min-width: 1024px) {
  .lg\:w-96 {
    width: 24rem;
  }
  
  .lg\:h-96 {
    height: 24rem;
  }
}

.object-contain {
  object-fit: contain;
}

/* Animation */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shadow */
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Backdrop Blur */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* Border */
.border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Transform */
.transform {
  transform: translateX(0);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:scale-110:hover {
  transform: scale(1.1);
}

.active\:scale-95:active {
  transform: scale(0.95);
}

.active\:scale-97:active {
  transform: scale(0.97);
}

/* Transition */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-700 {
  transition-duration: 700ms;
}

/* Misc */
.cursor-default {
  cursor: default;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style: none;
}

.hidden {
  display: none;
}

.group {
  position: relative;
}

#preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Circle */
.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 6;
}

.progress-bar {
    fill: none;
    stroke: #7c3aed; /* accent color */
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 314; /* circumference */
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 0.3s linear;
}

/* Logo */
.loader-logo {
    width: 60px;
    z-index: 2;
    animation: logoPulse 1.5s ease-in-out infinite;
}

/* Glow/Fade Animation */
@keyframes logoPulse {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.5;
        transform: scale(0.95);
    }
}

/* Percentage */
.progress-text {
    position: absolute;
    bottom: -30px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}