/*Comments mostly on margin and padding to memorize*/

/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400;500&display=swap');

* {
    box-sizing: border-box;
}
  
/* Styles */
body {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 30px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: rgb(253, 238, 220);
}

p {
    color: rgb(165, 104, 104);
    font-size: 20px;
}

main {
    padding-top: 25px; 
    margin: 0 20px;
    text-align: center;
    flex: auto; /*or 1*/

}

html {
    scroll-behavior: smooth;
}

section {
    padding: 50px;
    margin-bottom: 50px;
}

.home-content {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
}

.vtubegif {
    display: block;
    margin: 50px auto;
    width: 300px;
    height: auto;
}

.happy-gif {
    display: block;
    margin: 20px auto;
    width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.about-box {
    border: 2px solid rgb(28, 28, 122);
    border-radius: 10px; 
    padding: 30px; /* Adds space inside the box */
    margin: 20px auto; /* Centers the box and adds spacing */
    max-width: 600px; 
    background-color: #f9f9f9; 
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); 
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    justify-items: center; 
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto; /* Center grid on the page */
}

.thumbnail {
    width: 200px;
    height: 200px;
    object-fit: cover; /* Image fitting perfectly in square */
    border-radius: 10px; 
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); 
    transition: transform 0.3s ease; 
    background-color: #f4cbcb;
}

.thumbnail:hover {
    transform: scale(1.05); 
}

/* Project Link */
.project-link {
    text-decoration: none; 
    color: inherit; /* Keeps text color consistent */
    text-align: center; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 10px; 
}

.project-link h3 {
    font-size: 18px;
    color: rgb(28, 28, 122); 
    margin: 0;
}

.project-link p {
    font-size: 16px;
    color: rgb(165, 104, 104); 
    margin: 0;
}

/* Buttons */
.project-buttons {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 10px; 
    margin-top: 10px; 
}

.project-item {
  animation: fadeInUp 0.6s ease-in-out;
}
@keyframes fadeInUp {
  0% {opacity: 0; transform: translateY(20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/*#home {
    background: linear-gradient(145deg, #fce6d6, #fdeee0);
    padding-top: 100px;
    padding-bottom: 100px;
    border-radius: 20px;
}*/

.vtubegif {
    animation: fadeIn 2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
  
a.info-btn,
a.link-btn {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 14px;
    padding: 10px;
    width: 90px;
    border: none;
    border-radius: 16px; 
    cursor: pointer;
    text-align: center; 
    text-decoration: none; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}

a.info-btn {
    background-color: rgb(28, 28, 122); 
    color: white;
}

a.link-btn {
    background-color: rgb(255, 0, 149); 
    color: white;
    margin-bottom: 40px;
}

a.info-btn:hover,
a.link-btn:hover {
    transform: scale(1.05); 
    background-color: #f4cbcb; 
}

/* Navigation */
.nav-line {
    border: none;
    border-top: 2px solid rgb(184, 184, 203); 
    margin: 5px auto; /* Adjust spacing (reduce gap) */
    width: 80%; 
}

nav {
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;

}

.site-name {
    color:rgb(28, 28, 122);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    justify-content: center; 
    background: linear-gradient(90deg, #ff0099, #28007b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-name:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}  

.hamburger {
  display: none;
  font-size: 24px;
  color: rgb(255, 0, 149);
  cursor: pointer;
}

.nav-bar {
    list-style: none;
    display: flex;
    justify-content: center; 
    gap: 50px;
    padding: 10px;
    margin-bottom: 5px;
    transition: max-height 0.3s ease;
}

.nav-bar a {
    text-decoration: none;
    color:rgb(255, 0, 149);
    font-size: 20px;
    padding: 10px 15px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-bar a:hover {
    background-color: #d91c68;
    color: #fff;
}

/* Scroll to Top Button */
#scrollTopBtn {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 22px;
    color: white;
    background-color: rgb(255, 0, 149);
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none; 
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease; z-index: 999;
  }
  
#scrollTopBtn i {
    font-size: 24px;
}
  
#scrollTopBtn:hover {
    background-color: #d91c68;
    transform: translateY(-5px) scale(1.05);
}

/* Cat Cursor */
#cat {
    position: absolute;
    pointer-events: none;
    display: none;
}
.cat-icon {
    width: 50px;
    height: auto;
}

/* Footer */
footer {
    background-color: rgb(253, 221, 183);
    color: black;
    text-align: center;
    width: 100%;
    position: static;
    padding: 5px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1); 
}

/* Mobile View */
@media (max-width: 768px) {
    .nav-bar {
        gap: 30px;
        flex-direction: column;
        align-items: center; 
        text-align: center;
        max-height: 0;
        overflow: hidden;
        display: none;
    }

    .nav-bar li {
        width: 100%;
        margin: 10px 0;
    }
    
    .nav-bar a {
        width: 100%;
        display: block;
    }
    
    .nav-bar.show {
        display: flex;
        max-height: 300px; 
    }
    
    .hamburger {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #scrollTopBtn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }

    #scrollTopBtn i {
        font-size: 20px;
    }
}

@media (max-width: 540px) {
    .site-name {
      font-size: 30px;
    }
  
    .nav-bar {
      flex-direction: column;
      gap: 10px;
    }
  
    .vtubegif {
      width: 200px;
    }
  
    section {
      padding: 30px 15px;
    }
}

/*h2 {
  color: #d91c68;
  border-bottom: 2px dashed #ffb6c1;
  display: inline-block;
  padding-bottom: 5px;
}*/

.skills-box {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background-color: #f4cbcb;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin: 0;
}

.skills-list li {
    background-color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    color: rgb(28, 28, 122);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
.skills-list i {
    font-size: 18px;
    color: rgb(255, 0, 149);
}
  
.skill-icon {
    transition: transform 0.3s ease, color 0.3s ease;
}

.skills-list li:hover .skill-icon {
    transform: rotate(8deg) scale(1.2);
    color: #d91c68;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
  
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}  

.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float 15s ease-in-out infinite;
}

@keyframes float {
  0% {
    opacity: 0;
    transform: scale(0) translate(0, 0);
  }
  25% {
    opacity: 0.5;
    transform: scale(1) translate(var(--tx1), var(--ty1));
  }
  50% {
    opacity: 0.3;
    transform: scale(1.2) translate(var(--tx2), var(--ty2));
  }
  75% {
    opacity: 0.5;
    transform: scale(1) translate(var(--tx3), var(--ty3));
  }
  100% {
    opacity: 0;
    transform: scale(0) translate(var(--tx4), var(--ty4));
  }
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    background-color: #f4cbcb;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: rgb(28, 28, 122);
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-info p {
    color: rgb(165, 104, 104);
    font-size: 18px;
    margin-bottom: 25px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgb(28, 28, 122);
    font-size: 16px;
}

.contact-item i {
    color: rgb(255, 0, 149);
    font-size: 18px;
    width: 20px;
}

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

.contact-item a:hover {
    color: rgb(255, 0, 149);
}

.contact-form {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgb(28, 28, 122);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: rgb(28, 28, 122);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Lexend Deca', sans-serif;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(255, 0, 149);
}

.submit-btn {
    background-color: rgb(255, 0, 149);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Lexend Deca', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #d91c68;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info,
    .contact-form {
        padding: 20px;
    }
}
