/* ---------- Base Styles ---------- */

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8fa;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Header ---------- */

header {
    background: linear-gradient(to right, #ffffff, #6495ED, #8A2BE2);
    color: #fff;
    padding: 20px 40px;
    border-bottom: 2px solid #6495ED;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.namelogo {
    height: 150px;
}

nav {
    display: flex;
}

nav a {
    color: #fff;
    font-size: 20px;
    margin-left: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #f8f8fa;
}

/* ---------- Index ---------- */

.contentIndex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px;
    background: repeating-radial-gradient(circle at 0 0, transparent 0, #d9f9ff 10px), 
                repeating-linear-gradient(#b4abff55, #b4abff);
}

.welcome {
    width: 45%;
    text-align: center;
    padding: 20px;
}

.contentIndex h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contentIndex h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.aButton {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1em 2em;
    cursor: pointer;
    border-radius: 0.5em;
    background: linear-gradient(to right, #6edef5, #6455f0);
    border: 1px solid #e8e8e8;
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
    transition: all 0.2s ease-in;
    text-align: center;
}

.aButton h1 {
    font-size: 24px;
    margin: 0;
}

.aButton p {
    font-size: 16px;
    margin-top: 10px;
    color: #666;
}

.aButton:hover {
    color: #ffffff;
    border-color: #000;
}

.bigpic {
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bigpic img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- Projects ---------- */

.projectsbg {
    background: repeating-radial-gradient(circle at 0 0, transparent 0, #d9f9ff 10px), 
                repeating-linear-gradient(#b4abff55, #b4abff);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 20px;
}

.projectsdesc {
    padding: 40px;
    background-color: #f0f8ff;
    border: 2px solid #6495ED;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    max-width: 800px;
    text-align: center;
    width: 100%;
}

.projectsdesc h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
}

.projectsdesc p {
    font-size: 18px;
    color: #555;
    margin: 10px 0;
}

.weblink, .expand {
    background: linear-gradient(to right, #6edef5, #6455f0);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.weblink:hover, .expand:hover {
    background-color: #4169E1;
}

.makecode {
    text-decoration: underline;
    color: #555;
}

.projectimg {
    display: none;
    padding: 20px;
}

.projectimg img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ALA {
    border: 1px solid #6495ED;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
}

.gym {
    margin-bottom: 20px;
}

/* ---------- About ---------- */

.about-me-bg {
    background: repeating-radial-gradient(circle at 0 0, transparent 0, #d9f9ff 10px), 
                repeating-linear-gradient(#b4abff55, #b4abff);
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 20px;
}

.about-me-border {
    padding: 40px;
    background-color: #f0f8ff;
    border: 2px solid #6495ED;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    max-width: 800px;
    text-align: center;
    width: 100%;
    font-size: 18px;
    color: #555;
}

.intro, .interests {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro h4 {
    color: #555;
}

.interests h2 {
    margin: 0;
}

.cards-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.interest-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.interest-group h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.card {
    width: 200px;
    height: 250px;
    background: linear-gradient(to right, #6edef5, #6455f0);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    margin: 10px;
    cursor: pointer;
}

.card2 {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.card2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.card2 p {
    color: #ffffff;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.card2:hover img {
    opacity: 1;
}

.card2:hover p {
    opacity: 0;
}

/* ---------- Quiz ---------- */

.quiz-container {
    background: linear-gradient(to right, #ffffff, #d9f9ff);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.quiz-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

#question {
    font-size: 24px;
    margin: 20px 0;
    color: #555;
}

#options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: linear-gradient(to right, #6edef5, #6455f0);
    color: #fff;
    transition: background-color 0.3s ease;
    margin: 5px;
}

button:hover {
    background-color: #4169E1;
}

#result {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

#result.correct {
    color: #28a745;
}

#result.wrong {
    color: #dc3545;
}

/* ---------- Skills ---------- */

.skills-section {
    background: repeating-radial-gradient(circle at 0 0, transparent 0, #d9f9ff 10px), 
                repeating-linear-gradient(#b4abff55, #b4abff);
    padding: 60px 20px;
    text-align: center;
}

.skills-border {
    padding: 40px;
    background-color: #f0f8ff;
    border: 2px solid #6495ED;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
}

.skills-header {
    margin-bottom: 40px;
}

.skills-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.skills-header p {
    font-size: 18px;
    color: #555;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill-category {
    background-color: #ffffff;
    border: 2px solid #6495ED;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 300px;
    width: 100%;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.skill-category h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    border-bottom: 2px solid #6495ED;
    padding-bottom: 5px;
}

.skill-category h3 {
    font-size: 20px;
    color: #555;
    margin-bottom: 10px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-category ul li {
    font-size: 18px;
    color: #555;
    margin-bottom: 8px;
}

/* ---------- Footer ---------- */

footer {
    background: linear-gradient(to right, white, #6495ED, #8A2BE2);
    color: #fff;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #6495ED;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #fff;
    margin: 10px;
    font-size: 24px;
}

/* ---------- Media Queries ---------- */

@media (max-width: 1200px) {
    header {
        padding: 15px 20px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-content nav {
        align-self: flex-end;
    }

    .namelogo {
        height: 100px;
    }

    nav a {
        font-size: 16px;
        margin-left: 10px;
    }

    .contentIndex {
        flex-direction: column;
        padding: 20px;
    }

    .welcome {
        width: 100%;
        padding: 10px;
    }

    .contentIndex h1 {
        font-size: 28px;
    }

    .contentIndex h2 {
        font-size: 20px;
    }

    .buttons {
        gap: 10px;
    }

    .aButton {
        padding: 0.5em 1em;
        font-size: 14px;
    }

    .aButton h1 {
        font-size: 20px;
    }

    .aButton p {
        font-size: 14px;
    }

    .bigpic {
        width: 100%;
    }

    .projectsdesc {
        padding: 20px;
        margin: 10px;
    }

    .projectsdesc h1 {
        font-size: 24px;
    }

    .projectsdesc p {
        font-size: 16px;
    }

    .card {
        width: 150px;
        height: 200px;
    }

    .quiz-container {
        padding: 15px;
        max-width: 90%;
    }

    .quiz-container h1 {
        font-size: 28px;
    }

    #question {
        font-size: 20px;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skill-category {
        max-width: 90%;
    }

    .skills-header h1 {
        font-size: 28px;
    }

    .skills-header p {
        font-size: 16px;
    }

    .skill-category h2 {
        font-size: 22px;
    }

    .skill-category ul li {
        font-size: 16px;
    }
}
