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

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  background-color: #f8f0e2;
}

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

@font-face {
  font-family: "Tan Nimbus";
  src: url("fonts/tan-nimbus.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* Fade In Animation for Sections */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
.navbar {
  background-color: #f8f0e2;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 2px solid #2c2324;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 25px;
  font-weight: 700;
  color: #2c2324;
  font-family: "Tan Nimbus", sans-serif;
  font-weight: 100;
  margin-top: 0.2rem;
}

.logo-link {
  text-decoration: none; /* remove underline */
  color: inherit; /* keep same text color as surrounding */
  font-weight: bold; /* optional */
  cursor: pointer;
}

.logo-link:hover {
  opacity: 0.8; /* subtle hover effect */
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #2c2324;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #2c2324;
  font-size: 17px;
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  font-weight: 500;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateX(0);
  transition: transform 0.4s ease;
}

.arrow-svg {
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  margin-top: 0.25rem;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.nav-links li a:hover .nav-item {
  transform: translateX(10px);
}

.nav-links li a:hover .arrow-svg {
  transform: translateX(0);
  opacity: 1;
}

/* Hero Section */
.hero {
  padding: 80px 0 90px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
  margin-left: 1.5rem;
  margin-top: 2rem;
}

.hero-left {
  max-width: 900px;
}

.hero-intro {
  font-size: 20px;
  color: #2c2324;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #2c2324;
  letter-spacing: -0.02em;
  min-width: -webkit-max-content;
  font-family: "Tan Nimbus", sans-serif;
}

.title-growth {
  color: #eb8dbe;
}

.hero-description {
  font-size: 16px;
  color: #2c2324;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 480px;
  font-weight: 400;
}

.cta-button {
  padding: 1rem 1.5rem;
  font-size: 1rem;
  display: inline-block;
  margin: 2px;
  border: 4px solid #2c2324;
  border-radius: 999px;
  background-color: #b2b74e;
  box-shadow: 4px 4px 0 #2c2324;
  font-weight: 600;
  text-transform: uppercase;
  color: #282825;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  width: fit-content;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume-btn {
  text-decoration: none;
  color: inherit;
}

.cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #2c2324;
  color: #2c2324;
}

/* Hero Right - Image Section */
.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 400px;
  height: 550px;
  margin-left: 4rem;
}

.profile-image-wrapper {
  position: relative;
  width: 400px;
  height: 550px;
}

.profile-image {
  width: 110%;
  height: 90%;
  object-fit: cover;
  background: transparent;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  background: transparent;
  border-radius: 20px;
  padding: 16px;
  animation: float 3s ease-in-out infinite;
}

.figma-bubble {
  top: 10px;
  left: -70px;
}

.eye-bubble {
  top: 180px;
  right: -100px;
}

.name-tag {
  position: absolute;
  top: -40px;
  left: 120px;
  padding: 8px 16px;
}

.availability-badge {
  position: absolute;
  bottom: -20px;
  left: 250px;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Skills Styles */
.skills {
  overflow: hidden;
}

.skills-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 20px;
  background-color: #f07d5c;
}

.skills-lines-wrapper {
  position: relative;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skills-tabs-moving {
  position: relative;
  height: 30px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.skills-tabs-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: moveLeft 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

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

.skills-tab {
  color: #2c2324;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
  font-family: "Montserrat", sans-serif;
}

/* Featured Projects */
.featured-projects {
  padding: 100px 0;
  background: #f8f0e2;
}

.project-container {
  max-width: 1500px;
}

.section-title {
  font-family: "Tan Nimbus", sans-serif;
  font-weight: 400;
  margin-bottom: 40px;
  color: #2c2324;
  text-align: center;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-title::before {
  content: "✦";
  color: #b597d3;
  font-size: 1.2em;
}

.projects-grid {
  display: grid;
}

.project-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  min-height: 500px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-content {
  flex: 1;
  color: #2c2324;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: 9.4rem;
}

.project-image {
  flex: 1.273;
  max-width: 800px;
  height: 500px;
  position: relative;
  overflow: hidden;
}

.shadow-img {
  width: 300px; /* adjust size */
  border-radius: 12px; /* optional rounded corners */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* shadow effect */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.shadow-img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease, transform 0.5s ease; 
}

.project-image:hover img {
  filter: brightness(70%);
  transform: scale(1.03);
}

.project-card.left {
  flex-direction: row-reverse;
}

.project-badge {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-type {
  padding: 0.5rem 1rem;
  font-size: 16px;
  display: inline-block;
  margin: 2px;
  border: 3px solid #2c2324;
  border-radius: 999px;
  background-color: #dba7c7;
  box-shadow: 4px 4px 0 #2c2324;
  font-weight: 500;
  width: fit-content;
  font-family: "Montserrat", sans-serif;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-type:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #2c2324;
  color: #2c2324;
}

.project-type.webui {
  background-color: #b2b74e;
}

.project-type.webui2 {
  background-color: #90a8ed;
}

.project-type.hackathon {
  background-color: #f07d5c;
}

.project-type.spa {
  background-color: #f7cb45;
}

.project-type.graphic {
  background-color: #b597d3;
}

.project-type.poster {
  background-color: #b2b74e;
}

.project-type.team {
  background-color: #eb8dbe;
}

.project-type.mobileui {
  background-color: #f7cb45;
}
.project-type.spa{
  background-color: #b2b74e;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  width: 30rem;
}

.project-description {
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.6;
  width: 30rem;
  font-weight: 400;
}

.project-link {
  color: #2c2324;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}


/* Other Projects */
.other-projects {
  padding: 100px 0;
  background: #f8f0e2;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  position: relative; /* make it the reference for absolute children */
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 2px solid #2c2324;
  border-top: 2px solid #2c2324;

}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; 
  transition: filter 0.5s ease, transform 0.5s ease; 
}

.gallery-item:hover img {
  filter: brightness(70%);
  transform: scale(1.03);
}

/* Overlay text */
.overlay-text {
  position: absolute;
  left: 50%; /* center horizontally */
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  bottom: 15px;
 transform: translateX(-50%);
 font-family: "Montserrat", sans-serif;
 font-weight: 400;
}

/* Show text on hover */
.gallery-item:hover .overlay-text {
  opacity: 1;
}


/* Gallery item backgrounds */
.item-1 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}
.item-2 {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.item-3 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.item-4 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.item-5 {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}
.item-6 {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}
.item-7 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}
.item-8 {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}
.item-9 {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.item-10 {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}
.item-11 {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.item-12 {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

/* About Me Section */
.about-me {
  padding: 100px 0;
  background: #f8f0e2;
}

.about-content {
  max-width: 1120px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  margin-top: 3rem;
}

.about-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c2324;
  margin-bottom: 30px;
  font-family: "Tan Nimbus", sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-subtitle::before {
  content: "✦";
  color: #eb8dbe;
  font-size: 1.2em;
}

.philosophy-quote {
  font-size: 18px;
  line-height: 1.6;
  color: #2c2324;
  font-style: italic;
  padding: 30px;
  background: #ffffff;
  border-left: 5px solid #b597d3;
  border-radius: 10px;
  margin: 0;
  font-weight: 500;
  margin-bottom: 40px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.philosophy-quote:hover {
  transform: translate(2px, 2px);
}

.background-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.background-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #f8f0e2;
  border: 3px solid #2c2324;
  box-shadow: 4px 4px 0 #2c2324;
  border-radius: 30px;
  font-weight: 500;
  color: #2c2324;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.background-item:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #2c2324;
}

.bg-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: #b2b74e;
  margin-bottom: 5px;
}

.bg-content p {
  font-size: 15px;
  color: #2c2324;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

.bg-content-cap {
  font-weight: 600;
  color: #2c2324;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.tool-category-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c2324;
  margin-bottom: 15px;
}

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

.tool-tag {
  padding: 8px 16px;
  font-size: 14px;
  border: 3px solid #2c2324;
  border-radius: 999px;
  box-shadow: 4px 4px 0 #2c2324;
  font-weight: 500;
  color: #2c2324;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-tag:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #2c2324;
  color: #2c2324;
}

.about-hobbies {
  margin-top: 3rem;
}

.hobbies-grid {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hobby-icon {
  width: 6rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hobby-icon:hover {
  transform: translate(2px, 2px);
}

.hobby-image {
  width: 145%;
  height: 145%;
  object-fit: contain;
  object-position: center;
}

.hobby-label {
  font-size: 16px;
  font-weight: 500;
  color: #2c2324;
  text-align: center;
  width: 100%;
}

/* Certifications Grid */
.certifications {
  padding: 100px 0;
  background: white;
}

.certifications-container {
  max-width: 1000px;
  margin: 0 auto;
}

.certifications-grid {
  position: relative;
  min-height: 450px;
  margin-bottom: 40px;
}

.cert-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: absolute;
  width: 100%;
  top: 0;
}

.cert-page.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.certification-card {
  background: white;
  border: 3px solid #2c2324;
  border-radius: 20px;
  box-shadow: 8px 8px 0 #2c2324;
  overflow: hidden;
  height: 400px;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-card:hover {
  transform: translateY(-8px);
  box-shadow: 5px 5px 0 #2c2324;
}

.cert-image {
  height: 60%;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.certification-card:hover .cert-image img {
  transform: scale(1.05);
}

.cert-content {
  padding: 20px;
  height: 40%;
  display: flex;
  flex-direction: column;
  background: #f8f0e2;
}

.cert-badge {
  margin-bottom: 20px;
}

.cert-type {
  padding: 4px 12px;
  font-size: 12px;
  border: 2px solid #2c2324;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  color: #2c2324;
}

.cert-type.design {
  background-color: #b597d3;
}

.cert-type.tools {
  background-color: #b2b74e;
}

.cert-type.research {
  background-color: #f07d5c;
}

.cert-type.systems {
  background-color: #90a8ed;
}

.cert-type.prototype {
  background-color: #f7cb45;
}

.cert-type.accessibility {
  background-color: #eb8dbe;
}

.cert-type.mentor{
  background-color: #f59e0b;
}

.cert-type.part{
  background-color: #65c1a2;
}

.cert-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2c2324;
  margin-bottom: 8px;
  font-family: "Tan Nimbus", sans-serif;
  line-height: 1.2;
}

.cert-issuer {
  font-size: 0.9rem;
  color: #b597d3;
  font-weight: 600;
  margin-bottom: 8px;
}

.cert-date {
  font-size: 0.8rem;
  color: #52514d;
  font-weight: 500;
}

.cert-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.cert-nav-btn {
  padding: 12px 24px;
  border: 3px solid #2c2324;
  background: #b2b74e;
  border-radius: 999px;
  font-weight: 600;
  color: #2c2324;
  cursor: pointer;
  box-shadow: 4px 4px 0 #2c2324;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-nav-btn:hover {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 #2c2324;
}

.cert-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0 #2c2324;
}

.cert-page-info {
  font-weight: 600;
  color: #2c2324;
  font-size: 16px;
}

/* Contact */
.contact {
  padding: 100px 0;
  color: #2c2324;
  border-bottom: 2px solid #2c2324;
}

.contact-content {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  font-family: "Tan Nimbus", sans-serif;
}

.contact-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
}

.social-links {
  display: flex;
  gap: 24px;
  justify-content: flex-start;
}

.social-link {
  color: #2c2324;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.social-link i {
  font-size: 2rem;
}

.social-link:hover {
  color: #b597d3;
  transform: translateY(-2px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  background: #ffffff;
  backdrop-filter: blur(10px);
  font-size: 16px;
  border: 2px solid #2c2324;
  font-family: "Montserrat", sans-serif;
  box-shadow: 3px 3px 0 #2c2324;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #2c2324;
  opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 3px solid #2c2324;
  border-radius: 20px;
  box-shadow: 3px 3px 0 #2c2324;
  font-weight: 500;
  color: #2c2324;
  transform: translateY(-2px);
}

.submit-button {
  background: #b2b74e;
  color: #2c2324;
  border: none;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  border: 3px solid #2c2324;
  border-radius: 999px;
  cursor: pointer;
  align-self: center;
  margin-top: 20px;
  box-shadow: 4px 4px 0 #2c2324;
  font-weight: 500;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Montserrat", sans-serif;
}

.submit-button:hover {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 #2c2324;
}

/* Footer */
.footer {
  background: #f8f0e2;
  color: white;
  padding: 20px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  flex: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-description {
  color: #2c2324;
  opacity: 0.9;
  font-size: 16px;
  margin-left: 2rem;
}

.footer-right {
  text-align: right;
}

.footer-copyright {
  color: #2c2324;
  opacity: 0.9;
  font-size: 14px;
  margin-top: 1rem;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: #f8f0e2;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  box-shadow: 10px 10px 0 #2c2324;
  max-height: 90vh;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-container::-webkit-scrollbar {
  display: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f8f0e2;
  border: 2px solid #2c2324;
  box-shadow: 4px 4px 0 #2c2324;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: #eb8dbe;
  box-shadow: 2px 2px 0 #2c2324;
  transform: translateY(2px);
}

.modal-content {
  padding: 40px;
}

.modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2c2324;
  margin-bottom: 10px;
  font-family: "Tan Nimbus", sans-serif;
}

.modal-subtitle {
  font-size: 1.5rem;
  color: #b597d3;
  margin-bottom: 20px;
  font-weight: 600;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c2324;
  margin-bottom: 15px;
}

.star-icon {
  color: #eb8dbe;
}

.modal-section p {
  font-size: 16px;
  line-height: 1.6;
  color: #52514d;
  margin-bottom: 15px;
}

.modal-section ul {
  list-style: none;
  padding: 0;
}

.modal-section li {
  font-size: 16px;
  line-height: 1.6;
  color: #52514d;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.modal-section li::before {
  content: "•";
  color: #b597d3;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 12px 24px;
  border: 3px solid #2c2324;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
}

.modal-btn.primary {
  background: #b2b74e;
  color: #2c2324;
  box-shadow: 4px 4px 0 #2c2324;
}

.modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 0 #2c2324;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    gap: 60px;
    margin-left: 0;
  }

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

  .project-content {
    margin-left: 4rem;
  }

  .project-title,
  .project-description {
    width: 25rem;
  }

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

  .contact-grid {
    gap: 3rem;
  }

  .hero-image-container {
    margin-left: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 16px 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #f8f0e2;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    gap: 20px;
    border-top: 2px solid #2c2324;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    margin-left: 0;
    margin-top: 0;
  }

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

  .hero-image-container {
    width: 300px;
    height: 400px;
    margin-left: 0;
  }

  .profile-image-wrapper {
    width: 300px;
    height: 400px;
  }

  .floating-element {
    display: none;
  }

  .availability-badge {
    display: none;
  }

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

  .project-card,
  .project-card.left {
    flex-direction: column;
    min-height: auto;
  }

  .project-content {
    margin-left: 0;
    padding: 2rem;
    order: 2;
  }

  .project-image {
    max-width: 100%;
    height: 300px;
    order: 1;
  }

  .project-title,
  .project-description {
    width: 100%;
  }

  .cert-page {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .certification-card {
    height: 350px;
    max-width: 100%;
  }

  .cert-navigation {
    flex-direction: column;
    gap: 20px;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .modal-container {
    width: 95%;
    max-height: 95vh;
  }

  .modal-content {
    padding: 20px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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

  .hero-intro {
    font-size: 18px;
  }

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

  .hero-image-container {
    width: 250px;
    height: 350px;
  }

  .profile-image-wrapper {
    width: 250px;
    height: 350px;
  }

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

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

  .project-description {
    font-size: 14px;
  }

  .project-badge {
    gap: 0.3rem;
  }

  .project-type {
    padding: 0.3rem 0.8rem;
    font-size: 14px;
  }

  .certification-card {
    height: 300px;
  }

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

  .contact-subtitle {
    font-size: 14px;
  }

  .social-link i {
    font-size: 1.5rem;
  }

  .about-subtitle {
    font-size: 1.3rem;
  }

  .philosophy-quote {
    font-size: 16px;
    padding: 20px;
  }

  .background-item {
    padding: 15px;
  }

  .bg-content h4 {
    font-size: 18px;
  }

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

  .modal-content {
    padding: 15px;
  }

  .modal-title {
    font-size: 1.3rem;
  }

  .modal-subtitle {
    font-size: 1.1rem;
  }
}
