/* ==========================================================================
   Shivaram Mony - Cinematic Portfolio Styles
   Dark Mode Aesthetic (#0a0a0a), Subtle Borders (#262626), Amber Accent (#d97706)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Syne:wght@500;600;700;800&family=Cinzel:wght@600;700;800;900&display=swap');

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --bg-tertiary: #181818;
  --border-subtle: #262626;
  --border-highlight: #333333;
  --accent-amber: #d97706;
  --accent-amber-light: #f59e0b;
  --accent-amber-glow: rgba(217, 119, 6, 0.2);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  color-scheme: dark;
}

h1, h2, h3, .font-heading {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.02em;
}

.font-cinematic {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d97706;
}

/* Cinematic Film Grain & Vignette Overlay */
.cinema-bg-grain {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(217, 119, 6, 0.04) 0%, transparent 50%);
}

.subtle-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-amber {
  background: rgba(26, 21, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.glass-nav {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Film Strip Accents */
.film-perforation {
  background-image: radial-gradient(#1f1f1f 40%, transparent 45%);
  background-size: 16px 16px;
  background-repeat: repeat-x;
}

/* Glowing Amber Accents */
.glow-amber-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-amber-hover:hover {
  box-shadow: 0 0 25px rgba(217, 119, 6, 0.25);
  border-color: rgba(217, 119, 6, 0.6);
  transform: translateY(-2px);
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #fcd34d 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.silver-gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, #9ca3af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Link Pill Styling */
.nav-link {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.nav-link.active {
  color: #fbbf24;
  background-color: rgba(217, 119, 6, 0.15);
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.2);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: #d97706;
  box-shadow: 0 0 8px #d97706;
  border-radius: 9999px;
}

/* Film Reel Rotation */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-slow {
  animation: spinSlow 30s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modals */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-hidden .modal-content {
  transform: scale(0.95) translateY(20px);
}

/* Custom Button Lighting */
.btn-cinematic {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-cinematic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.btn-cinematic:hover::before {
  left: 100%;
}

/* Toast Notification */
#toast {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
