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

:root {
  --bg-main: #05070D;
  --bg-section: #0B1220;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent-neon: #00F5D4;
  --accent-purple: #7B2FF7;
  --highlight-gold: #C9A857;
  --text-primary: #E6EAF0;
  --text-secondary: #9AA4B2;
  --border-glass: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none; /* For custom cursor */
  opacity: 0;
  animation: page-fade-in 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p, span, li {
  color: var(--text-secondary);
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-neon) 0%, transparent 70%);
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.custom-cursor.hovering {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

/* Glass & Neon Elements */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-panel:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.15), inset 0 0 10px rgba(123, 47, 247, 0.1);
  transform: translateY(-5px);
}

.glass-nav {
  background: rgba(5, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

/* Mobile Menu Transition Engine */
#mobile-menu {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  display: block !important; /* Managed by JS active class */
  height: 0;
  overflow: hidden;
}

#mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  height: auto;
  padding-bottom: 2rem;
}

/* Typography Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-neon), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--highlight-gold), #FFF0C2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn-neon {
  background: linear-gradient(135deg, var(--accent-neon), var(--accent-purple));
  color: #fff !important;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  border: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.3);
  text-decoration: none;
}
.btn-neon::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-neon));
  z-index: -1;
  transition: opacity 0.5s ease;
  opacity: 0;
}
.btn-neon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(123, 47, 247, 0.5);
}
.btn-neon:hover::before {
  opacity: 1;
}

.btn-outline-neon {
  background: transparent;
  color: var(--accent-neon);
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.875rem 2.5rem;
  border: 1px solid var(--accent-neon);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.btn-outline-neon:hover {
  background: rgba(0, 245, 212, 0.1);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
  transform: scale(1.05);
}

/* Utility Backgrounds */
.bg-section-dark {
  background-color: var(--bg-section);
}
.bg-gradient-radial {
  background: radial-gradient(circle at center, rgba(123, 47, 247, 0.15) 0%, var(--bg-main) 70%);
}
.glow-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  animation: blob-float 10s infinite alternate;
}
.glow-purple { background: var(--accent-purple); top: -10%; right: -5%; }
.glow-aqua { background: var(--accent-neon); bottom: -10%; left: -5%; }
.glow-gold { background: var(--highlight-gold); bottom: 20%; right: 10%; opacity: 0.15; }

@keyframes blob-float {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.1) translate(30px, -30px); }
  100% { transform: scale(0.9) translate(-30px, 30px); }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Image Wrapper */
.premium-img-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.premium-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}
.premium-img-wrapper img {
  transition: transform 0.7s ease;
  display: block;
}
.premium-img-wrapper:hover img {
  transform: scale(1.08);
}

/* Form Styles */
.glass-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  transition: all 0.3s;
}
.glass-input:focus {
  outline: none;
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
  background: rgba(255,255,255,0.05);
}
.glass-input::placeholder {
  color: rgba(154, 164, 178, 0.5);
}

/* Hide scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease;
}
.loader-core {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  border-top-color: var(--accent-neon);
  border-bottom-color: var(--accent-purple);
  animation: spin 1s infinite linear;
  box-shadow: 0 0 20px rgba(0,245,212,0.2);
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Lightbox overlay fix */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,7,13,0.95);
  backdrop-filter: blur(10px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(123,47,247,0.4);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-primary);
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}
.lightbox-close:hover {
  color: var(--accent-neon);
  text-shadow: 0 0 10px rgba(0,245,212,0.5);
}

/* Gallery Masonry */
.masonry-grid {
  columns: 1;
  column-gap: 1.5rem;
}
@media (min-width: 768px) { .masonry-grid { columns: 2; } }
@media (min-width: 1024px) { .masonry-grid { columns: 3; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.masonry-item.hidden {
  display: none;
}

/* Timeline */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-neon), var(--accent-purple));
  opacity: 0.3;
}
.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-main);
  border: 4px solid var(--accent-neon);
  box-shadow: 0 0 15px rgba(0,245,212,0.6);
  z-index: 10;
}
