:root {
    --bg-color: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00ff9d;
    --accent-glow: rgba(0, 255, 157, 0.2);
    --gradient-start: #00ff9d;
    --gradient-end: #00b8ff;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    padding: 0 2rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 157, 0.1);
    color: var(--accent-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn.primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn.primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn.secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.icon-btn {
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-color);
    color: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.image-wrapper {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 157, 0.2);
    border: 4px solid var(--accent-color);
    margin: 0 auto;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.05);
}

.card-header {
    margin-bottom: 1rem;
    padding-right: 60px;
    /* Space for the absolute tag */
}

.tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.tag.private {
    background: rgba(255, 50, 50, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 50, 50, 0.2);
}

.tag.open-source {
    background: rgba(0, 184, 255, 0.1);
    color: #00b8ff;
    border: 1px solid rgba(0, 184, 255, 0.2);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.skill-category li::before {
    content: '▹';
    color: var(--accent-color);
    margin-right: 10px;
}

.contact-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 4rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-box p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
        padding: 1rem 1.5rem;
    }

    .hero {
        min-height: calc(100vh - 60px);
        padding-top: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.25;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-buttons .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 2rem;
    }

    .contact-box p {
        font-size: 1.2rem;
    }

    .terminal-body {
        min-height: 220px;
        padding: 15px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 2rem;
    }

    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}


/* Terminal Component */
.terminal-wrapper {
    width: 100%;
    max-width: 500px;
    background: rgba(10, 10, 10, 0.95);
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 255, 157, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    transition: var(--transition);
}

.terminal-wrapper:hover {
    box-shadow: 0 0 60px rgba(0, 255, 157, 0.25);
    border-color: var(--accent-color);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-buttons .close {
    background: #ff5f56;
}

.terminal-buttons .minimize {
    background: #ffbd2e;
}

.terminal-buttons .maximize {
    background: #27c93f;
}

.terminal-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    color: var(--accent-color);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

#terminal-content {
    white-space: pre-wrap;
    margin-bottom: 5px;
}

.cursor {
    display: inline-block;
    width: 8px;
    background: var(--accent-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .terminal-wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Terminal Text Styles */
.terminal-line {
    margin-bottom: 2px;
}

.terminal-line.command {
    color: #f8f8f2;
    font-weight: bold;
}

.terminal-line.output {
    color: #00ff9d;
}

.terminal-line.dim {
    color: #6272a4;
    font-style: italic;
}

.terminal-line.highlight {
    color: #8be9fd;
    padding-left: 10px;
}