/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
  color: #000;
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

section {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: auto;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
.navbar {
  background-color: #fff;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-logo {
  font-weight: bold;
  color: #e60073;
  font-size: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e60073;
}
@media (min-width: 1200px) {
  .nav-logo {
    font-size: 3.5rem;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-container {
    padding: 0.5rem;
    max-width: 1400px;
  }

  .nav-links {
    gap: 2.5rem;
  }
}


/* Hero Section */
.hero {
  background: linear-gradient(45deg, #ff69b4, #000);
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero .btn {
  display: inline-block;
  margin-top: 1rem;
  background: #fff;
  color: #e60073;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background: #ffe6f0;
}

.hero-credentials {
  font-size: 0.95rem;
  opacity: 0.95;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* Project Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project {
  background-color: #fce4ec;
  border-left: 5px solid #e60073;
  padding: 1rem;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(230, 0, 115, 0.2);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.project-links a {
  display: inline-block;
  color: #e60073;
  font-weight: bold;
}

@media (max-width: 768px) {
  .project-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .project {
    width: 90%;
    max-width: 350px;
    text-align: center;
    align-items: center;
  }

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



/* Skills Section */
.skills {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.skills-container {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-top: 3px solid #e60073;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-top: 2rem;
}

.skills-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}

.skill-card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 1.25rem;
  border-right: 1px solid #f3bfd7;
}

.skill-card:first-child {
  padding-left: 0;
}

.skill-card:last-child {
  border-right: none;
  padding-right: 0;
}

.skill-card h3 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #fce4ec;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 2.75em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.skill-list {
  list-style: disc;
  text-align: left;
  margin: 0;
  padding-left: 1.1rem;
  padding-top: 0.25rem;
}

.skill-list li {
  color: #222;
  font-size: 0.9rem;
  padding: 0.15rem 0;
}

.skill-list li::marker {
  color: #e60073;
}

@media (max-width: 900px) {
  .skills-grid {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 0;
  }

  .skill-card {
    flex: 1 1 calc(33.333% - 1rem);
    min-width: 140px;
    padding: 0 1rem;
    border-right: none;
    border-bottom: none;
  }

  .skill-card:not(:nth-child(3n)) {
    border-right: 1px solid #f3bfd7;
  }

  .skill-card:nth-child(3n) {
    padding-right: 0;
  }

  .skill-card:nth-child(3n + 1) {
    padding-left: 0;
  }

  .skill-card:last-child {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 600px) {
  .skills-container {
    padding: 1.25rem;
  }

  .skill-card {
    flex: 1 1 calc(50% - 0.75rem);
    border-right: none;
  }

  .skill-card:nth-child(odd) {
    padding-left: 0;
    border-right: 1px solid #f3bfd7;
  }

  .skill-card:nth-child(even) {
    padding-right: 0;
  }

  .skill-card:last-child {
    border-right: none;
  }
}

@media (max-width: 420px) {
  .skills-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .skill-card {
    flex: 1 1 100%;
    width: 100%;
    max-width: 260px;
    padding: 0 0 1.25rem;
    border-right: none;
    border-bottom: 1px solid #f3bfd7;
  }

  .skill-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .nav-logo {
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }

  .skills-grid {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
  }

  .skill-card {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0 0 1.25rem;
    border-right: none;
    border-bottom: 1px solid #f3bfd7;
  }

  .skill-card:nth-child(odd),
  .skill-card:nth-child(even),
  .skill-card:not(:nth-child(3n)),
  .skill-card:nth-child(3n),
  .skill-card:nth-child(3n + 1) {
    padding-left: 0;
    padding-right: 0;
    border-right: none;
  }

  .skill-card:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }

  .skill-card h3 {
    min-height: auto;
  }
}

/* Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
}

button[type="submit"] {
  background: #e60073;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background: #cc005f;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
}

.form-status--success {
  background: #fff0f5;
  border: 1px solid #f3bfd7;
  color: #222;
}

.form-status--error {
  background: #fff5f5;
  border: 1px solid #e60073;
  color: #222;
}

.contact-links a,
.resume-links a {
  color: #e60073;
  font-weight: bold;
  text-decoration: none;
}

.contact-links a:hover,
.resume-links a:hover {
  text-decoration: underline;
}

.resume-links {
  margin-top: 2rem;
}

.resume-date {
  color: #666;
  font-style: italic;
  margin-top: -0.25rem;
}

.resume-skills p {
  margin-bottom: 0.5rem;
}

/* Footer */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

/* About Section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  order: 2;
  flex: 1 1 60%;
  min-width: 250px;
}

.about-photo {
  order: 1;
  flex: 1 1 35%;
  min-width: 200px;
}

.about-photo img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* for last my picture to center*/

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo,
  .about-text {
    order: unset;
    flex: 1 1 100%;
    min-width: auto;
  }

  .about-photo img {
    margin: 0 auto;
  }
}

/* for last project to center*/

@media (max-width: 768px) {
  .project {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .project-links {
    margin-top: 1rem;
  }
}

/* Resume Section */
.resume {
  background-color: #fff0f5;
  border: 2px solid #e60073;
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 0 10px rgba(230, 0, 115, 0.2);
}

.resume h1 {
  font-size: 2rem;
  color: #e60073;
  margin-bottom: 0.5rem;
  text-align: center;
}

.resume h2 {
  color: #000;
  border-bottom: 2px solid #e60073;
  padding-bottom: 0.25rem;
  margin-top: 2rem;
}

.resume h3 {
  color: #333;
  margin-top: 1.5rem;
}

.resume p, .resume ul {
  font-size: 1rem;
}

.resume ul {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.resume .btn {
  display: inline-block;
  margin-top: 1rem;
  background: #e60073;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.resume .btn:hover {
  background: #cc005f;
}
