/* ==========================================================================
   STORMFX - PREMIUM CINEMATIC PORTFOLIO STYLE SYSTEM
   ========================================================================== */

/* Variables & Base Customization */
:root {
  --bg-darker: #020508;
  --bg-dark: #050a0f;
  --bg-card: rgba(10, 22, 33, 0.45);
  --accent-emerald: #0fc285;
  --accent-emerald-rgb: 15, 194, 133;
  --accent-blue: #0d6efd;
  --accent-blue-rgb: 13, 110, 253;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --border-glow: rgba(15, 194, 133, 0.15);
  --border-glow-blue: rgba(13, 110, 253, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Native smooth scroll */
}

body {
  background-color: var(--bg-darker);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 194, 133, 0.2);
  border-radius: 4px;
  border: 2px solid var(--bg-darker);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 194, 133, 0.5);
}

/* Selection */
::selection {
  background: rgba(15, 194, 133, 0.3);
  color: #fff;
}

/* Custom Dual-Ring Cursor */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity 0.3s ease;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

#cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 110, 253, 0.4);
  box-shadow: 0 0 12px rgba(13, 110, 253, 0.1);
  transition: border-color 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

/* Cursor states on hover */
body.hovering-link #cursor-ring {
  border-color: var(--accent-emerald);
  background-color: rgba(15, 194, 133, 0.05);
}

/* Hide native cursor for premium desktop feel, but only when custom cursor is active */
@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }
}

@media (max-width: 1024px) {
  #cursor-dot, #cursor-ring {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* Ambient Cinematic Glow Lights */
.glow-ambient-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(15, 194, 133, 0.08) 0%, rgba(15, 194, 133, 0.03) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}

.glow-ambient-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, rgba(13, 110, 253, 0.03) 40%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-glow {
  background: radial-gradient(circle, rgba(15, 194, 133, 0.12) 0%, rgba(15, 194, 133, 0.03) 45%, rgba(0,0,0,0) 70%);
}

/* Premium Loading Animation Screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #020406;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.loader-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.5em;
  font-size: clamp(2rem, 5vw, 4.5rem);
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-emerald) 70%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(30px);
  text-shadow: 0 0 40px rgba(15, 194, 133, 0.15);
}

.loader-progress-container {
  width: 250px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 30px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-blue));
  box-shadow: 0 0 10px var(--accent-emerald);
  transition: width 0.1s linear;
}

.loader-counter {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: 0.2em;
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(10, 22, 33, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.glass-panel:hover {
  border-color: rgba(15, 194, 133, 0.2);
  box-shadow: 0 12px 40px 0 rgba(15, 194, 133, 0.06), 0 0 1px 1px rgba(15, 194, 133, 0.1) inset;
}

.glass-panel-blue:hover {
  border-color: rgba(13, 110, 253, 0.2);
  box-shadow: 0 12px 40px 0 rgba(13, 110, 253, 0.06), 0 0 1px 1px rgba(13, 110, 253, 0.1) inset;
}

/* Premium Inputs */
.premium-input {
  background: rgba(4, 9, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.premium-input:focus {
  outline: none;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(15, 194, 133, 0.15);
  background: rgba(10, 22, 33, 0.8);
}

/* Cinematic Texts */
.text-shimmer {
  background: linear-gradient(90deg, #fff 0%, var(--text-secondary) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 8s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.gradient-brand {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-emerald) 65%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive Magnetic Buttons */
.btn-magnetic {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-glowing-green {
  background: linear-gradient(135deg, rgba(15, 194, 133, 0.1) 0%, rgba(15, 194, 133, 0.2) 100%);
  border: 1px solid rgba(15, 194, 133, 0.4);
  color: #fff;
  text-shadow: 0 0 10px rgba(15, 194, 133, 0.5);
  box-shadow: 0 0 20px rgba(15, 194, 133, 0.1), inset 0 0 15px rgba(15, 194, 133, 0.1);
  overflow: hidden;
  transition: all 0.4s ease;
}

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

.btn-glowing-green:hover {
  background: rgba(15, 194, 133, 0.25);
  border-color: var(--accent-emerald);
  box-shadow: 0 0 30px rgba(15, 194, 133, 0.35), inset 0 0 10px rgba(15, 194, 133, 0.2);
  transform: translateY(-2px);
}

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

/* Accordion Custom Styling */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-emerald);
}

/* Image zoom & Modal Theater */
.zoom-frame {
  overflow: hidden;
  position: relative;
}

.zoom-frame img {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.zoom-frame:hover img {
  transform: scale(1.08);
}

/* Theater overlay player */
.theater-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 6, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.theater-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.theater-container {
  width: 90%;
  max-width: 1100px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(15, 194, 133, 0.1);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.theater-overlay.active .theater-container {
  transform: scale(1);
}

/* Lightbox Modal (For Photoshoot Image) */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 4, 6, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-container {
  max-width: 85%;
  max-height: 85%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 45px rgba(13, 110, 253, 0.1);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-overlay.active .lightbox-container {
  transform: scale(1);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .theater-container {
    width: 95%;
  }
}
