/* ===============================
   breadrolly.com
   =============================== */

:root {
    --bg: #080c10;
    --bg2: #0d131a;

    --surface: #111820;
    --surface-hover: #151e28;

    --border: #25303c;

    --text: #e6edf3;
    --muted: #8996a3;

    --accent: #58a6ff;
    --accent-soft: rgba(88, 166, 255, 0.12);

    --green: #3fb950;
    --purple: #bc8cff;
    --orange: #ffa657;

    --header: rgba(8, 12, 16, 0.85);

    --shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);
}


/* LIGHT MODE */

body.light {
    --bg: #f7f9fc;
    --bg2: #eef2f7;

    --surface: #ffffff;
    --surface-hover: #f1f5f9;

    --border: #d6dee8;

    --text: #17202a;
    --muted: #637080;

    --accent: #0969da;
    --accent-soft: rgba(9, 105, 218, 0.08);

    --header: rgba(247, 249, 252, 0.88);

    --shadow:
        0 30px 80px rgba(20, 40, 70, 0.12);
}


/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.6;

    transition:
        background 0.25s,
        color 0.25s;
}

body::before {
    content: "";

    position: fixed;

    width: 800px;
    height: 800px;

    top: -400px;
    left: -300px;

    background:
        radial-gradient(
            circle,
            rgba(88, 166, 255, 0.09),
            transparent 65%
        );

    pointer-events: none;

    z-index: -1;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}


/* NAVIGATION */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: var(--header);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1200px;

    height: 76px;

    margin: auto;

    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo,
.footer-logo {
    font-family: "Courier New", monospace;

    font-size: 22px;
    font-weight: bold;

    letter-spacing: -1px;
}

.logo span,
.footer-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--muted);

    font-size: 14px;

    transition: 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.command-button,
.theme-toggle {
    height: 36px;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--muted);

    border-radius: 7px;

    cursor: pointer;

    transition: 0.2s;
}

.command-button {
    padding: 0 12px;

    font-family: monospace;

    font-size: 12px;
}

.theme-toggle {
    width: 38px;
}

.command-button:hover,
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}


/* HERO */

.hero {
    max-width: 1200px;

    min-height: 100vh;

    margin: auto;

    padding: 130px 30px 80px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(360px, 0.9fr);

    align-items: center;

    gap: 70px;
}

.eyebrow,
.section-label {
    color: var(--accent);

    font-family: monospace;

    font-size: 14px;

    margin-bottom: 14px;
}

.hero h1 {
    font-size: clamp(64px, 9vw, 110px);

    letter-spacing: -7px;

    line-height: 0.95;
}

.cursor {
    color: var(--accent);

    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero h2 {
    color: var(--muted);

    font-size: clamp(28px, 4vw, 48px);

    margin-top: 22px;

    min-height: 65px;
}

#typing-text {
    color: var(--text);
}

.typing-cursor {
    color: var(--accent);

    font-family: monospace;
}

.hero-description {
    color: var(--muted);

    max-width: 600px;

    font-size: 18px;

    margin-top: 15px;
}

.hero-buttons {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}

.button {
    display: inline-block;

    padding: 12px 22px;

    border: 1px solid var(--accent);

    border-radius: 7px;

    cursor: pointer;

    font-size: 14px;

    transition: 0.2s;
}

.primary {
    background: var(--accent);
    color: #07101a;
}

.primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 30px var(--accent-soft);
}

.secondary {
    color: var(--accent);
}

.secondary:hover {
    background: var(--accent-soft);
}

.keyboard-hint {
    color: var(--muted);

    font-family: monospace;

    font-size: 12px;

    margin-top: 25px;
}

kbd {
    background: var(--surface);

    border: 1px solid var(--border);

    border-bottom-width: 2px;

    padding: 3px 6px;

    border-radius: 4px;

    font-family: monospace;
}


/* CODE WINDOW */

.code-window {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow);

    transform: rotate(1deg);

    transition: 0.3s;
}

.code-window:hover {
    transform:
        rotate(0deg)
        translateY(-5px);
}

.window-header,
.terminal-header {
    height: 44px;

    background: var(--bg2);

    border-bottom: 1px solid var(--border);

    display: flex;
    align-items: center;

    padding: 0 15px;

    position: relative;
}

.window-header p,
.terminal-header p {
    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    color: var(--muted);

    font-family: monospace;

    font-size: 12px;
}

.window-buttons,
.terminal-dots {
    display: flex;

    gap: 7px;
}

.window-buttons span,
.terminal-dots span {
    width: 11px;
    height: 11px;

    border-radius: 50%;
}

.window-buttons span:nth-child(1),
.terminal-dots span:nth-child(1) {
    background: #ff5f57;
}

.window-buttons span:nth-child(2),
.terminal-dots span:nth-child(2) {
    background: #febc2e;
}

.window-buttons span:nth-child(3),
.terminal-dots span:nth-child(3) {
    background: #28c840;
}

.code-window pre {
    padding: 30px;

    overflow-x: auto;

    font-family: "Courier New", monospace;

    font-size: 14px;

    line-height: 1.8;
}

.purple {
    color: var(--purple);
}

.green {
    color: var(--green);
}

.string {
    color: #a5d6ff;
}

.orange {
    color: var(--orange);
}

.blue {
    color: var(--accent);
}


/* SECTIONS */

.section {
    max-width: 1100px;

    margin: auto;

    padding: 120px 30px;
}

.section h2 {
    font-size: clamp(38px, 6vw, 60px);

    letter-spacing: -3px;

    margin-bottom: 35px;
}

.section h3 {
    font-size: 20px;

    margin: 40px 0 18px;
}

.muted {
    color: var(--muted);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.large-text {
    font-size: 23px;

    margin-bottom: 20px;
}

.about-grid .muted {
    margin-top: 15px;
}


/* MINI CODE */

.mini-code {
    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 25px;

    font-family: monospace;

    line-height: 2;
}

.mini-code span {
    display: inline-block;

    width: 35px;

    color: #52606d;

    user-select: none;
}

.mini-code b {
    color: var(--purple);
}


/* SKILLS */

.skills {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.skills span,
.project-tech span {
    background: var(--surface);

    border: 1px solid var(--border);

    padding: 7px 12px;

    border-radius: 6px;

    color: var(--muted);

    font-family: monospace;

    font-size: 13px;

    transition: 0.2s;
}

.skills span:hover {
    color: var(--accent);

    border-color: var(--accent);

    transform: translateY(-2px);
}


/* TERMINAL */

.terminal-description {
    margin-top: -20px;
    margin-bottom: 30px;
}

.terminal-description code {
    color: var(--accent);

    font-family: monospace;
}

.terminal {
    background: #070a0e;

    border: 1px solid #27313d;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow);

    font-family: "Courier New", monospace;
}

.terminal-header {
    background: #10161d;
}

.terminal-output {
    min-height: 300px;
    max-height: 430px;

    overflow-y: auto;

    padding: 25px 25px 5px;

    color: #d4dce5;

    font-size: 14px;
}

.terminal-output p {
    margin-bottom: 7px;
}

.terminal-muted {
    color: #6f7d8a;
}

.terminal-command {
    color: #d4dce5;
}

.terminal-response {
    color: #8b98a5;
    white-space: pre-wrap;
}

.terminal-error {
    color: #ff7b72;
}

.terminal-input {
    display: flex;

    align-items: center;

    gap: 4px;

    padding: 10px 25px 25px;

    color: white;

    font-size: 14px;
}

.terminal-name {
    color: #3fb950;
}

.terminal-path {
    color: #58a6ff;
}

.terminal-input input {
    flex: 1;

    background: transparent;

    border: none;

    outline: none;

    color: white;

    font-family: inherit;

    caret-color: white;
}

.quick-commands {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;
}

.quick-commands button {
    background: transparent;

    border: 1px solid var(--border);

    color: var(--muted);

    padding: 6px 10px;

    border-radius: 5px;

    cursor: pointer;

    font-family: monospace;

    font-size: 12px;
}

.quick-commands button:hover {
    border-color: var(--accent);

    color: var(--accent);
}


/* PROJECTS */

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.section-heading > span {
    color: var(--muted);

    font-family: monospace;

    font-size: 12px;
}

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.project-card {
    position: relative;

    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 10px;

    padding: 28px;

    min-height: 310px;

    transition:
        transform 0.25s,
        border 0.25s,
        background 0.25s;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            var(--accent-soft),
            transparent 65%
        );

    left: var(--mouse-x, -300px);
    top: var(--mouse-y, -300px);

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-7px);

    border-color: var(--accent);

    background: var(--surface-hover);
}

.project-top {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.project-top > span {
    color: var(--accent);

    font-family: monospace;
}

.project-top small {
    color: var(--green);

    font-family: monospace;

    font-size: 10px;
}

.project-card h3 {
    font-size: 24px;

    margin: 45px 0 15px;
}

.project-card > p {
    color: var(--muted);
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 25px;
}

.project-tech span {
    font-size: 11px;

    padding: 5px 8px;
}


/* CONTACT */

.contact {
    max-width: 750px;
}

.contact > .muted {
    margin-top: -20px;
    margin-bottom: 30px;
}

form {
    display: flex;

    flex-direction: column;
}

form label {
    color: var(--muted);

    font-family: monospace;

    font-size: 13px;

    margin: 17px 0 7px;
}

form input,
form textarea {
    width: 100%;

    background: var(--surface);

    border: 1px solid var(--border);

    color: var(--text);

    border-radius: 7px;

    padding: 14px;

    outline: none;

    transition: 0.2s;
}

form input:focus,
form textarea:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px var(--accent-soft);
}

form textarea {
    resize: vertical;
}

form button {
    align-self: flex-start;

    margin-top: 20px;
}

#form-message {
    margin-top: 15px;

    color: var(--muted);

    font-family: monospace;

    font-size: 13px;
}


/* FOOTER */

footer {
    border-top: 1px solid var(--border);

    text-align: center;

    padding: 50px 20px;

    color: var(--muted);

    font-family: monospace;

    font-size: 12px;
}

footer p {
    margin-top: 8px;
}


/* COMMAND PALETTE */

.command-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(5px);

    z-index: 5000;

    display: none;

    justify-content: center;

    align-items: flex-start;

    padding-top: 15vh;
}

.command-overlay.open {
    display: flex;
}

.command-palette {
    width: min(600px, 90vw);

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow);
}

.command-search {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    border-bottom: 1px solid var(--border);
}

.command-search input {
    flex: 1;

    border: none;

    outline: none;

    background: transparent;

    color: var(--text);
}

.command-search kbd {
    color: var(--muted);
}

.command-item {
    width: 100%;

    border: none;

    background: transparent;

    color: var(--text);

    padding: 13px 18px;

    display: flex;

    align-items: center;

    gap: 15px;

    text-align: left;

    cursor: pointer;
}

.command-item:hover {
    background: var(--accent-soft);
}

.command-item > span {
    width: 30px;

    color: var(--accent);

    font-family: monospace;
}

.command-item strong {
    display: block;

    font-size: 14px;
}

.command-item small {
    display: block;

    color: var(--muted);

    margin-top: 2px;
}


/* SCROLL ANIMATIONS */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        padding-top: 150px;
    }

    .code-window {
        transform: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 700px) {

    .navbar {
        padding: 0 18px;
    }

    .nav-links {
        display: none;
    }

    .command-button {
        display: none;
    }

    .hero,
    .section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero h1 {
        letter-spacing: -4px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .code-window pre {
        font-size: 12px;
    }

    .section-heading {
        display: block;
    }

    .section-heading > span {
        display: block;

        margin-top: -25px;
        margin-bottom: 25px;
    }

    .terminal-input {
        font-size: 11px;
    }
}