/* Root variables for color scheme */
:root {
    --bg-color: #0f0e17;
    --text-color: #a7a9be;
    --heading-color: #fffffe;
    --accent-color: #ff8906;
    --secondary-color: #f25f4c;
    --card-bg: #1c1b29;
}

/* Basic reset and global styles */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Main app container */
#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header styles */
header {
    background-color: rgba(15, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--accent-color);
}

/* Main content area */
main {
    flex-grow: 1;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section styles */
section {
    margin-bottom: 5rem;
}

/* Heading styles */
h1, h2 {
    color: var(--heading-color);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 0.5rem;
}

/* Paragraph styles */
p {
    font-size: 1.1rem;
    max-width: 65ch;
}

/* Skill list styles */
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill {
    background-color: var(--card-bg);
    color: var(--text-color);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(255, 137, 6, 0.2);
}

/* Service list styles */
.service-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 137, 6, 0.1);
}

.service-item h3 {
    color: var(--accent-color);
    margin-top: 0;
}

/* Email section styles */
.email-section {
    margin-top: 2rem;
}

.show-email-btn, .verify-btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.show-email-btn:hover, .verify-btn:hover {
    background-color: var(--secondary-color);
}

.email-form {
    margin-top: 1rem;
}

.email-display, .email-display a {
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: bold; 
}

.discord-display {
    color: var(--text-color); 
    text-decoration: none; 
    font-weight: bold; 
    margin-top: 1rem;
}

.error-message {
    color: var(--secondary-color);
    margin-top: 1rem;
}

/* Captcha container styles */
.captcha-container {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align the content */
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    max-width: 350px;
}

/* Captcha question styles */
.captcha-question {
    text-align: center; /* Center the text */
    margin-bottom: 1rem; /* Add some space below the question */
}

/* Captcha image styles */
.captcha-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Captcha options styles */
.captcha-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center; /* Center the buttons */
}

.captcha-options button {
    background-color: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--text-color);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.captcha-options button:hover,
.captcha-options button.selected {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

/* Footer styles */
footer {
    background-color: var(--card-bg);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hamburger menu styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Mobile styles */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    nav a {
        margin: 0.5rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .captcha-container {
        padding: 0.5rem;
        max-width: 100%;
    }

    .captcha-image {
        max-width: 250px;
    }

    .captcha-options button {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
}
