/* Custom Styles */

/* General Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;
}

/* Navigation */
.nav-link {
  position: relative;
  color: #f5f5f5;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: #f5f5f5;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-nav-link {
  position: relative;
  color: #f5f5f5;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 0;
  overflow: hidden;
}

.mobile-nav-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: -100%;
  background-color: #f5f5f5;
  transition: left 0.3s;
}

.mobile-nav-link:hover::after {
  left: 0;
}

/* Section Title */
.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 4rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 1px;
  background-color: currentColor;
  bottom: -10px;
  left: 0;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #f5f5f5;
  color: #0a0a0a;
  font-weight: 600;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  transition: left 0.3s;
  z-index: -1;
}

.btn-primary:hover {
  color: #f5f5f5;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #f5f5f5;
  font-weight: 600;
  border: 1px solid #f5f5f5;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  transition: left 0.3s;
  z-index: -1;
}

.btn-secondary:hover {
  color: #0a0a0a;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-dark {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-weight: 600;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s;
}

.btn-dark::before {
  content: "";
  position: absolute;
  top: 0;
  ;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  transition: left 0.3s;
  z-index: -1;
}

.btn-dark:hover {
  color: #0a0a0a;
}

.btn-dark:hover::before {
  left: 0;
}

/* Scroll Indicator */
.scroll-indicator {
  width: 30px;
  height: 50px;
  border: 2px solid #f5f5f5;
  border-radius: 15px;
  position: relative;
}

.scroll-arrow {
  width: 6px;
  height: 6px;
  border-right: 2px solid #f5f5f5;
  border-bottom: 2px solid #f5f5f5;
  transform: rotate(45deg);
  position: absolute;
  top: 10px;
  left: 50%;
  margin-left: -3px;
  animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-5px, -5px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(5px, 5px);
  }
}

/* Info Cards */
.info-card {
  padding: 1.5rem;
  background-color: #0a0a0a;
  color: #f5f5f5;
  border: 1px solid #333333;
  transition: transform 0.3s, border-color 0.3s;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #f5f5f5;
}

/* Skill Cards */
.skill-card {
  position: relative;
  padding: 1.5rem;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e5e5e5;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  background-color: #0a0a0a;
  width: 0;
}

/* Experience Timeline */
.experience-timeline {
  position: relative;
  padding-left: 2rem;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background-color: #333333;
}

.experience-item {
  position: relative;
  margin-bottom: 4rem;
}

.experience-marker {
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #f5f5f5;
  border-radius: 50%;
  transform: translateX(-50%);
}

.experience-date {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #333333;
  color: #f5f5f5;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.experience-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.experience-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  background-color: #888888;
}

/* Education Cards */
.education-card {
  padding: 2rem;
  background-color: #f5f5f5;
  border: 1px solid #e5e5e5;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.education-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #0a0a0a;
  color: #f5f5f5;
  font-size: 0.875rem;
}

/* Project Cards */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}


/* Add this to your CSS */
.fully-loaded .project-card {
  opacity: 1;
  transform: translateY(0);
  transition: none; /* Prevents fade-out on reload */
}


.project-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  animation: makeVisible 0.5s 2s forwards;
}

@keyframes makeVisible {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  .project-card {
    flex-direction: row;
    align-items: center;
  }

  .project-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.project-content {
  flex: 1;
}

.project-image {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.project-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.2);
  transition: background-color 0.3s;
}

.project-card:hover .project-image::after {
  background-color: rgba(10, 10, 10, 0);
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #333333;
  color: #f5f5f5;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: #f5f5f5;
  font-weight: 600;
  transition: color 0.3s;
}

.project-link-arrow {
  margin-left: 0.5rem;
  transition: transform 0.3s;
}

.project-link:hover {
  color: #888888;
}

.project-link:hover .project-link-arrow {
  transform: translateX(5px);
}

/* Form Inputs */
.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-label {
  position: absolute;
  top: 0.75rem;
  left: 0;
  font-size: 0.875rem;
  color: #888888;
  transition: transform 0.3s, color 0.3s;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.75rem 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #888888;
  color: #0a0a0a;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: #0a0a0a;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-1.25rem) scale(0.75);
  color: #0a0a0a;
}

/* Contact Info */
.contact-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.contact-item-title {
  font-size: 0.875rem;
  color: #888888;
  margin-bottom: 0.5rem;
}

.contact-item-content {
  font-size: 1.125rem;
  font-weight: 500;
}

/* Footer */
.footer-icon {
  transition: transform 0.3s, color 0.3s;
}

.footer-icon:hover {
  transform: translateY(-5px);
  color: #888888;
}

/* Loader */
.loader-text {
  display: inline-block;
}

.loader-progress {
  position: relative;
}

.loader-bar {
  width: 0;
}

/* Animations */
/* Add this to your styles.css file */
.reveal-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.is-visible, /* Keep this class for JavaScript toggling */
.reveal-content:nth-child(odd) { /* This ensures content is visible regardless of JS */
  opacity: 1;
  transform: translateY(0);
}

/* Add a slight delay for even-numbered elements for a staggered effect */
.reveal-content:nth-child(even) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}


.project-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Add an interim solution to ensure visibility regardless of JS */
@media (max-width: 768px) {
  .project-card {
    opacity: 1;
    transform: translateY(0);
  }
}



.delay-200 {
  transition-delay: 0.2s;
}

/* Hero animations */
.hero-title span,
.hero-subtitle,
.hero-text,
.hero-buttons {
  opacity: 0;
}
