/* style.css */

body {
    margin: 0;
    padding: 0;
}

/* Gradient separator line */
.gradient-separator {
  width: 80%;
  height: 4px;
  margin: 40px auto;
  background: linear-gradient(
    300deg,
    rgba(42, 160, 54, 0.8),
    rgba(108, 169, 31, 0.8),
    rgba(179, 179, 0, 0.8),
    rgba(23, 102, 179, 0.8)
  );
  border-radius: 3px;
}

/* MAIN TOP SECTION*/
.Top-container {
    display: grid;
    justify-items: center;
    align-items: center;
    column-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}

.gradient-background {
  background: linear-gradient(300deg,#38e54d,#9cff2e,#fdff00,#2192ff);
  background-size: 180% 180%;
  min-width: 100%;
  width: 100%;
}

.limelight-regular {
  font-family: "Limelight", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 2.5rem;
}

h1 {
    grid-row-start: 2;
    grid-column-start: 2;
    border: solid;
    border-radius: 20%;
    max-width: fit-content;
    color: #2192ff;
}

.para {
    font-size: 1.5rem;
    grid-column-start: 2;
    grid-row-start: 3;
    order: 1;
    margin-top: 10px;
    align-self: flex-start;
}

.lake {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0px;
    border-radius: 5%;
    align-self: end;
    grid-column-start: 2;
    grid-row-start: 3;
    min-width: 0;
}


/* ABOUT ME section */
.About-me-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    font-family: "Roboto", sans-serif;
    margin-bottom: 50px;
    justify-items: center; 
    align-items: center;
}

.center-picture {
    grid-row-start: 1;
    justify-self: center;
    align-self: start;
}

.profile-pic {
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    border-radius: 50%;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.About-me-container > h2 {
    grid-row-start: 2;
    font-size: 3rem;
    color: #2192ff;
}

.About-me-container > p {
    grid-row-start: 3;
    font-size: 1.5rem;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}


/* MIDDLE section */
.Middle-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1200px;
  margin: 30px auto 0;
  font-family: "Roboto", sans-serif;
}

.Middle-container > div.section-row {
  background: rgba(255, 255, 255, 0.1); 
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

  display: grid;
  grid-template-columns: 90px 1fr; 
  align-items: center;
  column-gap: 90px;
}

.section-icon img {
  width: 120px;  
  height: auto;  
  display: block;
}

.learning-gif {
  width: 80px;
  height: auto;
  display: block;
}


.section-content {
  text-align: left; 
  max-width: 100%; 
  word-wrap: break-word; 
  line-height: 1.5; 
  padding-right: 10px; 
}

.section-content h3 {
  color: #2192ff;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.section-content p {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.Middle-container a {
  color: #38e54d; 
  text-decoration: none;
  font-weight: 500;
}

.Middle-container a:hover {
  text-decoration: underline;
}

.Header-section-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  font-family: "Roboto", sans-serif;
  color: #2192ff;
}

/* Projects section */

.projects-section {
  max-width: 900px;
  margin: 50px auto;
  padding: 0 15px;
  font-family: "Roboto", sans-serif;
}

.projects-section h2 {
  font-size: 3.5rem;
  color: #2192ff;
  text-align: center;
  margin-bottom: 30px;
}

.expandable {
  width: 100%;
  height: 0;
  overflow: hidden;
  transition: height 0.6s ease;
}

.expandBtn {
  display: block;
  margin-top: 20px;
  width: 300px;
  margin: 20px auto;
  padding: 12px 25px;
  background: linear-gradient(300deg, #38e54d, #9cff2e, #2192ff);
  border: none;
  border-radius: 25px;
  color: black;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  white-space: normal;
  word-wrap: break-word;
}

.expandBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.expandBtn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.expandBtn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(100%);
  pointer-events: none;
}

.projects-flex {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 40px 40px;
  justify-content: space-around;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 40px 40px;
  justify-content: space-around;
}

.project-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

.project-card h3 a {
  color: #38e54d;
  text-decoration: none;
}

.project-card h3 a:hover {
  text-decoration: underline;
}

.project-card p {
  margin: 0 0 10px 0;
  font-size: 1rem;
  line-height: 1.4;
}

.projects-section p:last-child {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1rem;
}

.projects-section p:last-child a {
  color: #2192ff;
  font-weight: 500;
  text-decoration: none;
}

.projects-section p:last-child a:hover {
  text-decoration: underline;
}

/* CONTACT ME section */

.contact-section {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: #2192ff;
  margin-bottom: 30px;
  margin-top: 50px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-link {
  color: #38e54d;
  font-size: 1.2rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  background-color: #38e54d;
  color: #121212;
  outline: none;
}

.icon {
  font-size: 1.5rem;
  line-height: 1;
}

/* Website scaling */
@media (max-width: 600px) {
    .Top-container {
        grid-template-columns: 1fr;
    }
    .limelight-regular {
        font-size: 1.5rem;
    }
    .para {
        font-size: 14px;
    }
    .lake {
        min-width: 0;
    }
    
    .About-me-container > h2 {
        font-size: 2rem;
    }

    .About-me-container > p {
        font-size: 1rem;
    }
    .profile-pic {
    max-width: 100px;
    max-height: 100px;
    }
    .Middle-container{
        grid-template-columns: 1fr;
        align-items: start;
        justify-content: flex-start;
    }
    .Middle-container > div {
        padding: 12px 15px;
    }
    .Middle-container p {
        font-size: 1rem;
    }
    .Middle-container > div.section-row {
    grid-template-columns: 40px 1fr;
  }
  .section-icon img {
    width: 80px;
    height: auto;
  }
  .projects-container {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto;
        gap: 30px 0;
        justify-content: center;
    }
    .contact-links {
    flex-direction: column;
    gap: 20px;
  }
}