/* CSS for index.html */
body {
  font-family: "Quicksand", sans-serif;
  text-align: center;
}

header a,
.profile-img,
.parent svg,
.project-item,
.contact-form,
.contact-submit,
.login-button,
.logout-button,
.nav-link {
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

header a:hover {
  transform: translateY(-2px);
}

html {
    background: rgb(0, 0, 0);
    scroll-behavior: smooth;
}

#h2pro {
  margin-top: 30px;
  text-decoration: none;
}

#pro {
  text-decoration:underline;
  text-decoration-color: aqua;
  text-underline-offset: 6px;
}

#aline {
  border: dotted #eaf6f6 6px;
  border-bottom: none;
  width: 20%;
  margin: 40px auto;
}

.middle-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

img {
  max-width: 100%;
  height: auto;
}

.profile-img {
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.profile-img:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 255, 255, 0.16);
}

.parent {
  display: grid;
  grid-template-columns: 120px 1fr;
  max-width: 900px;
  width: 90%;
  margin: 80px auto 0 auto;
  text-align: left;
  row-gap: 2rem;
  column-gap: 1.5rem;
  align-items: center;
}

div > h2 {
  text-decoration: underline;
  color: aqua;
}

.parent > div {
  margin: 20px;
}

.parent svg {
  color: aqua;
}

.parent svg:hover {
  color: #9ffcff;
  filter: drop-shadow(0 0 16px rgba(0, 255, 255, 0.42));
  transform: translateY(-5px) rotate(-3deg);
}

.lead { 
  font-size: 1.5rem;
}

div > p {
  font-size: 1.1rem;
}

#reach-out {
  color:blueviolet;
  text-decoration: none;
  margin-bottom: 30px;
}


.contact-me > h3 {
  margin-bottom: 30px;
}

.contact-form {
  width: min(92%, 620px);
  margin: 0 auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.contact-form:hover {
  border-color: rgba(0, 255, 255, 0.28);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: #eaf6f6;
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: white;
  font: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 3px solid rgba(0, 255, 255, 0.2);
  border-color: aqua;
}

.form-row textarea {
  resize: vertical;
}

.contact-submit {
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 12px 18px;
  background-color: #5b3df5;
  color: white;
  font-weight: 700;
}

.contact-submit:hover {
  background-color: #4a2fd1;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(91, 61, 245, 0.28);
}

.form-success {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(0, 255, 255, 0.08);
  color: #9ffcff;
  font-weight: 700;
  text-align: center;
}

.btn-info {
  background-color: #5b3df5;
  color: white;
  border: none;
}

.btn-info:hover {
  background-color: #4a2fd1;
}

.education {
  display: flex;
  justify-content: space-around;
}

.projects {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.project-item {
  display: block;
  flex: 0 1 300px;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.project-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.project-item:hover {
  border-color: aqua;
  box-shadow: 0 18px 40px rgba(0, 255, 255, 0.12);
  transform: translateY(-6px);
}

.project-item:hover img {
  transform: scale(1.08);
}

.nav-link:hover {
  color: aqua !important;
  transform: translateY(-2px);
}

.middle-container > div,
.skills,
.container:has(.education),
.container:has(.projects),
.contact-me {
  animation: fadeUp 560ms ease both;
}

.middle-container > div:nth-child(2) {
  animation-delay: 90ms;
}

.skills {
  animation-delay: 160ms;
}

.container:has(.education) {
  animation-delay: 230ms;
}

.container:has(.projects) {
  animation-delay: 300ms;
}

.contact-me {
  animation-delay: 370ms;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.site-body {
  margin: 0;
  background: #08090d;
  color: #f6fbff;
  text-align: left;
}

.site-body main {
  width: min(92%, 1120px);
  margin: 0 auto;
}

.site-header {
  width: min(92%, 1120px);
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-link,
.site-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  gap: 12px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-link img {
  border-radius: 8px;
}

.site-nav {
  gap: 8px;
}

.site-nav a,
.site-footer a {
  border-radius: 8px;
  padding: 8px 12px;
  color: #d8e6ea;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  background: rgba(142, 238, 255, 0.1);
  color: #8eeeff;
  transform: translateY(-2px);
}

.hero-section {
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 52px;
  padding: 72px 0 56px;
}

.hero-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.site-body #h2pro {
  margin: 18px 0 0;
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  text-decoration: none;
}

.site-body #pro {
  text-decoration: underline;
  text-decoration-color: aqua;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.section-kicker {
  margin: 0 0 10px;
  color: #8eeeff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-location {
  margin: 10px 0 0;
  color: #eaf6f6;
  font-size: 1.25rem;
  font-weight: 700;
}

.hero-summary {
  max-width: 640px;
  margin: 24px 0 0;
  color: #d8e6ea;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.primary-link {
  background: #5b3df5;
  color: #ffffff;
}

.primary-link:hover {
  background: #4a2fd1;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(91, 61, 245, 0.28);
}

.secondary-link {
  border: 1px solid rgba(142, 238, 255, 0.34);
  color: #8eeeff;
}

.secondary-link:hover {
  border-color: rgba(142, 238, 255, 0.64);
  background: rgba(142, 238, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.site-body .profile-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 1px solid rgba(142, 238, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.page-section {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.site-body .section-heading h2,
.site-body .section-heading p,
.site-body .info-card h3,
.site-body .education-item h3,
.site-body .project-item h3 {
  text-decoration: none;
}

.site-body .section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 700;
}

.site-body .section-heading p {
  color: #d8e6ea;
  line-height: 1.65;
}

.skills-grid,
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.education-item,
.site-body .project-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.info-card,
.education-item {
  padding: 22px;
}

.site-body .info-card h3,
.site-body .education-item h3,
.site-body .project-item h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.28rem;
  font-weight: 700;
}

.site-body .info-card p,
.site-body .education-item p,
.site-body .project-item p {
  margin: 0;
  color: #d8e6ea;
  line-height: 1.65;
}

.site-body .projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.site-body .project-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 18px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.site-body .project-item:hover {
  border-color: rgba(142, 238, 255, 0.5);
  box-shadow: 0 18px 42px rgba(0, 255, 255, 0.1);
  transform: translateY(-5px);
}

.site-body .project-item img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.project-tags span {
  border: 1px solid rgba(142, 238, 255, 0.24);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(142, 238, 255, 0.08);
  color: #8eeeff;
  font-size: 0.85rem;
  font-weight: 700;
}

.contact-section {
  padding-bottom: 78px;
}

.contact-section .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-body .contact-form {
  width: min(100%, 680px);
  margin: 0 auto;
}

.site-footer {
  width: min(92%, 1120px);
  margin: 0 auto;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d8e6ea;
}

.site-footer p {
  width: 100%;
  margin: 4px 0 0;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-section,
  .skills-grid,
  .education-grid,
  .site-body .projects {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    gap: 34px;
    padding: 54px 0 44px;
  }

  .hero-photo-wrap {
    justify-content: flex-start;
  }
}

.admin-body {
  min-height: 100vh;
  background: #08090d;
  color: #f6fbff;
}

.admin-shell {
  width: min(92%, 1050px);
  margin: 0 auto;
  padding: 48px 0;
  text-align: left;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-header h1 {
  margin: 0;
  font-size: 2.4rem;
}

.admin-kicker {
  margin: 0 0 6px;
  color: #8eeeff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.message-count {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf6f6;
  font-weight: 700;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-actions form {
  margin: 0;
}

.logout-button {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf6f6;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.logout-button:hover {
  border-color: rgba(142, 238, 255, 0.42);
  background: rgba(142, 238, 255, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

.message-list {
  display: grid;
  gap: 16px;
}

.message-card,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.message-card {
  padding: 20px;
}

.message-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.message-card h2,
.empty-state h2 {
  margin: 0;
  color: #ffffff;
  text-decoration: none;
}

.message-card a {
  color: #8eeeff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.message-card time {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
  white-space: nowrap;
}

.message-text {
  margin: 0;
  color: #d8e6ea;
  line-height: 1.6;
  white-space: pre-wrap;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 0;
}

.delete-message-button {
  border: 1px solid rgba(255, 94, 94, 0.48);
  border-radius: 8px;
  padding: 9px 16px;
  background: rgba(255, 94, 94, 0.1);
  color: #ffb3b3;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.delete-message-button:hover {
  border-color: rgba(255, 94, 94, 0.78);
  background: rgba(255, 94, 94, 0.18);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 94, 94, 0.14);
}

.delete-message-button:focus-visible {
  outline: 3px solid rgba(255, 94, 94, 0.28);
  outline-offset: 3px;
}

.empty-state {
  padding: 36px;
  text-align: center;
}

.empty-state p {
  margin: 10px 0 0;
  color: #d8e6ea;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #08090d;
  color: #f6fbff;
}

.login-shell {
  width: min(92%, 420px);
}

.login-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  text-align: left;
}

.login-card h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 2rem;
}

.login-card label {
  color: #eaf6f6;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  font: inherit;
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.login-card input:focus {
  outline: 3px solid rgba(0, 255, 255, 0.2);
  border-color: aqua;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 94, 94, 0.38);
  border-radius: 8px;
  background: rgba(255, 94, 94, 0.1);
  color: #ffb3b3;
  font-weight: 700;
}

.login-button {
  width: 100%;
  border: none;
  border-radius: 8px;
  margin-top: 8px;
  padding: 12px 18px;
  background-color: #5b3df5;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-button:hover {
  background-color: #4a2fd1;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(91, 61, 245, 0.28);
}

.login-button:focus-visible {
  outline: 3px solid rgba(91, 61, 245, 0.34);
  outline-offset: 3px;
}

@media (max-width: 768px) {

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    padding: 8px 6px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .site-body #h2pro {
    font-size: 1.55rem;
  }

  .hero-summary {
    font-size: 1rem;
  }

  .site-body .profile-img {
    width: 170px;
    height: 170px;
  }

  .page-section {
    padding: 44px 0;
  }

  .site-body .section-heading h2 {
    font-size: 1.8rem;
  }

  .site-body .project-item {
    grid-template-columns: 1fr;
  }

  .site-body .project-item img {
    justify-self: start;
  }

  /* Skills stack vertically */
  .parent {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .parent svg {
    margin: 0 auto;
    display: block;
  }

  /* Fonts smaller */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .lead { font-size: 1.1rem; }
  p { font-size: 1rem; }

  /* Profile image smaller */
  .profile-img {
    width: 140px;
  }

  /* Section spacing */
  .px-4, .py-5, .my-5 {
    padding: 2rem 1rem !important;
    margin: 2rem 0 !important;
  }

  /* Contact button full width */
  .contact-me .btn-info {
    width: 100%;
    max-width: 300px;
  }
  
  .education {
    justify-content: center;
    display: block;
  }

  .admin-shell {
    padding: 30px 0;
  }

  .admin-header,
  .message-card-header {
    display: block;
  }

  .admin-header-actions {
    display: flex;
    margin-top: 14px;
  }

  .message-count {
    display: inline-block;
  }

  .message-card time {
    display: block;
    margin-top: 8px;
    white-space: normal;
  }
}
