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

html, body {
    overflow-x: hidden;
}
body{
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(
        135deg,
        #dff3f7 0%,
        #bfe6ee 40%,
        #f5e6ca 100%
    );
    min-height: 100vh;
}

html{
    scroll-behavior: smooth;
}

body:not(.dark-mode) p {
    color: #2b2b2b;
}
/* transition */
a .btn{
    transition: all 300ms ease;
}

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

nav{
    justify-content: space-around;
    align-items: center;
    height: 17vh;
}

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

a{
    text-decoration: none;
    color: black;
    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{
    height: 2px;
    width: 100%;
    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;
}

.menu-links a{
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    color: black;
}
.menu-links li{
    list-style: none;
}
.menu-links.open{
    max-height: 300px;
}
.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;
}
/* sections */
section{
    padding: 6vh 5rem;
    margin: 0 5rem;
    box-sizing: border-box;
    min-height: fit-content;
}
.section-container{
    display: flex;
}

/* profile section */
#profile{
    display: flex;
    justify-content: center;
    gap: 5rem;
    min-height: 80vh;
}
.section__pic-container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto 0;
}
.section__text{
    align-self: center;
    text-align: center;
}
.section__text__p{
    font-weight: 600;
}
.section__text__p1{
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}
.section__text__p2{
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
}

.title{
    font-size: 3rem;
    text-align: center;
}
#social-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* icons */
.icon{
    cursor: pointer;
    height: 2rem;
}

/* buttons*/
.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.btn{
    font-weight: 600;
    transition: all 300ms ease;
    padding: 1rem;
    width: 8rem;
    border-radius: 2rem;
}
.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;
    min-height: 100vh;
}

#about,
#experience,
#projects,
#contact{
    position: relative;
}

.icon-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    border: 1px solid rgb(163,163,163);
    border-radius: 50%;
    padding: 0.5rem;
    background: rgb(250, 250, 250);
    cursor: pointer;
    transition: all 0.3s ease;
}


.section-container {
    display: flex;              
    align-items: flex-start;    
    justify-content: center;   
    gap: 4rem;                  
    flex-wrap: wrap;            
}

.section__pic-container {
    flex: 1;                    
    display: flex;
    justify-content: center;
}

.about-details-container {
    flex: 1;                   
    display: flex;
    flex-direction: column;     
    gap: 2rem;
}

.about-pic {
    border-radius: 50%;         
    width: 250px;
    height: 250px;
    object-fit: cover;
}

.details-container {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(8px);
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    width: 400px;
    color: #222;
}

#experience {
    position: relative;
}

#experience .details-container {
    flex: 300px;  
    max-width: 450px;
}
.experience-sub-title {
    color: rgb(85,85,85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap; 
}

.article-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

article .icon {
    cursor: default;
}
/*  PROJECT  */
#projects .about-containers {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}

#projects .details-container {
    width: 300px;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

#projects .details-container:hover {
    transform: translateY(-8px);
}

#projects .details-container p {
    margin: 1rem 0;
}

#projects .article-container {
    display: block;   
}

/* FIX IMAGE SIZE */
.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1.5rem;
}

#projects .btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* contact */
#contact{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
    padding-bottom: 4rem;
}
/* PROJECT SECTION FIX */
#projects {
    padding-bottom: 5rem;
}

/* CARD CONTAINER */
.about-containers {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
}

/* PROJECT CARD */
.details-container {
    width: 300px;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;

    /* beach glass effect */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);

    transition: 0.3s ease;
}

/* HOVER EFFECT */
.details-container:hover {
    transform: translateY(-8px);
}

/* TEXT SPACING */
.details-container p {
    margin: 1rem 0;
}
.contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: 1px solid rgb(163,163,163);
    border-color: rgb(163,163,163);
    background: rgb(250,250,250);
    margin: 2rem auto;
    padding: 0.5rem;
}

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

}
.contact-icon{
    cursor: default;
    height: 4rem;
}
/* footer */
footer{
    height: 26vh;
    margin: 0 1rem;
}
footer p{
    text-align: center;
}

.wave-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.wave {
    position: absolute;
    width: 200%;
    height: 80px;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(137, 201, 214, 0.5) 20%,
        transparent 70%
    );
    border-radius: 50%;
    opacity: 0.6;
}

/* smoother animation */
.wave1 {
    animation: waveMove 12s linear infinite;
}

.wave2 {
    bottom: 10px;
    opacity: 0.4;
    animation: waveMove 18s linear infinite reverse;
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.wave1 {
    animation: waveMove 10s linear infinite;
}

.wave2 {
    bottom: 15px;
    opacity: 0.5;
    animation: waveMove 16s linear infinite reverse;
}

@keyframes waveMove {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

#theme-toggle {
    margin-left: 5rem;
}


body.dark-mode {
    background: linear-gradient(
        135deg,
        #0d1e26,
        #203a43,
        #2c5364
    );
    color: #f1f1f1;
}

/* TEXT FIX */
body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode a {
    color: #f1f1f1;
}

body.dark-mode .menu-links{
    background-color: #333;
}

/* PROJECT & ABOUT CARDS */
body.dark-mode .details-container {
    background: rgba(0, 0, 0, 0.6); 
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}

/* EXPERIENCE TEXT */
body.dark-mode .experience-sub-title {
    color: #ddd;
}

/* BUTTONS */
body.dark-mode .btn-color-2 {
    border: 1px solid #fff;
    color: #fff;
}

/* FIX LINKS HOVER */
body.dark-mode a:hover {
    color: #00c3ff;
}

/* REMOVE WEIRD WHITE BOX EFFECT */
body.dark-mode .contact-info-upper-container {
    background: rgba(0,0,0,0.5);
}

#theme-toggle {
    /* margin-left: 5rem; */
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 999;
}

.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgb(118, 118, 246);
  border: 1px solid;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
  padding: 15px;
  border-radius: 40%;
  cursor: pointer;
}

.chat-box {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 280px;
  background: linear-gradient(135deg, pink, lightblue);
  color:whitesmoke;
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.chat-header {
  background: #79abf1b1;
  padding: 10px;
  text-align: center;
}

.chat-body {
  height: 200px;
  overflow-y: auto;
  padding: 10px;
}

.chat-body div {
  margin: 5px 0;
}

.user {
  text-align: right;
  color: #041613;
}

.bot {
  text-align: left;
  color: #5577b6;
}

.chat-input {
  display: flex;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: none;
}

.chat-input button {
  padding: 8px;
  border: none;
  background: rgb(247, 128, 128);
  color: white;
  cursor: pointer;
}