:root {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --accent-color: #00ff66;
    --secondary-bg: #1e1e1e;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: auto !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--secondary-bg);
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

main {
    margin-top: 80px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5em;
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--bg-color);
    background-color: var(--accent-color);
    border-radius: 3px;
}

.hero-section {
    display: grid;
    grid-template-columns: 65% 35%;
    grid-template-rows: auto 1fr;
    gap: 20px 5%; 
    align-items: center;
}

.hero-header-text {
    grid-area: 1 / 1 / 2 / 2; 
    margin-bottom: 0; 
}

.hero-description-content {
    grid-area: 2 / 1 / 3 / 2; 
}

.hero-image-placeholder {
    grid-area: 1 / 2 / 3 / 3;
    justify-self: center; 
    align-self: center; 
}


.hero-text {
    max-width: 60%;
}

.hero-text h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-text h1 strong {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.5em;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.description {
    max-width: 700px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #33ff99;
    transform: translateY(-2px);
}

.hero-image-placeholder {
    width: 300px;
    height: 300px;
    background-color: var(--secondary-bg);
    border-radius: 50%;
    border: 3px solid var(--accent-color);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

hr {
    border: none;
    border-top: 1px solid var(--secondary-bg);
    margin: 40px auto;
    width: 80%;
}

footer {
    background-color: var(--secondary-bg);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--accent-color);
    margin-top: 50px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 10px;
}

.skills-section {
    padding: 60px 0;
}

.skills-section h2, .demo-section h2, .contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skill-card {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-left: 3px solid var(--accent-color);
    border-radius: 5px;
}

.skill-card h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 5px 0;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.contact-section {
    padding: 60px 0 100px;
    text-align: center;
}

.contact-section p {
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #a0a0a0;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: transform 0.2s, opacity 0.3s;
    color: var(--bg-color);
}

.contact-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.linkedin {
    background-color: #0077b5;
}

.github {
    background-color: #6e5494;
}

.email {
    background-color: var(--accent-color);
}

.hidden-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

#hero.hidden-section {
    opacity: 1;
    transform: translateY(0);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle:focus {
    outline: none;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s linear;
}

@media (max-width: 768px) {
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: var(--secondary-bg);
        border-top: 1px solid var(--accent-color);
        padding: 10px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        margin: 0;
    }

    nav {
        justify-content: space-between;
    }
    
    .hero-section {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .hero-header-text, .hero-description-content, .hero-image-placeholder {
        margin: 10px 0;
        order: unset; 
    }

    .hero-image-placeholder {
        margin: 30px auto; 
    }

    .hero-text h1 {
        font-size: 2.2em;
    }

    .subtitle {
        font-size: 1.2em;
    }
    
    .hero-header-text, .hero-description-content {
        padding: 0 20px;
    }

    .terminal-window {
        max-width: 95%;
        font-size: 0.8em;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 10px;
    }

    .contact-button {
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.2em;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .terminal-body {
        min-height: 150px;
    }
}

section[id] {
    scroll-margin-top: 90px;
}
