/* ── Aday Interactive — Custom Styles ── */
/* Used alongside Tailwind CDN */

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

html { scroll-behavior: smooth; }

/* ── Brand Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #1E90FF 0%, #00C8A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-brand-gradient {
  background: linear-gradient(135deg, #1E90FF 0%, #00C8A0 33%, #66B2FF 66%, #00C8A0 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brand-shimmer 6s ease infinite;
}

.text-ai-gradient {
  background: linear-gradient(90deg, #e7b6be, #4e5bca, #38a2ff, #00C8A0, #e7b6be);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: ai-gradient-shift 8s ease infinite;
}

@keyframes brand-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes ai-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ── Gradient Mesh Background ── */
.gradient-mesh {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(30, 144, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 200, 160, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(102, 178, 255, 0.05) 0%, transparent 50%);
}

/* ── Cards ── */
.card-glow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
}
.card-glow:hover {
  box-shadow: 0 20px 25px -5px rgba(30, 144, 255, 0.1), 0 10px 10px -5px rgba(30, 144, 255, 0.04), 0 0 0 1px rgba(30, 144, 255, 0.05);
  transform: translateY(-2px) scale(1.01);
}

.card-elevated {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.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), 0 0 50px rgba(30, 144, 255, 0.15);
  transform: translateY(-4px);
}

.card-glow-border {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #1E90FF, #00C8A0, #1E90FF);
  background-size: 200% 200%;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: border-shimmer 4s ease infinite;
}
.card-glow-border:hover::before { opacity: 1; }
.card-glow-border:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(30, 144, 255, 0.15);
}

@keyframes border-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.shadow-deep {
  box-shadow: 0 2rem 4rem 0.5rem rgba(0, 0, 0, 0.08);
}

/* ── Glass ── */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15), inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

/* ── Marquee ── */
.marquee-container {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fade-up { animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); filter: blur(5px); transform: translateX(-20px); }
  to { clip-path: inset(0 0 0 0); filter: blur(0px); transform: translateX(0); }
}
.text-reveal { animation: textReveal 1s cubic-bezier(0.19, 1, 0.22, 1) both; }

@keyframes floating {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
.animate-floating { animation: floating 6s ease-in-out infinite; }

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(30, 144, 255, 0); }
}
.glow-ring { animation: glow-pulse 3s ease-in-out infinite; }

/* ── Section Label ── */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #1E90FF;
}

/* ── Dot Pattern ── */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(30, 144, 255, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Glow Button ── */
.glow-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.glow-button::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.glow-button:hover::before { width: 300px; height: 300px; }

/* ── Mobile Menu ── */
#mobile-menu { display: none; }
#mobile-menu.open { display: flex; }

/* ── Mega Menu ── */
/* Handled by Tailwind group-hover:block — no extra CSS needed */

/* ── Service Card Hover ── */
.service-card {
  transition: all 0.5s ease;
}
.service-card:hover {
  background-color: #153d5e;
  border-color: #1a4a6e;
}
.service-card:hover h3,
.service-card:hover .card-title { color: white; }
.service-card:hover p,
.service-card:hover .card-desc { color: #cbd5e1; }
.service-card:hover .card-icon { color: white; }
.service-card:hover .card-icon-bg { background-color: rgba(255,255,255,0.1); }
.service-card:hover .card-link { color: #00C8A0; }

/* ── Pillar Card Hover ── */
.pillar-card {
  transition: all 0.5s ease;
}
.pillar-card:hover {
  background-color: #153d5e;
  border-color: #1a4a6e;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.pillar-card:hover h3 { color: white; }
.pillar-card:hover p { color: #cbd5e1; }
.pillar-card:hover .pillar-icon { color: white; }
.pillar-card:hover .pillar-icon-bg { background-color: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* ── Project Card Hover ── */
.project-card {
  transition: all 0.5s ease;
}
.project-card:hover {
  background-color: #153d5e;
  border-color: #1a4a6e;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}
.project-card:hover h3 { color: white; }
.project-card:hover p { color: #cbd5e1; }
.project-card:hover .project-tag { background-color: rgba(255,255,255,0.1); color: white; }
.project-card:hover .project-link { color: #00C8A0; }

/* ── Form Styles ── */
.form-input {
  height: 4rem;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: all 0.3s;
  width: 100%;
}
.form-input:focus {
  border-color: #1E90FF;
  background-color: white;
}
.form-input::placeholder { color: #cbd5e1; }

.form-textarea {
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  transition: all 0.3s;
  width: 100%;
  resize: vertical;
}
.form-textarea:focus {
  border-color: #1E90FF;
  background-color: white;
}

.form-select {
  height: 4rem;
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 0 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #0f172a;
  outline: none;
  appearance: none;
  width: 100%;
  transition: all 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
}
.form-select:focus {
  border-color: #1E90FF;
  background-color: white;
}
