html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    background-image: url(assets/Backgrounds/marc-wieland-trnTvywx2Rg-unsplash.jpg);
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    text-align: center;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover, a:focus {
    transform: scale(1.1);
    text-shadow: 0 0 20px #8255ec;
}


.menu {
    width: 95%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px auto 0 auto;
    padding: 6px 30px;
    background-color: rgba(63, 60, 73, 0.4);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 245, 238, 0.3);
    border-radius: 50px;
    position: sticky;
    top: 10px;
    z-index: 2;
    box-sizing: border-box;
}

.menu > a {
    color: #FFF5EE;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    padding: 8px 15px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    text-align: center;
}

.menu > p {
    font-family: "Orbitron", sans-serif;
    font-weight: 500;
    color: #FFF5EE;
    flex-shrink: 0;
    margin: 0;
    padding: 0 15px;
    font-size: 1.1rem;
}

.voidpacket {
    font-family: "Orbitron", sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #9790b3;
    text-align: center;
    padding: 110px 20px 200px 20px;
    min-height: 40vh;
    width: 100%;
    box-sizing: border-box;
}
.voidpacket h1 {
    font-size: 11rem;
    font-weight: 900;
    margin: 0;
    line-height: 1;
    width: 100%;
    text-align: center;
    word-wrap: break-word; 
    overflow-wrap: break-word; 
}

.voidpacket h2 {
    font-size: 2rem;
    text-decoration: underline;
    padding-top: 30px;
    margin: -30px 0 0 0;
    z-index: 1;
    text-align: center;
    max-width: 90%;
}

#about-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    color: #FFF5EE;
    margin-bottom: 50px;
    width: 100%;
    padding: 0 20px;
}

#about-section h2 {
    background-color: rgba(63, 60, 73, 0.4);
    border: 1px solid #FFF5EE;
    border-radius: 10px;
    padding: 10px;
    margin: 0 auto 20px auto;
}

#about-section p {
    text-align: center;
    margin: 10px auto;
    font-size: 1.7rem;
    padding: 40px;
    background-color: rgba(63, 60, 73, 0.4);
    border: 1px solid #FFF5EE;
    border-radius: 10px;
    line-height: 50px;
    max-width: 1200px;
    width: 100%;
}

.hacking-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 100px 0;
    color: #FFF5EE;
    font-size: 2rem;
    font-weight: 600;
    text-decoration: underline;
    text-shadow: 0 0 10px #000000;
    transition: filter 0.3s ease;
    padding: 0 20px;
    width: 100%;
}

.hacking-platforms.blurred {
    filter: blur(5px) brightness(0.7);
}

.platform-box {
    flex: 0 0 300px;
    height: 300px;
    border: 1px solid #FFF5EE;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.3);
    background-blend-mode: overlay;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}
.platform-box.full-width {
    width: 100%;
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 20px;
}
.platform-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#portswigger { background-image: url(assets/hacking/portswigger.webp); }
#webgalaxies { background-image: url(assets/hacking/VP_logo.jpg);}
#bugforge { background: #1a1a1a; }
#ctf { background-image: url(assets/hacking/ctf.webp); }
#tryhackme { background-image: url(assets/hacking/thm.webp); }
#leetcode { background-image: url(assets/hacking/leetcode.webp); }
#codeforces { background-image: url(assets/hacking/codeforces.png); }
#pico { background-image: url(assets/hacking/picoctf-logo-og.webp); }
#hacktheweb { background-image: url(assets/hacking/hacktheweb_362cc92895.webp); }
#intigriti { background-image: url(assets/hacking/intigriti.webp); }
#scrimba { background: linear-gradient(135deg, rgba(102, 74, 195, 0.8), rgba(102, 74, 195, 0.4));
    backdrop-filter: blur(10px);}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.expanded-content {
    background: rgba(63, 60, 73, 0.4);
    border: 1.5px solid #FFF5EE;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    color: #FFF5EE;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #9790b3;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
}

#expanded-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-decoration: underline;
}

#expanded-desc {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.expanded-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-btn, .github-btn {
    padding: 12px 25px;
    border: 2px solid #FFF5EE;
    border-radius: 8px;
    color: #FFF5EE;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.platform-btn:hover, .github-btn:hover {
    background: #FFF5EE;
    color: #000;
    transform: translateY(-2px);
}

/* Hide platform button for webgalaxies specifically */
#platform-overlay.active #platform-link[href="same-as-github"] {
    display: none !important;
}

/* Style the GitHub button when it's the only one */
#platform-overlay.active #github-link:only-child,
#platform-overlay.active #platform-link[href="same-as-github"] + #github-link {
    margin: 0 auto;
    display: block !important;
    width: fit-content;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(63, 60, 73, 0.2);
    border: 1px solid #FFF5EE;
    border-radius: 8px;
    color: #FFF5EE;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FFF5EE;
    color: #000;
    transform: translateY(-2px);
}

.certs-section {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem; /* Increased padding for the bigger image */
    background: rgba(63, 60, 73, 0.2);
    border-radius: 8px;
    border: 1px solid #FFF5EE;
}

.certs-section h3 {
    color: #FFF5EE;
    margin-bottom: 2rem;
    font-size: 1.4rem; /* Slightly larger heading for balance */
}

#pwpa {
    display: block;
    margin: 0 auto;
    
    /* THE FIX: Bigger size while remaining responsive */
    width: 450px; 
    max-width: 95%; /* This prevents it from being "too big" on mobile screens */
    
    height: auto;
    border: 2px solid #FFF5EE;
    border-radius: 6px;
    
    transition: transform 0.3s ease-in-out; 
    cursor: pointer;
}

#pwpa:hover {
    transform: scale(1.05); 
}

.discord-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #FFF5EE;
    color: #3f3c49;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    margin-bottom: 0.5rem;
    border: 1px solid #FFF5EE;
}

/* ========== Mobile ========== */

@media (max-width: 1200px) {
    .voidpacket h1 {
        font-size: 9rem;
    }
}

@media (max-width: 768px) {
    .menu {
        padding: 10px 20px;
        margin: 15px auto 0 auto;
    }
    
    .menu > a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .menu > p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .voidpacket {
        padding: 30px 15px;
        min-height: 30vh;
    }
    
    .voidpacket h1 {
        font-size: 4rem;
    }
    
    .voidpacket h2 {
        font-size: 1.3rem;
        margin: -15px 0 0 0;
        max-width: 95%;
    }

    #about-section p {
        margin: 10px 0; 
        font-size: 1.2rem;
        padding: 25px;
        line-height: 1.6;
    }
    
    .platform-box {
        flex: 0 0 calc(50% - 15px); 
        height: 200px;
    }
}

@media (max-width: 480px) {
    .voidpacket h1 {
        font-size: 3rem; 
    }
    
    .voidpacket h2 {
        font-size: 1rem;
        margin: -10px 0 0 0;
    }
    
    .menu {
        flex-direction: row; 
        flex-wrap: nowrap; 
        gap: 5px;
        border-radius: 50px; 
        padding: 8px 15px;
        width: 95%;
    }
    
    .menu > p {
        margin-bottom: 0; 
        font-size: 0.9rem;
    }
    
    .menu > a {
        font-size: 0.8rem;
        padding: 4px 8px;
        white-space: nowrap; 
    }
    
 
    #about-section p {
        font-size: 1rem;
        padding: 20px;
        line-height: 1.5;
        margin: 10px 0;
    }
    
    .platform-box {
        flex: 0 0 100%; 
        height: 150px;
    }
}

@media (max-width: 360px) {
    .voidpacket h1 {
        font-size: 2rem;
    }
    
    .menu > a {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
    
    .menu > p {
        font-size: 0.8rem;
    }
}


