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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: #0a0a0a;
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  padding-top: 56px;
  overflow-x: hidden;
}

.full-screen-section {
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  background: #0a0a0a;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: #fff;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

nav a:hover {
  color: #fff;
}

nav a.active {
  color: #AADDFF;
  border-bottom-color: #AADDFF;
}

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(100vh - 56px);
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0a;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.nav-open {
    display: flex;
  }

  nav {
    justify-content: flex-end;
  }
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "title photo"
    "about photo";
  gap: 2.25rem;
  align-items: center;
}

.hero-title {
  grid-area: title;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
}

.photo-wrap {
  grid-area: photo;
  grid-row: 1 / -1;
}

.hero-about {
  grid-area: about;
}

.hero-about .about {
  color: #b0b0b0;
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0;
}

.hero-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  text-align: center;
}

.hero-footer .contact-row {
  gap: 2rem;
  justify-content: center;
}

.hero-footer .actions {
  gap: 1rem;
  justify-content: center;
}


.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.contact-row a,
.contact-row .contact-item {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.contact-row a:hover {
  color: #fff;
}

.contact-row .contact-item {
  cursor: default;
}

.contact-row .icon {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(170, 221, 255, 0.35);
  background: transparent;
  color: #ccc;
  transition: color 0.2s, border-color 0.2s;
}

.btn:hover {
  color: #fff;
  border-color: rgba(170, 221, 255, 0.6);
}

.btn-primary {
  border: 1px solid rgba(170, 221, 255, 0.35);
  background: transparent;
  color: #ccc;
}

.btn-primary:hover {
  color: #fff;
  border-color: rgba(170, 221, 255, 0.6);
}

.btn svg {
  width: 18px;
  height: 18px;
}

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

.photo-wrap img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(170, 221, 255, 0.6);
  box-shadow: 0 0 30px rgba(170, 221, 255, 0.15);
}

.page-section {
  min-height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2rem;
  color: #fff;
}

#tools .section-title {
  margin-bottom: 1.5rem;
}

#experience.page-section,
#education.page-section,
#projects.page-section {
  max-width: 1400px;
}

.page-section h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.section-placeholder {
  color: #888;
  font-size: 1rem;
}

#tools.page-section {
  padding-bottom: 2rem;
}

.tools-category {
  margin-bottom: 2.5rem;
}

.tools-category:last-child {
  margin-bottom: 0;
}

.tools-category-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 1rem;
}

.tools-carousel-wrapper {
  margin-top: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.tools-carousel {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: max-content;
  animation: tools-marquee 40s linear infinite;
  align-items: center;
}

.tools-carousel-set {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  align-items: center;
}

.tools-carousel-set .tool-item:last-child {
  margin-right: 1rem;
}

@keyframes tools-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  min-width: 92px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
}

.tool-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.tool-icon-fallback {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  text-align: center;
  line-height: 1.2;
  padding: 0 4px;
}

.tool-name {
  font-size: 0.8rem;
  color: #ccc;
  text-align: center;
  line-height: 1.2;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.experience-block {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 1.25rem 1.5rem 2.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience-header,
.experience-subheader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.experience-company {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.experience-position {
  font-style: italic;
  color: #ccc;
  font-size: 0.95rem;
}

.experience-meta,
.experience-dates {
  font-size: 0.9rem;
  color: #999;
  text-align: right;
  white-space: nowrap;
}

.experience-bullets {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style-type: disc;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.55;
}

.experience-bullets li {
  margin-bottom: 0.35rem;
}

.experience-badge {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(170, 221, 255, 0.9);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

.education-subtitle {
  color: #999;
  font-size: 1rem;
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.education-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.2s;
}

.education-card:hover {
  border-color: rgba(170, 221, 255, 0.4);
}

.education-logo {
  width: 90px;
  height: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.education-degree {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}

.education-minor {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ccc;
}

.education-school {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.education-dates {
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
}

.education-gpa {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0.75rem 0 0;
}

@media (max-width: 768px) {
  .education-grid {
    grid-template-columns: 1fr;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.project-card:hover {
  border-color: rgba(170, 221, 255, 0.4);
}

.project-image-link {
  display: block;
  line-height: 0;
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.project-description {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.5;
  margin: 0;
}

.project-tech {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.project-links .btn {
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
}

@media (max-width: 768px) {
  .project-content {
    padding: 1rem;
  }

  .project-image {
    height: 180px;
  }
}

.contact-form-wrapper {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(170, 221, 255, 0.5);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (min-width: 500px) {
  .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "name email"
      "subject subject"
      "message message"
      "submit submit";
    gap: 1rem;
  }

  .contact-form input[name="name"] {
    grid-area: name;
  }

  .contact-form input[name="email"] {
    grid-area: email;
  }

  .contact-form input[name="subject"] {
    grid-area: subject;
  }

  .contact-form textarea {
    grid-area: message;
  }

  .contact-form .contact-submit {
    grid-area: submit;
  }
}

.contact-submit {
  background: #0a0a0a;
  border: 2px solid #AADDFF;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  color: #AADDFF;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-submit:hover {
  background: rgba(170, 221, 255, 0.15);
  border-color: #77CCFF;
  color: #77CCFF;
}

.form-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.form-toast.form-toast-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.form-toast-success {
  background: #1a472a;
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #fff;
}

.form-toast-error {
  background: #3d1a1a;
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fff;
}

.form-toast p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.form-toast-close:hover {
  color: #fff;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: #666;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 768px) {
  body {
    padding-top: 52px;
  }

  nav {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }

  nav a {
    font-size: 0.8rem;
  }

  nav a.active {
    padding: 0.3rem 0.5rem;
  }

  .hero {
    padding: 1rem 1rem 1.5rem;
    max-width: 100%;
  }

  .hero-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "about";
    grid-template-rows: auto auto auto;
    gap: 1.25rem;
    width: 100%;
  }

  .photo-wrap {
    grid-row: auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-title {
    width: 100%;
    font-size: 1.75rem;
    text-align: center;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-about {
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .hero-about .about {
    font-size: 0.9rem;
    line-height: 1.6;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
  }

  .photo-wrap img {
    width: 90vw;
    max-width: 320px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
  }

  .hero-footer {
    margin-top: 1.25rem;
    gap: 1rem;
  }

  .hero-footer .contact-row {
    gap: 1.25rem;
    flex-direction: column;
  }

  .contact-row a,
  .contact-row .contact-item {
    font-size: 0.85rem;
  }

  .actions {
    gap: 0.5rem;
  }

  .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }

  .page-section {
    padding: 2.5rem 1.25rem;
  }

  .section-title {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
  }

  #tools .section-title {
    margin-bottom: 1rem;
  }

  .tools-category-title {
    font-size: 1rem;
  }

  .tool-item {
    min-width: 80px;
    padding: 0.75rem 0.5rem;
  }

  .tool-icon,
  .tool-icon-fallback {
    width: 40px;
    height: 40px;
  }

  .tool-name {
    font-size: 0.7rem;
  }

  .tools-carousel-set {
    gap: 1rem;
  }

  .experience-block {
    padding: 1rem 1.25rem 2rem;
  }

  .experience-header,
  .experience-subheader {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .experience-meta,
  .experience-dates {
    text-align: left;
    white-space: normal;
  }

  .experience-company {
    font-size: 1rem;
  }

  .experience-position {
    font-size: 0.9rem;
  }

  .experience-bullets {
    font-size: 0.85rem;
  }

  .education-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .education-card {
    padding: 1.25rem;
  }

  .education-degree {
    font-size: 1rem;
  }

  .education-school {
    font-size: 0.85rem;
  }

  .contact-title {
    font-size: 1.5rem;
  }

  .contact-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.75rem 1rem;
    font-size: 16px;
  }

  .form-toast {
    left: 1rem;
    right: 1rem;
    bottom: 1.5rem;
    max-width: none;
    transform: translateX(0) translateY(100px);
  }

  .form-toast.form-toast-visible {
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }

  .nav-toggle {
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  nav a {
    font-size: 0.75rem;
    padding: 0.5rem 0;
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content .about {
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-about .about {
    font-size: 0.85rem;
  }

  .photo-wrap img {
    max-width: 180px;
    width: 80vw;
  }

  .hero-footer .contact-row {
    font-size: 0.85rem;
  }

  .hero-footer .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .page-section {
    padding: 2rem 1rem;
  }

  .section-title {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
  }

  .experience-grid,
  .education-grid {
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-image {
    height: 160px;
  }

  .contact-form-wrapper {
    width: 100%;
  }

  .site-footer {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .tool-item {
    min-width: 72px;
    padding: 0.5rem 0.4rem;
  }

  .tool-icon,
  .tool-icon-fallback {
    width: 36px;
    height: 36px;
  }

  .tool-name {
    font-size: 0.65rem;
  }
}
