/* ============================================
   EGC GLOBAL TRAINING CENTRE - MASTER STYLES
   Premium Gemstone Theme v2.0
   ============================================ */

:root {
  --gold: #d4af5a;
  --gold-light: #e6c97e;
  --gold-dark: #b8923e;
  --dark-bg: #0a0c0f;
  --card-bg: rgba(26, 32, 38, 0.85);
  --ivory: #f2ede4;
  --success: #27ae60;
  --error: #e74c3c;
  --info: #3498db;
  --warning: #f39c12;
  --glow: rgba(212, 175, 90, 0.4);
  --glow-strong: rgba(212, 175, 90, 0.7);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark-bg);
  color: var(--ivory);
  overflow-x: hidden;
  line-height: 1.5;
}

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

::-webkit-scrollbar-track {
  background: #121418;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 10px;
  transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 3px;
}

.section-title-center {
  text-align: center;
  display: block;
}

.section-title-center:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(circle at 20% 30%, #0f1a1f, #050708);
}

/* Floating Gemstones Animation */
.floating-gem {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  animation: floatGem 20s infinite ease-in-out;
}

@keyframes floatGem {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg);
  }
}

/* Glowing Gem Icon */
.glowing-gem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--gold));
  animation: gemPulse 2s infinite;
}

@keyframes gemPulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px var(--gold));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px var(--gold));
    transform: scale(1.05);
  }
}

/* ============================================
   PREMIUM CARD STYLES
   ============================================ */
.premium-card {
  background: linear-gradient(135deg, rgba(26, 32, 38, 0.9), rgba(18, 22, 28, 0.95));
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(212, 175, 90, 0.2);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 90, 0.08), transparent);
  transition: left 0.6s ease;
}

.premium-card:hover::before {
  left: 100%;
}

.premium-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 25px 45px -12px rgba(212, 175, 90, 0.3), 0 0 20px rgba(212, 175, 90, 0.15);
}

/* Glowing Border Animation */
.glow-border {
  position: relative;
  border-radius: 28px;
}

.glow-border::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--gold), transparent);
  border-radius: 30px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.glow-border:hover::after {
  opacity: 0.5;
  animation: borderGlow 1.5s infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 99;
  border-bottom: 1px solid rgba(212, 175, 90, 0.25);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo p {
  font-size: 0.65rem;
  letter-spacing: 2.5px;
  color: var(--gold);
}

.desktop-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

.desktop-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

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

.desktop-nav a:hover {
  color: var(--gold);
}

.register-btn {
  background: var(--gold);
  color: #000 !important;
  padding: 0.5rem 1.3rem;
  border-radius: 40px;
  font-weight: 700 !important;
}

.register-btn::after {
  display: none;
}

.menu-icon {
  font-size: 1.8rem;
  color: var(--gold);
  cursor: pointer;
  transition: transform 0.2s;
}

.menu-icon:hover {
  transform: scale(1.1);
}

@media (min-width: 992px) {
  .menu-icon {
    display: none;
  }
  .desktop-nav {
    display: flex;
  }
}

/* Side Navigation - Mobile */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 12, 15, 0.95);
  backdrop-filter: blur(12px);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
}

.side-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85%, 350px);
  height: 100%;
  background: linear-gradient(165deg, #12181f 0%, #0a0e12 100%);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
  z-index: 1001;
  transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--gold);
}

.side-nav.open {
  right: 0;
}

.close-nav {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  align-self: flex-end;
  transition: transform 0.2s;
}

.close-nav:hover {
  transform: scale(1.1);
}

.side-logo {
  margin-bottom: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 90, 0.2);
  padding-bottom: 1rem;
}

.side-logo h3 {
  font-size: 1.8rem;
}

.side-logo h3 span {
  color: var(--gold);
}

.side-logo p {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--gold-light);
}

.side-nav ul {
  list-style: none;
  flex: 1;
}

.side-nav li {
  margin: 1.2rem 0;
}

.side-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s;
  padding: 0.5rem 0;
}

.side-nav a i {
  width: 28px;
  color: var(--gold);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.side-nav a:hover {
  color: var(--gold);
  transform: translateX(8px);
}

.side-nav a:hover i {
  transform: scale(1.1);
}

.side-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.7rem;
  color: #8d9a9e;
  border-top: 1px solid rgba(212, 175, 90, 0.2);
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000;
  padding: 0.9rem 2rem;
  font-weight: 700;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

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

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

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -8px rgba(212, 175, 90, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  padding: 0.9rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-outline:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -8px rgba(212, 175, 90, 0.3);
}

/* ============================================
   CONTAINER & GRIDS
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 3rem 0;
}

.hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-badge {
  display: inline-block;
  background: rgba(212, 175, 90, 0.12);
  border-left: 4px solid var(--gold);
  padding: 0.5rem 1.2rem;
  border-radius: 0 30px 30px 0;
  margin-bottom: 1.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gold-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 90, 0.3);
  border-radius: 16px;
  color: var(--ivory);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(212, 175, 90, 0.2);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
}

.error-message {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(39, 174, 96, 0.15);
  border-left: 4px solid var(--success);
  color: #2ecc71;
}

.alert-error {
  background: rgba(231, 76, 60, 0.15);
  border-left: 4px solid var(--error);
  color: #e74c3c;
}

.alert-info {
  background: rgba(52, 152, 219, 0.15);
  border-left: 4px solid var(--info);
  color: #3498db;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #05080c;
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid rgba(212, 175, 90, 0.15);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    gap: 1.5rem;
  }
  
  .premium-card {
    padding: 1.5rem;
  }
}
