:root {
  --bg: #141414;
  --header-bg: #1d1d1d;
  --white: #feffff;
  --border: #feffff;
  --card-bg: #141414;
  --card-opacity: 0.84;
  --shadow: 0px 4px 8px 3px rgba(0,0,0,0.15), 0px 1px 3px 0px rgba(0,0,0,0.3);
  --font: 'Georgia', 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Header --- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 85px;
  padding: 0 40px;
  background: var(--header-bg);
  border-bottom: 3px solid var(--border);
}

.header-title {
  font-size: 57px;
  font-weight: 400;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}

.header-title:hover {
  opacity: 0.85;
}

/* --- Contact Dropdown --- */

.contact-wrapper {
  position: relative;
}

.contact-btn {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.contact-btn:hover {
  opacity: 0.85;
}

.contact-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: var(--header-bg);
  border: 1px solid var(--border);
  padding: 16px 24px;
  min-width: 260px;
  z-index: 200;
  box-shadow: var(--shadow);
}

.contact-dropdown.open {
  display: block;
}

.contact-dropdown a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  padding: 8px 0;
  font-family: var(--font);
  opacity: 0.9;
}

.contact-dropdown a:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-dropdown a + a {
  border-top: 1px solid rgba(254, 255, 255, 0.15);
}

/* --- Landing Page --- */

.landing {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 85px;
}

.logo-container {
  margin-top: 60px;
  margin-bottom: 50px;
}

.logo-container img {
  width: 300px;
  height: auto;
  border-radius: 80px;
  border: 1px solid var(--border);
}

.badge {
  position: absolute;
  top: 100px;
  right: 30px;
  width: 200px;
  height: auto;
  border-radius: 25px;
  border: 5px solid #1f1f21;
  opacity: 0.7;
}

/* --- Cards --- */

.cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 40px;
  max-width: 1200px;
}

.card {
  width: 340px;
  min-height: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  opacity: var(--card-opacity);
  padding: 30px 28px;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 8px 30px rgba(254, 255, 255, 0.08), 0 0 60px rgba(254, 255, 255, 0.04);
  opacity: 1;
}

.card-title {
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 20px;
}

.card-tagline {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.8;
  font-weight: 400;
}

/* Floating drift animation */
.card:nth-child(1) { animation: float 6s ease-in-out infinite; }
.card:nth-child(2) { animation: float 7s ease-in-out 1s infinite; }
.card:nth-child(3) { animation: float 8s ease-in-out 2s infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.card:nth-child(1):hover,
.card:nth-child(2):hover,
.card:nth-child(3):hover {
  animation: none;
  transform: translateY(-12px) scale(1.03);
}

/* --- Article Page --- */

.article-page {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.article-container {
  width: 100%;
  max-width: 860px;
  background: rgba(20, 20, 20, 0.92);
  border: 1px solid rgba(254, 255, 255, 0.3);
  padding: 60px 60px 80px;
  box-shadow: var(--shadow);
  margin: 0 24px;
}

.article-container h1 {
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 12px;
}

.article-container .tagline {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 40px;
  font-style: italic;
}

.article-container hr {
  border: none;
  border-top: 1px solid rgba(254, 255, 255, 0.15);
  margin: 36px 0;
}

.article-container h2 {
  font-size: 30px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-container h3 {
  font-size: 22px;
  font-weight: 400;
  margin-top: 28px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.article-container p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 16px;
  opacity: 0.92;
}

.article-container strong {
  font-weight: 700;
  opacity: 1;
}

.article-container ul, .article-container ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-container li {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 8px;
  opacity: 0.92;
}

.article-container a {
  color: var(--white);
  text-decoration: underline;
  opacity: 0.85;
}

.article-container a:hover {
  opacity: 1;
}

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(254, 255, 255, 0.15);
  font-size: 15px;
  opacity: 0.6;
}

.article-footer a {
  color: var(--white);
  text-decoration: none;
  margin: 0 8px;
}

.article-footer a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* --- Thesis section on landing --- */

.thesis {
  max-width: 700px;
  text-align: center;
  margin-top: 60px;
  padding: 0 30px 80px;
}

.thesis p {
  font-size: 18px;
  line-height: 1.75;
  opacity: 0.75;
}

.thesis .stage {
  margin-top: 24px;
  font-size: 14px;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Mobile Responsive --- */

@media (max-width: 900px) {
  .cards {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }
  .card {
    width: 100%;
    max-width: 420px;
    min-height: auto;
  }
  .badge {
    display: none;
  }
}

@media (max-width: 768px) {
  .header {
    height: 65px;
    padding: 0 20px;
  }
  .header-title {
    font-size: 32px;
  }
  .contact-btn {
    font-size: 20px;
  }
  .landing {
    padding-top: 65px;
  }
  .logo-container {
    margin-top: 40px;
    margin-bottom: 30px;
  }
  .logo-container img {
    width: 200px;
    border-radius: 55px;
  }
  .card-title {
    font-size: 32px;
  }
  .card {
    animation: none !important;
  }
  .article-page {
    padding-top: 90px;
    padding-bottom: 40px;
  }
  .article-container {
    padding: 30px 24px 50px;
    margin: 0 12px;
  }
  .article-container h1 {
    font-size: 32px;
  }
  .article-container h2 {
    font-size: 24px;
  }
  .article-container h3 {
    font-size: 19px;
  }
  .article-container p,
  .article-container li {
    font-size: 16px;
  }
}
