/* ==========================================================================
   Samimi DCS — global styles
   Glassmorphism + light theme with dark-blue brand accents, complements
   Tailwind utility classes.
   ========================================================================== */

:root {
  --navy-900: #0a1834;
  --navy-800: #0e2450;
  --navy-700: #123068;
  --accent-500: #0ea5e9;
  --accent-600: #0284c7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f5f8fc;
  color: #1e293b;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: 'Poppins', sans-serif;
}

/* ---------------------------------------------------------------------
   Animated background: soft layered gradient blobs on a light canvas
   --------------------------------------------------------------------- */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4fc 0%, #f5f8fc 40%, #ffffff 100%);
}

.bg-aurora span {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: 0.28;
  animation: drift 26s ease-in-out infinite;
}

.bg-aurora span:nth-child(1) {
  width: 30rem;
  height: 30rem;
  top: -8rem;
  left: -6rem;
  background: #7dd3fc;
  animation-delay: 0s;
}

.bg-aurora span:nth-child(2) {
  width: 26rem;
  height: 26rem;
  top: 8rem;
  right: -8rem;
  background: #93c5fd;
  animation-delay: -9s;
}

.bg-aurora span:nth-child(3) {
  width: 24rem;
  height: 24rem;
  bottom: -6rem;
  left: 25%;
  background: #bae6fd;
  animation-delay: -16s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 6%) scale(1.08); }
  66% { transform: translate(-4%, -4%) scale(0.95); }
}

/* ---------------------------------------------------------------------
   Glass surfaces (frosted white on light background)
   --------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 20px 45px -15px rgba(14, 165, 233, 0.25);
}

/* ---------------------------------------------------------------------
   Gradient text + buttons
   --------------------------------------------------------------------- */
.text-gradient {
  background: linear-gradient(90deg, #0369a1, #1d4ed8, #0369a1);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-x 6s linear infinite;
}

@keyframes gradient-x {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-glow:hover::after {
  transform: translateX(100%);
}

/* ---------------------------------------------------------------------
   Utility animations
   --------------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fade-up 0.8s ease forwards;
}

/* AOS-independent fallback reveal (progressive enhancement) */
[data-aos] {
  transition-property: opacity, transform;
}

/* ---------------------------------------------------------------------
   Scrollbar
   --------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #eef4fc;
}
::-webkit-scrollbar-thumb {
  background: #93c5fd;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-500);
}

/* ---------------------------------------------------------------------
   Mobile nav
   --------------------------------------------------------------------- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
#mobile-menu.open {
  max-height: 32rem;
}

/* Section image frame */
.img-frame {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 45px -20px rgba(15, 23, 42, 0.25);
}

/* ---------------------------------------------------------------------
   Floating action buttons (collapsible, low-motion)
   --------------------------------------------------------------------- */
.fab-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fab-actions.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-toggle svg {
  transition: transform 0.25s ease;
}
.fab-toggle.open svg {
  transform: rotate(45deg);
}
