@font-face{
    font-family: 'Poppins';
    font-weight: 700;
    src: url('../Assets/fonts/Poppins-Bold.ttf') format('truetype');
}

@font-face{
    font-family: 'Poppins';
    font-weight: 400;
    src: url('../Assets/fonts/Poppins-Regular.ttf') format('truetype');
}

*{
    /*border-box tells the browser to account for borders and padding*/
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins';font-size: 18px; font-weight: 400;
    justify-content: center;
    align-items: center;
}

html{
    scroll-behavior: smooth;
}

nav{
    height: 90px;
    background: #212331;
    overflow: hidden;
    /*Flexbox layout mode, allowing element alignment, spacing and order within a container*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    padding-right: 20px;
    border-bottom: 1px solid white;
}

.navbar-items{
    margin: auto;
    width: fit-content;
}

nav a{
    color: #fff;
    text-decoration: none;
    padding: 0 1rem;
    border-bottom: 3px solid transparent;
}

/*:hover allows you to configure an element when the mouse is hovered over it*/
nav a:hover{
    border-bottom: 2px solid whitesmoke;
    padding-bottom: 10px;
}

/* Dark mode styles */
.dark-mode{
    background-color: #111111;
    color: white;
}

.dark-mode nav{
    background: #111111;
    border-bottom: 3px solid #262626;
}

.dark-mode .hero-container{
    background-color: #111111;
    border-bottom: 3px solid #262626;
}

.dark-mode #web-description,
.dark-mode #java-description,
.dark-mode #sql-description,
.dark-mode #csharp-description{
    color: white;
}

.dark-mode .box{
    border-bottom: 3px solid #262626;
}

.dark-mode .box p{
    color: white;
}

.dark-mode .box button{
    border: 3px solid #262626;
}

.dark-mode .footer{
    background-color: #111111;
    border-top: 3px solid #262626;
}

.hero{
    background: #40445f;
}

.hero-container{
    padding-bottom: 150px;
    text-align: center;
    border-bottom: 3px solid black;
}

.column-center h1{
    color: white;
    font-size: 60px;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-family: Happy Monkey;
    padding-top: 150px;
    animation: fadeInAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    
}

@keyframes fadeInAnimation{
    0%{
        opacity: 0;
    }

    100%{
        opacity: 1;
    }
}


.projects-widget{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    padding-left: 45px;
    padding-right: 45px;
    padding-top: 45px;
    padding-bottom: 45px;
}

.box{
    padding-top: 45px;
    padding-bottom: 45px;
    padding-left: 500px;
    padding-right: 500px;
    text-align: center;
    color: black;
    position: relative;
    border: 1px solid black;
}

.box h1{
    font-family: Happy Monkey;
    font-size: 22px;
    font-weight: 600;
}

.box img{
    padding-top: 25px;
    width: 120px;
    padding-bottom: 15px;
}

.box img:hover{
    transform: scale(1.05);
    transition: ease-in-out 0.3s;
}

.box button{
    background-color: #512DA8;
    border: 4px solid black;
    border-radius: 25px;
    color: white;
    padding: 5px 25px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

.box button:hover{
    transform: scale(1.02);
}

.footer{
    border-top: 3px solid black;
    background-color: #212331;
    text-align: center;
    padding-bottom: 45px;
    padding-top: 45px;
}

.footer h1 {
  color: white;
  font-family: Happy Monkey;
  font-weight: bold;
}

.footer a {
  color: white;
  text-decoration: none;
  font-family: Happy Monkey;
  font-weight: bold;
}

.footer a:hover{
    text-decoration: underline;
}

#scroll-to-top-btn{
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: white;
    border: 2px solid black;
    border-radius: 25px;
    padding: 5px 15px;
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}

#scroll-to-top-btn:hover{
    transform: scale(1.05);
    background-color: #212331;
    color: white;
    border-color: black;
    transition: ease-in-out 0.3s;
}

#dark-mode-btn{
    /* display = none; */
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: white;
    border: 2px solid black;
    border-radius: 25px;
    padding: 5px 15px;
    font-size: 24px;
    cursor: pointer;
}

#dark-mode-btn:hover{
    transform: scale(1.05);
    background-color: #212331;
    color: white;
    border-color: black;
    transition: ease-in-out 0.3s;
}

/* Media queries for responsiveness */
@media screen and (max-width: 1200px) {
    .box {
        padding-left: 300px;
        padding-right: 300px;
    }
}

@media screen and (max-width: 992px) {
    .box {
        padding-left: 150px;
        padding-right: 150px;
    }
    
    .column-center h1 {
        font-size: 48px;
    }
}

@media screen and (max-width: 768px) {
    .box {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .column-center h1 {
        font-size: 36px;
        padding-top: 100px;
    }
    
    .hero-container {
        padding-bottom: 100px;
    }
}

@media screen and (max-width: 480px) {
    .box {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .box h1 {
        font-size: 20px;
    }
    
    .column-center h1 {
        font-size: 28px;
        padding-top: 80px;
    }
    
    .hero-container {
        padding-bottom: 80px;
    }
    
    .box p {
        font-size: 14px;
    }
    
    .box button {
        font-size: 14px;
        padding: 5px 15px;
    }
}

