@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400&family=Inter:wght@400;600;800&display=swap');

a{
    text-decoration: none;
    color: inherit;
}

:root{
  --color-bg: #0a192f;
  --color-text-main: #ccd6f6;
  --font-main: 'Inter', sans-serif;
  --color-text-sec: #8892b0;
  --font-mono: 'Fira Code', monospace;
  --color-accent: #64ffda;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background: var(--color-bg);
  color: var(--color-text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  padding: 0 50px;
}

.nav-bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 18px;
}

.logo{
  color: var(--color-accent);
  font-weight: bold;
  font-size: 24px;
}

.nav-links{
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links li{
  cursor: pointer;
  
}
.nav-links li:hover{
  color: var(--color-accent);
  
}

.hero-section{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-text{
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 16px;
  margin-bottom: 20px;
}

.big-heading{
  font-size: 60px;
  color: var(--color-text-main);
  font-weight: 800;
  line-height: 1.1;
}

.sub-heading{
  font-size: 60px;
  color: var(--color-text-sec);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  
}

.description{
  max-width: 500px;
  color: var(--color-text-sec);
  font-size: 18px;
  margin-bottom: 50px;
}

.cta-button{
  display: inline-block;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 18px 25px;
  border-radius: 4px;
  font-family: var(--font-mono);
  text-decoration: none;
  width: fit-content;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-3px);
}

.about-section{
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 0;
}

.about-heading{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 10px 0 40px;
  width: 100%;
  font-size: 32px;
  color: var(--color-text-main);
}
.about-heading::before{
  content: '';
  display: block;
  background-color: #233554;
  width: 300px;
  height: 1px;
  margin-right: 20px;
}
.about-heading::after{
  content: '';
  display: block;
  background-color: #233554;
  width: 300px;
  height: 1px;
  margin-left: 20px;
}

.inner-grid{
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--color-text-sec);
  
}


.skills-list{
  display: grid;
  grid-template-columns: repeat(2,minmax(140px,200px));
  gap: 0 10px;
  list-style: none;
  margin-top: 20px;
}

.skills-list li::before{
  content: '▹';
  color: var(--color-accent);
  margin-right: 10px;
  font-size: 18px;
  line-height: 30px;
}

.about-img .img-wrapper{
  border-radius: 4px;
  background-color: var(--color-accent);
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: hidden;
  
}
.about-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(1);
  transition: all 0.2s ease;
}

.about-img:hover img{
  filter: none;
  mix-blend-mode: normal;
}

@media(max-width: 768px){
  .inner-grid{
    display: block;
  }
  
  .about-img {
    margin-top: 50px;
    display: flex;
    justify-content: center;
  }
  
  .big-heading, .sub-heading {
    font-size: 40px;
  }
}

.work-section{
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px 0;
}

.work-heading{
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0px 0 60px;
  width: 100%;
  font-size: 32px;
  color: var(--color-text-main);
}

.work-heading::before,
.work-heading::after{
  content: '';
  display: block;
  background-color: #233554;
  width: 300px;
  height: 1px;
}

.work-heading::before{
  margin-right: 20px;
}

.work-heading::after{
  margin-left: 20px;
}


.project-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 120px;
}

.project-img{
  border-radius: 4px;
  background-color: black;
  overflow: hidden;
  position: relative;
  box-shadow: 0 12px 30px -15px rgba(2, 12, 27, 0.7);
  cursor: pointer;
  transition: all 0.25s ease;
}

.project-img a{
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: var(--color-accent);
  display: block;
}

.project-img img{
  border-radius: 4px;
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: multiply;
  filter: grayscale(100%) brightness(90%) contrast(1);
  transition: all 0.25s ease;
}
.project-img:hover{
  transform: translateX(-15px);
  box-shadow: 0 20px 30px -15px rgba(2,12,27,0.7);
}

.project-img:hover img {
  filter: none;
  mix-blend-mode: normal;
}

.project-content {
  position: relative;
  text-align: right;
}

.project-overline {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 10px;
}

.project-title {
  color: var(--color-text-main);
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
}
.project-description{
  background-color: #112240;
  padding: 25px;
  border-radius: 4px;
  color: var(--color-text-sec);
  font-size: 16px;
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  
  width: 120%;
  margin-left: -20%;
  position: relative;
  z-index: 2;
}

.project-tech-list {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 25px 0 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-sec);
}

.project-links {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.project-links a {
  color: var(--color-text-main);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
}

.project-links a:hover {
  color: var(--color-accent);
}




.contact-section {
  max-width: 600px;
  margin: 0 auto 100px;
  text-align: center;
  padding: 100px 0;
}

.contact-overline {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-title {
  font-size: 50px;
  color: var(--color-text-main);
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-desc {
  color: var(--color-text-sec);
  font-size: 18px;
  margin-bottom: 50px;
}



.footer {
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-sec);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.social-links a {
  color: var(--color-text-sec);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--color-accent);
}

.credits {
  margin-bottom: 10px;
}




/* Inverted Project Layout */
.project-row.inverted {
  /* No grid changes needed if we swap HTML order, 
     but keeping semantic order is better. 
     Let's just swap visually using text alignment */
}

.project-row.inverted .project-content {
  text-align: left; /* Flip alignment */
  grid-column: 1 / 2; /* Place in first column */
  grid-row: 1 / 2;
}

.project-row.inverted .project-img {
  grid-column: 2 / 3; /* Place in second column */
  grid-row: 1 / 2;
}

.project-row.inverted .project-description {
  margin-left: 0;
  margin-right: -20%; /* Overlap to the right */
}

.project-row.inverted .project-tech-list,
.project-row.inverted .project-links {
  justify-content: flex-start; /* Align list to left */
}

/* Fix mobile overlap for inverted */
@media(max-width: 768px){
    .project-row.inverted .project-description {
        margin-right: 0;
        width: 100%;
    }
}
/* Fix hover direction for the inverted (right-side) image */
.project-row.inverted .project-img:hover {
  transform: translateX(15px); /* Moves RIGHT instead of LEFT */
}












/* Mobile Navigation Styles */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 5px;
  transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
  body {
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Show the hamburger icon on mobile */
  .hamburger {
    display: block;
    z-index: 1000; /* Ensure it sits on top */
  }

  /* Transform the nav-links into a sidebar */
  .nav-links {
    position: fixed;
    right: 0px;
    height: 100vh;
    top: 0vh;
    background-color: #112240; /* Slightly lighter dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%; /* Covers 70% of screen width */
    transform: translateX(100%); /* Hide off-screen by default */
    transition: transform 0.5s ease-in;
    z-index: 999;
    box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
  }

  .nav-links li {
    opacity: 0; /* Hide links initially for fade-in effect */
    margin: 20px 0;
  }
  
  .nav-links a {
      font-size: 20px;
      color: var(--color-text-main);
      text-decoration: none;
  }

  /* Class to slide menu in */
  .nav-active {
    transform: translateX(0%);
  }

  /* Animation for the hamburger turning into an X */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  .toggle .line2 {
    opacity: 0;
  }
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
  
  /* Animation for links appearing */
  @keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
  }
}