/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #544013;
  --secondary-color: #c85a14;
  --accent-color: #af8016;
  --accent-pink: #d8849e;
  --beige-light: #e8b594;
  --beige-warm: #e8b594;
  --orange-warm: #c85a14;
  --golden: #af8016;
  --brown-dark: #544013;
  --pink-soft: #d8849e;
  --text-dark: #544013;
  --text-light: #6b5d4a;
  --bg-light: #faf8f3;
  --bg-beige: #f5ede4;
  --bg-white: #ffffff;
  --border-color: #e8d4c4;
  --shadow: 0 4px 6px rgba(84, 64, 19, 0.1);
  --shadow-lg: 0 10px 30px rgba(84, 64, 19, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  min-height: 100vh;
  padding: 100px 0;
  display: flex;
  align-items: center;
  position: relative;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--orange-warm);
  margin: 20px auto;
  border-radius: 2px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
}

.social-link:hover {
  color: var(--orange-warm);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.nav-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brown-dark);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-warm);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--orange-warm);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--orange-warm);
}

/* Introduction Section */
.intro-section {
  padding: 0;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.intro-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.intro-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to right,
    rgba(84, 64, 19, 0.85) 0%,
    rgba(200, 90, 20, 0.75) 40%,
    rgba(200, 90, 20, 0.3) 70%,
    transparent 100%
  );
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.intro-text {
  max-width: 600px;
  color: white;
  animation: fadeInUp 1s ease;
}

.intro-name {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  line-height: 1.1;
  white-space: nowrap;
}

.intro-title-text {
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  font-family: "Inter", sans-serif;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10;
  animation:
    fadeInUp 1s ease 0.4s both,
    bounce 2s infinite 1.4s;
}

.scroll-indicator span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.scroll-arrow {
  font-size: 2rem;
  opacity: 0.9;
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* About Section */
.about-section {
  background: var(--bg-beige);
}

.about-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.about-image:hover {
  transform: scale(1.02);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  text-align: left;
}

/* Works Section */
.works-section {
  background: var(--bg-white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.work-card:nth-child(5) {
  grid-column: 1 / -1;
  max-width: 500px;
  justify-self: center;
}

.work-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.work-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.work-publication {
  color: var(--orange-warm);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.work-date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brown-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: auto;
  transition: all 0.3s ease;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.work-link:hover {
  color: var(--orange-warm);
  gap: 0.75rem;
}

.work-link svg {
  transition: transform 0.3s ease;
}

.work-link:hover svg {
  transform: translate(3px, -3px);
}

/* Experience Section */
.experience-section {
  background: var(--bg-beige);
}

.experience-content {
  max-width: 1100px;
  margin: 0 auto;
}

.experience-image-wrapper {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.experience-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.experience-image:hover {
  transform: scale(1.02);
}

.experience-item {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border-left: 4px solid var(--golden);
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.experience-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow);
}

.experience-role {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.experience-org {
  font-size: 1.1rem;
  color: var(--orange-warm);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience-period {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-description {
  color: var(--text-light);
  line-height: 1.7;
}

.resume-download {
  text-align: center;
  margin-top: 3rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--brown-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.resume-btn:hover {
  background: var(--orange-warm);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.resume-btn svg {
  transition: transform 0.3s ease;
}

.resume-btn:hover svg {
  transform: translateY(3px);
}

/* Contact Section */
.contact-section {
  background: linear-gradient(
    135deg,
    var(--brown-dark) 0%,
    var(--orange-warm) 50%,
    var(--golden) 100%
  );
  color: white;
}

.contact-section .section-title {
  color: white;
}

.contact-section .section-title::after {
  background: white;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: white;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn svg {
  transition: transform 0.3s ease;
}

.submit-btn:hover svg {
  transform: translateX(5px);
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  display: none;
}

.form-message.success {
  background: rgba(46, 204, 113, 0.2);
  border: 2px solid #2ecc71;
  display: block;
}

.form-message.error {
  background: rgba(231, 76, 60, 0.2);
  border: 2px solid #e74c3c;
  display: block;
}

/* Footer */
.footer {
  background: var(--brown-dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-social {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .nav-menu {
    order: 1;
    gap: 1rem;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .intro-name {
    font-size: 2.5rem;
    white-space: nowrap;
  }

  .intro-title-text {
    font-size: 1.3rem;
  }

  .intro-overlay {
    padding: 0 3%;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-text p {
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card:nth-child(5) {
    grid-column: 1;
    max-width: 100%;
    justify-self: stretch;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-direction: row;
    gap: 0.5rem;
  }

  .nav-social {
    order: 1;
    width: auto;
    gap: 0.5rem;
  }

  .nav-menu {
    order: 2;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .intro-name {
    font-size: 2rem;
    white-space: nowrap;
  }

  .intro-title-text {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }
}
