:root {
    --blue-purple-gradient: linear-gradient(-45deg, #375ca0, #f7cac9, #db94aa, #6271ba);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--blue-purple-gradient);
    background-size: 400% 400%;
    animation: gradientMove 10s ease-in-out infinite;
    font-family: 'Poppins', sans-serif;
    color: white;
}

.nav-link:hover {
    color: rgb(238, 130, 202);
    border-radius: 20px;
    transition: color 0.3s ease;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    color: rgb(17, 9, 105);
}

.nav-link.active {  
    color: rgb(17, 9, 105) !important;  
}

.navbar-dark .nav-link {
    color: rgb(17, 9, 105) !important;  
}

.navbar-dark .nav-link:hover {
    color: rgb(238, 130, 202) !important;
}

.navbar-brand img {
    object-fit: contain;
    margin-right: 10px;
}

.navbar-toggler:hover {
    background-color: rgba(146, 168, 209, 0.50);
    transition: opacity 0.3s ease;
}

.navbar {
    background: rgba(146, 168, 209, 0.65);
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.navbar .container {
    padding-left: 15px;
    padding-right: 15px;
}

.home-page {
    margin-top: 20px;
    min-height: 100vh;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.home-page .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.home-page .col-md-8,
.home-page .col-md-4 {
    flex: 1 1 300px;
    min-width: 280px;
}

.profile-img{
    flex:1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    margin-top: -40px;
    margin-left: 150px;
}

@supports not (aspect-ratio: 1 / 1) {
    .profile-img-container {
        height: 0;
        padding-bottom: 100%; 
        position: relative;
    }
    
    .profile-img-container img {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.display-1 {
    font-family: 'Dela Gothic One';
    font-size: 80px;
    word-break: break-word;
}

.display-2 {
    font-family: 'Poppins', sans-serif;
    font-size: 25px;
    font-weight: 500;
}

.display-3 {
    font-size: 15px;
    white-space: normal;
    word-break: break-word;
}

.intro-text, .display-3 {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.project-link {
  text-decoration: none; 
  color: inherit;
}

.project-card {
  background-color: #abb1cf;
  border: none;
  border-radius: 20px;
  padding: 30px 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  margin-top: 10px;
  margin-bottom: -1px;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.project-card .card-text {
  color: #2a2a2a;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.project-section{
    background-color: #abb1cf;
    min-height: 100px; 
    padding: 10px; 
    display: flex;
    align-items: center; 
    justify-content: center;
    border-radius: 0px;
}


.about-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: white; 
}

#my-contacts i {
    font-size: 1.5rem;
    color: #148dff;
    margin-right: 10px;
}

.contact-card{
   background-color: #abb1cf;
}
#home .display-1 {
    margin-bottom: 0px; 
}

#home .display-2 {
    margin-bottom: 0px;
}

#home .display-3 {
    margin-top: 10px;
}
#credits{
    background: rgb(98, 113, 186); 
}
@media (max-width: 992px) {
    .display-1 {
        font-size: 55px;
    }

    .display-2 {
        font-size: 22px;
    }

    .display-3 {
        font-size: 14px;
    }

    .profile-img img {
        max-width: 250px;
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
}


@media (max-width: 768px) {
    .home-page {
        margin-top: -60px;
        padding-top: 0px;
        flex-direction: column;
        text-align: center;
    }

    .home-page .col-8,
    .home-page .col-4 {
        width: 100% !important;
        max-width: 100%;
        margin: 0 auto 1.2rem auto;
        float: none !important;
        text-align: center;
        }
    
    .profile-img img {
        max-width: 200px; 
        margin-top: 0;
        margin-left: 0;
        display: block;
        margin-right: auto;
        margin-left: auto;
        align-items: center;
    }

    .intro-text p,
    .about-description {
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }

    .navbar {
        padding: 0.35rem 0.75rem;
    }

    .navbar .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.95rem;
    }

    .navbar-collapse {
        background: rgba(109, 141, 201, 0.5);
        padding: 0.5rem;
        border-radius: 10px;
    }
    
    .display-1{
        font-size: 35px;
        text-align: center;
    }

    .display-2{
        font-size: 20px;
        margin-top: 30px;
        margin-bottom: 1px;
        text-align: center;
    }
    .display-3{
        font-size: 13px;
        text-align: center;
    }
    body{
        background-size: 400% 400%;
        animation: gradientMove 20s ease-in-out infinite;
    }
    .project-card {
        padding: 20px 5px;
    }
    .project-card .card-text {
        font-size: 1.1rem;
    }
    .projects-section {
        min-height: auto;
        padding-top: 10px;
        padding-bottom: 10px;
        display: block; 
    }

}

@media (max-width: 420px) {
    .display-1 {
        font-size: 30px;
    }

    .display-2{
        font-size: 18px;
    }
    .display-3 {
        font-size: 12px;
    }
    .profile-img-container {
        max-width: 180px;
        align-items: center; 
        margin: 0;
        display: block;
    }
    
    .intro-text p,
    .about-description { 
        font-size: 0.9rem; 
    }
    .home-page {
    padding-top: 50px; 
    }
}