/* ========================================
   WeZen Dev - Main Stylesheet
   ======================================== */

/* Colors & Typography */
:root {
  --primary: #0F766E;
  --secondary: #7C3AED;
  --accent: #F59E0B;
  --dark: #1F2937;
  --light: #F9FAFB;
}

/* Vanta Background */
.vanta-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.08;
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.gradient-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

/* Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animations */
.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-20px); 
  }
}

.slide-in {
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Navigation Links */
.nav-link {
  color: #4B5563;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 10rem;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(15, 118, 110, 0.05);
  border-radius: 9999px;
  filter: blur(3rem);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(124, 58, 237, 0.05);
  border-radius: 9999px;
  filter: blur(3rem);
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem;
  border-radius: 1rem;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.15);
}

/* Portfolio Items */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.7), rgba(124, 58, 237, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.portfolio-item:hover::after {
  opacity: 1;
}

.portfolio-item:hover {
  transform: scale(1.05);
}

.portfolio-item img {
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

/* Tech Badges */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.3s ease;
  margin: 0.25rem;
}

.tech-badge:hover {
  background: rgba(15, 118, 110, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}

/* Statistics Counter */
.stats-counter {
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Form Styles */
input[type="text"],
input[type="email"],
textarea {
  transition: all 0.3s ease;
}

/* Fix Chrome autofill white background bug */
input[type="text"]:-webkit-autofill,
input[type="email"]:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 60, 0.8) inset !important;
  -webkit-text-fill-color: white !important;
  background-clip: content-box !important;
  caret-color: white !important;
}

input[type="text"]:-webkit-autofill::first-line,
input[type="email"]:-webkit-autofill::first-line,
textarea:-webkit-autofill::first-line {
  color: white !important;
}

/* Remove blue outline on autofill */
input[type="text"]:-webkit-autofill:focus,
input[type="email"]:-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(30, 30, 60, 0.8) inset !important;
  -webkit-text-fill-color: white !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  background-color: rgba(30, 30, 60, 0.6) !important;
  border-color: white !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  outline: none !important;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Button Styles */
button[type="submit"] {
  transition: all 0.3s ease;
  font-weight: 600;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.1);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 2rem;
  }

  .hero-section::before {
    width: 16rem;
    height: 16rem;
    top: 5rem;
  }

  .hero-section::after {
    width: 16rem;
    height: 16rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .stats-counter {
    font-size: 1.75rem;
  }
}

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

/* Utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

a, button {
  cursor: pointer;
}

/* FAQ Styling */
.faq-item {
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #0F766E;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.1);
}

.faq-item summary {
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  background-color: #f0fdfc;
  border-color: #0F766E;
}

.faq-item[open] summary {
  color: #0F766E;
}

.faq-item[open] summary i {
  transform: rotate(180deg);
}

.faq-item p {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

