:root {
  /* White theme variables for body sections */
  --bg-color: #ffffff;
  --bg-secondary: #f7f7f7;
  --text-primary: #111111;
  --text-secondary: #555555;
  --accent-color: #b38914;
  /* Elegant gold accent suitable for white */
  --accent-hover: #916f10;
  --border-color: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.8);

  /* Dark variables for Header and Footer */
  --dark-bg: #030303;
  --dark-bg-secondary: #0a0a0a;
  --dark-text: #ffffff;
  --dark-text-secondary: #a0a0a0;
  --dark-border: rgba(255, 255, 255, 0.15);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 {
  font-size: 4rem;
  color: var(--text-primary);
}

h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Navigation - DARK */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  background-color: var(--dark-bg);
  border-bottom: 1px solid var(--dark-border);
}

.navbar.scrolled {
  background-color: rgba(3, 3, 3, 0.98);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark-text);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed) ease;
}

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

/* Header/Hero Section - Modern Premium Background */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 5% 0;
  /* add top padding to offset the fixed dark navbar */
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&q=80&w=2070');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  overflow: hidden;
}

/* Subtle animated background shape */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(179, 137, 20, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  animation: pulse 10s infinite alternate;
  z-index: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-subtitle {
  display: block;
  font-size: 1rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.hero-title {
  margin-bottom: 2rem;
  color: #ffffff;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.btn-primary {
  background-color: var(--text-primary);
  color: var(--bg-color);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-primary);
}

/* Ensure buttons in hero remain light on hover */
.hero .btn-primary:hover {
  color: #ffffff;
  border-color: #ffffff;
}
.hero .btn:not(.btn-primary):hover {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}


/* Layout Sections */
.section {
  padding: 3rem 5%;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.section-subtitle {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

/* Cards */
.card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  /* lighter shadow for white theme */
}

.card-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

/* Inner Pages Header - WHITE */
.page-header {
  padding: 120px 5% 4rem;
  background: var(--bg-secondary);
  position: relative;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
  color: inherit;
}

.page-header.has-bg {
  color: #ffffff;
}

.page-header.has-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  z-index: 1;
}

.page-header.has-bg .container {
  position: relative;
  z-index: 2;
}

/* Footer - DARK */
footer {
  background-color: var(--dark-bg);
  padding: 4rem 5% 2rem;
  border-top: 1px solid var(--dark-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

.footer-col p {
  color: var(--dark-text-secondary);
}

.footer-link {
  display: block;
  color: var(--dark-text-secondary);
  margin-bottom: 0.8rem;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--dark-border);
  color: var(--dark-text-secondary);
  font-size: 0.9rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Animations Disabled */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 991px) {
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2rem; }
  
  .section { padding: 3rem 5%; }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #000000 !important;
    flex-direction: column;
    padding: 100px 2rem;
    display: flex !important;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0 !important;
  }
  
  .mobile-menu-toggle span {
    background-color: var(--accent-color) !important;
  }

  .nav-links li {
    margin-bottom: 2rem;
  }

  /* Hamburger Animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  .hero-content {
    padding-top: 50px;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 0.5rem;
    z-index: 100;
    justify-content: space-around;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .dashboard-sidebar div { margin-bottom: 0 !important; border-bottom: none !important; padding-bottom: 0 !important; }
  .dashboard-sidebar .dash-menu-item { font-size: 0.75rem; padding: 0.8rem 0.5rem; margin-bottom: 0; white-space: nowrap; }
  .dashboard-main { padding: 2rem 5%; }
}

@media (max-width: 576px) {
  h1 { font-size: 2.2rem; }
  .hero-content { text-align: center; }
  .hero-content .btn { margin: 0.5rem 0; width: 100%; }
}