/* =========================
   DESIGN SYSTEM
========================= */

:root {
    --background: #080c14;
    --surface: #0f1623;
    --surface-light: #151e2e;

    --text: #f0f6fc;
    --text-secondary: #8b949e;

    --accent: #58a6ff;
    --accent-bright: #79c0ff;

    --border: #21262d;
}


/* =========================
   GLOBAL
========================= */

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

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}


/* =========================
   NAVIGATION
========================= */

nav {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 12, 20, 0.95);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;

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

.nav-container h3 {
    color: var(--accent);
    font-size: 22px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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


/* =========================
   HERO
========================= */

.hero {
    min-height: 85vh;

    display: flex;
    align-items: center;

    background: var(--background);
}

.hero-content {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
    padding: 80px 20px;
}

.intro {
    color: var(--accent);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero h1 {
    max-width: 950px;

    font-size: clamp(48px, 7vw, 85px);
    line-height: 1.05;
    letter-spacing: -3px;

    margin-bottom: 25px;
}

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

.hero-description {
    max-width: 650px;

    color: var(--text-secondary);
    font-size: 20px;

    margin-bottom: 35px;
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    margin-bottom: 45px;
}

.hero-buttons a {
    padding: 12px 22px;

    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;

    transition: 0.2s ease;
}

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

.secondary-btn {
    color: var(--text);
    border: 1px solid var(--border);
}

.hero-buttons a:hover {
    transform: translateY(-3px);
}


/* TECHNOLOGY BADGES */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-stack span {
    background: var(--surface);
    border: 1px solid var(--border);

    padding: 7px 13px;
    border-radius: 20px;

    color: var(--text-secondary);
    font-size: 14px;
}


/* =========================
   MAIN CONTENT
========================= */

main {
    max-width: 1100px;
    margin: 0 auto;

    padding: 40px 20px;
}

section {
    padding: 70px 0;
}

section h2 {
    color: var(--text);
    font-size: 32px;

    margin-bottom: 20px;
}

section h3 {
    margin-bottom: 5px;
}

section p {
    color: var(--text-secondary);
}

ul {
    margin: 15px 0 0 20px;
}


/* =========================
   PROJECTS
========================= */

.section-label {
    color: var(--accent);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;

    margin-bottom: 5px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 12px;

    padding: 28px;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

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

    border-color: var(--accent);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.project-number {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
}

.project-card h3 {
    font-size: 22px;

    margin: 15px 0 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;
    margin: 20px 0;
}

.project-tech span {
    background: var(--surface-light);

    border: 1px solid var(--border);
    border-radius: 20px;

    padding: 5px 10px;

    color: var(--text-secondary);
    font-size: 12px;
}

.project-link {
    color: var(--accent);

    text-decoration: none;
    font-weight: bold;
}

.project-link:hover {
    color: var(--accent-bright);
}

.coming-soon {
    font-size: 13px;
    font-weight: bold;
}


/* =========================
   CONTACT
========================= */

.contact-links {
    display: flex;
    gap: 20px;

    margin-top: 20px;
}

.contact-links a {
    color: var(--accent);

    text-decoration: none;
    font-weight: bold;
}

.contact-links a:hover {
    color: var(--accent-bright);
}


/* =========================
   FOOTER
========================= */

footer {
    max-width: 1100px;

    margin: 0 auto;
    padding: 30px 20px;

    border-top: 1px solid var(--border);

    color: var(--text-secondary);
    font-size: 14px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 75vh;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

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

    section {
        padding: 50px 0;
    }
}
.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.skill-card {
    position: relative;
    overflow: hidden;

    background: linear-gradient(
        145deg,
        var(--surface),
        rgba(21, 30, 46, 0.55)
    );

    border: 1px solid var(--border);
    border-radius: 16px;

    padding: 32px;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
}

.skill-icon {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.skill-card h3 {
    font-size: 25px;
    margin: 15px 0;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 25px;
}

.skill-list span {
    padding: 6px 11px;

    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 6px;

    color: var(--text-secondary);
    font-family: monospace;
    font-size: 12px;
}

@media (max-width: 800px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================
   TERMINAL
========================= */

.terminal {
    max-width: 900px;
    margin: -80px auto 80px;

    background: rgba(5, 8, 13, 0.96);

    border: 1px solid rgba(88, 166, 255, 0.2);
    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(88, 166, 255, 0.05);
}

.terminal-header {
    display: flex;
    align-items: center;

    position: relative;

    padding: 13px 16px;

    background: var(--surface-light);
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 7px;
}

.terminal-dots span {
    width: 11px;
    height: 11px;

    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.5;
}

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    color: var(--text-secondary);

    font-family: monospace;
    font-size: 12px;
}

.terminal-body {
    max-height: 430px;
overflow-y: auto;
    min-height: 330px;

    padding: 26px;

    font-family: "Courier New", monospace;
    font-size: 14px;
    line-height: 1.8;
}

.terminal-input-line {
    display: flex;
    align-items: center;

    background: transparent;
}

.terminal-input-line .prompt {
    flex-shrink: 0;
}


.prompt {
    color: var(--accent);
    margin-right: 8px;
}

.command {
    color: var(--text);
}

.terminal-output {
    color: var(--text-secondary);

    margin: 3px 0 17px 20px;

    white-space: pre-line;
}

.terminal-directory {
    color: var(--accent-bright);
}

.cursor {
    color: var(--accent);

    margin-left: 3px;

    animation: terminalBlink 0.8s infinite;
}

@keyframes terminalBlink 

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% 
        opacity: 0;
    
    .terminal-input-line {
    display: flex;
    align-items: center;
}

#terminal-input {
    flex: 1;
    width: 100%;

    background: transparent !important;
    background-color: transparent !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    color: #f0f6fc;

    font-family: "Courier New", monospace;
    font-size: 14px;

    caret-color: var(--accent);

    padding: 0;
    margin: 0;
}

/* =========================
   TERMINAL INPUT OVERRIDE
========================= */

.terminal input,
.terminal input[type="text"],
#terminal-input {
    flex: 1;

    appearance: none !important;
    -webkit-appearance: none !important;

    background: none !important;
    background-color: transparent !important;

    border: none !important;
    outline: none !important;
    box-shadow: none !important;

    color: #f0f6fc !important;
    caret-color: #58a6ff;

    font-family: "Courier New", monospace !important;
    font-size: 14px;

    padding: 0 !important;
    margin: 0 !important;

    height: 22px !important;
    min-height: 0 !important;

    border-radius: 0 !important;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent !important;
}

.terminal-input-line .prompt {
    flex-shrink: 0;
}