@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Outfit:wght@400;500;700;800;900&display=swap');

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

@layer base {
  body {
    background-color: #ffffff;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    font-family: Arial, Helvetica, sans-serif;
  }
}

@font-face {
  font-family: 'ArmHmkBebasNeue';
  src: local("Arm Hmk's Bebas Neue Armenian"), 
       local("Arm Hmk Bebas Neue Armenian"),
       url("Arm Hmk's Bebas Neue.TTF") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-primary: #20A4A4;
  --teal-secondary: #0f172a;
  --mint-accent: #4FC3C3;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --border-subtle: rgba(32, 164, 164, 0.1);
  --logo-filter: brightness(0);
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #334155;
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #0f172a;
}

/* Premium Glass & Bento Surfaces */
.glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(32, 164, 164, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

.bento-card {
  background: rgba(20, 76, 92, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(32, 164, 164, 0.3);
  box-shadow: 0 15px 40px -5px rgba(32, 164, 164, 0.2);
}

/* Gradients */
.text-gradient {
  background: linear-gradient(to right, var(--mint-accent), var(--teal-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-alt {
  background: linear-gradient(to right, #ffffff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mesh Blobs (Ambient Lights) */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.glow-teal { background-color: var(--teal-primary); }
.glow-mint { background-color: var(--mint-accent); }
.glow-navy { background-color: var(--teal-secondary); }

/* Patterns */
.bg-grid-premium {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(32, 164, 164, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(32, 164, 164, 0.2) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.bg-grid-large {
  background-size: 200px 200px;
  background-image: 
    linear-gradient(to right, rgba(32, 164, 164, 0.12) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(32, 164, 164, 0.12) 1.5px, transparent 1.5px);
}

.bg-dots {
  background-image: radial-gradient(rgba(32, 164, 164, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

.noise-overlay {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.02;
  mix-blend-mode: multiply;
}

.premium-gradient-bg {
  background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #ffffff 70%);
}

.premium-light-bg {
  background-color: var(--bg-primary);
}

/* Custom Scrollbar */

.bg-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Custom Scrollbar for Containers */
.custom-scrollbar::-webkit-scrollbar {
  width: 5px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(32, 164, 164, 0.2);
  border-radius: 20px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(32, 164, 164, 0.4);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

/* Glass Surface Utility */
.glass-surface {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .glass-surface {
  background: rgba(7, 14, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-fade-mask {
  mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 75%, transparent 100%);
}

/* Custom Scrollbar for Main Page */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: var(--teal-primary);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--teal-secondary);
}

/* Glass Orbs */
.glass-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(32, 164, 164, 0.1), transparent);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(32, 164, 164, 0.05);
  z-index: 0;
  pointer-events: none;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

.animate-drift {
  animation: drift 20s infinite ease-in-out;
}

.animate-drift-slow {
  animation: drift 35s infinite ease-in-out reverse;
}

/* Scroll Reveal */
.reveal, .reveal-left, .reveal-right {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Delay Utils */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
.animate-float {
  animation: float 15s ease-in-out infinite;
}
.animate-float-delayed {
  animation: float 20s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes bounce-gentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
.animate-bounce-gentle {
  animation: bounce-gentle 1.5s ease-in-out infinite;
}


/* Modern Pill Button */
.pill-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.pill-btn:hover {
  background: rgba(32, 164, 164, 0.1);
  border-color: var(--teal-primary);
  color: #fff;
}

/* --- Elite Masterpiece UI Classes --- */

/* Metallic Silver Texture */
.text-metallic-silver {
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #a8b2bd 45%,
    #ffffff 50%,
    #7a8d9a 55%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Neon Glows */
.glow-border-blue {
  box-shadow: 0 0 15px rgba(32, 164, 164, 0.3), inset 0 0 10px rgba(32, 164, 164, 0.1);
  border-color: rgba(32, 164, 164, 0.5);
}

.glow-text-blue {
  text-shadow: 0 0 10px rgba(32, 164, 164, 0.5);
}

.glow-btn-neon {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transition: all 0.4s ease;
}

.glow-btn-neon:hover {
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

/* Animations */
@keyframes floating-stack {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-8px) translateX(4px); }
  66% { transform: translateY(4px) translateX(-4px); }
}

.animate-floating-stack {
  animation: floating-stack 8s ease-in-out infinite;
}

.animate-floating-stack-delayed {
  animation: floating-stack 8s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes shimmer-fast {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.shimmer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  animation: shimmer-fast 3s infinite;
  pointer-events: none;
}


.dark .glass-nav {
    background: rgba(4, 8, 15, 0.90);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.dark .collage-item {
    box-shadow: 0 45px 80px rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.05);
}


/* Precise Dark Mode Overrides */
.dark body {
    background-color: #050b10 !important;
    color: #cbd5e1 !important;
}

.dark .bg-grid-dark {
    background-size: 40px 40px;
    background-image: 
      linear-gradient(to right, rgba(32, 164, 164, 0.22) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(32, 164, 164, 0.22) 1px, transparent 1px) !important;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #ffffff !important;
}

.dark .glass-nav {
    background: rgba(7, 14, 20, 0.8) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark .bento-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark input, .dark textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}


/* FINAL FIDELITY FIXES */
.dark {
    --bg-primary: #070e14;
    --logo-filter: brightness(0) invert(1) !important;
}

.dark .bg-grid-premium {
    background-image: 
      linear-gradient(to right, rgba(32, 164, 164, 0.1) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(32, 164, 164, 0.1) 1px, transparent 1px) !important;
}

.dark .glass-nav {
    background: rgba(7, 14, 20, 0.85) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.dark .bento-card {
    background: rgba(12, 28, 28, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark .collage-item {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 1) !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6) !important;
}

/* Simplified Footer Accordion Animation */
.group\/details[name="footer-nav"] {
    transition: all 0.3s ease-in-out;
}

.group\/details[name="footer-nav"] summary {
    transition: all 0.3s ease-in-out;
}

.group\/details[name="footer-nav"] .accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    overflow: hidden;
}

.group\/details[name="footer-nav"][open] .accordion-content {
    grid-template-rows: 1fr;
    opacity: 1;
}

.group\/details[name="footer-nav"].closing .accordion-content {
    grid-template-rows: 0fr;
    opacity: 0;
}

.group\/details[name="footer-nav"] ul {
    min-height: 0;
}

/* Footer Link Styles */
.footer-links-list a {
    color: #94a3b8; /* text-slate-400 equivalent for dark mode feel */
    transition: all 0.3s ease-in-out;
}

.dark .footer-links-list a {
    color: #94a3b8; /* text-slate-400 */
}

.footer-links-list a:hover {
    color: inherit;
}
/* Tree Connector Structure - One Solid Unified Piece */
.tree-connector {
    position: relative;
    padding-left: 0 !important;
    margin-left: 14px !important;
    border-left: 2px solid #cbd5e1 !important; /* The core solid trunk */
    list-style: none !important;
}

.dark .tree-connector {
    border-left-color: #334155 !important;
}

.tree-connector li {
    position: relative;
    padding-left: 20px !important;
    padding-bottom: 10px !important;
    line-height: 1.2 !important;
}

.tree-connector li:last-child {
    padding-bottom: 0 !important;
}

/* Branch curves coming out of the trunk */
.tree-connector li::before {
    content: '';
    position: absolute;
    left: -2px; /* Perfect overlap with the UL trunk */
    top: 9px;
    width: 14px;
    height: 15px;
    border-left: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    border-bottom-left-radius: 10px;
    transform: translateY(-100%);
    z-index: 1;
}

.dark .tree-connector li::before {
    border-color: #334155;
}

/* The last item "bends" the trunk into the branch by hiding the tail */
.tree-connector li:last-child::after {
    content: '';
    position: absolute;
    left: -3px; /* Slightly wider to cover any sub-pixel edges */
    top: 9px;
    width: 4px;
    height: 100%;
    background-color: #ffffff; /* Match page background */
    z-index: 2; /* Sits on top of the trunk to "erase" it */
}

.dark .tree-connector li:last-child::after {
    background-color: #070e14; /* Match dark mode background */
}

/* Text Fade Mask with Dynamic Control */
.text-fade-mask {
    --mask-top: 0%;
    --mask-bottom: 100%;
    mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black var(--mask-top), 
        black var(--mask-bottom), 
        transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black var(--mask-top), 
        black var(--mask-bottom), 
        transparent 100%);
    transition: mask-image 0.2s, -webkit-mask-image 0.2s;
}







