/* Custom styles for TechVision KZ */

/* Custom Underwater Theme Colors */
:root {
  --ocean-blue: #0ea5e9;
  --sand-yellow: #f4d35e;
  --coral-pink: #fb7185;
  --kelp-green: #10b981;
  --shell-white: #fdfcf8;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--shell-white);
}

/* Tailwind color utilities */
.bg-ocean-blue {
  background-color: var(--ocean-blue);
}
.bg-sand-yellow {
  background-color: var(--sand-yellow);
}
.bg-coral-pink {
  background-color: var(--coral-pink);
}
.bg-kelp-green {
  background-color: var(--kelp-green);
}
.bg-shell-white {
  background-color: var(--shell-white);
}


.border-ocean-blue {
  border-color: var(--ocean-blue);
}
.border-sand-yellow {
  border-color: var(--sand-yellow);
}
.border-coral-pink {
  border-color: var(--coral-pink);
}
.border-kelp-green {
  border-color: var(--kelp-green);
}
.border-shell-white {
  border-color: var(--shell-white);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Underwater Visual Elements */
.bubble-border {
  position: relative;
}

.bubble-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--coral-pink), var(--sand-yellow), var(--kelp-green), var(--ocean-blue));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.7;
}

.scallop-edge {
  position: relative;
  border-radius: 2rem;
}

.scallop-edge::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: radial-gradient(circle at 20% 20%, var(--coral-pink) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, var(--sand-yellow) 2px, transparent 2px),
    radial-gradient(circle at 20% 80%, var(--kelp-green) 2px, transparent 2px),
    radial-gradient(circle at 80% 80%, var(--ocean-blue) 2px, transparent 2px);
  background-size: 20px 20px;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.3;
}

.wavy-border {
  position: relative;
}

.wavy-border::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23FDFCF8'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23FDFCF8'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23FDFCF8'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 1200px 120px;
}

.wavy-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M985.66,92.83C906.67,72,823.78,31,743.84,14.19c-82.26-17.34-168.06-16.33-250.45.39-57.84,11.73-114,31.07-172,41.86A600.21,600.21,0,0,1,0,27.35V120H1200V95.8C1132.19,118.92,1055.71,111.31,985.66,92.83Z' fill='%23FDFCF8'/%3E%3C/svg%3E")
    repeat-x;
  background-size: 1200px 120px;
}

.sponge-dots {
  background-image: repeating-radial-gradient(
      circle at 0 0,
      transparent 0,
      rgba(253, 252, 248, 0.1) 10px,
      transparent 20px
    ), repeating-radial-gradient(circle at 50px 50px, transparent 0, rgba(253, 252, 248, 0.05) 10px, transparent 20px);
  background-size: 100px 100px, 100px 100px;
}

.bubble-chip {
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.bubble-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.bubble-chip::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: inherit;
  z-index: -1;
}

.bottle-quote {
  position: relative;
  transition: all 0.3s ease;
}

.bottle-quote:hover {
  transform: translateY(-5px) rotate(1deg);
}

.polaroid-frame {
  padding: 1rem;
  background: var(--shell-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.polaroid-frame::after {
  content: "Digital Innovation";
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: var(--ocean-blue);
  font-weight: 500;
}

/* Floating bubbles container */
.floating-bubbles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Animations */
@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes bubble-up {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-bubble-up {
  animation: bubble-up 0.6s ease-out forwards;
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.wave-animation {
  animation: wave 3s ease-in-out infinite;
}

/* Header enhancements */
header {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header-scrolled {
  background: rgba(14, 165, 233, 0.95) !important;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

/* Hero section enhancements */
#hero {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e7eb" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>')
    repeat;
  opacity: 0.3;
  z-index: 0;
}

#hero > .container {
  position: relative;
  z-index: 1;
}

/* Button hover effects */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Enhanced hover effects */
.case-card {
  transition: all 0.4s ease;
  overflow: hidden;
}

.case-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.case-card img {
  transition: all 0.4s ease;
}

.case-card:hover img {
  transform: scale(1.1);
}

/* Form styling enhancements */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.2);
}

.form-input:invalid {
  border-color: #ef4444;
}

.form-input:invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  outline: none;
}

/* Team section enhancements */
.team-member {
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
}

.team-avatar {
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member:hover .team-avatar {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* FAQ styling */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
  cursor: pointer;
}

.faq-answer {
  transition: all 0.3s ease;
}

/* Tag styling */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  transform: translateY(-1px);
}

/* Map container */
.map-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.map-wrapper:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Cookie notice styling */
#cookieNotice {
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

/* Loading spinner for form */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive enhancements */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .bubble-chip {
    padding: 1rem;
  }

  .bottle-quote {
    margin-bottom: 2rem;
  }

  .polaroid-frame {
    transform: none !important;
  }

  .sponge-dots {
    background-size: 50px 50px, 50px 50px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .floating-bubbles {
    display: none;
  }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}



/* Print styles */
@media print {
  header,
  footer,
  #cookieNotice {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1,
  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Selection styling */
::selection {
  background-color: #2563eb;
  color: rgb(0, 0, 0);
}

::-moz-selection {
  background-color: #2563eb;
  color: rgb(0, 0, 0);
}




/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}
