@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@1,400;1,500;1,600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- TACTILE DESIGN SYSTEM & VARIABLES --- */
:root {
  --bg-base: #F5F2EB;
  --bg-card: #FAF8F5;
  --bg-card-alt: #fdfbf7;
  
  /* Portfolio Color Accents */
  --accent-orange: #e76f51;
  --accent-orange-dark: #c2410c;
  --accent-green: #D7FF96;
  --accent-green-dark: #a9e050;
  --accent-yellow: #FFE596;
  --accent-blue: #A5D8FF;
  
  /* Neo-Brutalist Grays & Shadows */
  --border-color: #111111;
  --text-primary: #111111;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --shadow-offset: 6px;
  
  /* Fonts */
  --font-body: 'Outfit', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Transitions */
  --transition-tactile: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & GLOBAL STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial; /* Handled by Lenis smooth scroll */
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) var(--bg-base);
  overflow-x: hidden;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Subtle visual grain and grid layers */
.grain-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(17, 17, 17, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  z-index: 1;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
  border-left: 2px solid var(--border-color);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange-dark);
}

/* Custom Cursor Follower - High contrast solid colors */
.custom-cursor {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}
.custom-cursor.hovered {
  width: 44px;
  height: 44px;
  background-color: rgba(215, 255, 150, 0.5); /* Lime green semi-transparent */
}

a, button, select, input, textarea {
  cursor: none; /* Hide default cursor to enable custom cursor style */
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.tech-bold-highlight {
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: normal;
  letter-spacing: -0.03em;
}

/* Handwritten Details */
.handwritten {
  font-family: 'Outfit', cursive; /* A casual font styling mimicking hand notes */
  font-style: italic;
  color: var(--text-secondary);
}

/* Section Header styling */
.section-header {
  text-align: left;
  max-width: 650px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--accent-green);
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0 0 var(--border-color);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title {
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

/* --- LAYOUTS --- */
section {
  position: relative;
  padding: 100px 5% 90px 5%;
  z-index: 2;
  border-bottom: 2px solid var(--border-color);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* --- TACTILE NEO-BRUTALIST BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-tactile);
  box-shadow: 4px 4px 0 0 var(--border-color);
}
.btn-primary {
  background: var(--accent-orange);
  color: var(--text-primary);
}
.btn-primary:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5.5px 5.5px 0 0 var(--border-color);
}
.btn-primary:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 2.5px 2.5px 0 0 var(--border-color);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: #fff;
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5.5px 5.5px 0 0 var(--border-color);
}
.btn-secondary:active {
  transform: translate(1.5px, 1.5px);
  box-shadow: 2.5px 2.5px 0 0 var(--border-color);
}

/* --- TACTILE CARDS & CONTAINERS --- */
.tactile-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  transition: var(--transition-tactile);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--border-color);
}
.tactile-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--border-color);
}

/* Tape strips mimicking manual paper additions */
.tape-strip {
  width: 70px;
  height: 22px;
  background: rgba(255, 229, 150, 0.65); /* translucent yellow tape */
  border-left: 1px dashed rgba(17, 17, 17, 0.15);
  border-right: 1px dashed rgba(17, 17, 17, 0.15);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  position: absolute;
  top: -6px;
  left: 20px;
  transform: rotate(-10deg);
  z-index: 10;
  pointer-events: none;
}
.tape-strip.right {
  left: auto;
  right: 20px;
  transform: rotate(8deg);
  background: rgba(215, 255, 150, 0.65); /* translucent green tape */
}

/* Notebook Ruled Line Background */
.bg-ruled {
  background-image: linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px);
  background-size: 100% 28px;
  line-height: 28px;
}

/* --- NAVIGATION / NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 5%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  border-bottom: 2px solid transparent;
  background-color: transparent;
}
.navbar.scrolled {
  padding: 16px 5%;
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border-color);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}
.nav-logo-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  background-color: var(--accent-green);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 20px;
  box-shadow: 1.5px 1.5px 0 0 var(--border-color);
  white-space: nowrap; /* Prevent text wrapping onto two lines */
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #1e293b;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Status Indicator Tag */
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 1.5px 1.5px 0 0 var(--border-color);
  white-space: nowrap; /* Prevent text wrapping */
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green-dark);
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  cursor: none;
  z-index: 1002;
  box-shadow: 2px 2px 0 0 var(--border-color);
  transition: var(--transition-tactile);
}
.hamburger:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
  background-image: url('../images/sky_background.jpg');
  background-size: cover;
  background-position: center;
}

/* --- TACTILE TORN PAPER DIVIDER --- */
.torn-divider {
  position: absolute;
  bottom: -5px; /* Pull down to avoid tiny subpixel gaps during scroll */
  left: 0;
  width: 100%;
  height: 60px; /* Elevated height for filter buffer */
  z-index: 10;
  pointer-events: none;
  overflow: visible; /* Let the displacement filter warp beyond viewBox bounds */
}

.torn-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.torn-shadow {
  transform: translateY(-4px); /* Soft dark shadow peaking out at the top */
}

.torn-fibers {
  transform: translateY(-2px); /* White inner paper fibers border */
}

.torn-main {
  transform: translateY(0); /* Main paper face blending with about page base */
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.foss-club-box {
  position: absolute;
  top: -45px;
  left: -20px;
  z-index: 15; /* Sits on top of wire (8), pins (10), and card (9) */
  border: 3.5px solid #111;
  padding: 8px 14px;
  background-color: #FFFFFF;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #111;
  line-height: 0.85;
  text-align: center;
  transform: rotate(-5deg); /* Slightly tilted sticker look */
  box-shadow: 4px 4px 0 0 #111;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.foss-club-box:hover {
  transform: rotate(-1deg) scale(1.05);
  box-shadow: 6px 6px 0 0 var(--accent-orange-dark);
}

.foss-club-box .foss-line {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  display: block;
}

.foss-club-box .club-line {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  border-top: 3px solid #111;
  margin-top: 4px;
  padding-top: 4px;
  width: 100%;
  display: block;
}

.foss-club-box .ajce-badge {
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  background-color: var(--accent-orange);
  color: #111;
  border: 2px solid #111;
  padding: 2px 8px;
  margin-top: 6px;
  width: 100%;
  display: block;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: #1e293b;
  margin-bottom: 35px;
  max-width: 540px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}
/* Developer Widget Area */
.hero-visuals {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  z-index: 2;
}

/* --- HANGER WIDGET (Tactile Paper Pin Photo Hanger) --- */
.college-card-wrapper {
  position: relative;
  padding-top: 40px; /* Space for the hanger wire and pins */
  width: 100%;
  max-width: 380px;
}

.hanger-wire {
  position: absolute;
  top: 10px;
  left: -20px;
  right: -20px;
  height: 2px;
  background-color: var(--border-color);
  z-index: 8;
}

/* Nails on the ends of the wire */
.hanger-wire::before,
.hanger-wire::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  background-color: #555;
  border: 2px solid var(--border-color);
  border-radius: 50%;
}
.hanger-wire::before {
  left: -2px;
}
.hanger-wire::after {
  right: -2px;
}

/* Clothespins holding the card */
.hanger-pin {
  width: 12px;
  height: 42px;
  background-color: #D2B48C; /* Tan wood color */
  border: 2px solid var(--border-color);
  border-radius: 2px;
  position: absolute;
  top: -10px; /* Positions it to clamp the card */
  z-index: 10;
  box-shadow: 2px 2px 0 var(--border-color);
  transform-origin: 50% 10%;
  transition: transform 0.3s ease, top 0.3s ease;
}

.hanger-pin::after {
  content: '';
  position: absolute;
  top: 14px;
  left: -1px;
  right: -1px;
  height: 4px;
  border-top: 1.5px solid var(--border-color);
  border-bottom: 1.5px solid var(--border-color);
  background-color: #888; /* Metal spring coil */
}

.hanger-pin-left {
  left: 20%;
}

.hanger-pin-right {
  right: 20%;
}

/* The actual polaroid style card */
.hanger-card {
  background-color: #FFFFFF;
  border: 2px solid var(--border-color);
  padding: 16px;
  padding-bottom: 28px;
  box-shadow: 6px 6px 0 0 var(--border-color);
  position: relative;
  z-index: 9;
  width: 100%;
  display: block;
  cursor: pointer;
  transform-origin: 50% 0%;
  transition: box-shadow 0.3s ease;
}

.hanger-card:hover {
  box-shadow: 8px 8px 0 0 var(--border-color);
}

.hanger-card-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--border-color);
  background-color: var(--bg-base);
  border-radius: 4px;
}

.hanger-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hanger-card:hover .hanger-card-img {
  transform: scale(1.03);
}

.hanger-card-caption {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  transform: rotate(-1deg);
  user-select: none;
}

.hero-dashboard {
  margin-top: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
  width: 100%;
}

/* --- MALAYALAM BRAND STICKER --- */
.malayalam-sticker-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 520px;
  width: 100%;
  z-index: 2;
}

.malayalam-sticker {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(4px 4px 0px rgba(17, 17, 17, 0.15));
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.malayalam-sticker-wrapper:hover .malayalam-sticker {
  transform: scale(1.03) rotate(-1deg);
  filter: drop-shadow(6px 6px 0px rgba(17, 17, 17, 0.25));
}

@media (max-width: 768px) {
  .malayalam-sticker-wrapper {
    max-width: 320px;
  }
}

.floating-widget {
  padding: 20px;
  z-index: 2;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 4px 4px 0px 0px var(--border-color);
}

.widget-terminal {
  border-top-width: 14px; /* terminal top header block */
  border-top-color: var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.terminal-dots-wrapper {
  position: absolute;
  top: -10px;
  left: 12px;
  display: flex;
  gap: 4px;
}
.terminal-circle {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg-base);
}

.terminal-body {
  color: var(--text-primary);
  font-weight: 500;
}
.terminal-line {
  margin-bottom: 4px;
  display: flex;
  gap: 8px;
}
.terminal-prompt {
  color: var(--accent-orange-dark);
}
.terminal-output {
  color: var(--text-secondary);
}
.terminal-success {
  color: var(--text-primary);
  background-color: var(--accent-green);
  padding: 0 4px;
  font-weight: 700;
}

.widget-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 4px 4px 0 0 var(--border-color);
  padding: 14px 10px;
  width: auto;
}
.widget-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 35px;
  transition: var(--transition-fast);
}
.widget-stat-item:not(:last-child) {
  border-right: 2px solid var(--border-color);
}
@media (max-width: 500px) {
  .widget-stat-item {
    padding: 0 18px;
  }
}
@media (max-width: 360px) {
  .widget-stat-item {
    padding: 0 10px;
  }
}
.widget-stat-number {
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.55rem;
  color: var(--text-primary);
  line-height: 1.2;
}
.widget-stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Floating git activity graph visualization */
.widget-github {
  border-left: 8px solid var(--accent-green-dark);
}
.github-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.github-contrib-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
}
.github-cell {
  aspect-ratio: 1;
  border-radius: 1px;
  background: rgba(17, 17, 17, 0.05);
}
.github-cell.lvl-1 { background: rgba(255, 145, 77, 0.25); }
.github-cell.lvl-2 { background: rgba(255, 145, 77, 0.5); }
.github-cell.lvl-3 { background: rgba(255, 145, 77, 0.75); }
.github-cell.lvl-4 { background: var(--accent-orange); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 10;
  transition: var(--transition-smooth);
}
.scroll-indicator:hover {
  color: var(--text-primary);
}
.scroll-arrow-down {
  animation: bounce-arrow 1.5s infinite;
}
@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- 2. ABOUT SECTION --- */
.about-grid {
  display: block;
  width: 100%;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

.about-card {
  padding: 30px 24px;
}
.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-yellow);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--text-primary);
  box-shadow: 2px 2px 0px 0px var(--border-color);
  transition: var(--transition-tactile);
}
.about-card:nth-child(2) .about-card-icon { background-color: var(--accent-green); }
.about-card:nth-child(3) .about-card-icon { background-color: var(--accent-orange); }
.about-card:nth-child(4) .about-card-icon { background-color: var(--accent-blue); }

.about-card:hover .about-card-icon {
  transform: scale(1.05) rotate(4deg);
}

.about-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}
.about-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Large interactive code snippets widget */
.about-terminal-container {
  position: relative;
}
.about-terminal {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 18px;
  box-shadow: 6px 6px 0px 0px var(--border-color);
}
.about-terminal-lines {
  color: var(--text-primary);
  font-weight: 500;
}
.about-terminal-lines span {
  display: block;
  margin-bottom: 6px;
}
.terminal-comment { color: var(--text-muted); font-style: italic; }
.terminal-keyword { color: var(--accent-orange-dark); font-weight: 700; }
.terminal-string { color: var(--text-secondary); }
.terminal-func { color: var(--text-primary); text-decoration: underline; }

/* Floating Tech icons absolute overlay */
.floating-tech-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.tech-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.tb-1 { top: -20px; left: 10%; background-color: var(--accent-yellow); }
.tb-2 { bottom: -20px; right: 20%; background-color: var(--accent-green); }
.tb-3 { top: 50%; right: -30px; background-color: var(--accent-blue); }

/* --- 3. FEATURED EVENTS SECTION --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.event-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.event-img-wrapper {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-bottom: 2px solid var(--border-color);
}
.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.event-card:hover .event-img {
  transform: scale(1.02);
}

/* Event status badge overlays */
.event-date-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 2px 2px 0 0 var(--border-color);
}

.event-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  min-height: 58px;
  align-items: flex-start;
}
.event-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--accent-yellow);
  border: 1.5px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 6px;
}
.event-card:nth-child(2n) .event-tag { background-color: var(--accent-green); }
.event-card:nth-child(3n) .event-tag { background-color: var(--accent-blue); }

.event-card-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.event-card:hover .event-card-title {
  color: var(--accent-orange-dark);
}

.event-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 2px solid var(--border-color);
}
.event-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}
.event-status.active {
  color: var(--text-primary);
}
.event-status.active::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-orange-dark);
  border: 1px solid var(--border-color);
}

.event-btn {
  background: var(--accent-green);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  text-decoration: none;
  transition: var(--transition-tactile);
  box-shadow: 2px 2px 0 0 var(--border-color);
}
.event-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.event-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--border-color);
}

/* --- 4. FOSS UNITED PARTNERSHIP --- */
.foss-united {
  position: relative;
  background-color: var(--bg-base);
}

.foss-united-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.foss-united-main-card {
  padding: 24px;
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 4px 4px 0 0 var(--border-color);
  transition: var(--transition-smooth);
}

.foss-united-main-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 0 var(--border-color);
}

.foss-united-logo-wrapper {
  margin-bottom: 15px;
}

.foss-united-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent-orange-dark);
  background-color: var(--accent-yellow);
  border: 1.5px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.foss-united-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.foss-united-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.foss-united-links {
  margin-top: auto;
}

.foss-united-main-card .btn {
  padding: 10px 20px;
  font-size: 0.75rem;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .foss-united-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .foss-united-main-card {
    padding: 20px;
  }
}

/* --- 5. OUR PEOPLE SECTION --- */
.people-toggle-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: -2px; /* Pull tabs to overlay on the border of the section below it */
  position: relative;
  z-index: 10;
  gap: 2px;
}
.people-tab {
  background: var(--bg-card-alt);
  border: 2px solid var(--border-color);
  border-bottom: none;
  padding: 12px 26px;
  border-radius: 12px 12px 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-tactile);
  cursor: none;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.03);
}
.people-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  border-bottom: 2px solid var(--bg-card); /* Cover the bottom border */
  z-index: 12;
  padding-bottom: 14px;
  transform: translateY(2px);
}

.people-container-box {
  background-color: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--border-color);
  position: relative;
  z-index: 5;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 30px;
}

.people-grid.hidden {
  display: none;
}

.member-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-card-alt);
  border: 2px solid var(--border-color);
  border-radius: 14px;
}
.member-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg-base);
  border: 2px solid var(--border-color);
}
.member-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.member-avatar svg {
  width: 44px;
  height: 44px;
  color: var(--text-muted);
}

.member-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.member-role {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: var(--accent-yellow);
  border: 1.5px solid var(--border-color);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 16px;
}
.member-card:nth-child(2n) .member-role { background-color: var(--accent-green); }
.member-card:nth-child(3n) .member-role { background-color: var(--accent-blue); }

.member-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.member-social-link {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-tactile);
  box-shadow: 2px 2px 0 0 var(--border-color);
}
.member-social-link:hover {
  background: var(--accent-orange);
  color: var(--text-primary);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.member-social-link:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--border-color);
}

/* --- 6. PARTNERS SECTION --- */
.partners-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 10px 0;
  display: flex;
}
.partners-marquee::before,
.partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  width: 15%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base) 0%, transparent 100%);
}
.partners-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-base) 0%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee-anim 30s linear infinite;
  white-space: nowrap;
}

@keyframes marquee-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.partner-logo svg {
  fill: currentColor;
  width: 24px;
  height: 24px;
}
.partner-logo:hover {
  color: var(--accent-orange-dark);
}

/* --- 7. COMMUNITY STATS SECTION --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-primary);
  display: block;
}

.stat-item:nth-child(1) .stat-number { color: var(--accent-orange-dark); }
.stat-item:nth-child(2) .stat-number { color: var(--text-primary); }
.stat-item:nth-child(3) .stat-number { color: var(--accent-blue); }
.stat-item:nth-child(4) .stat-number { color: var(--text-secondary); }

.stat-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* --- 8. GALLERY SECTION --- */
.gallery {
  background-image: url('../images/sky_background.jpg');
  background-size: cover;
  background-position: center;
  border-bottom: none;
}
.partners {
  border-bottom: none;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}

.gallery-item-wrapper {
  transition: var(--transition-smooth);
  transform: rotate(var(--rand-rot, 0deg));
  position: relative;
}
.gallery-item-wrapper:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 10;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--border-color);
  box-shadow: 4px 4px 0 0 var(--border-color);
  transition: var(--transition-tactile);
  cursor: none;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}
.gallery-item-wrapper:hover .gallery-item {
  box-shadow: 8px 8px 0 0 var(--border-color);
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-img {
  transform: scale(1.02);
}

.window-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--bg-card-alt);
  border-bottom: 2px solid var(--border-color);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--text-primary);
  user-select: none;
}
.window-title {
  letter-spacing: 0.05em;
}
.window-controls {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 2px;
}
.window-body {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

/* Lightbox Modal (Lightbox overlay) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(245, 242, 235, 0.98);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
  border: 4px solid var(--border-color);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 2px solid var(--border-color);
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 8px 8px 0 0 var(--border-color);
}
.lightbox.open .lightbox-content {
  transform: scale(1);
}
.lightbox-img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--border-color);
}
.lightbox-caption {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-top: 16px;
  font-weight: 700;
}
.lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--accent-yellow);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  font-size: 1.3rem;
  font-weight: 900;
  transition: var(--transition-tactile);
  box-shadow: 2px 2px 0 0 var(--border-color);
}
.lightbox-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.lightbox-close:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 0 var(--border-color);
}

/* --- 9. JOIN COMMUNITY SECTION --- */
.join-grid {
  max-width: 650px;
  margin: 0 auto;
}

.join-info {
  text-align: left;
}
.join-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 500;
}
.join-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.join-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 3px 3px 0 0 var(--border-color);
  transition: var(--transition-tactile);
}
.join-link-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--border-color);
}
.join-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-yellow);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-primary);
  box-shadow: 1.5px 1.5px 0 0 var(--border-color);
}
.join-link-item:nth-child(2n) .join-link-icon { background-color: var(--accent-green); }
.join-link-item:nth-child(3n) .join-link-icon { background-color: var(--accent-blue); }
.join-link-item:nth-child(4n) .join-link-icon { background-color: var(--accent-orange); }

.join-link-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.join-link-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Interactive form panels */
.join-form-wrapper {
  padding: 40px;
}

.join-form-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-tactile);
  outline: none;
}
.form-input:focus {
  background-color: var(--bg-card-alt);
}
.form-label {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  font-weight: 500;
}
/* Float labels dynamically */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  padding: 0 6px;
}

.form-select {
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
  appearance: none;
}
.form-select:focus {
  color: var(--text-primary);
  background-color: var(--bg-card-alt);
}
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: "▼";
  font-size: 0.7rem;
  color: var(--text-muted);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-interests-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
}
.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.interest-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: none;
}
.interest-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.interest-checkbox:checked {
  background: var(--accent-orange);
}
.interest-checkbox:checked::after {
  content: "✓";
  color: var(--text-primary);
  font-size: 0.65rem;
  font-weight: 900;
}

/* Verification Output widget */
.form-terminal-output {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-card-alt);
  border: 2px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  margin-top: 20px;
  color: var(--text-primary);
  animation: fade-in 0.3s;
  box-shadow: 3px 3px 0 0 var(--border-color);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 10. FOOTER --- */
.footer {
  background: var(--bg-card);
  border-top: 2px solid var(--border-color);
  padding: 80px 5% 40px 5%;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.1em;
}
.footer-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 500;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-orange-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-terminal {
  background: var(--bg-card-alt);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  box-shadow: 3px 3px 0 0 var(--border-color);
}
.footer-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: var(--text-muted);
}
.footer-terminal-title {
  font-size: 0.7rem;
  font-weight: 700;
}
.footer-terminal-body {
  color: var(--text-secondary);
  font-weight: 500;
}
.footer-terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--text-primary);
  font-weight: 700;
}
.status-dot-footer {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green-dark);
  border: 1px solid var(--border-color);
}

.footer-bottom {
  border-top: 2px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.footer-social-badges {
  display: flex;
  gap: 12px;
}
.footer-social-badge {
  text-decoration: none;
  color: var(--text-primary);
  background: #fff;
  border: 2px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-tactile);
  box-shadow: 2px 2px 0 0 var(--border-color);
}
.footer-social-badge:hover {
  background: var(--accent-yellow);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--border-color);
}

@media (max-width: 1024px) {
  .hero {
    padding-top: 130px; /* Clear fixed navbar + overlapping sticker logo spacing */
    padding-bottom: 70px;
    min-height: auto; /* Let the height adapt to stacked content on mobile */
    justify-content: flex-start; /* Align content to the top to prevent clipping */
  }
  .nav-status {
    display: none !important; /* Hide status badge on tablet/mobile for nav cleanliness */
  }
  .hero-title {
    font-size: 3.3rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero-visuals {
    justify-content: center;
    margin-top: 20px;
    order: -1; /* Pushes the image hanger to the top on mobile/tablet so it is visible on load */
  }
  .hero-dashboard {
    margin-top: 30px; /* Pull the Malayalam logo closer to the description/buttons */
  }
  .join-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 4% 60px 4%;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-base);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    border-left: 2px solid var(--border-color);
    box-shadow: -4px 0 0 0 rgba(17,17,17,0.1);
  }
  .nav-links.open {
    right: 0;
  }
  
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .member-card {
    padding: 16px 10px;
    border-radius: 10px;
  }
  .member-avatar-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    padding: 2px;
  }
  .member-avatar svg {
    width: 24px;
    height: 24px;
  }
  .member-name {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  .member-role {
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-bottom: 10px;
    border-radius: 4px;
  }
  .member-social-link {
    width: 24px;
    height: 24px;
    border-radius: 5px;
    box-shadow: 1px 1px 0 0 var(--border-color);
  }
  .people-container-box {
    padding: 24px;
    border-radius: 16px;
  }
  
  /* Mobile image hanger sizing tweaks to prevent clipping and fit the screen */
  .college-card-wrapper {
    max-width: 290px;
    margin: 0 auto;
    padding-top: 30px;
  }
  .hanger-wire {
    left: -10px;
    right: -10px;
  }
  .foss-club-box {
    left: -10px;
    top: -40px;
  }
  .nav-logo-tag {
    display: none !important; /* Hide logo badge tag on mobile devices to prevent crowding */
  }
}

@media (max-width: 480px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .people-container-box {
    padding: 16px;
  }
  .member-card {
    padding: 12px 6px;
  }
  .member-avatar-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
  }
  .member-avatar svg {
    width: 20px;
    height: 20px;
  }
  .member-name {
    font-size: 0.8rem;
  }
  .member-role {
    font-size: 0.58rem;
    padding: 1px 4px;
    margin-bottom: 8px;
  }
}
