
:root {
  /* Colors */
  --color-background: rgba(252, 252, 249, 1);
  --color-surface: rgba(255, 255, 253, 1);
  --color-text: rgba(19, 52, 59, 1);
  --color-text-secondary: rgba(98, 108, 113, 1);
  --color-primary: rgba(33, 128, 141, 1);
  --color-primary-hover: rgba(29, 116, 128, 1);
  --color-primary-active: rgba(26, 104, 115, 1);
  --color-secondary: rgba(94, 82, 64, 0.12);
  --color-secondary-hover: rgba(94, 82, 64, 0.2);
  --color-secondary-active: rgba(94, 82, 64, 0.25);
  --color-border: rgba(94, 82, 64, 0.2);
  --color-btn-primary-text: rgba(252, 252, 249, 1);
  --color-card-border: rgba(94, 82, 64, 0.12);
  --color-card-border-inner: rgba(94, 82, 64, 0.12);
  --color-error: rgba(192, 21, 47, 1);
  --color-success: rgba(33, 128, 141, 1);
  --color-warning: rgba(168, 75, 47, 1);
  --color-info: rgba(98, 108, 113, 1);
  --color-focus-ring: rgba(33, 128, 141, 0.4);
  --color-select-caret: rgba(19, 52, 59, 0.8);

  /* Common style patterns */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
 
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for opacity control */
  --color-success-rgb: 33, 128, 141;
  --color-error-rgb: 192, 21, 47;
  --color-warning-rgb: 168, 75, 47;
  --color-info-rgb: 98, 108, 113;

  /* Typography */
  --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, monospace;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 30px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 550;
  --font-weight-bold: 600;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --letter-spacing-tight: -0.01em;

  /* Spacing */
  --space-0: 0;
  --space-1: 1px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-base: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
    0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
    0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);

  /* Animation */
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: rgba(31, 33, 33, 1);
    --color-surface: rgba(38, 40, 40, 1);
    --color-text: rgba(245, 245, 245, 1);
    --color-text-secondary: rgba(167, 169, 169, 0.7);
    --color-primary: rgba(50, 184, 198, 1);
    --color-primary-hover: rgba(45, 166, 178, 1);
    --color-primary-active: rgba(41, 150, 161, 1);
    --color-secondary: rgba(119, 124, 124, 0.15);
    --color-secondary-hover: rgba(119, 124, 124, 0.25);
    --color-secondary-active: rgba(119, 124, 124, 0.3);
    --color-border: rgba(119, 124, 124, 0.3);
    --color-error: rgba(255, 84, 89, 1);
    --color-success: rgba(50, 184, 198, 1);
    --color-warning: rgba(230, 129, 97, 1);
    --color-info: rgba(167, 169, 169, 1);
    --color-focus-ring: rgba(50, 184, 198, 0.4);
    --color-btn-primary-text: rgba(19, 52, 59, 1);
    --color-card-border: rgba(119, 124, 124, 0.2);
    --color-card-border-inner: rgba(119, 124, 124, 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --button-border-secondary: rgba(119, 124, 124, 0.2);
    --color-border-secondary: rgba(119, 124, 124, 0.2);
    --color-select-caret: rgba(245, 245, 245, 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

    /* RGB versions for dark mode */
    --color-success-rgb: 50, 184, 198;
    --color-error-rgb: 255, 84, 89;
    --color-warning-rgb: 230, 129, 97;
    --color-info-rgb: 167, 169, 169;
  }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
  --color-background: rgba(31, 33, 33, 1);
  --color-surface: rgba(38, 40, 40, 1);
  --color-text: rgba(245, 245, 245, 1);
  --color-text-secondary: rgba(167, 169, 169, 0.7);
  --color-primary: rgba(50, 184, 198, 1);
  --color-primary-hover: rgba(45, 166, 178, 1);
  --color-primary-active: rgba(41, 150, 161, 1);
  --color-secondary: rgba(119, 124, 124, 0.15);
  --color-secondary-hover: rgba(119, 124, 124, 0.25);
  --color-secondary-active: rgba(119, 124, 124, 0.3);
  --color-border: rgba(119, 124, 124, 0.3);
  --color-error: rgba(255, 84, 89, 1);
  --color-success: rgba(50, 184, 198, 1);
  --color-warning: rgba(230, 129, 97, 1);
  --color-info: rgba(167, 169, 169, 1);
  --color-focus-ring: rgba(50, 184, 198, 0.4);
  --color-btn-primary-text: rgba(19, 52, 59, 1);
  --color-card-border: rgba(119, 124, 124, 0.15);
  --color-card-border-inner: rgba(119, 124, 124, 0.15);
  --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  --color-border-secondary: rgba(119, 124, 124, 0.2);
  --color-select-caret: rgba(245, 245, 245, 0.8);

  /* Common style patterns - updated for dark mode */
  --focus-ring: 0 0 0 3px var(--color-focus-ring);
  --focus-outline: 2px solid var(--color-primary);
  --status-bg-opacity: 0.15;
  --status-border-opacity: 0.25;
  --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");

  /* RGB versions for dark mode */
  --color-success-rgb: 50, 184, 198;
  --color-error-rgb: 255, 84, 89;
  --color-warning-rgb: 230, 129, 97;
  --color-info-rgb: 167, 169, 169;
}


/* Base styles */
html {
  font-size: var(--font-size-base);
  font-family: var(--font-family-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
  letter-spacing: var(--letter-spacing-tight);
}

h1 {
  font-size: var(--font-size-4xl);
}
h2 {
  font-size: var(--font-size-3xl);
}
h3 {
  font-size: var(--font-size-2xl);
}
h4 {
  font-size: var(--font-size-xl);
}
h5 {
  font-size: var(--font-size-lg);
}
h6 {
  font-size: var(--font-size-md);
}

p {
  margin: 0 0 var(--space-16) 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--color-primary-hover);
}

code,
pre {
  font-family: var(--font-family-mono);
  font-size: calc(var(--font-size-base) * 1.05);
  background-color: var(--color-secondary);
  border-radius: var(--radius-sm);
}

code {
  padding: var(--space-1) var(--space-4);
}

pre {
  padding: var(--space-16);
  margin: var(--space-16) 0;
  overflow: auto;
  border: 1px solid var(--color-border);
}

pre code {
  background: none;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-16);
  border-radius: var(--radius-base);
  font-size: var(--font-size-base);
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-standard);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--primary:active {
  background: var(--color-primary-active);
}

.btn--secondary {
  background: var(--color-secondary);
  color: var(--color-text);
}

.btn--secondary:hover {
  background: var(--color-secondary-hover);
}

.btn--secondary:active {
  background: var(--color-secondary-active);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-secondary);
}

.btn--sm {
  padding: var(--space-4) var(--space-12);
  font-size: var(--font-size-sm);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-10) var(--space-20);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--full-width {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-control {
  display: block;
  width: 100%;
  padding: var(--space-8) var(--space-12);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  transition: border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
}

select.form-control {
  padding: var(--space-8) var(--space-12);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: var(--select-caret-light);
  background-repeat: no-repeat;
  background-position: right var(--space-12) center;
  background-size: 16px;
  padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
  select.form-control {
    background-image: var(--select-caret-dark);
  }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
  background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
  background-image: var(--select-caret-light);
}

.form-control:focus {
  border-color: var(--color-primary);
  outline: var(--focus-outline);
}

.form-label {
  display: block;
  margin-bottom: var(--space-8);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
}

.form-group {
  margin-bottom: var(--space-16);
}




.status--warning {
  background-color: rgba(
    var(--color-warning-rgb, 168, 75, 47),
    var(--status-bg-opacity)
  );
  color: var(--color-warning);
  border: 1px solid
    rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
  background-color: rgba(
    var(--color-info-rgb, 98, 108, 113),
    var(--status-bg-opacity)
  );
  color: var(--color-info);
  border: 1px solid
    rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--space-16);
  padding-left: var(--space-16);
}

@media (min-width: 640px) {
  .container {
    max-width: var(--container-sm);
  }
}
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-xl);
  }
}

/* Utility classes */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-4 {
  gap: var(--space-4);
}
.gap-8 {
  gap: var(--space-8);
}
.gap-16 {
  gap: var(--space-16);
}

.m-0 {
  margin: 0;
}
.mt-8 {
  margin-top: var(--space-8);
}
.mb-8 {
  margin-bottom: var(--space-8);
}
.mx-8 {
  margin-left: var(--space-8);
  margin-right: var(--space-8);
}
.my-8 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8);
}

.p-0 {
  padding: 0;
}
.py-8 {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.px-8 {
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}
.py-16 {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
.px-16 {
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

.block {
  display: block;
}
.hidden {
  display: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
  border: 1px solid var(--color-border-secondary);
}

@font-face {
  font-family: 'FKGroteskNeue';
  src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
    format('woff2');
}
/* layout wrapper */
.component-instructions {
  display: flex;
  gap: var(--space-24);
  margin: var(--space-32) 0;
  flex-wrap: wrap;           /* allow wrapping on smaller screens */
  justify-content: center;    /* center if row is not full */
}

/* each mini‑card */
.instruction-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: var(--space-24);
  flex: 1 1 200px;            /* grow/shrink, base width 200px */
  max-width: 280px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* hover lift + glow */
.instruction-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 179, 199, 0.4);
}

/* icon styling */
.instruction-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: var(--space-16);
}

/* text inside each card */
.instruction-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #eee;
}
/* number badge in place of emoji */
.instruction-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: var(--color-accent);
  color: #fff;
  font-weight: bold;
  border-radius: 50%;
  font-size: 1.25rem;
  margin-bottom: var(--space-16);
}

/* step title */
.instruction-title {
  margin: 0;
  margin-bottom: var(--space-8);
  font-size: 1rem;
  color: #fff;
}

/* step description (overrides your generic p styling if needed) */
.instruction-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ddd;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* at the bottom, after the reset */
.container .section-subtitle {
  margin-bottom: var(--space-32) !important;
  line-height: 1.6;  /* adjust as needed */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: transparent;
    overflow-x: hidden;
    transition: all 0.5s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-12) var(--space-24);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-12);
}

.logo-img {
    width: 32px;
    height: 32px;
    /*filter: brightness(0) invert(1);*/
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(31, 184, 205, 0.5);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: var(--space-24);
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
    position: relative;
    padding: var(--space-8) var(--space-12);
    border-radius: var(--radius-base);
}

.nav-link:hover {
    color: var(--color-primary);
    text-shadow: 0 0 8px rgba(31, 184, 205, 0.6);
    background: rgba(31, 184, 205, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 4px var(--color-primary);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-16);
}


.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}



@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}


.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    margin-bottom: var(--space-24);
}

.hero-main {
    display: block;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    text-shadow: 0 0 30px rgba(31, 184, 205, 0.6);
    letter-spacing: 4px;
    margin-bottom: var(--space-12);
    animation: none;
}

@keyframes glow-pulse {
    from { text-shadow: 0 0 20px rgba(31, 184, 205, 0.6); }
    to { text-shadow: 0 0 40px rgba(31, 184, 205, 0.8), 0 0 60px rgba(31, 184, 205, 0.4); }
}

.hero-sub {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    letter-spacing: 2px;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-32) auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-20);
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(31, 184, 205, 0.5);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) var(--space-32);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, rgba(31, 184, 205, 0.8) 100%);
    color: var(--color-btn-primary-text);
    box-shadow: 0 4px 15px rgba(31, 184, 205, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 184, 205, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(31, 184, 205, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-full-width {
    width: 100%;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-bold);
    text-align: center;
    margin-bottom: var(--space-16);
    color: var(--color-text);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), rgba(31, 184, 205, 0.5));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(31, 184, 205, 0.5);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 3vw, 2rem);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-32);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-grid.single-column {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 32px;
}

.coordinator-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.social-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.social-link:hover {
  text-decoration: underline;
}
.connect-button {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--radius-base);
  font-weight: 500;
  text-decoration: none;
}

.connect-button:hover {
  background-color: var(--color-primary-dark);
}

.connect-button {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: white;
  font-weight: 500;
  border-radius: var(--radius-base);
  text-decoration: none;
  transition: background 0.3s;
}

.connect-button:hover {
  background-color: var(--color-primary-dark);
}



/* Events Section */

.events-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width : 100%;
}

.events-grid {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-24);
  margin-top: var(--space-32);
  transition: transform 0.5s ease;
}

.event-card {
    min-width: 320px; /* Fixed width for consistent layout */
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  
}

.past-event {
    filter : grayscale(80%);
    min-width: 320px; /* Fixed width for consistent layout */
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;

}


/*
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), rgba(31, 184, 205, 0.5));
}
*/

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(31, 184, 205, 0.2);
    border-color: rgba(31, 184, 205, 0.4);
}

.event-image {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    border-radius: var(--radius-base);
    margin-bottom: var(--space-16);
}

.event-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-8);
    color: var(--color-text);
}

.event-date {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-12);
    font-size: var(--font-size-sm);
}

.event-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.event-category {
    position: absolute;
    top: var(--space-16);
    right: var(--space-16);
    background: rgba(31, 184, 205, 0.2);
    color: var(--color-primary);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    border: 1px solid rgba(31, 184, 205, 0.3);
}

/* Highlights Section */


.highlights-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.highlights-container {
    display: flex;   
    transition: transform 0.5s ease;
}

.highlight-card {
  position: relative;
    min-width: 350px;
    padding: var(--space-24);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.highlight-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(31, 184, 205, 0.2);
}

.highlight-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-content {
    padding: var(--space-20);
}

.highlight-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-8);
    color: var(--color-text);
}

.highlight-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
    margin-top: var(--space-24);
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: var(--space-8);
}

.eventDot , .highDot, .articleDot{
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.eventDot.active , .highDot.active, .articleDot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(31, 184, 205, 0.5);
}

/* Simulations Section */


.simulations-grid {
    display: grid;
    gap: var(--space-24);
    margin-top: var(--space-32);
}

.simulation-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sim-header {
    padding: var(--space-20);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(31, 184, 205, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-header:hover {
    background: rgba(31, 184, 205, 0.15);
}

.sim-header h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.sim-toggle {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.simulation-card.active .sim-toggle {
    transform: rotate(180deg);
}

.sim-content {
    padding: var(--space-24);
    display: none;
}

.simulation-card.active .sim-content {
    display: block;
}

.sim-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-16);
    margin-bottom: var(--space-24);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.control-group label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.slider {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-base);
    padding: var(--space-8);
    color: var(--color-text);
    outline: none;
}

.slider::-webkit-slider-thumb {
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(31, 184, 205, 0.5);
}

#signal-canvas, #rc-canvas {
    width: 100%;
    max-width: 600px;
    height: 300px;
    background: rgba(15, 15, 35, 0.8);
    border-radius: var(--radius-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logic-inputs {
    display: flex;
    gap: var(--space-16);
}

.input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
}

.logic-toggle {
    width: 60px;
    height: 40px;
    border-radius: var(--radius-base);
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logic-toggle.active {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(31, 184, 205, 0.5);
}

.logic-output {
    margin-top: var(--space-24);
    text-align: center;
}

.output-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
}

.output-led {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: bold;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.output-led.active {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(31, 184, 205, 0.6);
}

.rc-info {
    margin-top: var(--space-16);
    text-align: center;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Projects Section */


.project-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-bottom: var(--space-32);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-8) var(--space-16);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: var(--font-size-sm);
    backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-24);
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(31, 184, 205, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: var(--space-20);
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-8);
    color: var(--color-text);
}

.project-domain {
    display: inline-block;
    background: rgba(31, 184, 205, 0.2);
    color: var(--color-primary);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-12);
    border: 1px solid rgba(31, 184, 205, 0.3);
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-16);
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: var(--space-12);
}

.project-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: all 0.3s ease;
}

.project-link:hover {
    text-shadow: 0 0 8px rgba(31, 184, 205, 0.6);
}


/* Articles Section */

.articles-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 320px; /* <-- Add this line */
    margin: 0 auto;   /* <-- And this line to center it */
}

.articles-grid{
  display: flex;
  justify-content: flex-start;
  gap: var(--space-24);
  margin-top: var(--space-32);
  transition: transform 0.5s ease;
}

.article-card{
  min-width: 320px; /* Fixed width for consistent layout */
    background: rgba(23, 22, 22, 0.127);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
 
}

.article-image{
   width: 100%;
    max-width: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius-base);
    margin-bottom: var(--space-16);
}

.article-card:hover{
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(31, 184, 205, 0.2);
}


/* Component Issue Section */


.component-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.component-instructions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-24);
    margin: var(--space-32) 0;
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.instruction-icon {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-12);
}

.component-btn {
    padding: var(--space-16) var(--space-32);
    font-size: var(--font-size-lg);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(31, 184, 205, 0.3); }
    50% { box-shadow: 0 8px 25px rgba(31, 184, 205, 0.5); }
}

/* Contact Section */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  align-items: center;
}

.contact-grid {
  display: flex;
  justify-content: center;
  align-items: stretch; /* 🔧 Ensures all children grow to same height */
  gap: 40px;
  flex-wrap: wrap;
  margin-top: var(--space-32);
}

.coordinator-info,
.club-contact {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px 48px; /* Top/Bottom: 40px, Left/Right: 48px */
  max-width: 460px;
  text-align: center;
  line-height: 1.8;
}

.coordinator-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-24);
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 20px rgba(31, 184, 205, 0.3);
}

.coordinator-info h3 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.coordinator-title {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-24);
}

.contact-details p {
  margin-bottom: var(--space-24);
  color: var(--color-text-secondary);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.social-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  padding: var(--space-8) var(--space-16);
  border: 1px solid rgba(31, 184, 205, 0.3);
  border-radius: var(--radius-base);
  transition: all 0.3s ease;
  background: rgba(31, 184, 205, 0.1);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-btn-primary-text);
  transform: translateY(-2px);
}

.club-contact h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-24);
  color: var(--color-text);
}

.club-contact p {
  margin-bottom: var(--space-16);
  color: var(--color-text-secondary);
}

.connect-button {
  display: inline-block;
  margin-top: var(--space-24);
  padding: var(--space-12) var(--space-24);
  background-color: var(--color-primary);
  color: white;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-base);
  text-decoration: none;
  transition: background 0.3s ease;
}

.connect-button:hover {
  background-color: var(--color-primary-dark);
}


/* Footer */
.footer {
    background: rgba(15, 15, 35, 0.8);
    padding: var(--space-32) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-20);
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: var(--space-8);
}

.footer-links {
    display: flex;
    gap: var(--space-20);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-20);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-8);
}

.developer-credit {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: var(--space-16);
    right: var(--space-20);
    color: var(--color-text);
    font-size: var(--font-size-2xl);
    cursor: pointer;
}

.modal-body {
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--color-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: white;
    margin: 0 auto var(--space-20) auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-lg);
        margin-top: var(--space-12);
        padding: var(--space-16);
        flex-direction: column;
        gap: var(--space-12);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .highlights-container {
        gap: var(--space-16);
    }

    .highlight-card {
        min-width: 280px;
    }

    .sim-controls {
        grid-template-columns: 1fr;
    }

    .project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-8);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-16);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }

    .nav-container {
        padding: var(--space-8) var(--space-16);
    }

    .events-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-main {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}
/* Section heading and subtitle spacing */
.section-title {
  margin-bottom: var(--space-16); /* Space between title and subtitle */
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-80px); /* Space between subtitle and boxes */
  line-height: 1.6;
}

.contact-section .section-subtitle {
  margin-bottom: 48px; /* Space between subtitle and boxes */
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Scroll animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loader Overlay */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

/* Centered content */
.loader-content {
  text-align: center;
}

/* Title */
.loader-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 4px;
}

/* Progress bar container */
.progress-container {
  width: 300px;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto;
}

/* Animated bar */
.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

/* Fade-out state */
#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Fix white text on white bg in dark dropdown */
.dark-theme select.form-control,
[data-color-scheme="dark"] select.form-control {
    background-color: rgba(38, 40, 40, 1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Make #home relative and set stacking */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5; /* adjust as needed */
  pointer-events: none; /* so it doesn't block buttons/links */
}
.hero-content {
  position: relative;
  z-index: 2;
}
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -100;
  pointer-events: none;
  opacity: 0.5; /* adjust as you like */
}
/* EXACT FIX FOR GREY OVERLAY - Add this to the END of your style.css file */

/* Override ALL hardcoded white glass morphism backgrounds for video visibility */
.navbar,
.event-card,
.project-card,
.contact-form-container,
.highlight-card,
.simulation-card,
.component-card,
.coordinator-info,
.club-contact,
.btn-secondary,
.filter-btn,
.carousel-btn,
.form-control,
.modal-content {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Special cases for better readability */
.navbar {
  background: rgba(0, 0, 0, 0.15) !important;
}

.form-control {
  background: rgba(0, 0, 0, 0.25) !important;
  color: #fff !important;
}

/* Make sure text is visible on dark backgrounds */
.event-card *,
.project-card *,
.highlight-card *,
.simulation-card *,
.component-card *,
.coordinator-info *,
.club-contact * {
  color: #fff !important;
}

.event-date,
.project-domain,
.tech-tag {
  background: rgba(31, 184, 205, 0.3) !important;
  color: #fff !important;
}
/* Force black background for all simulation dropdown menus */
#simulations .form-control,
#simulations select.form-control,
#filter-select,
#gate-select {
    background-color: rgba(0, 0, 0, 0.8) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

#simulations .form-control option,
#simulations select.form-control option {
    background-color: rgba(0, 0, 0, 0.9) !important;
    color: #fff !important;
}

/* Dark theme compatibility */
@media (prefers-color-scheme: dark), [data-color-scheme="dark"] {
    #simulations .form-control,
    #simulations select.form-control,
    #filter-select,
    #gate-select {
        background-color: rgba(0, 0, 0, 0.8) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}
.truth-table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
}
.truth-table th,
.truth-table td {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 8px;
  text-align: center;
}
.truth-table thead th {
  background: rgba(255,255,255,0.1);
}
.project-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}


.project-card:hover {
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-10);
}

.project-image-circle {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.project-person {
  margin-top: var(--space-8);
  margin-bottom: var(--space-8); /* reduced gap */
  text-align: center;
}

.person-name {
  font-size: 1.2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 2px;
}

.person-position {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
margin-top: 5px;  /* reduced from default */
  line-height: 1.3;
}

.project-title {
  font-size: 1.3rem;
  font-weight: var(--font-weight-bold);
  margin-top: 0; /* reduce top space */
  margin-bottom: 10px;
  text-align: center;
}



