:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #252526;
    --bg-tertiary: #2d2d2d;
    --bg-black: #000000;
    --text-primary: #d4d4d4;
    --text-secondary: #9cdcfe;
    --text-tertiary: #ce9178;
    --accent-blue: #007acc;
    --accent-purple: #bb00ff;
    --accent-green: #4ec9b0;
    --accent-yellow: #dcdcaa;
    --border-color: #474747;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

.mono {
    font-family: 'Fira Code', monospace;
}

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

/* Header */
header {
    background-color: var(--bg-black);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-purple);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-secondary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background-color: var(--bg-primary);
}

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

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent-purple);
}

.typewriter {
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -10px;
    animation: blink 1s infinite;
    color: var(--accent-green);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.btn {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0062a3;
}

/* About Section */

.about-section {
    background-color: red;
}

.hero {
    background-color: var(--bg-secondary);
}

.section {
    padding: 100px 0;
    border-bottom: #9cdcfe solid 1px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-secondary);
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--accent-blue);
    margin: 15px auto 0;
}

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

.about-text {
    flex: 1;
    padding-right: 50px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-skills {
    flex: 1;
}

.skill-category {
    margin-bottom: 30px;
}

.skill-category h3 {
    color: var(--accent-green);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill {
    background-color: var(--bg-tertiary);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Projects Section */
.projects {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-info p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech {
    background-color: var(--bg-secondary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--text-secondary);
}

/* Articles Section */
.articles {
    background-color: var(--bg-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.articles-card {
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.articles-card:hover {
    transform: translateY(-10px);
}

.articles-image {
    height: 200px;
    overflow: hidden;
}

.articles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.articles-card:hover .articles-image img {
    transform: scale(1.1);
}

.articles-info {
    padding: 25px;
}

.articles-info h3 {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.articles-info p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.articles-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech {
    background-color: var(--bg-secondary);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--accent-yellow);
}

.articles-links {
    display: flex;
    gap: 15px;
}

.articles-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.articles-links a:hover {
    color: var(--text-secondary);
}


/* Contact Section */
#contact{
    background-color: var(--bg-secondary);
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 5px;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--text-secondary);
}

/* Footer */
footer {
    background-color: var(--bg-black);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content, .about-content {
        flex-direction: column;
    }

    .hero-text, .about-text {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .btn {
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding-top: 60px;
    }

    .section {
        padding: 60px 0;
    }

    .contact-form {
        padding: 20px;
    }
}