:root {
  color-scheme: light;
  scroll-behavior: smooth;
  --bg: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --accent: #000000;
  --accent-hover: #333333;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --border: #d2d2d7;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-main: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --tag-bg: #f5f5f7;
  --input-bg: #ffffff;
  --fluid-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode {
  color-scheme: dark;
  --bg: #000000;
  --text: #f5f5f7;
  --text-secondary: #a1a1a6;
  --accent: #ffffff;
  --accent-hover: #e8e8ed;
  --card-bg: #111111;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(0, 0, 0, 0.85);
  --border: #333333;
  --tag-bg: #222222;
  --input-bg: #111111;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

/* Background elements removed for pure white aesthetic */

a {
  color: inherit;
  text-decoration: none;
}

/* Removed .bg, .grid, .photo - going for clean background */

/* Header */
.hero-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 16px 0;
  /* Horizontal padding moved to brand-container */
  margin: 0;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  /* Center vertically on desktop */
  justify-content: center;
  z-index: 2000;
  transition: transform 1.2s var(--fluid-ease), opacity 0.8s ease;
  background: var(--bg);
  will-change: transform, opacity;
  padding: 0 60px;
  box-sizing: border-box;
}

/* Prevent flicker on refresh */
html.no-splash .splash-screen {
  display: none !important;
}

html.no-splash .site-container {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
}

.splash-content {
  text-align: center;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
}

.splash-brand {
  font-size: 13px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
  transition: opacity 0.8s ease, transform 0.8s var(--fluid-ease);
  position: relative;
}

.splash-brand.hidden {
  opacity: 0;
  transform: translateY(-20px);
}

.splash-tagline {
  font-size: 72px;
  /* Increased for impact */
  line-height: 1.1;
  font-weight: 400;
  /* Decreased for more elegance */
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  color: var(--text);
  /* Use theme variable */
  min-height: 2.5em;
  /* Adjusted for two lines */
  display: block;
  /* Take full container width */
  white-space: pre-wrap;
  text-align: center;
}



.splash-notice {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 32px;
  min-height: 8em;
  /* Reserve space */
  white-space: pre-wrap;
  text-align: center;
}



.splash-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.5s var(--fluid-ease), background 0.5s var(--fluid-ease), box-shadow 0.5s var(--fluid-ease);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 1;
  transform: translateY(0);
  will-change: transform;
}

.exit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 16px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Remove transform transition to prevent conflicts with direct JS updates */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  opacity: 1;
  transform: translate(0, 0);
  will-change: transform;
}

.launch-button.hidden,
.exit-button.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.launch-button:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.exit-button:hover {
  background: #f5f5f7;
}

/* Gradual responsive font sizing for smooth transitions */
@media (max-width: 1400px) and (min-width: 1001px) {
  .splash-tagline {
    font-size: 64px;
  }

  .splash-notice {
    font-size: 15px;
  }
}

@media (max-width: 1000px) and (min-width: 801px) {
  .splash-tagline {
    font-size: 52px;
  }

  .splash-notice {
    font-size: 14px;
  }

  .splash-brand {
    font-size: 12px;
  }
}

@media (max-width: 800px) and (min-width: 601px) {
  .splash-tagline {
    font-size: 42px;
  }

  .splash-notice {
    font-size: 14px;
  }

  .splash-brand {
    font-size: 11px;
  }
}

@media (max-width: 600px) {
  .splash-tagline {
    font-size: 28px;
    line-height: 1.2;
  }

  .splash-notice {
    font-size: 13px;
    line-height: 1.5;
  }

  .splash-brand {
    font-size: 11px;
  }

  .splash-actions {
    gap: 12px;
  }

  .launch-button,
  .exit-button {
    padding: 12px 20px;
    font-size: 15px;
  }
}

.arrow-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.launch-button:hover .arrow-icon {
  transform: translateX(4px);
}

/* Transitions */
.site-container {
  opacity: 1;
  transition: opacity 1s ease, transform 1s var(--fluid-ease);
  will-change: transform, opacity;
}

.site-container.hidden {
  display: none;
  opacity: 0;
  transform: translateY(40px);
}

.splash-out {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

@keyframes splash-intro {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.brand-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 60px;
  box-sizing: border-box;
  /* Internal padding matches main container */
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Digital Clock Styling */
.digital-clock {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-size: 32px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: -0.04em;
}

/* Theme Toggle */
.theme-toggle {
  background: var(--tag-bg);
  color: var(--text);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.theme-toggle:hover {
  background: var(--border);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

body.dark-mode .sun-icon {
  display: block;
}

body.dark-mode .moon-icon {
  display: none;
}

.clock-h {
  font-weight: 700;
}

.clock-m {
  font-weight: 400;
}

.clock-s {
  font-weight: 200;
  color: var(--text-secondary);
}

.clock-sep {
  font-weight: 100;
  opacity: 0.2;
  padding: 0 1px;
}

.clock-ampm {
  font-weight: 500;
  font-size: 0.6em;
  color: var(--text-secondary);
  margin-left: 4px;
  vertical-align: middle;
}

.college-logo {
  height: 64px;
  /* Slightly smaller for header */
  width: auto;
  object-fit: contain;
  /* Removing grayscale for a more vibrant brand, or keep tailored? */
  /* User asked for minimal, let's keep it black/white but sharp */
  filter: grayscale(1) opacity(0.9);
}

.college-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.college-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-transform: uppercase;
}

.college-name.native {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  text-transform: none;
}

.college-tagline {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Main Layout */
main {
  max-width: 1200px;
  /* Centered content container */
  margin: 0 auto;
  padding: 80px 60px 120px;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Section */
.hero {
  text-align: left;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-layout {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 40px;
}

.hero-copy {
  flex: 1;
}

/* Minimalist Monochrome Calendar - Blended */
.calendar-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-width: 250px;
  box-shadow: none;
  animation: reveal-fade 0.8s ease-out;
}

@keyframes reveal-fade {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

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

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-month {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
}

.calendar-day-label {
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calendar-day {
  font-size: 14px;
  height: 32px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text);
  transition: all 0.2s ease;
}

.calendar-day.today {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.calendar-day.exam-date {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 50%;
  animation: exam-pulse 2s ease-in-out infinite;
}

@keyframes exam-pulse {

  0%,
  100% {
    border-color: var(--accent);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
  }

  50% {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
  }
}

.calendar-info {
  margin-top: 16px;
  animation: fadeIn 0.5s ease-out;
}

.exam-pointer {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.exam-pointer svg {
  width: 14px;
  height: 14px;
}

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

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

.calendar-day.other-month {
  color: var(--text-secondary);
}

.hero-copy {
  position: relative;
}

.hero-copy h1 {
  font-size: 56px;
  line-height: 0.85;
  /* Tighter for architectural look */
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
  position: relative;
  z-index: 5;
  will-change: transform;
}



.accent {
  display: block;
  color: var(--text);
  padding-bottom: 4px;
}

/* Override accent for subtext to be simple gray */
.hero-copy h1 .accent {
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -0.01em;
}

.subtext {
  font-size: 20px;
  line-height: 1.4;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 0 12px 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 40px;
}

.cta {
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 999px;
  /* Back to capsule */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.cta:hover::before {
  width: 300px;
  height: 300px;
}

.cta:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta:active {
  transform: scale(0.98);
}

.cta.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta.secondary:hover {
  background: var(--tag-bg);
  border-color: var(--text);
  transform: scale(1.05);
}

.stats {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}


/* Browse / Filter Section */
.browse {
  scroll-margin-top: 100px;
  /* For sticky header */
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.filters {
  display: flex;
  gap: 16px;
}

.filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 4px;
}

.filter input,
.filter select {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 16px;
  /* Pill shape */
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  min-width: 180px;
  transition: border-color 0.2s;
  appearance: none;
  /* Remove default browser styles */
}

/* Custom select arrow would be nice, but keeping simple for now */

.filter input:focus,
.filter select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}


/* Grid */
.pyq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  /* Slightly wider cards */
  gap: 24px;
}

.pyq-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--fluid-ease), box-shadow 0.4s var(--fluid-ease), opacity 0.4s var(--fluid-ease);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform, box-shadow;
}

/* Premium Spotlight Effect */
.pyq-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(500px circle at var(--x, 50%) var(--y, 50%),
      rgba(0, 0, 0, 0.04),
      transparent 40%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.pyq-card:hover::before {
  opacity: 1;
}

.pyq-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

/* Keep ripple for click feedback */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.1);
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  animation: ripple-animation 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 10;
}

@keyframes ripple-animation {
  to {
    transform: translate(-50%, -50%) scale(20);
    opacity: 0;
  }
}

.pyq-card>* {
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--tag-bg);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pyq-card h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 6px;
}

.pyq-meta {
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

/* Exam List */
.exam-list {
  margin-top: auto;
  /* Push to bottom */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.exam-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px;
  /* Added some breathing room */
  margin: 0 -8px;
  /* Compensate for padding to align borders */
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s var(--fluid-ease);
}

.exam-row:hover {
  background: var(--tag-bg);
}

.exam-row:active {
  background: var(--border);
}

.exam-row:last-child {
  border-bottom: none;
}

.exam-label {
  font-size: 14px;
  font-weight: 500;
}

.exam-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.exam-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.exam-links a,
.year-trigger {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  background: var(--tag-bg);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.exam-links a:hover,
.year-trigger:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  text-decoration: none;
}

/* Ghost button for 'Coming soon' */
.ghost {
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--tag-bg);
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
}


/* Dropdown for Years */
.year-dropdown {
  position: relative;
}

.year-trigger {
  cursor: pointer;
  border: none;
  /* Reset button styles */
}

.year-menu {
  position: relative;
  width: 100%;
  background: var(--tag-bg);
  border-radius: 12px;
  margin-top: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;

  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.year-dropdown.active .year-menu {
  max-height: 500px;
  opacity: 1;
  padding: 8px;
  pointer-events: auto;
}

/* Desktop Hover Behavior */
@media (min-width: 1201px) {
  .exam-row:hover .year-menu {
    max-height: 500px;
    opacity: 1;
    padding: 8px;
    pointer-events: auto;
  }
}

.year-menu a {
  display: block;
  text-align: left;
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
}

.year-menu a:hover {
  background: var(--accent);
  color: var(--bg);
}


/* Material Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Material deceleration curve */
}

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


/* Footer */
.footer {
  text-align: left;
  color: var(--text-secondary);
  font-size: 13px;
  padding: 60px 60px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.footer p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.submit-pyq-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--fluid-ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-pyq-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: var(--accent);
  color: var(--bg);
}

.submit-pyq-button svg {
  width: 18px;
  height: 18px;
}

.contribute-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--fluid-ease);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: contribute-glow 3s ease-in-out infinite;
}

@keyframes contribute-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  50% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 30px rgba(0, 0, 0, 0.1);
  }
}

.contribute-button:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: var(--accent-hover);
  animation: none;
}

.contribute-button svg {
  width: 18px;
  height: 18px;
}

/* Intermediate Desktop Sizes - Responsive Padding */
@media (max-width: 1400px) and (min-width: 1201px) {

  .brand-container,
  main,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }

  .splash-screen {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 900px) and (min-width: 1201px) {

  .brand-container,
  main,
  .footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .splash-screen {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* Center hero content at all sizes below 1100px */
@media (max-width: 1100px) {
  .hero {
    align-items: center;
    text-align: center;
  }

  .hero-layout {
    flex-direction: column;
    align-items: center;
  }

  .hero-copy h1 {
    text-align: center;
  }

  .subtext {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .calendar-wrapper {
    margin: 0 auto 40px auto;
    /* Add bottom margin for spacing from buttons */
  }
}

/* Mobile Layout Changes */
@media (max-width: 800px) {
  .splash-screen {
    align-items: flex-start;
    padding-top: 20vh;
    padding-left: 20px;
    padding-right: 20px;
  }

  .splash-content {
    min-width: 100%;
  }

  .splash-actions {
    flex-direction: row;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin: 20px auto 0;
    padding: 0 10px;
  }

  .launch-button,
  .exit-button {
    width: auto;
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
    min-width: 110px;
  }

  /* Remove min-width constraints to allow proper centering */
  .brand-container,
  main,
  .footer {
    min-width: 0;
    width: 100%;
  }

  .hero-header {
    padding: 12px 0;
  }

  .brand-container {
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .digital-clock {
    font-size: 24px;
  }

  .clock-s {
    color: var(--text-secondary);
  }

  .college-name {
    font-size: 12px;
  }

  .college-name.native {
    font-size: 11px;
  }

  main {
    padding: 40px 20px 80px;
  }

  .hero {
    align-items: center;
    text-align: center;
  }

  .hero-layout {
    flex-direction: column;
    gap: 32px;
  }

  .hero-copy h1 {
    font-size: 36px;
    line-height: 0.95;
    text-align: center;
  }

  .hero-copy h1 .accent {
    font-size: 20px;
    margin-top: 12px;
  }

  .subtext {
    font-size: 16px;
    margin-bottom: 24px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .calendar-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 48px;
    transform: translateX(0);
  }

  .hero-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .filters {
    width: 100%;
    flex-direction: column;
    gap: 16px;
  }

  .filter input,
  .filter select {
    width: 100%;
    min-width: 0;
  }

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

  .pyq-card {
    padding: 20px;
  }


}

/* View Transitions API - Flashy Theme Toggle */
::view-transition-group(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
  display: block;
}

/* Force the new view to be on top and clipped by the circle */
body.transition-theme::view-transition-new(root) {
  z-index: 10000;
}

body.transition-theme::view-transition-old(root) {
  z-index: 1;
}

/* Ripple effect utility for toggle button */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.2;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-pulse 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-pulse {
  to {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}