body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #e0e0e0;
    overflow-x: hidden;
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    box-shadow: 0 4px 25px rgba(0, 255, 255, 0.5);
    border-bottom: 1px solid #0ff;
    position: relative;
    z-index: 1;
}

.top-bar {
    text-align: right;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

.top-bar a {
    color: #0ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: #f0f;
}

.branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
}

.logo-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
    margin-bottom: 1rem;
    border: 3px solid #0ff;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header h1 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff, 0 0 30px #f0f, 0 0 40px #f0f;
    letter-spacing: 3px;
}

.header p {
    margin: 0.5rem 0 0;
    color: #c0c0c0;
    font-size: 1.2rem;
    font-style: italic;
}

.navbar {
    display: flex;
    justify-content: center;
    background-color: rgba(26, 26, 46, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.navbar a {
    color: #e0e0e0;
    padding: 1rem 1.5rem;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    position: relative;
}

.navbar a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ff, #f0f);
    transition: width 0.4s;
}

.navbar a:hover {
    color: #fff;
}

.navbar a:hover:before {
    width: 100%;
}

.container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 2rem auto;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.column {
    width: 48%;
}

.profile, .about, .terminal-container, .blog, .contact {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid #3a3a5e;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile:hover, .about:hover, .terminal-container:hover, .blog:hover, .contact:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.4);
}

.profile {
    text-align: center;
}

.profile img {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid #0ff;
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.7);
}

.profile h2 {
    margin: 1rem 0 0.5rem;
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px #0ff;
}

.profile figcaption {
    color: #0ff;
    font-style: italic;
    font-size: 1.1rem;
}

h2, h3 {
    color: #fff;
    border-bottom: 2px solid #0ff;
    padding-bottom: 0.5rem;
    margin-top: 0;
}

h3 .fas, h2 .fas {
    margin-right: 10px;
    color: #f0f;
}

.terminal-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 5px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.terminal-buttons {
    display: flex;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.terminal-button.red { background-color: #ff5f56; }
.terminal-button.yellow { background-color: #ffbd2e; }
.terminal-button.green { background-color: #27c93f; }

.terminal-title {
    color: #ccc;
    margin: 0 auto;
}

.terminal-body {
    background-color: #1e1e1e;
    padding: 10px;
    height: 100%;
    overflow-y: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    color: #0f0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.terminal-prompt {
    color: #0ff;
}

.terminal-cursor {
    display: inline-block;
    width: 10px;
    height: 1.2rem;
    background-color: #0f0;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { background-color: transparent; }
}

.contact p {
    margin: 1rem 0;
}

.contact .fas, .contact .fab {
    margin-right: 10px;
    color: #f0f;
}

.contact a {
    color: #0ff;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.big-button {
    background: linear-gradient(45deg, #0ff, #f0f);
    border: none;
    margin: 1rem auto;
    font-size: 1.2rem;
    cursor: pointer;
    width: 150px;
    height: 50px;
    display: block;
    border-radius: 25px;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
}

.big-button a {
    color: white;
    text-decoration: none;
}

.big-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #f0f, 0 0 40px #0ff;
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(26, 26, 46, 0.8);
    color: #a0a0a0;
    border-top: 1px solid #3a3a5e;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
    }

    .column {
        width: 100%;
    }

    .header h1 {
        font-size: 2rem;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar a {
        padding: 0.8rem 1rem;
    }

    .terminal-container {
        height: 300px;
    }
}
