:root {
    --primary-bg: #1a1a1a;
    --modal-bg: #2a2a2a;
    --text-color: #ffffff;
    --accent-red: #ff0000;
    --accent-blue: #0000ff;
}

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

body {
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 0, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 0, 255, 0.05) 0%, transparent 20%);
    font-family: Arial, sans-serif;
    position: relative;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.title {
    color: var(--text-color);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    position: relative;
    animation: titleFloat 3s ease-in-out infinite;
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 75px;
    padding: 1rem;
    margin: 1rem;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.button:hover::before {
    width: 400px;
    height: 400px;
}

.about-me:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    transform: translateY(-2px);
}

.projects:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.3);
    transform: translateY(-2px);
}

.modal {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--modal-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    max-width: 500px;
    width: 90%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal h2 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.modal h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--text-color);
}

.modal-content {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.close-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: none;
    border: 2px solid var(--text-color);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.close-button:hover {
    background-color: var(--text-color);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.overlay {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.show {
    visibility: visible;
    opacity: 1;
}

.footer {
    position: fixed;
    bottom: 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    width: 100%;
    animation: fadeIn 1s ease-out 1s backwards;
}

a {
    color: var(--text-color);
    text-decoration: none;
    position: relative;
}

a:hover {
    text-decoration: none;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--text-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .title {
        font-size: 2.5rem;
        text-align: center;
    }

    .button {
        width: 90%;
        max-width: 350px;
        height: 60px;
        font-size: 1.1rem;
    }

    .modal {
        padding: 1.5rem;
        width: 95%;
    }

    .modal h2 {
        font-size: 1.5rem;
    }

    .modal-content {
        font-size: 0.95rem;
    }

    .footer {
        font-size: 0.8rem;
        padding: 0 20px;
    }
}

@media (max-height: 600px) {
    .container {
        padding: 40px 0;
    }

    .footer {
        position: relative;
        margin-top: 20px;
    }
}

.link-icon {
    display: inline-block;
    margin-right: 5px;
    font-size: 1.1em;
    vertical-align: middle;
}

.subtitle {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}