/* === BASE === */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --bg-glass: rgba(20,20,20,0.85);
  --fg-primary: #fafafa;
  --fg-secondary: #b8b8b8;
  --fg-muted: #888;
  --fg-inverse: #0a0a0a;
  --gold: #d4a843;
  --gold-light: #e8c56d;
  --border-primary: #2a2a2a;
  --border-secondary: #333;
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --radius-xl: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', sans-serif; background: var(--bg-primary); color: var(--fg-primary); margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-gold { color: var(--gold) !important; }
.bg-gold { background: var(--gold) !important; }
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
.text-white { color: #fff !important; }
.bg-dark { background: var(--bg-card) !important; border-color: var(--border-primary) !important; }
.border-secondary { border-color: var(--border-secondary) !important; }
.rounded-4 { border-radius: 16px !important; }
.rounded-circle { border-radius: 50% !important; }

/* === NAVBAR === */
#navbar { background: rgba(10,10,10,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid transparent; transition: all 0.3s; z-index: 999; }
#navbar.scrolled { border-bottom-color: var(--border-primary); }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; letter-spacing: 0.05em; }
.logo-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
#navbar .nav-link { color: var(--fg-secondary); font-size: 0.85rem; font-weight: 500; padding: 0.5rem 1rem; transition: color 0.2s; }
#navbar .nav-link:hover, #navbar .nav-link.active { color: var(--fg-primary); }

/* === BUTTONS === */
.btn-gold { background: var(--gold); color: var(--fg-inverse); border: none; font-weight: 600; border-radius: 9999px; padding: 0.875rem 2rem; transition: all 0.3s; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 0 40px rgba(212,168,67,0.4); color: var(--fg-inverse); }
.btn-outline-gold { background: transparent; color: var(--fg-primary); border: 1px solid var(--border-secondary); border-radius: 9999px; padding: 0.875rem 2rem; font-weight: 600; transition: all 0.3s; }
.btn-outline-gold:hover { border-color: var(--gold); color: var(--gold); }

/* === LANGUAGE TOGGLE === */
.lang-toggle-wrap { position: relative; margin-right: 1rem; }
.lang-toggle-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--bg-glass); border: 1px solid var(--border-primary); border-radius: 9999px; color: var(--fg-secondary); font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.lang-toggle-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-flag { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: rgba(212,168,67,0.15); border-radius: 50%; color: var(--gold); font-size: 0.6rem; }
.lang-code { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.lang-arrow { font-size: 0.55rem; color: var(--fg-muted); transition: transform 0.3s; }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 101; }
.lang-option { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.75rem 1rem; background: none; border: none; color: var(--fg-secondary); font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.lang-option:hover, .lang-option.selected { background: rgba(212,168,67,0.08); color: var(--gold); }
.lang-option-flag { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: rgba(212,168,67,0.15); border-radius: 6px; color: var(--gold); font-size: 0.6rem; }

/* === HERO === */
.hero { position: relative; overflow: hidden; background: var(--bg-primary); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(212,168,67,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(212,168,67,0.03) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at 50% 50%, rgba(212,168,67,0.06), transparent 40%); }
.hero-title { font-family: 'Space Grotesk', sans-serif; line-height: 1.05; }
.hero-line { display: block; }
.text-gradient-anim { background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold)); background-size: 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientShift 3s ease infinite; }
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-badge { background: rgba(20,20,20,0.85); border: 1px solid rgba(212,168,67,0.2); border-radius: 9999px; }
.badge-dot { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }

.hero-social { gap: 1rem; }
.social-link { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-glass); border: 1px solid var(--border-primary); border-radius: 50%; color: var(--fg-secondary); transition: all 0.3s; }
.social-link:hover { background: var(--gold); border-color: var(--gold); color: var(--fg-inverse); transform: translateY(-3px); }

/* === HERO VIDEO === */
.hero-visual { position: relative; }
.hero-video-wrapper { position: relative; width: 400px; height: 400px; margin: 0 auto; }
@media (min-width: 992px) { .hero-video-wrapper { width: 420px; height: 420px; } }
.hero-video { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box, linear-gradient(135deg, var(--gold), var(--gold-light)) border-box; transition: transform 0.6s; }
.hero-video:hover { transform: scale(1.02); }
.hero-video-ring { position: absolute; border: 1px solid var(--gold); border-radius: 50%; pointer-events: none; }
.hero-video-ring.ring-1 { inset: -20px; opacity: 0.3; animation: rotate 20s linear infinite; }
.hero-video-ring.ring-2 { inset: -40px; opacity: 0.15; animation: rotate 30s linear infinite reverse; }
@keyframes rotate { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.hero-mini-profile { position: absolute; bottom: 12px; left: 12px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); z-index: 5; }
.hero-mini-img { width: 100%; height: 100%; object-fit: cover; }

.hero-decorative-logo { position: absolute; bottom: 20px; right: 20px; width: 180px; height: 180px; pointer-events: none; z-index: 1; opacity: 0.08; }

.floating-cards { position: absolute; inset: 0; pointer-events: none; }
.floating-card { position: absolute; animation: float 6s ease-in-out infinite; pointer-events: auto; }
.floating-card:hover { border-color: var(--gold); transform: translateY(-8px) scale(1.05) !important; }
.card-1 { top: 5%; left: -20%; animation-delay: 0s; }
.card-2 { top: 40%; right: -25%; animation-delay: 2s; }
.card-3 { bottom: 10%; left: 0; animation-delay: 4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.glass-card { background: var(--bg-card); border: 1px solid var(--border-primary); border-radius: var(--radius-xl); transition: all 0.3s; }
.glass-card:hover { border-color: var(--gold); box-shadow: 0 0 40px rgba(212,168,67,0.1); transform: translateY(-4px); }
.icon-gold { color: var(--gold); }
.pulse-glow { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 10px rgba(212,168,67,0.2); } 50% { box-shadow: 0 0 30px rgba(212,168,67,0.4); } }

@media (max-width: 991.98px) { .floating-cards { display: none; } .hero-video-wrapper { width: 300px; height: 300px; } }

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-secondary); }
.section-tag { display: inline-block; }
.section-title .text-gold { position: relative; }
.section-title .text-gold::after { content: ''; position: absolute; bottom: 2px; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; opacity: 0.3; }
.section-title { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }

/* === SKILL BARS === */
.skill-bar { height: 6px; background: var(--bg-primary); border-radius: 9999px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 9999px; transition: width 1.5s ease; width: 0; }

/* === SERVICE CARDS === */
.service-card { transition: all 0.4s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s; }
.service-card:hover { transform: translateY(-8px); }
.service-card:hover::before { transform: scaleX(1); }

/* === PORTFOLIO === */
.filter-btn { padding: 0.625rem 1.5rem; border-radius: 9999px; border: 1px solid var(--border-secondary); color: var(--fg-secondary); background: transparent; font-weight: 500; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--fg-inverse); }
.portfolio-card { cursor: pointer; overflow: hidden; border-radius: 16px; }
.portfolio-img { transition: transform 0.5s; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portfolio-card:hover .portfolio-img { transform: scale(1.08); }
.portfolio-overlay { background: linear-gradient(180deg, transparent 30%, rgba(10,10,10,0.95) 100%); padding: 1.5rem; opacity: 0; transition: opacity 0.4s; }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }
.portfolio-item { transition: all 0.4s; }

/* === STATS === */
.stat-number { font-family: 'Space Grotesk', sans-serif; background: linear-gradient(135deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 20px rgba(212,168,67,0.3)); }

/* === CONTACT FORM === */
.form-control, .form-select { background: var(--bg-card) !important; border: 1px solid var(--border-primary) !important; color: var(--fg-primary) !important; border-radius: 12px !important; }
.form-control:focus, .form-select:focus { border-color: var(--gold) !important; box-shadow: 0 0 0 3px rgba(212,168,67,0.2) !important; }
.form-status { border-radius: 12px; font-size: 0.875rem; }
.form-status.success { padding: 1rem; background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.form-status.error { padding: 1rem; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border-primary); }

/* === AUTH MODAL === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(10px); z-index: 10000; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-modal { position: relative; width: 90%; max-width: 420px; padding: 2.5rem; animation: modalIn 0.4s cubic-bezier(0.34,1.56,0.64,1); max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.auth-modal-close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--border-primary); border: none; border-radius: 50%; color: var(--fg-secondary); cursor: pointer; transition: all 0.3s; }
.auth-modal-close:hover { background: var(--gold); color: var(--fg-inverse); transform: rotate(90deg); }
