/* ==========================================================================
   PREMIUM LUXURY ANIMATED PORTFOLIO CMS - CORE STYLESHEET
   ========================================================================== */

/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Dynamic CSS Theme Variables (Overridden by Database Settings) */
  --primary-color: #e5b800;
  --accent-color: #ffd700;
  --bg-dark: #08080a;
  --bg-surface: #101014;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(16, 16, 20, 0.65);
  --text-main: #f0f0f5;
  --text-muted: #9a9ab0;
  --glow-intensity: 0.6;
  --border-radius: 16px;
  --font-family: 'Outfit', sans-serif;

  /* Transitions */
  --tr-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Hide Default Cursor for Luxury Dual-Ring Follower */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, input, select, textarea, .cursor-pointer {
    cursor: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(229, 184, 0, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Custom Dual-Ring Cursor */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s ease;
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(229, 184, 0, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 calc(20px * var(--glow-intensity)) rgba(229, 184, 0, 0.3);
}

.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
  background: rgba(229, 184, 0, 0.1);
  border-color: var(--accent-color);
}

/* Preloader Screen */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader-logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  position: relative;
}

.preloader-bar-bg {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.4s ease;
  box-shadow: 0 0 12px var(--primary-color);
}

/* Background HTML5 Canvas Particles */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  font-weight: 700;
  background: rgba(229, 184, 0, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  border: 1px solid rgba(229, 184, 0, 0.2);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0 auto;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: transform var(--tr-smooth), border-color var(--tr-smooth), box-shadow var(--tr-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  opacity: 0;
  transition: opacity var(--tr-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 184, 0, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 calc(30px * var(--glow-intensity)) rgba(229, 184, 0, 0.15);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 40px;
  text-decoration: none;
  border: none;
  outline: none;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), background var(--tr-fast);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #000;
  box-shadow: 0 10px 25px rgba(229, 184, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(229, 184, 0, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(229, 184, 0, 0.05);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--tr-smooth);
}

.navbar.scrolled {
  top: 10px;
  padding: 10px 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 184, 0, 0.1);
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-brand span {
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--tr-fast);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--tr-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Language Selector Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-menu {
  position: absolute;
  top: 120%;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 130px;
  display: none;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.lang-dropdown:hover .lang-menu {
  display: flex;
}

.lang-item {
  padding: 8px 16px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background var(--tr-fast), color var(--tr-fast);
}

.lang-item:hover, .lang-item.active {
  background: rgba(229, 184, 0, 0.1);
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
}

/* Skill Bars */
.skill-item {
  margin-bottom: 1.8rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--primary-color);
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem 0;
  background: var(--bg-surface);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--tr-fast);
}

.social-icon:hover {
  background: var(--primary-color);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(229, 184, 0, 0.4);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .section-title {
    font-size: 2.4rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}
