@media (max-width: 768px) {
    h1 {
        font-size: 50px !important;
        letter-spacing: 3px !important;
    }

    .sub-text {
        font-size: 30px !important;
    }

    .main-btn {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }

    #projects ul li a{
        padding: 5px 10px !important;
        font-size: 16px !important;
    }

    .cert-btn-container {
        padding: 0px 0px !important;
        font-size: 16px !important;
    }

    .cert-btn-text-without-label {
        padding: 5px 10px 5px 10px !important;
    }
    .cert-btn-text-with-label {
        padding: 0px 10px 0px 10px !important;
    }

    section {
        height: 85vh !important;
    }

    nav ul {
        justify-content: center !important;
    }
}


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


html, body {
    height: auto;
    scroll-behavior: smooth;
    font-family: Verdana, sans-serif;
    color: #fff;
    background-color: #333;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #3a3a3a, #333);
    background-color: rgba(51, 51, 51, 0.95);
    padding: 15px;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #444;
}

nav ul li a.active {
    background-color: #444;
}


section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    margin-top: 20px;
    background-color: #333;
}


h1, h2 {
    color: #fff;
    margin-top: 0px;
    margin-bottom: 40px;
    font-family: Verdana, sans-serif;
    font-size: 75px;
    font-weight: lighter;
    letter-spacing: 7px;
}

p {
    margin-bottom: 10px;
    padding-bottom: 5px;
}

a {
    text-decoration: none;
}

.sub-text {
    color: #777;
    font-size: 30px;
    font-weight: lighter;
    font-family: sans-serif;
    margin-left: 4px;
    margin-bottom: 0px;
    padding-bottom: 5px;
}

.sub-text .word {
    color: #777;
}

.sub-text .word:nth-child(1)::after {
    content: '.';
    color: #a0ffa0;
}

.sub-text .word:nth-child(2)::after {
    content: '.';
    color: #04abba;
}

.sub-text .word:nth-child(3)::after {
    content: '';
    color: #c94242;
}

.sub-text .word:nth-child(4)::after {
    content: '.';
    color: #c94242;
}

.sub-text a {
    color: inherit;
    transition: color 0.3s ease;
}

.sub-text a:hover {
    color: #fff;
}


.main-btn {
    margin-top: 20px;
    color: #fff;
    background-color: #444;
    text-decoration: none;
    font-size: 20px;
    font-weight: 100;
    font-family: sans-serif;
    padding: 10px 45px;
    margin-left: 7px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-btn:hover {
    background-color: #555;
}

.down-arrow {
    position: absolute;
    bottom: 20px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.down-arrow svg {
    width: 60px;
    height: 30px;
    stroke: #fff;
    transform-origin: center;
    transition: transform 0.3s ease;
}

.down-arrow:hover {
    opacity: 0.7;
}

/* Alternating Background Colors for Sections */
#home, #projects, #certifications {
    background-color: #3a3a3a;
    background: linear-gradient(to bottom, #3a3a3a, #333);
}

/* Projects Section */
#projects ul {
    list-style: none;
    padding: 0;
}

#projects ul li {
    margin: 25px 0;
}

#projects ul li a {
    color: #fff;
    background-color: #4d4b4b;
    text-decoration: none;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

#projects ul li a:hover {
    background-color: #777;
}

/* Certifications Section */
#certs ul {
    list-style: none;
    padding: 0;
}

#certs ul li {
    margin: 15px 0;
}


/* Certification Button Styling */
.cert-btn-container {
    display: inline-flex;
    align-items: center;
    color: #fff;
    background-color: #4d4b4b;
    font-size: 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cert-btn-container:hover {
    background-color: #777;
}

.cert-btn-text-without-label {
    padding: 5px 15px 5px 15px;
}
.cert-btn-text-with-label {
    padding: 0px 10px 0px 10px;
}

/* Expired Label Styling */
.expired-label {
    color: #2196F3;
    background-color: #1c1b1b;
    border-radius: 0 5px 5px 0;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.cert-btn-container:hover .expired-label {
    background-color: #555;
}
