:root {
  --primary-color: #0b6f73;
  --dark-color: #000;
  --light-bg: #f2f2f2;
  --card-radius: 20px;
  --section-padding: clamp(60px, 8vw, 120px);
  --text-large: clamp(32px, 5vw, 56px);
  --text-medium: clamp(22px, 3vw, 40px);
  --text-small: clamp(16px, 2vw, 20px);
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: var(--light-bg);
  color: var(--dark-color);
  padding-top: 80px;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--primary-color);
  padding: 16px clamp(20px, 5vw, 60px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav .logo {
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.nav .nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
  background: black;
  padding: 10px 22px;
  border-radius: 30px;
  align-items: center;
}

.nav .nav-links a {
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav .nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 6px #0bf, 0 0 12px #0bf;
}

.nav .nav-links .active a {
  color: var(--primary-color);
}

.hero {
  min-height: 420px;
  background-image: url("images/background2.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px;
}

.hero h1 {
  font-size: var(--text-large);
  color: white;
  background: rgba(0,0,0,0.6);
  padding: 14px 28px;
  opacity: 0;
  transform: translateY(-50px);
  animation: slideDown 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hero button {
  padding: 10px 24px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
}

.intro,
.about {
  background: white;
  padding: var(--section-padding);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.intro h1,
.about h2 {
  font-size: var(--text-large);
}

.intro h4,
.about p {
  font-size: var(--text-small);
}

.intro-image,
.about-image {
  width: 100%;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--card-radius);
}

.intro-image {
  background-image: url("images/me.png");
}

.about-image {
  width: 100%;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  border-radius: var(--card-radius);
  background-image: url("images/me.png");
  filter: grayscale(100%);
  transform: scale(0.8) rotateY(15deg);
  opacity: 0;
  animation: aboutImageIntro 1s ease forwards;
}

.dark-section {
  background: var(--dark-color);
  color: white;
  padding: var(--section-padding);
  text-align: center;
}

.dark-section h2 {
  font-size: var(--text-medium);
  margin-bottom: 40px;
  transition: text-shadow 0.3s ease;
}

.dark-section h2:hover {
  text-shadow: 0 0 12px #0bf, 0 0 20px #0bf;
}

.flex-row {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 6vw, 100px);
  flex-wrap: wrap;
}

.card {
  width: 250px;
  height: 310px;
  border-radius: var(--card-radius);
  background-image: url("images/perfume1.png");
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.dark-section .flex-row .card {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.dark-section .flex-row .card.visible {
  transform: scale(1);
  opacity: 1;
}

.aspirations {
  background: rgb(214, 231, 229);
  padding: var(--section-padding);
  text-align: center;
}

.aspirations h2 {
  font-size: var(--text-medium);
  margin-bottom: 50px;
  transition: text-shadow 0.3s ease;
}

.aspirations h2:hover {
  text-shadow: 0 0 12px #0bf, 0 0 20px #0bf;
}

.aspiration-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.aspiration-card {
  width: 280px;
  height: 360px;
  border-radius: var(--card-radius);
  background-size: cover;
  background-position: center;
  background-image: url("images/parents.jpeg");
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.aspiration-card:hover {
  transform: scale(1.05);
}

.project-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}

.project-item {
  width: 300px;
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-image {
  width: 100%;
  height: 200px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.projects-dark .project-image:hover {
  box-shadow: 0 0 20px 4px rgba(0,191,255,0.6);
  transform: scale(1.03);
}

.projects-light .project-image:hover {
  box-shadow: 0 0 20px 4px rgba(0,191,255,0.4);
  transform: scale(1.03);
}

.projects-intro {
  background: rgb(214, 231, 229);
  color: black;
  padding: var(--section-padding);
  text-align: center;
}

.projects-intro-box {
  max-width: 800px;
  margin: 0 auto;
}

.projects-intro-box h1 {
  transform: scale(0.8);
  opacity: 0;
  animation: projectsHeadingIntro 0.8s ease forwards;
  animation-delay: 0.2s;
}

.projects-dark {
  background: black;
  color: white;
  padding: var(--section-padding);
  text-align: center;
}

.projects-light {
  background: white;
  color: black;
  padding: var(--section-padding);
  text-align: center;
}

.projects-dark h2,
.projects-light h2 {
  font-size: var(--text-medium);
  margin-bottom: 50px;
}

.pd-1 { background-image: url("images/pitchdeck1.png"); }
.pd-2 { background-image: url("images/pitchdeck2.png"); }
.pd-3 { background-image: url("images/pitchdeck3.png"); }
.ow-1 { background-image: url("images/other1.png"); }
.ow-2 { background-image: url("images/other2.png"); }
.ow-3 { background-image: url("images/other3.png"); }

.stat h3 {
  font-size: clamp(20px, 4vw, 40px);
  font-weight: lighter;
  margin-bottom: 6px;
}

.stat p {
  font-size: 16px;
}

.hamburger {
  font-size: 24px;
  color: white;
  cursor: pointer;
  display: none;
}

.rotate-card {
  transform: rotateY(180deg) scale(1.05) !important;
  transition: transform 0.6s ease;
}

footer {
  background: #0b6f73;
  color: white;
  text-align: center;
  padding: 30px;
}

/* ── Account section ── */
.account-section {
  max-width: 500px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.account-section h2 {
  text-align: center;
  margin-bottom: 20px;
}

.account-section form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-section input,
.account-section select,
.account-section textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

.account-section button {
  padding: 10px;
  border: none;
  background: black;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.account-section button:hover {
  background: #333;
}

.radio-group {
  display: flex;
  gap: 10px;
}

/* ── Logout button ── */
.logout-btn {
  background: black;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
}

.logout-btn:hover {
  background: #333;
}

/* ── Profile section ── */
.profile-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 80px 20px 40px 20px;
}

.profile-container {
  width: 100%;
  max-width: 900px;
  background: #fff;
  border-radius: 20px;
  padding: 40px 35px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.profile-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
}

.profile-section form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-row label {
  flex: 1 0 150px;
  font-weight: 500;
  font-size: 16px;
  color: #000;
}

.form-row input,
.form-row select {
  flex: 2 0 250px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: #0b6f73;
  box-shadow: 0 0 8px rgba(11,111,115,0.4);
}

.checkbox-group,
.radio-group,
.grade-group {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-section button {
  background-color: #0b6f73;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.profile-section button:hover {
  background-color: #089291;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,111,115,0.4);
}

/* ── Login page ── */
.login-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}

.login-left {
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease both;
}

.login-left::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,111,115,0.3) 0%, transparent 70%);
  bottom: -120px;
  right: -120px;
  pointer-events: none;
}

.login-left .eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #089291;
  margin-bottom: 28px;
}

.login-left h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  color: white;
}

.login-left h2 em {
  font-style: italic;
  color: #089291;
}

.left-bottom {
  position: relative;
  z-index: 1;
}

.left-divider {
  width: 36px;
  height: 2px;
  background: #0b6f73;
  border-radius: 2px;
  margin-bottom: 14px;
}

.left-bottom p {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
  background: #f2f2f2;
  animation: fadeUp 0.7s 0.12s ease both;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  text-align: left;
}

.login-card .card-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0b6f73;
  margin-bottom: 10px;
}

.login-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.login-subtext {
  font-size: 14px;
  color: #888;
  margin-bottom: 36px;
  line-height: 1.5;
}

.login-field {
  margin-bottom: 20px;
}

.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}

.login-field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: #000;
  background: #f2f2f2;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.login-field input::placeholder {
  color: #bbb;
}

.login-field input:focus {
  border-color: #0b6f73;
  box-shadow: 0 0 0 4px rgba(11,111,115,0.12);
  background: white;
}

.btn-login {
  margin-top: 8px;
  width: 100%;
  padding: 14px;
  background: #000;
  color: white;
  border: none;
  border-radius: 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-login::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0b6f73;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.btn-login span {
  position: relative;
  z-index: 1;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11,111,115,0.35);
}

.btn-login:hover::after {
  transform: translateX(0);
}

.login-footer {
  margin-top: 28px;
  font-size: 12px;
  color: #bbb;
  text-align: center;
}

/* ── Animations ── */
@keyframes slideDown {
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes aboutImageIntro {
  0%   { opacity: 0; transform: scale(0.8) rotateY(15deg); filter: grayscale(100%); }
  100% { opacity: 1; transform: scale(1) rotateY(0deg);    filter: grayscale(0%); }
}

@keyframes projectsHeadingIntro {
  0%   { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.about-text h2 {
  opacity: 0;
  transform: translateX(-100px);
  animation: slideInLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}

.intro-text h1 {
  display: inline-block;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInName 1s ease-out forwards;
  animation-delay: 0.3s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .intro,
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .nav {
    flex-direction: column;
    gap: 15px;
  }

  .nav .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 350px;
  }

  .flex-row {
    gap: 40px;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-left {
    display: none;
  }

  .login-right {
    padding: 40px 24px;
  }

  .login-card {
    padding: 36px 28px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row label,
  .form-row input,
  .form-row select {
    flex: 1 0 100%;
  }

  .checkbox-group,
  .radio-group,
  .grade-group {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 18px;
  }

  .nav .nav-links {
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .hero {
    min-height: 300px;
  }

  .card,
  .project-item {
    width: 100%;
  }

  .project-row {
    grid-template-columns: 1fr;
  }

  .profile-section {
    padding: 60px 10px 30px 10px;
  }

  .profile-container {
    padding: 25px 20px;
  }
}
/* ── Login error ── */
.login-error {
  color: #c0392b;
  font-size: 13px;
  margin-bottom: 10px;
  display: block;
}

/* ── Field errors ── */
.field-error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.input-wrap {
  flex: 2 0 250px;
  display: flex;
  flex-direction: column;
}

.input-wrap input,
.input-wrap select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
  border-color: #0b6f73;
  box-shadow: 0 0 8px rgba(11,111,115,0.4);
}

/* ── Save confirmation ── */
.save-msg {
  background: #e6f4f1;
  color: #0b6f73;
  border: 1px solid #0b6f73;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

/* ── Checkbox label ── */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}