* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 70px;
  background-color: var(--bg-light);
  font-family: "Inter", sans-serif;
}

.main-nav {
  width: 100%;
  height: 70px;
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--soft-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hero-section {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

.profile-photo {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(136, 13, 30, 0.2);
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.name {
  font-size: 52px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--primary);
}

.role {
  font-size: 24px;
  font-weight: 200;
  margin-top: 6px;
  color: var(--soft-pink);
}

.hero-description {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
  margin: 0 0 20px 0;
}

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

.section {
  padding: 80px 40px;
}

.section-title {
  font-size: 48px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  margin: 0 0 15px 0;
}

.section-subtitle {
  font-size: 17px;
  color: #777;
  text-align: center;
  margin: 0 0 60px 0;
}

.projects-section {
  background-color: #f9f9f9;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(136, 13, 30, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 35px rgba(136, 13, 30, 0.2);
}

.project-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-tag {
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.project-info {
  padding: 30px;
}

.project-info h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px 0;
}

.project-info p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 20px 0;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-tech span {
  background: var(--soft-pink);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.skills-section {
  background-color: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.skill-card {
  padding: 36px;
  border-radius: 16px;
  background: white;
  border: 2px solid var(--soft-pink);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(221, 45, 74, 0.15);
}

.skill-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  background: var(--secondary);
  color: white;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.skill-tags span:hover {
  background: var(--primary);
}

.experience-section {
  background-color: #f9f9f9;
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #880d1e 0%, #f26a8d 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-dot {
  position: absolute;
  left: -47px;
  top: 0;
  width: 16px;
  height: 16px;
  background: #dd2d4a;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #f49cbb;
}

.timeline-content {
  background: white;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.timeline-date {
  display: inline-block;
  background: #cbeef3;
  color: #880d1e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #880d1e;
  margin: 0 0 6px 0;
}

.timeline-content h4 {
  font-size: 16px;
  font-weight: 500;
  color: #dd2d4a;
  margin: 0 0 12px 0;
}

.timeline-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0 0 16px 0;
}

.timeline-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.timeline-tags span {
  background: #f49cbb;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.education-card {
  background: white;
  padding: 36px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
}

.education-icon {
  font-size: 52px;
  margin-bottom: 16px;
}

.education-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #880d1e;
  margin: 0 0 8px 0;
}

.education-card h4 {
  font-size: 15px;
  font-weight: 500;
  color: #dd2d4a;
  margin: 0 0 10px 0;
}

.education-date {
  display: inline-block;
  background: #cbeef3;
  color: #880d1e;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.education-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 12px 0 0 0;
}

.contact-section {
  background: linear-gradient(135deg, #880d1e 0%, #dd2d4a 100%);
  color: white;
}

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

.contact-section .section-subtitle {
  color: #cbeef3;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 30px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 15px;
  font-weight: 600;
  color: #cbeef3;
  margin: 0 0 4px 0;
}

.contact-item a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
  word-break: break-all;
}

.contact-item a:hover {
  color: #cbeef3;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

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

.btn-submit {
  background: white;
  color: #880d1e;
  padding: 14px 40px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

footer {
  height: 50px;
  background-color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
}

footer p {
  color: white;
  font-size: 13px;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

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

  .profile-photo {
    max-width: 280px;
  }

  .name {
    font-size: 40px;
  }

  .role {
    font-size: 20px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 60px;
  }

  .main-nav {
    height: 60px;
    justify-content: flex-start;
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

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

  .nav-list li {
    width: 100%;
  }

  .nav-list a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .nav-brand {
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .hero-section {
    padding: 48px 20px 60px;
    min-height: auto;
  }

  .profile-photo {
    max-width: 220px;
  }

  .name {
    font-size: 32px;
  }

  .role {
    font-size: 17px;
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
  }

  .section {
    padding: 56px 20px;
  }

  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 14px;
    margin-bottom: 36px;
  }

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

  .project-image {
    height: 140px;
  }

  .project-info {
    padding: 22px;
  }

  .project-info h3 {
    font-size: 18px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-card {
    padding: 24px;
  }

  .skill-card h3 {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -36px;
    width: 14px;
    height: 14px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-content h3 {
    font-size: 17px;
  }

  .timeline-content h4 {
    font-size: 14px;
  }

  .timeline-content p {
    font-size: 14px;
  }

  .timeline-item {
    margin-bottom: 32px;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .education-card {
    padding: 28px 20px;
  }

  .education-card h3 {
    font-size: 17px;
  }

  .education-icon {
    font-size: 42px;
    margin-bottom: 12px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-info {
    gap: 20px;
  }

  .contact-item {
    gap: 14px;
  }

  .contact-icon {
    font-size: 24px;
  }

  .contact-item a {
    font-size: 14px;
  }

  .contact-form {
    gap: 14px;
  }

  .btn-submit {
    width: 100%;
    padding: 14px;
  }

  footer {
    height: auto;
    padding: 16px 20px;
  }

  footer p {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .name {
    font-size: 26px;
  }

  .role {
    font-size: 15px;
  }

  .section-title {
    font-size: 24px;
  }
}

.nav-brand {
    display: none;
}

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