/* ================== */
/* Color Variables */
/* ================== */
:root {
  --bg-color: #fff;
  --text-color: #111;
  --primary-color: #00aaff;
  --secondary-color: #e30613;
  --shadow-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
  --bg-color: #121212;
  --text-color: #ddd;
  --primary-color: #3399ff;
  --secondary-color: #ff4444;
  --shadow-color: rgba(0,0,0,0.6);
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala&display=swap');

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
  background: var(--bg-color);
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 2px 6px var(--shadow-color);
}

.header-left .logo {
  height: 80px;
  max-width: 160px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-color);
  outline: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-color);
}

/* Dark mode toggle button styling */
#themeToggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  margin-left: 20px;
  transition: color 0.3s;
}

#themeToggle:hover,
#themeToggle:focus {
  color: var(--primary-color);
  outline: none;
}

main {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 5vw;
}

.main-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.main-left {
  flex: 1.2;
  min-width: 270px;
  text-align: center;
}

.quote {
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
  position: relative;
}

.quote-mark {
  font-family: 'Times New Roman', serif;
  color: var(--secondary-color);
  font-size: 3.5rem;
  font-weight: 900;
  vertical-align: top;
}

.quote-mark-right {
  float: right;
  margin-top: -1rem;
  margin-right: 7rem;
}

.quote-title {
  color: var(--primary-color);
  font-family: 'FM Basuru', sans-serif;
  font-size: 5.5rem;
  font-weight: 900;
  margin: 0.2em 0;
}

.typing-text {
  display: inline-block;
  white-space: nowrap;
}

.quote-sub {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-top: 10px;
}

.quote-sub .red {
  color: var(--secondary-color);
}

.main-right {
  flex: 1;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-img-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  margin-bottom: 12px;
  margin-top: -20px;
  border: 10px solid transparent;
  border-left-color: var(--secondary-color);
  border-radius: 50%;
  box-sizing: border-box;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-details {
  text-align: center;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 600;
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 32px 0 18px 0;
  color: var(--secondary-color);
}

.red {
  color: var(--secondary-color);
}

.blue {
  color: var(--primary-color);
}

.green {
  color: #1ebc3b;
}

.bold {
  font-weight: 900;
}

/* Timetable */
.timetable-section {
  margin-bottom: 32px;
}

.timetable-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.timetable-card {
  border: 3.5px solid var(--primary-color);
  border-radius: 18px;
  padding: 24px 36px;
  min-width: 240px;
  text-align: center;
  background: var(--bg-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  flex: 1 1 240px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  color: var(--text-color);
}

.timetable-card:hover,
.timetable-card:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  outline: none;
}

.timetable-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: block;
}

.timetable-sub {
  font-size: 1.3rem;
  color: var(--text-color);
  margin-bottom: 8px;
  display: block;
}

.timetable-time {
  font-size: 1.2rem;
  color: #666;
}

/* Plan Section */
.plan-section {
  margin-bottom: 32px;
  color: var(--text-color);
  background: var(--bg-color);
}

.plan-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-color);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

/* Join Section */
.join-section {
  margin-bottom: 32px;
  color: var(--text-color);
  background: var(--bg-color);
}

.join-box {
  border: 3.5px solid var(--primary-color);
  border-radius: 16px;
  padding: 18px 24px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--text-color);
}

.join-phone {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.join-phone:hover,
.join-phone:focus {
  text-decoration: underline;
  color: #007acc;
  outline: none;
}

/* Past Papers */
.pastpapers-section {
  margin-bottom: 32px;
  color: var(--text-color);
  background: var(--bg-color);
}

.pastpapers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.fullstackpapers-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.pastpaper-btn {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 14px 28px;
  text-decoration: none;
  min-width: 90px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.fullstackpapers-btn {
  background: var(--primary-color);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 10px;
  padding: 14px 28px;
  text-decoration: none;
  min-width: 90px;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.pastpaper-btn:hover,
.pastpaper-btn:focus {
  background: var(--secondary-color);
  transform: scale(1.05);
  outline: none;
}

/* Footer */
footer {
  background: var(--bg-color);
  padding: 32px 0 24px;
  text-align: center;
  border-top: 1px solid #eee;
  color: var(--text-color);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.footer-social span {
  color: var(--secondary-color);
  margin-right: 12px;
}

.footer-social a {
  display: inline-block;
  margin: 4px;
}

.footer-social img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  transition: transform 0.3s;
}

.footer-social img:hover,
.footer-social img:focus {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--primary-color));
  outline: none;
}

footer .copyright-text {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Responsive */

/* Hide hamburger on desktop, show on mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
  }

  header {
    padding: 10px 3vw;
  }

  main {
    margin: 16px auto;
    padding: 0 3vw;
  }

  .main-content {
    flex-direction: column;
    gap: 30px;
  }

  .main-left, .main-right {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .quote-title {
    font-size: 3.5rem;
    margin-bottom: 8px;
  }

  .quote-sub {
    font-size: 2rem;
  }

  .profile-img-wrapper {
    width: 220px;
    height: 220px;
    margin-top: -10px;
  }

  .profile-img {
    width: 100%;
    height: 100%;
  }

  .timetable-cards {
    flex-direction: column;
    gap: 20px;
  }

  .timetable-card {
    min-width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .plan-text {
    font-size: 1rem;
    max-width: 90vw;
  }

  .join-box {
    max-width: 90vw;
  }

  .pastpapers-grid {
    justify-content: center;
  }
}

/* Show nav-links and hide hamburger when menu is open on mobile */
.nav-links.mobile-active {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 70px;
  right: 5vw;
  left: 5vw;
  background: var(--bg-color);
  padding: 16px 0;
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
  z-index: 100000;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
}

.nav-links.mobile-active a {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  color: var(--text-color);
}

.nav-links.mobile-active a:last-child {
  border-bottom: none;
}

/* Typography Sinhala font example */
.sinhala-text {
  font-family: 'Noto Sans Sinhala', sans-serif;
}

/* ========================= */
/* ✨ Animations & Effects ✨ */
/* ========================= */

/* Fade in from bottom */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide in from left */
.slide-in {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease-out;
}
.slide-in.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom in title (e.g., "සොඳුරුතම") */
.quote-title {
  animation: popIn 0.9s ease-out;
}
@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Zoom for subtitle */
.quote-sub {
  animation: zoomInQuote 0.8s ease-out forwards;
}
@keyframes zoomInQuote {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating up details */
.profile-details {
  animation: floatUp 1.2s ease-out forwards;
  animation-delay: 1s;
  opacity: 0;
}
@keyframes floatUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Logo slide in */
.logo {
  animation: slideLeftLogo 0.8s ease-out forwards;
}
@keyframes slideLeftLogo {
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Nav slide down */
header nav {
  animation: slideDown 0.8s ease-out forwards;
}
@keyframes slideDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Footer icons hover glow */
.footer-social img:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--primary-color));
  transition: 0.3s;
}

/* Timetable cards scroll in */
.timetable-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.timetable-card.visible {
  opacity: 1;
  transform: translateY(0);
}










.snowflake {
  position: fixed;
  top: 0;
  z-index: 9999;
  user-select: none;
  cursor: default;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  color: white; /* Change color here */
}

@keyframes snowfall {
  0% { transform: translateY(-10px); }
  100% { transform: translateY(100vh); }
}


