/* ============================================
   TALENT SCRIPT CAREER BRANDING AGENCY
   Premium Agency Stylesheet
   ============================================ */

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

/* ---- CSS Variables ---- */
:root {
  --gold: #c9a84c;
  --gold-light: #e0c96e;
  --gold-dim: rgba(201,168,76,0.15);
  --charcoal: #0a0a0f;
  --charcoal-light: #12121a;
  --slate: #1a1a24;
  --navy: #1e3a5f;
  --royal: #2d5f8a;
  --steel: #4a7faa;
  --ice: #7eb8da;
  --frost: #b8d8eb;
  --pearl: #e8f0f5;
  --bone: #f2f5f7;
  --text-primary: #f2f5f7;
  --text-secondary: #8a9ab5;
  --text-muted: #5a6a82;
  --gradient-gold: linear-gradient(135deg, #c9a84c, #e0c96e);
  --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
  --glass: rgba(18,18,26,0.75);
  --glass-border: rgba(201,168,76,0.12);
}

/* ---- Base Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--charcoal);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
.font-display { font-family: 'Playfair Display', serif; }
.font-body { font-family: 'Inter', sans-serif; }

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--charcoal); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.5); }

/* ---- Selection ---- */
::selection { background: rgba(201,168,76,0.3); color: var(--text-primary); }

/* ---- Utility Classes ---- */
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }
.bg-gold { background: var(--gold); }
.gradient-gold { background: var(--gradient-gold); }
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ---- Navigation ---- */
.nav-main {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.nav-main.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--frost); letter-spacing: 0.02em;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo span { color: var(--gold); }
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--gradient-gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700; color: var(--charcoal);
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1.5px; background: var(--gradient-gold);
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--gradient-gold); color: var(--charcoal);
  padding: 0.6rem 1.8rem;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  border: none; cursor: pointer;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.35);
}

/* Mobile Menu */
.mobile-toggle {
  display: none; background: none; border: none;
  cursor: pointer; width: 28px; height: 20px;
  position: relative; z-index: 1001;
}
.mobile-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--frost); position: absolute; left: 0;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.mobile-toggle span:nth-child(1) { top: 0; }
.mobile-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-toggle span:nth-child(3) { bottom: 0; }
.mobile-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient-gold); color: var(--charcoal);
  padding: 1rem 2.2rem;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.35);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold-light);
  padding: 1rem 2.2rem;
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.btn-ghost:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-secondary);
  padding: 0.8rem 1.6rem;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none; cursor: pointer;
  transition: all 0.3s;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---- Section Eyebrow ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ''; width: 40px; height: 1.5px;
  background: var(--gradient-gold);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { width: 30px; }

/* ---- Section Titles ---- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500; line-height: 1.15;
  color: var(--text-primary);
}
.section-title em {
  font-style: italic;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  font-size: 1.05rem; font-weight: 300;
  color: var(--text-secondary); line-height: 1.8;
  max-width: 600px;
}

/* ---- Cards ---- */
.card-premium {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  position: relative; overflow: hidden;
}
.card-premium::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gradient-gold);
  opacity: 0; transition: opacity 0.5s;
}
.card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(201,168,76,0.25);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.card-premium:hover::after { opacity: 1; }

/* ---- Magnetic Button Effect ---- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}

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

/* ---- Shimmer ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Pulse Glow ---- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.1); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.25); }
}

/* ---- Grid Pattern Overlay ---- */
.grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ---- Noise Texture ---- */
.noise-overlay {
  position: absolute; inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---- Footer ---- */
.footer-main {
  background: var(--charcoal);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--frost);
  margin-bottom: 1rem;
}
.footer-brand span { color: var(--gold); }
.footer-desc {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.7; max-width: 320px;
}
.footer-col h4 {
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem; font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1400px; margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: var(--text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-main { padding: 0.8rem 1rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ---- Mobile Menu Panel ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(30px);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--frost);
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .nav-cta { margin-top: 1rem; font-size: 0.9rem; }

/* ---- Page Transition Loader ---- */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; color: var(--gold);
  letter-spacing: 0.2em;
}
.loader-bar {
  width: 120px; height: 2px;
  background: var(--glass-border);
  margin-top: 1rem; overflow: hidden;
}
.loader-bar-inner {
  width: 0; height: 100%;
  background: var(--gradient-gold);
  animation: loaderFill 1.5s ease-out forwards;
}
@keyframes loaderFill {
  0% { width: 0; }
  100% { width: 100%; }
}

/* ---- Reveal Animations (GSAP will enhance these) ---- */
.reveal {
  opacity: 0; transform: translateY(40px);
}
.reveal-left {
  opacity: 0; transform: translateX(-60px);
}
.reveal-right {
  opacity: 0; transform: translateX(60px);
}
.reveal-scale {
  opacity: 0; transform: scale(0.9);
}

/* ---- Form Styles ---- */
.form-input {
  width: 100%; background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.2rem;
  color: var(--text-primary); font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-input::placeholder { color: var(--text-muted); }
.form-label {
  display: block; font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.5rem;
  font-weight: 600;
}

/* ---- Badge/Pill ---- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 600;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--glass-border);
  color: var(--gold);
}

/* ---- Divider ---- */
.gold-divider {
  width: 60px; height: 2px;
  background: var(--gradient-gold);
}
