/* =====================
   RESET & BASE
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-width: 1080px;
  font-family: Georgia, serif;
  overflow: hidden; /* prevent scrollbars during animation */
}


/* =====================
   VIEWS (full screen pages)
   ===================== */
.view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 70px; /* offset for nav */
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1),
              opacity 0.6s ease;
}

/* Default: all tabs hidden off screen */
.view.hidden-right  { transform: translateX(100%);  opacity: 0; pointer-events: none; }
.view.hidden-left   { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.view.hidden-bottom { transform: translateY(100%);  opacity: 0; pointer-events: none; }
.view.hidden-top    { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* Active view: centered and visible */
.view.active {
  transform: translate(0, 0);
  opacity: 1;
  pointer-events: all;
}

/* =====================
   HERO VIEW
   ===================== */
#view-hero {
  background-color: #f5f5f5;
}

#view-hero h1 {
  font-size: 48px;
  margin-bottom: 12px;
  text-align: center;
}

#view-hero .subtitle {
  font-size: 20px;
  color: #555;
  margin-bottom: 60px;
  text-align: center;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.cta-btn {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #111;
  color: #fff;
  font-size: 22px;
  font-family: Georgia, serif;
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.cta-btn:hover {
  background-color: #333;
  transform: scale(1.03);
}

.cta-btn:active {
  transform: scale(0.97);
}

/* =====================
   ABOUT VIEW
   ===================== */
#view-about {
  background-color: #fff;
}

#view-about h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

#view-about p {
  font-size: 18px;
  color: #444;
  max-width: 600px;
  text-align: center;
  line-height: 1.7;
}

/* =====================
   PROJECTS VIEW
   ===================== */
#view-projects {
  background-color: #f5f5f5;
}

#view-projects h2 {
  font-size: 40px;
  margin-bottom: 40px;
}

.project-cards {
  display: flex;
  gap: 32px;
}

.project-card {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  width: 280px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.project-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

/* =====================
   CONTACT VIEW
   ===================== */
#view-contact {
  background-color: #111;
  color: #fff;
}

#view-contact h2 {
  font-size: 40px;
  margin-bottom: 24px;
}

#view-contact p {
  font-size: 18px;
  color: #aaa;
}

/* =====================
   BACK BUTTON (on each tab)
   ===================== */
.back-btn {
  margin-top: 40px; margin-bottom: 40px;
  padding: 12px 32px;
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
  font-size: 15px;
  font-family: Georgia, serif;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.back-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

#view-contact .back-btn:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}
