/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

 @import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');



* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Inter", sans-serif;
}

h1, h2, h3, h4, h5 {
  font-family: "Commissioner", sans-serif;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #333;
  z-index: 1000;
  transition: all 0.5s ease;
}

.navbar.scrolled {
  background-color: #333;
  border-bottom: 1px solid black;
}


/* Navgation Image and Text */
.navbar img {
  height: auto;
  width: 80px;
  object-fit: contain;
  border-radius: 50%;
  margin-right: 1rem;
}

.logo {
  font-size: 3.7rem;
  margin-right: auto;
  text-decoration: none;
  color: #000;
  font-family: "Poppins", sans-serif;
  font-weight: 200;
}

.navbar.scrolled .logo {
  color: #fff;
}


/* Navigation Menu */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: black;
  padding-bottom: 6px;
  font-weight: 500;
}

.navbar.scrolled .nav-links a {
  color: #fff;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 3px;
  background-color: #537D8D;
  border-radius: 10px;
  transition: width 0.4s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%;
}


/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  padding: 1rem;
  gap: 0.5rem;
  min-width: 235px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  z-index: 100;
  border: 1px solid #e0e0e0;
}

.navbar.scrolled .dropdown-menu {
  background-color: #333;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  color: #333;
  font-weight: 400;
  text-decoration: none;
  padding: 0.3rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  color: #537D8D;
  font-weight: 600;
}

.navbar.scrolled .dropdown-menu a:hover {
  color: #537D8D;
  font-weight: 600;
}
.dropdown-menu a::after {
  display: none;
}


/* Link Buttons */
.nav-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}
.btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
}

.btn.primary {
  background: #fff;
  color: black;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn.primary:hover {
  background: #2b105e;
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: black;
  border: 1px solid #e0e0e0;
  border-radius: 75px;
  transition: all 0.3s ease;
}

.btn.secondary:hover {
  background: #1568c2;
  color: #fff;
}

.btn.success {
  background: #fff;
  color: black;
  border: 1px solid #e0e0e0;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn.success:hover {
  background: #CD201F;
  color: #fff;
}


/* Intro Section */
.intro-section {
  display: relative;
  background-color: #537D8D;
  color: white;
  padding: 1rem 1rem;
  text-align: center;

}

.intro-section h1 {
  font-size: 4rem;
  font-weight: 500;
  text-shadow: 0 4px 2px black;
  line-height: 1rem;
  letter-spacing: 2px;
}

.hover-name {
  color: white;
  transition: color 0.5s ease, background-color 0.3s ease;
  cursor: cell;
  padding: 2px 8px;
  padding-bottom: 8px;
  padding-right: 50px;
  border-radius: 0px;
}

.hover-name:hover {
  font-size: 4.1rem;
}

.cell-clicked {
  background-color: white;
  color: black;
  font-family: "Consolas", monospace;
  font-weight: 100;
  text-shadow: none;
  box-shadow: inset 0 0 0 6px #056627;
  position: relative;
}

.cell-clicked::after {
  content: "";
  position: absolute;
  right: 2.5rem;
  top: 25%;
  width: 2.2px;
  height: 0.8em;
  background-color: black;
  animation: blink 2s steps(1) infinite;
}

/* Blinking animation */
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

.intro-section h3 {
  color: #333;
  font-size: 2rem;
  margin-top: -1rem;
  margin-right: -20rem;
  letter-spacing: 2px;
}

/* About Section */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: -4.5rem;
  padding: 2rem 1rem;
}

.about-section .text-content h2 {
  font-size: 1.75rem;
  line-height: 2.5rem;
  margin-bottom: -1rem;
  font-weight: 600;
}

.about-section .text-content p {
  color: black;
  line-height: 1.8;
  padding-top: 1rem;
  text-align: left;
  margin-bottom: -1rem;
}


.about-section .text-content p strong {
  color: #E9A13C;
  text-decoration: none;
}

.about-section .text-content a {
  text-decoration: none;
  color: inherit;
}
.about-section .text-content a:hover {
  color: #537D8D;
}

.about-section .image-content {
  align-items: center;
}

.about-section .image-content img {
  width: 95%;
  height: auto;
  border-radius: 50%;
}



/* Tools Section */
.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  min-height: 130px;
  margin-top: 4rem;
}

.logo-section h2,
.logo-section i {
  font-size:5rem;
  letter-spacing: 3rem;
  text-align: center;
  transition: all 0.3s ease;
}

.logo-section i:hover {
  font-size: 5.5rem;
}




/* Projects Section */
.projects {
  padding: 2rem 1rem;
  background-color: #ececec;
  margin-bottom: -4rem;
}

.projects h2 {
  font-size: 4rem;
  font-weight: 400;
  text-align: center;
  margin: 4rem 0;
}

.project-section {
  padding: 4rem 4rem;
  background-color: #ececec;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  justify-content: left;
  gap: 2rem;
  padding: 2rem;
}

.project-section article {
  background-color: #fff;
  max-width: 750px;
  border-radius: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 1.2rem;
  display: flex;
  border: 1px solid #fff;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease-in-out;
}

.project-section article:hover {
  border: 1px solid black;
}

.project-section header h4 {
  font-size: 2rem;
  margin-bottom: -0.5rem;
  margin-top: -0.5rem;
}

.project-section header h3 a {
  text-decoration: none;
  color: #333;
  font-size: 2rem;
  font-weight: 700;
}

.project-section header h3 a:hover {
  color: #537D8D;
}

.project-section header p {
  color: #555;
  font-style: italic;
}

.project-section .image.fit img {
  max-height: 250px;
  width: 60%;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto;
}

.project-section p {
  color: #333;
  line-height: 1.6;
}

.button-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin-top: 1.5rem;
}

.button-links .button {
  padding: 0.6rem 1.5rem;
  background-color: #fff;
  border: 1px solid #333;
  color: #333;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.5s ease;
}

.button-links .button:hover {
  background-color: #537D8D;
  border: 1px solid #fff;
  color: #fff;
}



/* Resume Section */
.heading {
  font-size: 4rem;
  font-weight: 400;
  text-align: center;
  margin: 4rem 0;
}

.education {
  padding: 10px 15px;
  background-color: #ececec;
}

.education h2 {
  margin-bottom: 5rem;

}

.timeline-items {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 4rem;
}

.timeline-items::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 100%;
  background-color: #333;
  left: calc(50% - 1px);
}

.timeline-item {
  margin-bottom: 40px;
  width: 100%;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  padding-right: calc(50% + 30px);
  text-align: right;
}

.timeline-item:nth-child(even) {
  padding-left: calc(50% + 30px);
}

.timeline-dot {
  height: 24px;
  width: 24px;
  background-color: #D7816A;
  border: 2px solid #333;
  position: absolute;
  left: calc(50% - 10.5px);
  border-radius: 0%;
  top: 14px;
}

.timeline-date {
  font-size: 2rem;
  font-weight: 500;
  color: #333;
  margin: 6px 0 15px;
}

.timeline-content {
  background-color: #e0e0e0;
  border: 3px solid white;
  padding: 3px 10px;
  border-radius: 1rem;
  box-shadow: 0 0 3px black;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: 0 0 8px black;
}

.timeline-content h3{
  font-size: 1.2rem;
  color: #D7816A;
  margin: 0 0 10px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.timeline-content:hover h3 {
  font-size: 1.3rem;
}

.timeline-content h4 {
  font-size: 1rem;
  color: #333;
  margin-top: 0rem;
}

.timeline-content p {
  color: #333;
  margin: 0 0 10px;
  font-weight: 300;
  line-height: 22px;
}



/* Areas of Interest Section */
.interests-section {
  position: relative;
  color: white;
  padding: 4rem 2rem;
}

.interests-section .bg-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/r-background.jpg');
  background-size: 100%;
  background-position: center;
  filter: blur(4px) brightness(0.3);
  z-index: 0;
}

.interests-section .content {
  position: relative;
  z-index: 1;
}

.interests-section h2 {
  font-size: 4rem;
  font-weight: 400;
  text-align: center;
  margin: 4rem 0;
}

.interests-section .card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
}

.features {
  margin: 1rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.features .card {
  padding: 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.features .card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.features .card:hover p {
  color: #E9A13C;
}

.features .card span {
  display: inline-block;
  background-color: #537D8D;
  padding: 2px 10px;
  font-size: 3rem;
  color: #fff;
  border-radius: 50%;
}

.features .card h4 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
}

.card-list {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
  list-style-type: disc;
  color: #fff;
}

.card-list li {
  margin-bottom: 0.3rem;
}

.features .card p {
  color: #fff;
  margin-bottom: 1rem;
}

.features .card a {
  color: #fff;
  transition: all 0.3s ease;
}

.features .card a:hover {
  color: #af1e1e;
}

/* About Me Section */
.header h2{
  font-size: 4rem;
  font-weight: 400;
  text-align: center;
  margin: 4rem 0;
}

.section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section:nth-child(even) {
  flex-direction: row-reverse;
  background-color: #f1f1f1;
}

.section img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  flex: 1 1 40%;
}

.section .text {
  flex: 1 1 55%;
  padding: 20px;
}

.slide-in-left {
  transform: translateX(-80px);
}

.slide-in-right {
  transform: translateX(80px);
}

.slide-in-left.visible,
.slide-in-right.visible {
  transform: translateX(0);
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

/* MEDIA QUERIES */

/* Mobile Responsiveness */
@media (max-width: 800px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ============================= */
/* 📱 Mobile & Small Screens Fix */
/* ============================= */

@media (max-width: 600px) {
  /* Navigation: hide dropdown on small screens */
  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  /* About section: stack image/text vertically */
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .about-section .image-content img {
    width: 60%;
    margin: 0 auto;
  }

  .about-section .text-content {
    padding: 0 1rem;
  }

  .about-section .text-content p strong {
    font-size: 1rem;
    text-decoration: none;
  }

  /* Logo (tools) icons spacing */
  .logo-section h2, .logo-section i {
    font-size: 2rem;
    letter-spacing: 1rem;
  }

  /* Project grid adjusts to one column */
  .project-section {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .projects h2 {
    font-size: 3rem;
  }
  .project-section article {
    width: 100%;
  }

  /* Timeline (resume) becomes vertical */
  .education h2 {
    font-size: 3rem;
  }
  .timeline-items::before {
    left: 8px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding: 0 1rem 0 2rem;
    text-align: left;
  }

  .timeline-dot {
    left: 0;
  }

  /* Interests grid stacks vertically */
  .content h2 {
    font-size: 3rem;
  }
  .features {
    grid-template-columns: 1fr;
  }

  .interests-section {
    padding: 2rem 1rem;
  }

  /* About Me stacked layout */
  .heading {
    font-size: 3rem;
  }
  .section {
    flex-direction: column !important;
    text-align: center;
    padding: 2rem 1rem;
  }

  .section .text {
    padding: 1rem 0;
  }

  .section img {
    max-width: 80%;
  }

  /* Intro Text Adjustments */
  .intro-section h1 {
    font-size: 2rem;
    line-height: normal;
    text-align: center;
    margin: 0 auto;
    margin-top: 1rem;
  }
  /* Remove name typing effect on small screens */
.hover-name {
    color: white;
    cursor: default;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    transition: none;
  }

  .hover-name:hover {
    font-size: inherit;
  }

  .cell-clicked {
    background-color: transparent;
    color: white;
    font-family: inherit;
    font-weight: inherit;
    text-shadow: none;
    box-shadow: none;
    position: static;
  }

  .cell-clicked::after {
    display: none;
  }

  .intro-section h3 {
    font-size: 1.5rem;
    margin-right: 0rem;
    margin-top: 1rem;
  }

