@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration:none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Nunito', sans-serif;
}

:root {
    --bg-color: #191f36;
    --snd-bg-color: #262b40;
    --text-color: #fff;
    --main-color: #59b2f4;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    height: 100px;
    font-size: 7rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: pointer;
}

.logo-img {
    filter: brightness(0) invert(1);
    height: 250px;
    object-fit: contain;
}

.navbar a {
    font-size: 2.3rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 700;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

#menu-icon:hover {
    color: var(--main-color);
}


.python-projects {
    background: var(--snd-bg-color);
}

.python-projects h2 {
    margin-top: 10rem;
    margin-bottom: 4rem;
    font-size: 3.5rem;
}

.python-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.python-container .python-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.python-box img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: .5s ease;
    opacity: 0.7;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.python-box:hover img {
    transform: scale(1.1);
}

.python-box .python-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.python-box:hover .python-layer {
    transform: translateY(0);
}

.python-layer h4 {
    font-size: 3rem;
}

.python-layer p {
    font-size: 2rem;
    margin: .3rem 0 1rem;
}

.python-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
}

.python-layer a i {
    font-size: 2rem;
    color: var(--snd-bg-color);
}

.back-btn {
    font-size: 1.6rem;
    padding: 1rem 2rem;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    margin-top: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: background-color 0.3s ease;
}
  
  .back-btn:hover {
    background-color: #4fa3f5;
}
  

.footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 9%;
    background: var(--snd-bg-color);
    padding-top: 1rem;
    text-align: center;
}  

.footer-text {
   font-size: 1.6rem; 
}

.credit-link {
    color: #59b2f4;
    font-weight: bold;
    text-decoration: none;
}
  
.credit-link:hover {
    color: #4fa3f5;
    text-decoration: underline;
} 

/*BREAKPOINT*/

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 3%;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 3%;
    }

    .python-projects {
        padding-bottom: 7rem;
    }

    .python-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .python-box img {
        height: 300px;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .logo-img {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .python-container {
        grid-template-columns: 1fr;
    }

    .python-layer h4 {
        font-size: 2.2rem;
    }

    .python-layer p {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 48%;
    }

    .logo-img {
        height: 120px;
    }

    .python-projects h2 {
        font-size: 2.8rem;
    }

    .python-layer h4 {
        font-size: 2rem;
    }

    .python-layer p {
        font-size: 1.4rem;
    }

    .python-layer a {
        width: 4rem;
        height: 4rem;
    }

    .python-layer a i {
        font-size: 1.6rem;
    }

    .python-box img {
        height: 250px;
    }

    .back-btn {
        font-size: 1.4rem;
        padding: 0.8rem 1.5rem;
      }
}
