.achievement-card {
    text-decoration: none;
    display: block;
    color: inherit; /* Ensures the text inside inherits the proper styles */
}

.achievement-card:hover {
    cursor: pointer;
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}


.achievement-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.achievement-card {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust transparency */
    z-index: 0;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.achievement-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.achievement-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0;
}

.achievement-content p {
    font-size: 16px;
}


.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust transparency */
    z-index: 0;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.card-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0;
}

.card-content p {
    font-size: 16px;
}

.ctf-cards .ctf-card {
    background-image: url('path-to-ctf-default-bg.jpg'); /* Set a default background if image missing */
}

.certification-cards .certification-card {
    background-image: url('path-to-certification-default-bg.jpg'); /* Set a default background if image missing */
}


.certification-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.certification-card {
    width: 300px;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust transparency */
    z-index: 0;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.certification-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 10px;
}

.certification-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 5px 0;
}

.certification-content p {
    font-size: 16px;
}



@media (max-width: 772px) {
    section.contact {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }

    .contact-content {
        max-width: 100%;
        width: 100%;
        padding: 20px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}


@media (max-width: 390px) {
    section.contact {
        padding: 10px;
    }

    .contact-content {
        padding: 15px;
        width: 100%;
    }
}


table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

thead th {
    background: #e61442;
    color: #fff;
    padding: 10px;
    text-align: center;
}


@media (max-width: 772px) {
    .table-container {
        width: 100%;
    }

    table {
        width: 100%;
        border: none;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #333;
        border-radius: 10px;
        background: linear-gradient(to right, #e61442, #a84652);
    }

    tbody tr td {
        display: block;
        text-align: left;
        padding: 12px 15px;
        position: relative;
        font-size: 14px;
        word-wrap: break-word;
    }

    tbody tr td::before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        margin-bottom: 5px;
        color: #ff416c;
    }

    tbody tr td:last-child {
        border-bottom: none;
    }
}


@media (max-width: 772px) {
    tbody tr td {
        font-size: 12px;
        padding: 10px;
    }

    tbody tr td::before {
        font-size: 12px;
    }
}



@media (max-width: 772px) {
    .table-container {
        width: 100%;
    }

    table {
        border-collapse: collapse;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody tr {
        display: block;
        margin-bottom: 10px;
        border: 1px solid #333;
        border-radius: 10px;
        padding: 10px;
        background-color: #2a2a2a;
    }

    tbody tr td {
        display: block;
        text-align: right;
        padding: 10px 10px 10px 50%;
        position: relative;
        border-bottom: none;
    }

    tbody tr td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        font-weight: bold;
        color: #ff416c;
        text-align: left;
    }

    tbody tr td:last-child {
        border-bottom: none;
    }
}




@media (max-width: 772px) {
    /* Fix the navbar position and make sure it doesn't overlap the content */
    nav {
        flex-direction: column;
        padding: 10px;
        position: fixed; /* Fix the nav to the top */
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000; /* Ensure nav is above the content */
        background: #252525; /* Ensure background is visible */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Optional: add shadow for better contrast */
    }

    .nav-links {
        flex-direction: column;
        padding: 0;
    }

    .nav-links li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* Ensure the content starts below the fixed nav */
    body {
        padding-top: 20px; /* Adjust this value based on your nav height */
        margin: 0;
    }

    .experience{
        padding-top: 180px;
        margin-top: 10px;
    }

    .hero{
        margin-top: 70px;
    }

    .achievement-content{
        padding: 0px;
    }

    .contact{
        margin-top: 130px;
        margin-bottom: 0px;
    }

    .achievements{
        margin-top: 250px;
    }

    .logo{
        padding-right: 26px;
    }

    
    /* Optional: Make the body take full width and fix any possible scroll issue */
    html, body {
        width: 100%;
    }
}



   
    .hero {
        padding: 20px;
        text-align: center;
        background-attachment: scroll;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p{
        font-size: 16px;
        margin-bottom: 20px;
    }

   
    .about h2 {
        font-size: 28px;
    }

    .about-content p{
        font-size: 16px;
    }

   
    .experience h1, .experience h2 {
        font-size: 28px;
    }

    .experience li {
        font-size: 16px;
        padding: 8px;
    }

   
    .achievements h1 {
        font-size: 36px;
    }

    .table-container {
        width: 90%;
        padding: 15px;
    }

    th, td {
        padding: 15px;
    }

   
    .contact h1 {
        font-size: 28px;
    }

    .contact-form {
        padding: 20px;
        max-width: 100%;
    }

   
    footer, .other-footer {
        padding: 10px;
    }

    .footer, .other-footer p{
        font-size: 16px;
    }
}

@media (max-width: 390px) {
   

   
    .logo {
        font-size: 24px;
    }

   
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p{
        font-size: 14px;
    }

   
    .contact-form input, .contact-form textarea {
        padding: 10px;
    }

    .contact-form button {
        font-size: 14px;
        padding: 10px 20px;
    }
}



body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #252525; /* Fallback solid background color */
    color: #ffffff;
}

.red {
    color: red;
    font-family: 'Poppins', sans-serif;
}


.logo {
    font-size: 32px;
    font-weight: 700;
    color: #ff416c;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    color: #ff4b2b;
    transform: scale(1.05);
}


nav {
    background: #252525; /* Fallback solid background color */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixes the nav to the viewport */
    top: 0; /* Positions it at the top */
    width: 100%; /* Ensures it spans the full width */
    z-index: 1000; /* Ensures it stays above other elements */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-image: url('img/background/diagmonds-light.png'), linear-gradient(90deg, #1e1e1e, #252525); 
    background-blend-mode: overlay; /* Ensures both the image and gradient are visible */
}



.nav-links {
    list-style: none;
    display: flex;
    padding-right: 80px;
}

.nav-links li {
    margin-left: 20px;
    position: relative;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: #ff416c;
    transform: translateY(-2px);
    border-bottom: 2px solid #ff416c;
}


.nav-links a.active {
    color: #ff416c;
    font-weight: bold;
    border-bottom: 2px solid #ff416c;
}


.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    background-attachment: fixed;
    overflow: hidden; /* Prevents the background from overflowing */
    background: linear-gradient(45deg, #0c4b4b99, rgba(132, 18, 18, 0.347)); /* Base gradient */
    background-size: 400% 400%; /* For the moving gradient effect */
    animation: gradientAnimation 8s ease infinite; /* Animation of the gradient background */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background/gplay.png'); /* Subtle texture */
    opacity: 0.1;
    background-repeat: repeat; /* Repeats the image */
    background-size: 100px 100px; /* Adjust the tile size of the texture */
    animation: textureMove 35s linear infinite; /* Animation for the texture */
}

@keyframes textureMove {
    0% {
        background-position: 0 0; /* Start at the top */
    }
    100% {
        background-position: 0 100%; /* Move the texture vertically downward */
    }
}







.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content p{
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}


.accent-color {
    color: #ff416c;
    font-weight: 700;
}


.typing-effect {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid #ff416c;
    animation: typing 2s steps(30, end) forwards, blink-caret 0.75s step-end infinite;
    animation-fill-mode: forwards;
}

.typing-effect.done {
    animation: blink-caret 0.75s step-end infinite;
    border-right: none;
}


@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ff416c; }
}


.floating-pic {
    animation: floating 4s ease-in-out infinite;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}


.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 65, 108, 0.2);
}


.btn-primary {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(255, 65, 108, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 5px rgba(255, 65, 108, 0.2);
}


.about {
    padding: 60px 20px;
    background: #252525; /* Fallback solid background color */
    background-image: url('img/background/diagmonds-light.png'), linear-gradient(#1e1e1e, #252525); 
    background-blend-mode: overlay; /* Ensures both the image and gradient are visible */
    color: #fff; /* Optional: Ensures text is visible on a dark background */
}


.about h2 {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about p{
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}


.experience {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    flex-direction: column;
    background: #1e1e1e;
    overflow: auto;
    background: linear-gradient(45deg, #0c4b4b99, rgba(132, 18, 18, 0.347)); /* Base gradient */
    background-size: 400% 400%; /* For the moving gradient effect */
    animation: gradientAnimation 8s ease infinite; /* Animation of the gradient background */
    position: relative; /* Ensure stacking context for the pseudo-element */
}

.experience::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background/gplay.png'); /* Subtle texture */
    opacity: 0.1;
    background-repeat: repeat; /* Repeats the image */
    background-size: 100px 100px; /* Adjust the tile size of the texture */
    animation: textureMove 35s linear infinite; /* Animation for the texture */
    pointer-events: none; /* Allow interactions with underlying content */
    z-index: -1; /* Position it below the content */
}



.experience-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
    
}

.experience h1, .experience h2 {
    font-size: 36px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 10px;
}

.highlight {
    color: #ff416c;
}

.experience-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 40px;
}

.experience li {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
    background: rgba(255, 65, 108, 0.1);
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.experience li:hover {
    transform: translateY(-2px);
}


.profile {
    text-decoration: none;
    color: #ff416c;
    font-weight: bold;
    padding: 4px 7px;
    border: 2px solid #ff416c;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.profile:hover {
    background-color: #ff416c;
    color: #ffffff;
}


.download {
    color: #00aaff;
    text-decoration: underline;
    font-weight: bold;
}

.download:hover {
    color: #0095e0;
    text-decoration: none;
}



.ctf-platform {
    margin-bottom: 40px;
    text-align: center;
}

.badge {
    max-width: 225px;
    height: auto;
    margin: 10px 0;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.badge:hover {
    transform: scale(1.1);
}

.platform-stats {
    list-style-type: none;
    padding-left: 0;
}

.platform-stats li {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}


@media (max-width: 772px) {
    .experience h1, .experience h2 {
        font-size: 28px;
    }

    .experience li {
        font-size: 16px;
    }

    .badge {
        max-width: 150px;
    }
}



.achievements {
    min-height: 100vh;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    background-color: #1e1e1e;
    background: linear-gradient(45deg, #0c4b4b99, rgba(132, 18, 18, 0.347)); /* Base gradient */
    background-size: 400% 400%; /* For the moving gradient effect */
    animation: gradientAnimation 8s ease infinite; /* Animation of the gradient background */
    position: relative; /* Ensure stacking context for the pseudo-element */
}

.achievements::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background/gplay.png'); /* Subtle texture */
    opacity: 0.1;
    background-repeat: repeat; /* Repeats the image */
    background-size: 100px 100px; /* Adjust the tile size of the texture */
    animation: textureMove 35s linear infinite; /* Animation for the texture */
    pointer-events: none; /* Allow interactions with underlying content */
    z-index: -1; /* Position it below the content */
}


.achievements h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #ff416c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.table-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 66%;
    margin-top: 10px;
}

.table-container h2 {
    color: #ff416c;
    font-size: 28px;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: linear-gradient(to right, #e61442, #a84652);
    position: relative;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

thead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 10px 10px 0 0;
}

th {
    padding: 20px;
    font-weight: 600;
    color: #ffffff;
    text-align: center;
}

td {
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 25px;
    min-height: 50px;
}

tr:hover td {
    background-color: #333333;
}


.footer {
    margin-top: 20px;
    font-size: 20px;
    color: #ff416c;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}




@media (max-width: 772px) {
    th, td {
        display: block;
        text-align: right;
    }
    th {
        text-align: left;
        position: relative;
    }
    td {
        border: none;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
    }
    td:before {
        position: absolute;
        left: 10px;
        width: 45%;
        white-space: nowrap;
        font-weight: 600;
        content: attr(data-label);
    }
}


footer {
    background: url('img/background/az-subtle.png');
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #ff416c;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}





.contact {
    background: #1e1e1e;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 40px;
    background: linear-gradient(45deg, #0c4b4b99, rgba(132, 18, 18, 0.347)); /* Base gradient */
    background-size: 400% 400%; /* For the moving gradient effect */
    animation: gradientAnimation 8s ease infinite; /* Animation of the gradient background */
    position: relative; /* Ensure stacking context for the pseudo-element */
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('img/background/gplay.png'); /* Subtle texture */
    opacity: 0.1;
    background-repeat: repeat; /* Repeats the image */
    background-size: 100px 100px; /* Adjust the tile size of the texture */
    animation: textureMove 35s linear infinite; /* Animation for the texture */
    pointer-events: none; /* Allow interactions with underlying content */
    z-index: -1; /* Position it below the content */
}
    


.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff416c;
}

.contact p{
    font-size: 18px;
    margin-bottom: 30px;
    color: #ffffff;
}

.contact-form {
    background-color: #252525;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #333;
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bbb;
}

.contact-form button {
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 8px 15px rgba(255, 65, 108, 0.2);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background: linear-gradient(45deg, #ff4b2b, #ff416c);
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 65, 108, 0.3);
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(255, 65, 108, 0.2);
}


.social-links {
    margin-top: 20px;
}

.social-links h2 {
    font-size: 24px;
    color: #ff416c;
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    border-radius: 50px;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 65, 108, 0.3);
}
