/* Animation Styles */

.word {
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-right: 0.25em; /* ✅ adds spacing between words */
}

.word.show-word {
  opacity: 1;
  transform: translateY(0);
}

.letter {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.show-letter {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.grow-in {
  opacity: 0;
  transform: scale(0.94);
  transition: 
    opacity 0.6s ease-in-out,
    transform 0.6s ease-in-out;
  will-change: opacity, transform;
}

.grow-in.visible {
  opacity: 1;
  transform: scale(1);
  transition: 
    opacity 0.6s ease-in-out,
    transform 0.6s ease-in-out;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: white;
  color: #333;
}
.container {
  width: 100%;
  margin: 0 auto;
}

/* Header */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  background: transparent;
  padding: 1rem 2rem;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  color: rgb(0, 6, 36);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: rgb(0, 6, 36);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  &:hover {
    color: #c7832f;
  }
}
#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: rgb(0, 6, 36);
  font-size: 1.5rem;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  padding-top: clamp(4rem, 10vh, 6rem);  /* more top padding */
  padding-right: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2rem, 6vw, 4rem);
  padding-left: clamp(2rem, 6vw, 4rem);
  background: #3898ec1c;
  color: rgb(0, 6, 36);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-title {
  font-size: clamp(3rem, 5.6vw, 5rem);
}
.highlight {
  color: #c7832f;
  font-weight: bold;
}
.hero-subtitle {
  margin: 2rem 0;
  margin-bottom: 4rem;
  font-size: clamp(1.4rem, 2vw, 1.5rem);
}
.btn {
  padding: 0.75rem 1.5rem;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

/* Section */
.section {
  padding: 3rem 3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  background: #fff;
  color: rgb(0, 6, 36);
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: rgb(0, 6, 36);
}
/* Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.project-card {
  background: white; 
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-top: 0;
  color: black;
}

.project-content p {
  color: black;
  margin: 0.5rem 0 1rem;
}

.project-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3898ec;
  color: #fff;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.project-link:hover {
  background: #2563eb;
}


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

.about-text {
  flex: 1 1 40%;
  min-width: 300px;
  font-size: 18px;
}

.about-image {
  flex: 1 1 30%;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

/* Skills */

#skills-title {
  margin-bottom: 0;
}

.skills-carousel {
  overflow: hidden;
  width: 100%;
  position: relative;
  margin-top: 2rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: auto;
  height: auto;
}

.carousel-track {
  display: flex;
  animation: scroll-left 18s linear infinite;
  width: fit-content;
}

.skill-item-carousel {
  flex: 0 0 auto;
  text-align: center;
  padding-right: 5rem;
}

.skill-item-carousel img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.skill-item-carousel span {
  display: block;
  font-size: 1rem;
  color: #cbd5e1;
}

#skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  justify-items: center;
  list-style: none;
  padding: 2rem 0;
  margin: 0 auto;
  max-width: 900px;
}

#skills-list .skill-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-top: 3rem;
}

#skills-list .skill-item.visible {
  opacity: 1;
  transform: translateY(0);
}

#skills-list .skill-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

#skills-list .skill-item span {
  display: block;
  font-size: 1rem;
  color: rgb(0, 6, 36);
}


.skills-header {
  display: flex;
  margin-bottom: 1rem;
}

#view-toggle {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  background-color: white;
  color: blue;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
}

.list-toggle {
  display: none;
}

/* Animation */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Resume Banner */
.cta-banner {
  display: flex;
  background-color: #3898ec1c;
  color: rgb(0, 6, 36);
  text-align: left;
  padding: 3rem 4rem;
  margin-top: 4rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  align-items: center;
}

.cta-banner h2 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

#cta-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding-right: 4rem;
}

.cta-buttons .btn {
  background-color: rgb(0, 6, 36);
  border: 2px solid #ffffff;
  color: #c7832f;
  padding: 0.75rem 2rem;
  font-weight: bold;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}

.cta-buttons .btn:hover {
  color: white;
}

.cta-buttons .btn-secondary {
  background-color: rgb(0, 6, 36);
  border: 2px solid #ffffff;
  color: #c7832f;
}

.cta-buttons .btn-secondary:hover {
  color: white;
}


/* Contact */
.contact-section {
  max-width: 600px;
  margin: 4rem auto;
  text-align: center;
  padding: 2rem;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: rgb(0, 6, 36);
}

.contact-section p {
  color: #555;
  margin-bottom: 2rem;
}

.contact-form div {
  margin-bottom: 1.5rem;
  text-align: left;
}

.contact-form label {
  display: block;
  font-size: smaller;
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: rgb(0, 6, 36);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 2px solid rgb(0, 6, 36);
  background: transparent;
  font-size: 1rem;
  color: black;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: #c7832f;
}

.contact-form button {
  background-color: rgb(0, 6, 36);
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.contact-form button:hover {
  color: #c7832f;
}

/*Hidden Modal for PDF */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.pdf-modal-content {
  position: relative;
  margin: 5% auto;
  max-width: 90%;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

#resume-image {
  width: 100%; /* always fit width */
  height: auto;
}

#close-modal {
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
}

#modal-controls {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 1rem;
}

#modal-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}


/*Thank You Section */
.thank-you {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: 1rem;
  background-color: #3898ec1c;
  color: rgb(0, 6, 36);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.5s ease forwards;
}

.thank-you p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #333;
}

.thank-you .btn {
  margin-top: 2rem;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  display: inline-block;
}

.hidden {
  display: none;
}

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


/* Footer */
footer {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .cta-buttons {
    flex-direction: column;
    padding-right: 0;
    font-size: 1rem;
    }

  #cta-container {
    flex-direction: column;
  }

  #resume-arrow {
    font-size: 0rem;
  }

  .cta-banner h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
  }
}

@media (max-width: 768px) {

  .section {
  padding: 3rem 2rem;
  }

 .nav-links {
  display: flex;
  flex-direction: column;
  background: #fff;
  position: absolute;
  top: 60px;
  right: 0;
  padding: 1rem;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 1000;
  gap: 0;
}

.nav-links.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle {
  display: flex;
  font-size: 1.5rem;
  color: rgb(0, 6, 36);
  background: none;
  border: none;
  cursor: pointer;
}

.nav-btn {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  height: 4rem;
  width: 100%;
}

.list-toggle {
    display: inline-block;
  }

  .projects-grid {
    gap: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    padding-right: 0;
    font-size: 1rem;
    }

  #cta-container {
    flex-direction: column;
  }

  #resume-arrow {
    font-size: 0rem;
  }

  .cta-banner h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
  }
}

@media (min-width: 769px) {
  #skills-list {
    display: none !important;
  }
}