/* Reset browser defaults */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General body styling */
body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  background-color: #EBF7FC;
  
  
  color: #111;

  max-width: 1000px;   /* keeps content in a nice readable column */
  margin: 0 auto;     /* centers the column */
  padding: 1rem;

  text-align: center; /* center-align text by default */
}



/* Navigation */
header {
    position: sticky;
    top: 0;
    background: #EBF7FC; /* keep it readable */
    z-index: 1000;     /* make sure it sits above content */
    padding: 0.2rem 0;   /* optional spacing inside */
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  
  
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  transition: background-color 150ms ease, color 150ms ease;
  font-size: larger;
}

.nav-links a:hover {
  color: #6a0dad; /* purple hover like the reference site */
  background-color: rgba(106, 13, 173, 0.06);
}

/* Intro section */
.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0rem;
  margin: 1rem 0;
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 20px;
  

}

.about-text {
  flex: 1.4; /* give text slightly more width */
}

.about-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.about-text p {
  text-align: left;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-size: 1.3rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 400px;
  border-radius: 12px; /* optional: rounded corners */
  animation: float 4s ease-in-out infinite;
  transform-origin: top center;
}
@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-7px); 
  }
}


/* Exciting stuff section *****************************************************************/
.exciting-section {
  margin: 2rem 0;
  text-align: left;
}

.exciting-section h2 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #000000;
  font-weight: bold;
}

.cards-container {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
}

.card {
  background-color: #FFFFFF;
  
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 280px;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
}

.card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.card-content h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #333;
}

.card-content p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}


/* Engineering section ****************************************************************** */









Content section
.content {
  margin-bottom: 3rem;
  text-align: left; /* left-align lists for readability */
}

.content h2 {
  margin-bottom: 1rem;
}

.content ul {
  list-style: disc inside;
}

.content a {
  color: #6a0dad;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

/* Engineering section */
.engineering-section {
  margin: 4rem 0;
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.engineering-section.dark-mode {
  background-color: #8ca8a7;
  color: #ffffff;
}

.toggle-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #6a0dad;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

.toggle-label-left,
.toggle-label-right {
  font-size: 0.9rem;
  font-weight: bold;
  color: #333;
  transition: color 0.3s ease;
}

.engineering-section.dark-mode .toggle-label-left,
.engineering-section.dark-mode .toggle-label-right {
  color: #333;
}

.engineering-content {
  margin-top: 1rem;
}

.engineering-content h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  transition: color 0.3s ease;
}

.engineering-section.dark-mode .engineering-content h2 {
  color: #ffffff;
}

.content-display {
  text-align: left;
}

.experience-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.experience-item:hover {
  transform: translateY(-2px);
}

.engineering-section.dark-mode .experience-item {
  background: #2a2a2a;
  
}

.experience-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.1rem;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  transition: color 0.3s ease;
}

.engineering-section.dark-mode .experience-item h3 {
  color: #ffffff;
}

.experience-item .company {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: #B30000;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.engineering-section.dark-mode .experience-item .company {
  color: #bb86fc;
}

.experience-item .description {
  font-size: 1.1rem;
  line-height: 1.3;
  color: #555;
  margin-left: 2rem;
  transition: color 0.3s ease;
}

.engineering-section.dark-mode .experience-item .description {
  color: #cccccc;
}

/* Project items (when toggled) */
.project-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f0f9ff;
  border-radius: 12px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-item:hover {
  transform: translateY(-2px);
}

.engineering-section.dark-mode .project-item {
  background: #1e293b;
  
}

.project-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  transition: color 0.3s ease;
}

.engineering-section.dark-mode .project-item h3 {
  color: #ffffff;
}

.project-item .tech-stack {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  color: #0ea5e9;
  font-weight: 600;
  transition: color 0.3s ease;
}

.engineering-section.dark-mode .project-item .tech-stack {
  color: #38bdf8;
}

.project-item .description {
  font-size: 1.1rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
  transition: color 0.3s ease;
  margin-left: 2rem;
}

.engineering-section.dark-mode .project-item .description {
  color: #cccccc;
}

.description {
  margin-left: 2rem;     /* adjust value as needed */
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}



/* Footer */
/* Footer layout */
footer {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  background-color: #fcfbf9;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
  justify-content: center;
}

/* Contact info box */
.contact-info {
  background-color: #fcfbf9;
  padding: 1.5rem;
  margin-top: -4rem;
  border-radius: 12px;
  min-width: 280px;
  text-align: left;
}

.contact-info h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.contact-item {
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.2rem;

}

.contact-label {
  font-weight: 600;
  color: #555;
  font-size: 1.1rem;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-info a {
  color: #555;
  text-decoration: none;
  font-weight: normal;
}

.contact-info a:hover {
  text-decoration: underline;
}

.footer-text {
  text-align: center;
  margin-top: -4rem;
}

.footer-text p {
  margin: 0.1rem 0;
  font-size: medium;
  
}

a {
  color: #B30000; /* custom link color */
  text-decoration: none; /* remove underline */
  font-weight: bold;
}





.cat-animation-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 4rem 0;               /* Add margin for spacing */
}

.cat-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: catWalk 3.5s infinite;
}

.cat-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Crop the image - adjust these values to crop different amounts */
  clip-path: inset(10% 30% 30% 20%);
  scale: 3; /* Scale up to compensate for cropping */
}

/* Each frame appears at different times */
.cat-frame:nth-child(1) { animation-delay: 0s; }
.cat-frame:nth-child(2) { animation-delay: 0.5s; }
.cat-frame:nth-child(3) { animation-delay: 1s; }
.cat-frame:nth-child(4) { animation-delay: 1.5s; }
.cat-frame:nth-child(5) { animation-delay: 2s; }
.cat-frame:nth-child(6) { animation-delay: 2.5s; }
.cat-frame:nth-child(7) { animation-delay: 3s; }

@keyframes catWalk {
  0% { opacity: 0; }
  10% { opacity: 1; }    /* Start earlier */
  20% { opacity: 1; }    /* Hold longer */
  30% { opacity: 0; }    /* End later */
  100% { opacity: 0; }
}

/* Backup placeholder for when images aren't loaded
.cat-frame::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: #2a4a6b;
  border-radius: 50%;
  border: 3px solid #4a9eff;
  opacity: 0.3;
  z-index: -1;
} */

.instructions {
  color: #888;
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .cat-animation-container {
    width: 150px;
    height: 150px;
  }
}























/* Responsive tweaks */
@media (max-width: 600px) {
  body {
    padding: 0.75rem;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}
@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
  .about-text {
    order: 2; /* text below image on mobile */
  }
  .about-image {
    order: 1;
  }
  .about-image img {
    max-width: 200px;
  }

    .cards-container {
    flex-direction: column;
    gap: 1rem;
  }

  .card {
    min-width: unset;
    max-width: unset;
  }

  .exciting-section {
    text-align: center;
  }

  .exciting-section h2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .card {
    flex-direction: column;
    text-align: center;
  }

  .card-icon {
    align-self: center;
  }
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .contact-info {
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }
}