:root {
  --background-color: #fffaf5;
  --text-color: #1c1917;
  --accent-color: #ffe4cc;
  --border-color: #d1ccc7;
  --shadow-color: rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

input, textarea, button {
  font-family: inherit;
  border: none;
  outline: none;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

section, footer {
  padding-top: 64px;
  padding-bottom: 64px;
  overflow: hidden;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: var(--text-color);
  margin: 0;
}

p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  background-color: var(--background-color);
  border: 1px solid var(--text-color);
  border-radius: 1000px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

.btn:hover img {
  filter: brightness(0) invert(1);
}

.section-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  width: 100%;
  max-width: 945px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  section, footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

/* CSS for section section:header */
.site-header {
  padding-top: 40px;
  padding-bottom: 40px;
  position: sticky;
  top: 0;
  background-color: var(--background-color, white);
  z-index: 1000;
  transition: transform 0.4s ease-in-out, box-shadow 0.3s;
  width: 100%;
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 51px;
  height: auto;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 20px;
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #888;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive adjustments for header navigation */
@media (max-width: 992px) {
  .main-nav ul {
    gap: 25px; /* Reduce gap on smaller screens to prevent wrapping */
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-color, white);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  .main-nav.is-active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px; /* Adjust vertical gap for mobile menu */
  }


  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Ensure it's above other content */
  }
  .mobile-nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
  }
  .mobile-nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}

/* CSS for section section:hero */
.hero-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.hero-title {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.6;
}

/* Typing Animation Styles */
#typing-effect {
  color: var(--text-color);
  font-weight: 500;
}

.typed-cursor {
  opacity: 1;
  animation: typedjsBlink 0.7s infinite;
  color: var(--text-color);
}

.typed-cursor.typed-cursor--blink {
  animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
  50% { opacity: 0; }
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    align-items: center;
    gap: 16px; /* Reduce gap on mobile for better spacing */
  }
  .hero-image-wrapper {
    order: -1;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-subtitle {
    /* Set a minimum height to prevent layout shift from typing animation */
    min-height: 58px; /* Approx. 2 lines of text */
  }
}

/* CSS for section section:about */
.about-container {
  display: flex;
  align-items: center;
  gap: 64px;
}

.about-image-wrapper {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.about-label {
  background-color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
}

.about-image {
  max-width: 200px;
  height: auto;
}

.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.about-stats {
  display: flex;
  gap: 48px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .about-container {
    gap: 32px;
  }
  .about-image-wrapper {
    flex: 0 0 250px;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .about-image-wrapper {
    align-items: center;
  }
  .about-content {
    text-align: center;
    align-items: center;
  }
}

/* CSS for section section:resume */
.resume-container {
  display: flex;
  gap: 24px;
}

.resume-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.resume-label {
  background-color: var(--accent-color);
  padding: 8px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
}

.resume-sidebar-title {
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.resume-sidebar-image {
  max-width: 200px;
  height: auto;
  margin-top: auto;
}

.resume-main {
  flex: 2.5;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.resume-card {
  background-color: rgba(255, 255, 255, 0);
  border: 1px solid var(--text-color);
  border-radius: 12px;
  padding: 79px 32px 32px;
  position: relative;
  box-shadow: 0px 4px 4px 0px var(--shadow-color);
}

.resume-card-title {
  position: absolute;
  top: 0;
  left: 32px;
  transform: translateY(-50%);
  background-color: var(--background-color);
  padding: 8px 16px;
  font-size: 24px;
  font-weight: 600;
  text-shadow: 5px 1px 4px var(--shadow-color);
}

.resume-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.resume-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-item-header {
  display: flex;
  align-items: center;
  gap: 17px;
  align-items: flex-start; /* Align items to the top for better text alignment */
}

.resume-avatar {
  width: 52px;
  height: 52px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.resume-avatar img, .merged-icon img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.merged-icon {
  position: relative;
  width: 32px;
  height: 30px;
}

.resume-item-info {
  flex-grow: 1;
}

.resume-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between title and link icon */
}

.resume-item-title {
  font-size: 16px;
  font-weight: 600;
  font-weight: 600; /* Make the title bold for emphasis */
  line-height: 1.6;
}

.resume-item-date {
  font-size: 13px;
  line-height: 1.6;
}

.resume-item-link {
  display: inline-block; /* Ensure proper alignment */
  vertical-align: middle; /* Align icon with text */
  margin-left: 8px; /* Space between text and icon */
}

.resume-item-decor {
  width: 25px;
  height: 25px;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.resume-item-link:hover .resume-item-decor {
  transform: scale(1.15);
  color: #FF7C00; /* Use an accent color on hover */
}

/* Hide mobile link on desktop */
.mobile-link {
  display: none;
}

/* Style for desktop link */
.desktop-link {
  display: inline-block;
}

/* For the new SVG icon */
.resume-item-decor {
  stroke: currentColor;
}

.resume-item-description {
  font-size: 18px;
  line-height: 1.6;
  padding-left: 69px; /* avatar width (52px) + gap (17px) */
  padding-left: 89px; /* Increased indentation for better hierarchy */
  margin-top: 8px; /* Add space between header and description */
}

.resume-item-description ul {
  padding-left: 20px;
  list-style-type: disc;
}

.download-resume-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 992px) {
  .resume-container {
    flex-direction: column;
  }
  .resume-sidebar {
    align-items: center;
    text-align: center;
  }
  .resume-sidebar-image {
    display: none;
  }
}

@media (max-width: 768px) {
  .resume-item-header {
    flex-wrap: wrap; /* Keep wrapping for smaller screens */
    align-items: flex-start; /* Align icon to the top of the text */
  }
  .resume-item-title {
    font-weight: 600; /* Make title bold for emphasis on mobile */
  }
  .resume-item-info {
    width: calc(100% - 72px);
  }
  .resume-item-description {
    padding-left: 69px; /* Indent description to align with title (52px avatar + 17px gap) */
    margin-top: 8px; /* Add space between header and description */
    font-size: 16px; /* Reduce font size for better readability on mobile */
  }
  .resume-item {
    /* Add more space between resume items for better separation */
    margin-bottom: 24px; 
  }

  .resume-card {
    padding: 24px;
  }
  .resume-card-title {
    position: static;
    transform: none;
    text-shadow: none;
    margin-bottom: 24px;
    font-size: 20px;
    padding: 0;
    background-color: transparent;
  }
  .resume-card-title {
    padding: 8px 16px; /* Add padding to make the title stand out */
    background-color: var(--accent-color); /* Give it a background color */
    border-radius: 8px; /* Add rounded corners */
    display: inline-block; /* Make the background fit the text content */
  }
  .resume-item-decor {
    display: none; /* Hide decoration images on mobile */
  }
  .resume-item-link .resume-item-decor {
    display: inline-block; /* Ensure link icon is visible on mobile */
    width: 18px; /* Make icon smaller on mobile */
    height: 18px;
  }
  .resume-title-wrapper {
    gap: 8px;
  }
  /* Hide desktop link on mobile */
  .desktop-link {
    display: none;
  }
  /* Show mobile link on mobile */
  .mobile-link {
    display: inline-block;
  }
}

/* CSS for section section:blog */
.blog-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.blog-title {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.blog-text {
  font-size: 16px;
  line-height: 1.6;
  max-width: 380px;
}

.blog-image-wrapper {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-image {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .blog-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .blog-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .blog-content {
    align-items: center;
  }
}

/* CSS for section section:footer */
.footer-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.footer-title {
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px; /* Increased gap for better touch targets */
  font-size: 16px;
  font-weight: 500;
  flex-wrap: wrap; /* Allow links to wrap on smaller screens */
}

.footer-links li {
  margin: 4px 0; /* Add some vertical margin */
}

.footer-links a {
  transition: color 0.3s;
  padding: 8px; /* Add padding to increase tap area */
  display: inline-block; /* Make padding effective */
}

.footer-links a:hover {
  color: #888;
}

.footer-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-image {
  max-width: 100%;
  height: auto;
}

.copyright {
  text-align: center;
  padding-top: 80px;
  font-size: 14px;
  color: #555;
}

.footer-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.footer-links a:hover .footer-icon {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .footer-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-content {
    align-items: center;
  }
  .footer-links {
    justify-content: center; /* Center links when they wrap */
  }
  .copyright {
    padding-top: 40px; /* Reduce top padding on mobile */
  }
}

/* CSS for section section:contact */
.contact-section {
  padding: 60px 160px 100px;
}

.contact-container {
  display: grid;
  grid-template-columns: 457fr 641fr;
  gap: 24px;
  max-width: 1122px;
  margin: 0 auto;
}

.info-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.info-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.info-label {
  align-self: flex-start;
  background-color: #ffe4cc;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 15.6px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 19px;
  font-size: 18px;
  line-height: 28.8px;
}

.contact-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.illustration-container {
  display: flex;
  justify-content: flex-start;
}

.illustration-img {
  width: 188px;
  height: 257px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.form-header p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 641px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-input, .form-textarea {
  width: 100%;
  background-color: #f8f2ed;
  border-radius: 4px;
  padding: 16px 15px;
  font-size: 16px;
  color: #1c1917;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #a3998f;
}

.form-textarea {
  min-height: 111px;
  resize: vertical;
}

.submit-btn {
  background-color: #1c1917;
  color: #ffffff;
  border-radius: 4px;
  padding: 15px;
  font-size: 16px;
  font-weight: 600;
  line-height: 22.4px;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.9;
}

@media (max-width: 1200px) {
  .contact-section {
    padding: 60px 40px 100px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .info-column {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
  }
  .illustration-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-section {
    padding: 40px 20px 60px;
  }
  .info-column {
    flex-direction: column;
    gap: 40px;
  }
  .form-row {
    flex-direction: column;
  }
  .form-header h1 {
    font-size: 48px;
  }
  .form-header p {
    font-size: 16px;
  }
}
