/* =========================
   DEFAULT LIGHT MODE
========================= */

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

body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: #fff8ec;
  color: #102033;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

body,
.navbar,
.panel,
.project-card,
.btn,
nav a,
.hero,
.hero p,
.fixed-line {
  transition: all 0.7s ease;
}

.navbar {
  height: 72px;
  padding: 0 46px;
  display: flex;
  align-items: center;
  background: rgba(255, 248, 236, 0.96);
  border-bottom: 1px solid rgba(197, 132, 32, 0.24);
}

.logo {
  color: #c98420;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}

.logo span {
  color: #102033;
}

/* PUSH NAV TO RIGHT */
nav {
  display: flex;
  gap: 56px;
  margin-left: auto;
  margin-right: 26px;
}

nav a {
  color: #102033;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 27px 0;
  transition: 0.3s ease;
}

nav a.active,
nav a:hover {
  color: #c98420;
  border-bottom: 3px solid #c98420;
}

/* THEME TOGGLE */
.theme-switch {
  width: 74px;
  height: 38px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.switch-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3c56d, #df9e29);
  border: 1px solid rgba(201, 132, 32, 0.35);
  transition: all 0.4s ease;
  box-shadow:
    inset 0 1px 3px rgba(255,255,255,0.04),
    0 0 14px rgba(35, 140, 255, 0.12);
}

.switch-thumb {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fffdf7, #ffe6ad);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(36px);
  transition:
    transform 0.4s ease,
    background 0.4s ease;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.28),
    inset 0 1px 2px rgba(255,255,255,0.7);
}

.icon-toggle {
  position: absolute;
  font-size: 15px;
  transition: all 0.35s ease;
}

.sun {
  color: #f4a100;
  opacity: 1;
  transform: translateY(0);
}

.moon {
  color: #16345f;
  opacity: 0;
  transform: translateY(-10px);
}

.hero {
  min-height: 610px;
  padding-top: 88px;
  height: 300px;

  background-image:
    linear-gradient(
      90deg,
      rgba(255,248,236,.96),
      rgba(255,248,236,.68),
      rgba(255,248,236,.18)
    ),
    url("../assets/images/hero_3_light.png");

  background-repeat: no-repeat;
  background-position: center center;
  background-size: max(1920px, 100%) auto;
  background-color: #fff8ec;

  transition: background 0.4s ease;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  margin-left: 70px;
}

.hero-title {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: -1.5px;
}

#rotating-headline {
  display: block;
  color: #102033;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#rotating-headline.fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.fixed-line {
  display: block;
  color: #c98420;
}

.hero p {
  max-width: 620px;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.7;
  color: #39485c;
}

.hero-buttons {
  margin-top: 34px;
  display: flex;
  gap: 18px;
}

.btn {
  padding: 17px 28px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.6px;
}

.btn.primary {
  background: #c98420;
  color: white;
  box-shadow: 0 0 28px rgba(201,132,32,.25);
}

.btn.secondary {
  color: #102033;
  border: 1px solid rgba(201,132,32,.3);
  background: rgba(255,255,255,.5);
}

.content-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.45fr;
  gap: 0;
  border-top: 1px solid rgba(59, 145, 255, 0.14);
}

.panel {
  padding: 38px 58px 48px;
  background: linear-gradient(180deg, #fff8ec, #f7ead4);
  border-right: 1px solid rgba(201,132,32,.16);
  transition: background 0.4s ease;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.section-title a,
.small-link,
.project-card a {
  color: #b87316;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 14px;
}

.paper {
  padding: 24px 0;
  border-top: 1px solid rgba(201,132,32,.16);
}

.paper h3 {
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.paper p {
  margin-top: 8px;
  color: #b87316;
  font-style: italic;
}

.paper span {
  display: block;
  margin-top: 10px;
  color: #69798c;
}

.recent-publications-message {
  padding: 24px 0;
  border-top: 1px solid rgba(201,132,32,.16);
  color: #69798c;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project-card {
  min-height: 255px;
  padding: 24px;
  background: linear-gradient(180deg, #fffdf8, #f6ead8);
  border: 1px solid rgba(201,132,32,.18);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(82,55,20,.08);
  transition: all 0.4s ease;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: rgba(201,132,32,.13);
  color: #c98420;
  font-size: 28px;
}

.project-card h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.project-card p {
  margin: 18px 0 28px;
  line-height: 1.65;
  color: #48596d;
  font-size: 14px;
}
