@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 13%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 13%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 13%;
    --primary: 165 72% 27%;
    --primary-foreground: 0 0% 100%;
    --secondary: 200 80% 50%;
    --secondary-foreground: 0 0% 100%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 40%;
    --accent: 78 80% 40%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 90%;
    --input: 0 0% 90%;
    --ring: 165 72% 27%;
    --radius: 0.25rem;
  }

  .dark {
    --background: 0 0% 10%;
    --foreground: 0 0% 98%;
    --card: 0 0% 12%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 12%;
    --popover-foreground: 0 0% 98%;
    --primary: 165 72% 35%;
    --primary-foreground: 0 0% 100%;
    --secondary: 200 80% 50%;
    --secondary-foreground: 0 0% 100%;
    --muted: 0 0% 20%;
    --muted-foreground: 0 0% 65%;
    --accent: 78 80% 45%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 20%;
    --input: 0 0% 20%;
    --ring: 165 72% 35%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
    font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
  }
}

/* VOIP Theme Colors */
:root {
  --voip-primary: #3b8686;
  --voip-primary-dark: #2d6666;
  --voip-secondary: #4299e1;
  --voip-accent: #5da204;
  --voip-accent-hover: #70c405;
  --voip-dark: #1a1a1a;
  --voip-gray: #222222;
  --voip-light: #f5f5f5;
  --voip-red: #db4436;
}

/* Custom scrollbar styles */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  @apply bg-gray-100;
}

::-webkit-scrollbar-thumb {
  @apply bg-[#3b8686] rounded-full;
}

::-webkit-scrollbar-thumb:hover {
  @apply bg-[#2d6666];
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Text selection */
::selection {
  background-color: #3b8686;
  color: white;
}

::-moz-selection {
  background-color: #3b8686;
  color: white;
}

/* Form input focus states */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #5da204;
  box-shadow: 0 0 0 3px rgba(93, 162, 4, 0.1);
}

/* VOIP Button Styles */
.btn-voip {
  @apply px-6 py-3 font-semibold transition-all duration-300;
  background-color: #5da204;
  color: white;
  border: none;
  border-radius: 0;
}

.btn-voip:hover {
  background-color: #70c405;
}

.btn-voip-outline {
  @apply px-6 py-3 font-semibold transition-all duration-300;
  background-color: transparent;
  color: #5da204;
  border: 2px solid #5da204;
  border-radius: 0;
}

.btn-voip-outline:hover {
  background-color: #5da204;
  color: white;
}

/* Section Styles */
.section-heading {
  @apply text-center mb-12;
}

.section-heading h2 {
  @apply text-3xl md:text-4xl font-normal mb-2;
  color: #222;
}

.section-heading h4 {
  @apply text-lg text-gray-600 mb-4;
}

.section-heading hr {
  width: 60px;
  height: 3px;
  background-color: #db4436;
  border: none;
  margin: 0 auto;
}

/* Service Box Styles */
.service-box {
  @apply p-6 transition-all duration-300;
}

.service-box:hover {
  @apply shadow-lg;
  transform: translateY(-5px);
}

.service-box .icon {
  @apply w-16 h-16 flex items-center justify-center mb-4;
  background-color: #4299e1;
  color: white;
  font-size: 1.5rem;
}

/* Pricing Table Styles */
.pricing-card {
  @apply bg-white border border-gray-200 text-center transition-all duration-300;
}

.pricing-card:hover {
  @apply shadow-xl;
  transform: translateY(-10px);
}

.pricing-card.featured {
  @apply bg-[#3b8686] text-white;
}

.pricing-card .price {
  @apply text-4xl font-bold my-4;
  color: #4299e1;
}

.pricing-card.featured .price {
  @apply text-white;
}

/* Accordion Styles */
.accordion-item {
  @apply border-b border-gray-200;
}

.accordion-trigger {
  @apply w-full py-4 px-6 text-left font-medium flex items-center justify-between;
  background-color: #4299e1;
  color: white;
}

.accordion-trigger:hover {
  background-color: #3182ce;
}

.accordion-content {
  @apply p-6 bg-white;
}

/* Footer Styles */
.footer-dark {
  background-color: #1a1a1a;
  color: #ccc;
}

.footer-dark h2 {
  @apply text-white text-lg font-semibold mb-4 pb-2;
  border-bottom: 2px solid #db4436;
}

.footer-dark a {
  @apply text-gray-400 hover:text-white transition-colors;
}

/* Hero Slider Styles */
.hero-slider {
  @apply relative w-full;
  height: 600px;
}

.hero-slide {
  @apply absolute inset-0 w-full h-full;
}

.hero-slide img {
  @apply w-full h-full object-cover;
}

.hero-caption {
  @apply absolute inset-0 flex flex-col justify-center px-8 md:px-16;
  background: rgba(0, 0, 0, 0.3);
}

.hero-caption h3 {
  @apply text-3xl md:text-5xl font-light text-white mb-4 uppercase;
  letter-spacing: 2px;
}

.hero-caption p {
  @apply text-lg text-white/80 mb-8 max-w-xl;
}

/* Contact Section */
.contact-dark {
  background: linear-gradient(135deg, #3b8686 0%, #2d4a6a 100%);
}

.contact-dark input,
.contact-dark textarea {
  @apply w-full p-4 bg-transparent border-2 border-white/30 text-white placeholder-white/60;
  outline: none;
}

.contact-dark input:focus,
.contact-dark textarea:focus {
  border-color: #5da204;
  box-shadow: none;
}

/* News/Blog Card */
.news-card {
  @apply bg-white overflow-hidden transition-all duration-300;
}

.news-card:hover {
  @apply shadow-lg;
  transform: translateY(-5px);
}

.news-card .image {
  @apply relative h-48 overflow-hidden;
}

.news-card .content {
  @apply p-6;
}

.news-card .meta {
  @apply text-sm text-gray-500 mb-2;
}

.news-card h3 {
  @apply text-xl font-semibold mb-3;
}

/* Hide hydration errors */
[data-hydration-error] {
  display: none !important;
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Container max-width */
.container {
  max-width: 1200px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
  }
}
