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

/* body */

* {
    margin: 0;
    padding: 0;
};

:root {
    --background-color: white;
    --text-color: black;
    --link-color: blue;
}

body {
    font-family: 'Poppins', sans-serif;
}


html {
    scroll-behavior: smooth;
}

p {
    color: rgb(100, 100, 100);
    transition: filter 1.5s ease; 
}

/* dark mode settings */

body {
    /* Set the default background color and text color */
    background-color: white;   
    color: black;
    /* Enable the positioning of the pseudo-element */
    position: relative;
    transition: color 1.5s;
  }
  
  body::after {
    /* Set the new background color */
    background-color: black; 
    /* Render the pseudo element */
    content: "";             
    /* Cover the entire page with the pseudo element */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* Render the new background color beneath the page content */
    z-index: -1;
    /* Toggle opacity between 0 and 1 */
    opacity: 0;
    /* Animate opacity changes */
    transition: opacity 1.5s;
  }
  
  body.dark-mode {
    /* Adjust text color in dark mode */
    color: white;
  }
  
  body.dark-mode::after {
    /* Make the overlay visible in dark mode */
    opacity: 1;
  }

  .nav-links li a, .nav-links2 li a  {
    color: var(--link-color-light); /* Set light mode link color */
    /* Add transition for color */
  }
  
  body.dark-mode .nav-links li a, body.dark-mode .nav-links2 li a {
    color: var(--link-color-dark); /* Set dark mode link color */
  }

  body.dark-mode .button1 {
    color: white;
    box-shadow: 0 8px 12px rgba(188, 195, 202, 0.1), 0 3px 6px rgba(0, 0, 0, 0.12);
    transition: color 1.5s ease;
  }

  body.dark-mode .button1:hover {
    color: white;
    box-shadow: 0 8px 12px rgba(188, 195, 202, 0.3), 0 3px 6px rgba(0, 0, 0, 0.16);
  }

body.dark-mode .details-container {
    background: rgb(0, 0, 0); /* Set grey background in dark mode */
}

body.dark-mode .contact-info-upper-container {
    background-color: black;
    transition: background-color 1.5s ease; /* Add a transition for a smooth effect */
}

body.dark-mode .contact-info-upper-container {
    background: black; /* Set the background color for dark mode */
}

body.dark-mode .contact-info-upper-container::before {
    background: linear-gradient(45deg, #2196F3, #4CAF50) border-box;
}

body.dark-mode .contact-info-container a {
    color: white;
}


body.dark-mode p {
    color: rgb(163, 163, 163);
}

body.dark-mode h2 {
    color: rgb(255, 255, 255);
}

body.dark-mode .contact-icon {
    filter: invert(0);
    transition: filter 1.5s ease; /* Add a transition for a smooth effect */
}

body.dark-mode #profile .button1 {
    color: white;
}

body.dark-mode #profile .button1:hover {
    color: white;
    /* Add any additional styling for hover state if needed */
}

/* transition */

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

/* nav */

nav, .logo {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    height: 10vh;
}

.nav-links {
    list-style: none;
    font-size: 22px;
    display: flex; 
    gap: 2rem;
    margin-right: 40px; 
}

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

a:hover {
    color: grey;
    text-decoration: underline;
    text-underline-offset: 10px;
}

.logo {
    font-size: 28px;
    margin-left: 40px;
}

/* Section */

section {
    padding-top: 4vh;
    height: 96 vh;
    margin: 0 10rem;
    box-sizing: border-box;
    min-height: fit-content;
}

.section-container {
    display: flex;
}

/* Profile */


#profile {
    display: flex;
    justify-content: left;
    align-items: flex-end;
    height: 90vh;
    margin-bottom: 6rem;
    background: url('/assets/IMG_4908.png') right bottom/contain no-repeat;
    position: relative;
    overflow: hidden;
    background-size: 50%;
    margin-left: 0;
    margin-right: 0;
}

#profile.parallax {
    min-height: 1110px;
    background-attachment: fixed;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0px;
    margin-bottom: 6rem; /* Adjust this value based on your header height */
}

#profile .profile-text {
    margin-left: 20rem;
    margin-bottom: 10rem;
    font-size: 0px;
    transition: margin-left 0.5s ease;
}

#profile .profile-text-p1 {
    font-size: 3.5rem;
}

#profile .title {
    font-size: 4rem;
    text-align: left;
}

#profile .profile-text-p2 {
    font-size: 3.5rem;
}

#profile .button-container {
    display: flex;
    justify-content: left;
    gap: 1rem;
    margin-bottom: 2rem;
}

#profile .button1 {
    width: 15rem;
    height: 4rem;
    font-size: 20px;
    color: black
}

.profile-text {
    align-self: center;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 20px;
}

.profile-text p {
    font-weight: 600;
}

.profile-text-p1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.profile-text-p2 {
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.title {
    font-size: 3rem;
    text-align: center;
}

.socials-container {
    display: flex;
    justify-content: left;
    margin-top: 1rem;
    gap: 1rem;
}

.icon {
    cursor: pointer;
    height: 2rem;
    filter: invert(0); /* Invert color to make it visible in dark mode */
    transition: filter 1.5s ease; 
}

/* Adjust the filter property to control the color inversion */

body.dark-mode .icon {
    filter: invert(1); /* Reset the inversion in dark mode */
}

/* buttons */

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.button1 {
    font-weight: 600;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
    background: linear-gradient(45deg, #3cb371, #007bff);
    color: white;
    transition: background 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1), 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: color 1.5s ease;
  }
  
  .button1:hover {
    background: linear-gradient(45deg, #007bff, #3cb371);
    background-size: 400% 400%;
    animation: gradientShift 3s infinite;
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 123, 255, 0.2), 0 3px 6px rgba(0, 0, 0, 0.16);
  }
  
  @keyframes gradientShift {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }
  
  

.btn-container {
    gap: 1rem;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
    .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
  

/* About Section  */

#about {
    position: relative;
}

.about-pic-container {
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 20px;
}

.circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text {
    position: absolute;
    transform-origin: 50% 100%; /* Rotate around the bottom center */
    color: white; /* Adjust text color as needed */
    font-size: 1.5rem; /* Adjust font size as needed */
}

.text:nth-child(1) {
    transform: rotate(0deg);
}

.text:nth-child(2) {
    transform: rotate(60deg);
}

.about-containers {
    gap: 3rem;
}

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

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

.about-pic {
    border-radius: 3rem;
}

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

.details-container {
    font-size: 20px;
    padding: 1.5rem;
    flex: 4;
    background: white;
    border-radius: 2rem;
    position: relative;
    text-align: center;
    justify-content: center;    
}

.details-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2rem;
    border: 0.8rem solid transparent;
    background: linear-gradient(45deg, #4CAF50, #2196F3) border-box;
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    transition: border 0.8s ease;
}

.details-container:hover::before {
    border: 0.8rem solid;
    background: linear-gradient(45deg, #2196F3, #4CAF50) border-box;
}

.section-container {
    gap: 2rem;
    height: 80%;
    margin-top: 5rem;
    margin-bottom: 18rem;
}

.text-container {
    margin-top: 2rem;
    line-height: 2;
    font-size: 20px;
}

/* Skills */

#skills {
    position: relative;
}

.skills-sub-title {
    color: rgb(0, 0, 0);
    font-weight: 600;
    font-size: 1.75 rem;
    margin-bottom: 20px;
}

.skills-details-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-top: 5rem;
    margin-bottom: 24rem;
}

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

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

article .icon {
    cursor: default;
}

/* Projects */

#projects {
    position: relative;
}

.color-container {
    border-color: rgb(163, 163, 163);
    background: rgb(255, 255, 255);
}

.project-img {
    border-radius: 2rem;
    width: 90%;
    height: 90%;
}

.project-title {
    margin: 1rem;
    color: black;
    margin-bottom: 0px;
}

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

.project-tags {
    font-size: 14px;
    color: #555;
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center tags horizontally */
    margin-bottom: 20px;
}

.project-tags span {
    background-color: #e0e0e0;
    color: #333;
    padding: 4px 8px;
    margin: 4px;
    border-radius: 4px;
}

/* contact */

#contact {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.contact-info-upper-container {
    display: flex;
    justify-content: center;
    background: white; /* Set the background color for light mode */
    border-radius: 2rem;
    margin: 2rem auto;
    padding: 0.5rem;
    position: relative;
    transition: border 0.8s ease; /* Add a transition for a smooth effect */
}

.contact-info-upper-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2rem;
    border: 0.8rem solid transparent;
    background: linear-gradient(45deg, #4CAF50, #2196F3) border-box;
    transition: border 0.8s ease; /* Add a transition for a smooth effect */
    -webkit-mask:
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
}

.contact-info-upper-container:hover::before {
    border: 0.8rem solid;
    background: linear-gradient(45deg, #2196F3, #4CAF50) border-box;
}

.contact-info-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5 rem;
    margin: 1rem;
}

.contact-info-container a {
    z-index: 2; /* Set a higher z-index for the link to bring it above the mask */
    position: relative; /* Ensure position is relative for z-index to take effect */
    /* Add any other styling properties as needed */
}

.contact-info-container p {
    font-size: larger;
}

.contact-icon {
    cursor: default;
    gap: 1.5rem;
    margin: 0.5rem;
}

.email-icon {
    height: 2.5 rem;
}

/* footer  */

footer {
    height: 26vh;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.nav-links-container {
    margin-bottom: 1rem; 
}

.nav-links2 {
    list-style: none;
    font-size: 22px;
    padding: 0;
    margin: 0;
}

.nav-links2 li {
    display: inline-block;
    margin-right: 20px; 
}

.nav-links2 li a {
    text-decoration: none;
    color: #000; 
}

footer p {
    text-align: center;
}
