/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
}

.aligned-text {
  text-align: justify;
  line-height: 1.6;
}

/* TRANSITION */

a,
.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  min-height: 80px;
  padding: 0 2rem;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

#main-link {
  text-decoration: none;
  cursor: pointer;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding: 3vh 0;
  margin: 0 10rem;
  min-height: fit-content;
}

.section-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  min-height: 60vh;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 8rem;
  align-items: center;
  min-height: 80vh;
  padding: 2rem 0;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section__text {
  align-self: center;
  text-align: center;
  flex: 1;
}

.section__text p {
  font-weight: 800;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 2rem;
}

/* Alternative image styling - uncomment if you prefer to show full image without cropping */
/*
#profile-pic,
.about-pic {
  object-fit: contain;
  object-position: center;
  background-color: #f8f9fa;
}
*/

/* Current cropped version with top focus */
#profile-pic {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#profile-pic:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.btn {
  font-weight: 800;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
}

.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
  padding: 2vh 0;
}

.about-containers {
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-pic:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.2rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  text-align: center;
  margin-bottom: 0.8rem;
}

.section-container {
  gap: 4rem;
  min-height: auto;
}

.section__pic-container {
  height: 400px;
  width: 400px;
  margin: auto 0;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-container {
  margin-top: 2rem;
  flex: 1;
}

.skills-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1rem;
  justify-content: space-around;
}

/* EDUCATION SECTION */
#education {
  position: relative;
  padding: 4vh 0;
  margin-top: 4rem;
}

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  padding: 4vh 0;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 1.2rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
  align-items: center;
}

article .icon {
  cursor: default;
}

/* JOB SECTION */

#job-experience-section {
  padding: 1.5rem 0;
}

.job-company-logo {
  width: 100px;
  height: auto;
  margin-right: 1rem;
  flex-shrink: 0;
}

.job-experience-details-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.job-details-container {
  display: flex;
  align-items: flex-start;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 1rem 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.job-experience-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: justify;
  flex: 1;
}

.job-experience-sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.job-details-container ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0;
  text-align: justify;
}

.company-link {
  color: #555;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.3s ease;
}

.company-link:hover {
  color: #007bff;
}

.company-link i {
  font-size: 0.9rem;
}

.certification-link {
  display: inline-flex;
  align-items: center;
  color: #007bff;
  text-decoration: none;
  margin-top: 0.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #007bff;
  border-radius: 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.certification-link:hover {
  background-color: #007bff;
  color: white;
  transform: translateY(-1px);
}

.certification-link i {
  margin-right: 0.3rem;
  font-size: 0.8rem;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  padding: 4vh 0;
}

.color-container {
  border-color: rgb(163, 163, 163);
  background: rgb(250, 250, 250);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-img {
  border-radius: 1rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-title {
  margin: 1rem;
  color: black;
  flex-grow: 1;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

.more-projects-container {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.more-projects-btn {
  width: auto;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: rgb(53, 53, 53);
  color: white;
  border: none;
  transition: all 300ms ease;
}

.more-projects-btn:hover {
  background-color: rgb(33, 33, 33);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.more-projects-btn i {
  margin-right: 0.5rem;
}

/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 2rem 0 4rem 0;
  align-items: center;
}

.contact-details-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem 0;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: flex;
  align-items: center;
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgb(53, 53, 53);
}

.contact-icon-container {
  flex-shrink: 0;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgb(250, 250, 250);
  border-radius: 50%;
}

.contact-icon {
  color: rgb(53, 53, 53);
  transition: color 0.3s ease;
}

.contact-card:hover .contact-icon {
  color: #0077b5;
}

.contact-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-card-link:hover .contact-card {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgb(53, 53, 53);
}

.contact-card-link:hover .contact-card .contact-icon {
  color: #0077b5; /* Default blue for LinkedIn */
}

/* Platform-specific hover colors */
.contact-card-link:hover .contact-card .fa-envelope {
  color: #ea4335; /* Gmail red */
}

.contact-card-link:hover .contact-card .fa-linkedin {
  color: #0077b5; /* LinkedIn blue */
}

.contact-card-link:hover .contact-card .fa-github {
  color: #333; /* GitHub dark */
}

.contact-card-link:hover .contact-card .fa-x-twitter {
  color: #1da1f2; /* Twitter blue */
}

.contact-card-link:hover .contact-card .fa-instagram {
  color: #e4405f; /* Instagram pink */
}

.contact-text {
  flex: 1;
}

.contact-text h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(53, 53, 53);
}

.contact-text p {
  margin: 0;
  font-size: 1rem;
}

.contact-text a {
  color: rgb(85, 85, 85);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-text a:hover {
  color: #0077b5;
  text-decoration: underline;
}

/* Contact Form Styling */
.contact-form-container {
  max-width: 600px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 2rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: rgb(53, 53, 53);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: rgb(250, 250, 250);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgb(53, 53, 53);
  box-shadow: 0 0 0 2px rgba(53, 53, 53, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  align-self: center;
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  width: auto;
  min-width: 150px;
  background: rgb(53, 53, 53);
  color: white;
  border: 1px solid rgb(53, 53, 53);
  border-radius: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(53, 53, 53, 0.2);
}

.submit-btn:hover {
  background: rgb(0, 0, 0);
  border-color: rgb(0, 0, 0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(53, 53, 53, 0.2);
}

/* FOOTER SECTION */

footer {
  padding: 2rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid rgb(163, 163, 163);
}

footer p {
  text-align: center;
}

/* About containers responsive grid */
.about-containers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

@media screen and (max-width: 320px) {
  .about-containers {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Skills section improvements */
.skills-container .about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.skills-container .details-container {
  flex: 1;
  min-width: 300px;
}

/* Social media icons */
.social {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social:hover {
  transform: translateY(-3px);
}

.social a {
  color: #333;
  font-size: 1.5rem;
}

.social a:hover {
  color: #0077b5;
  text-decoration: none;
}

/* THANK YOU PAGE */

#thank-you {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 4vh 0;
}

.thank-you-container {
  text-align: center;
  max-width: 600px;
  padding: 3rem;
  background: white;
  border-radius: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.thank-you-icon {
  margin-bottom: 2rem;
  color: #28a745;
  animation: checkmark 0.6s ease-in-out;
}

@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.thank-you-message {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 2rem 0;
  color: rgb(85, 85, 85);
}

.thank-you-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.estimated-response {
  margin-top: 2rem;
  padding: 1rem;
  background: rgb(250, 250, 250);
  border-radius: 0.5rem;
  border-left: 4px solid #28a745;
}

.estimated-response p {
  margin: 0;
  font-size: 1rem;
  color: rgb(85, 85, 85);
}
