@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #b8860b; /* Deeper Metallic Gold */
  --primary-light: #daa520; /* GoldenRod */
  --primary-dark: #8b6508;
  --secondary: #111111; /* Rich Black */
  --accent: #ffffff;

  --bg-main: #ffffff;
  --bg-dark: #000000;
  --bg-light: #f9f9f9;

  --text-dark: #111111;
  --text-main: #333333;
  --text-muted: #666666;
  --text-white: #ffffff;

  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(212, 175, 55, 0.2);
  --glass-blur: blur(12px);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  --shadow-sm: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.1);
  --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgba(0, 0, 0, 0.1);
  --shadow-premium: 0 1.25rem 1.5625rem -0.3125rem rgba(0, 0, 0, 0.3);

  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* New Gradients */
  --grad-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  --grad-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --grad-mesh:
    radial-gradient(at 0% 0%, rgba(184, 134, 11, 0.15) 0, transparent 50%),
    radial-gradient(at 50% 0%, rgba(218, 165, 32, 0.1) 0, transparent 50%),
    radial-gradient(at 100% 0%, rgba(184, 134, 11, 0.15) 0, transparent 50%);
}

/* Base Styles */
body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: #000;
  line-height: 1.6;
  overflow-x: hidden;
  background-attachment: fixed;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1.25rem);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes mesh-move {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--text-dark);
}

/* Modern Navbar */
.modern-nav {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: linear-gradient(to right, #000000 0%, #334155 100%);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  z-index: 5000;
  overflow: visible !important;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.modern-nav:hover {
  width: 95%;
  box-shadow: var(--shadow-premium);
}

.modern-nav .logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.modern-nav .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.modern-nav .nav-link {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

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

/* Parallax Utility */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Default dark overlay */
}

/* Hero Section */
.modern-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../imgs/hero-bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  padding-top: 80px;
}

.modern-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--grad-mesh);
  background-size: 200% 200%;
  animation: mesh-move 15s ease infinite;
  opacity: 0.4;
  z-index: 1;
}

.modern-hero .hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-white);
}

.modern-hero .header-form {
  position: relative;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}

.modern-hero .display-1 {
  font-weight: 800;
  letter-spacing: -0.125rem;
  margin-bottom: 1.5rem;
}

.modern-hero .btn-hero {
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  transition: var(--transition);
}

.btn-primary-modern {
  background: var(--grad-primary);
  color: var(--accent) !important;
  border: none;
  box-shadow: 0 0.25rem 0.875rem 0 rgba(184, 134, 11, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: white;
  opacity: 0.1;
  transition: var(--transition);
  z-index: -1;
}

.btn-primary-modern:hover::before {
  width: 100%;
}

.btn-primary-modern:hover {
  transform: translateY(-0.1875rem) scale(1.02);
  box-shadow: 0 0.625rem 1.25rem rgba(184, 134, 11, 0.3);
}

/* Section Styling */
.section-padding {
  padding: 6.25rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3.75rem;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern Cards */
.modern-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 0.0625rem solid #e2e8f0;
  transition: var(--transition);
  height: 100%;
  overflow: visible;
}

.modern-card:hover {
  transform: translateY(-0.625rem) scale(1.02);
  box-shadow: var(--shadow-premium);
  border-color: var(--primary);
  background: linear-gradient(to bottom right, white, #fffcf0);
}

.modern-card-static:hover {
  transform: none !important;
  box-shadow: var(--shadow-premium) !important;
  background: white !important;
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-0.3125rem);
  box-shadow: var(--shadow-lg);
}

.icon-circle-modern {
  width: 3.125rem;
  height: 3.125rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: white !important;
  font-size: 1.25rem;
  box-shadow: 0 0.25rem 0.625rem rgba(184, 134, 11, 0.3);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  position: relative;
  z-index: 5001;
}

/* Responsive */
@media (max-width: 767.98px) {
  .modern-hero {
    min-height: 80vh;
    padding-top: 7.5rem;
    padding-bottom: 3.75rem;
  }

  .modern-hero .display-3 {
    font-size: 2.4rem !important;
    line-height: 1.2;
    margin-bottom: 1.5rem !important;
  }

  .modern-hero .lead {
    font-size: 1.15rem !important;
    margin-bottom: 2rem !important;
    padding: 0 0.625rem;
  }

  .modern-nav {
    top: 10px;
    width: 95%;
    border-radius: var(--radius-md);
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile Dropdown styles only */
  .nav-links {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.9375rem);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(1.875rem);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 0.0625rem solid rgba(212, 175, 55, 0.3); /* Accentuated golden border */
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.6);
    gap: 0.9375rem;
    z-index: 4999;
    
    /* Animation Hooks */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1.25rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-0.625rem);
    transition: all 0.3s ease;
    transition-delay: 0s;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger items */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }

  .nav-links .nav-link {
    font-size: 1.2rem;
    padding: 0.75rem;
    display: block;
    color: var(--text-white) !important;
  }

  .nav-links .nav-link:hover {
    color: var(--primary) !important;
    transform: scale(1.05);
  }
}

/* Form & Select2 Modern Styling */
.form-control.py-3 {
  padding: 0.8rem 1rem !important;
  height: auto !important;
  min-height: 3.5rem;
  border-color: #e2e8f0;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.1);
}

select.form-control.py-3 {
  padding: 0 1rem !important;
  line-height: 3.5rem;
}

.select2-container--default .select2-selection--multiple {
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--radius-sm) !important;
  min-height: 3.5rem !important;
  padding: 0.4rem 0.75rem !important;
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  transition: var(--transition);
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.15) !important;
}

/* Restore Desktop Navbar Visibility */
@media (min-width: 768px) {
  .nav-links {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    pointer-events: auto !important;
    transform: none !important;
  }
}

/* Team Section Read More Logic */
.team-desc-text {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: all 0.5s ease;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.team-desc-text.expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}

.btn-read-more {
  text-decoration: none !important;
  transition: var(--transition);
}

.btn-read-more:hover {
  letter-spacing: 0.0625rem;
}
