/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0a0a;
  color: #fff;
}

/* HERO SECTION */
#hero {
  height: 100vh;
  background: url('../assets/images/hero-bg2.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}



.hero-content {
  z-index: 2;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

.highlight {
  color: #e63946;
  font-weight: bold;
}

.typing-text {
  font-size: 1.5rem;
  margin-top: 10px;
  color: #f1faee;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #fff;
  width: 100%; /* Make sure it can expand */
  max-width: 600px; /* Prevent it from being too wide */
  margin-left: auto;
  margin-right: auto;
  animation: typing 4s steps(40) infinite alternate;
}



@keyframes typing {
  0% { width: 0; }
  100% { width: 300px; }
}

.scroll-indicator {
  margin-top: 60px;
  animation: bounce 2.5s infinite ease-in-out;
  text-align: center;
}

.scroll-indicator img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px #e63946);
  animation: glow-bounce 2.5s infinite ease-in-out;
}


@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}


@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* ABOUT ME SECTION */
#about {
  background-color: #111;
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.about-container {
  max-width: 1000px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.about-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #e63946;
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.details {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}
.details li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e63946;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  transition: background 0.3s;
}
.btn:hover {
  background-color: #d62828;
}

/* FOOTER */
footer {
  background-color: #111;
  padding: 30px 20px;
  text-align: center;
  color: #aaa;
}

.footer-container {
  max-width: 800px;
  margin: auto;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  margin: 0 10px;
  display: inline-block;
}

.footer-links img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.footer-links img:hover {
  transform: scale(1.2);
}

.view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.view-all-projects-btn {
  background: transparent;
  border: 2px solid #e63946;
  padding: 10px 20px;
  font-size: 1rem;
  color: #e63946;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s;
}

.view-all-projects-btn:hover {
  background: #e63946;
  color: #fff;
  transform: scale(1.05);
}

/* PROJECTS PREVIEW SECTION */
#projects-preview {
  background-color: #0a0a0a;
  padding: 80px 20px;
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: auto;
}

.project-card {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(230, 57, 70, 0.3);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #e63946;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.project-card .buttons {
  display: flex;
  gap: 10px;
}

.project-card .btn {
  background-color: #e63946;
  padding: 8px 14px;
  text-decoration: none;
  color: #fff;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.project-card .btn:hover {
  background-color: #d62828;
}

.view-all-wrapper {
  text-align: center;
  margin-top: 40px;
}

.view-all-projects-btn {
  background: transparent;
  border: 2px solid #e63946;
  padding: 10px 20px;
  font-size: 1rem;
  color: #e63946;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s;
}

.view-all-projects-btn:hover {
  background: #e63946;
  color: #fff;
  transform: scale(1.05);
}

#projects-full {
  background-color: #0a0a0a;
  padding: 80px 20px;
  color: #fff;
}
/* MODALS */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #1a1a1a;
  margin: 100px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  color: #fff;
  position: relative;
}

.modal-content h2 {
  color: #e63946;
  margin-bottom: 10px;
}

.modal-img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.tech-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
  padding: 0;
}

.tech-tags li {
  background: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #f1f1f1;
}

.modal-buttons .btn {
  margin-right: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

.close:hover {
  color: #e63946;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.project-card h3 a {
  color: #e63946;
  text-decoration: none;
  transition: color 0.3s;
}

.project-card h3 a:hover {
  color: #fff;
}
.projects-header {
  position: relative;
  text-align: center;
  padding: 40px 20px;
}

.back-button {
  position: absolute;
  top: 20px;
  right: 30px;
}

.back-button img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.8;
}

.back-button img:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* SKILLS SECTION */
#skills {
  background-color: #1a1a1a; /* Seperate the sections */
  padding: 80px 20px;
  color: #fff;
}


.timeline {
  max-width: 800px;
  margin: 0 auto 50px;
  border-left: 3px solid #e63946;
  padding-left: 20px;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #e63946;
  border-radius: 50%;
}

.timeline-item .year {
  font-weight: bold;
  color: #e63946;
  display: block;
  margin-bottom: 5px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.skill-card {
  background-color: #1a1a1a;
  border: 1px solid #333;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  color: #f1f1f1;
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.1);
  transition: transform 0.2s ease;
}

.skill-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
}

.back-to-top {
  text-align: center;
  margin: 40px 0;
}

.back-to-top a {
  display: inline-block;
  padding: 10px 18px;
  background-color: #e63946;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

.back-to-top a:hover {
  background-color: #d62828;
  transform: translateY(-3px);
}




#journey {
  background-color: #0a0a0a;
  padding: 80px 20px;
  color: #fff;
}

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

  .about-image img {
    width: 180px;
    height: 180px;
    margin-bottom: 20px;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr; /* stack cards */
    gap: 20px;
  }

  .timeline {
    border-left: 2px solid #e63946;
    padding-left: 15px;
  }

  .timeline-item p {
    font-size: 0.95rem;
  }

  .footer-links img {
    width: 24px;
    height: 24px;
  }

  .view-all-projects-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

@keyframes glow-bounce {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 8px #e63946);
  }
  50% {
    transform: translateY(10px);
    filter: drop-shadow(0 0 16px #ff5e5e);
  }
}

#contact {
  background-color: #1a1a1a;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: auto;
}

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

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #111;
  color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form .btn {
  width: fit-content;
  align-self: center;
}

.contact-info {
  margin-top: 30px;
  font-size: 0.95rem;
}

.contact-info a {
  color: #e63946;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
.success-message {
  display: none;
  margin-top: 20px;
  color: #a8f0a5;
  font-size: 1rem;
  animation: fadeIn 0.8s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.success-message.show {
  opacity: 1;
}
/* Submit Button Loading Animation */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}


