:root {
  /* Color Palette - Sustainability Theme */
  --primary: #0d631b;
  --secondary: #2e7d32;
  --light-green: #abf4ac;
  --extra-light-green: #e1f7e2;
  --white: #ffffff;
  --surface: #f8faf8;
  --surface-alt: #eceeec;
  --text-main: #191c1b;
  --text-muted: #40493d;
  --accent: #1b6d24;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(13, 99, 27, 0.15);
  --glass-blur: blur(8px);

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--surface);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(13, 99, 27, 0.1);
  transform: translateY(-5px);
}

/* Gradient Backgrounds */
.primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.animated-bg {
  background: linear-gradient(-45deg, #0d631b, #2e7d32, #abf4ac, #ffffff);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Navbar Enhancements */
nav.sticky-nav {
  transition: var(--transition-smooth);
}

.nav-link.active {
  color: #b91c1c !important;
  font-weight: 700 !important;
  border-bottom: 2px solid #b91c1c;
}

.committee-section {
  scroll-margin-top: 160px;
}

.sub-nav-link {
  color: #6b7280;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-nav-link:hover {
  background: rgba(13, 99, 27, 0.05);
  color: #0d631b;
}

.sub-nav-link.active {
  background: #0d631b !important;
  color: white !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-bottom: none !important;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  transition: var(--transition-smooth);
}

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

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

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Section Specific Styles */
.hero-page-bg {
  position: relative;
  background: url('../img/tce_img.jpeg') center top/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

/* Removed global overlay as per user request */

.hero-content-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
}

.hero-sketch-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(600px, 1.4fr) minmax(240px, 0.8fr);
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-sketch-grid > * {
  width: 100%;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.hero-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  min-width: 0;
  padding-inline: 0.75rem;
}

.hero-sidebar .hero-glass-centered {
  width: 100%;
  min-height: 118px;
}

.hero-sketch-grid .hero-sidebar:first-of-type {
  justify-self: start;
}

.hero-sketch-grid .hero-sidebar:last-of-type {
  justify-self: end;
}

.glass-icon {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.hero-page-bg .hero-glass-centered {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-page-bg .hero-glass-centered:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-page-bg .hero-glass-centered p {
  font-weight: 600;
}

.hero-page-bg .counter {
  font-size: clamp(2rem, 2.6vw, 2.4rem);
  font-weight: 800;
}

.hero-page-bg #countdown > div > span:first-child {
  font-size: clamp(2rem, 2.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
}

.hero-page-bg #countdown > div > span:last-child {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  opacity: 0.95;
}

@media (max-width: 1280px) {
  .hero-page-bg {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero-sketch-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
  }

  .hero-center-col {
    order: 1;
  }

  .hero-sketch-grid .hero-sidebar:first-of-type {
    order: 2;
  }

  .hero-sketch-grid .hero-sidebar:last-of-type {
    order: 3;
  }
}

@media (max-width: 768px) {
  .hero-page-bg {
    padding-top: 6rem;
  }

  .hero-center-col h1 {
    font-size: clamp(2.6rem, 12vw, 4.2rem);
  }

  .hero-center-col img {
    width: 12rem;
    height: 12rem;
  }

  .hero-glass-centered {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  #countdown {
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  .hero-page-bg {
    background-position: center top;
  }

  .hero-sidebar .hero-glass-centered {
    min-height: unset;
  }
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.video-placeholder:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.text-shadow {
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.7);
}

.text-glow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-glass-centered {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 2rem;
  color: white;
}

.hero-title-glass {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 99, 27, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
}

/* Committees Tabs */
.tab-btn {
  padding: 10px 25px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Timeline */
.timeline-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--light-green);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  background: var(--surface);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.timeline-item:hover {
  transform: scale(1.2);
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px rgba(13, 99, 27, 0.4);
}

/* Mobile Menu */
#mobile-menu {
  clip-path: circle(0% at 100% 0);
  transition: clip-path 0.5s ease-in-out;
}

#mobile-menu.open {
  clip-path: circle(150% at 100% 0);
}

#mobile-menu:not(.hidden) {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#mobile-menu a {
  transition: all 0.3s ease;
}

#mobile-menu a:hover {
  color: var(--primary);
  transform: translateX(10px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-track {
    flex-direction: column;
    padding-left: 20px;
  }

  .timeline-track::before {
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    height: 100%;
  }

  .timeline-item {
    margin-bottom: 40px;
  }
}