:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card-bg: #0f172a;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --accent: #22d3ee;
    --accent-soft: rgba(34, 211, 238, 0.2);
    --text: #e5e7eb;
    --text-soft: #9ca3af;
    --danger: #f97373;

    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
    --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.6);

    --container-width: 1080px;
}

/* GLOBAL */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1f2937, #020617 50%, #000 100%);
    color: var(--text);
    line-height: 1.6;
}

/* CONTAINER & SECTIONS */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: radial-gradient(circle at top, rgba(34, 211, 238, 0.05), transparent 55%);
}

.section-label {
    font-family: "Source Code Pro", monospace;
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-header {
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.1rem;
    margin: 0 0 0.5rem;
}

.section-header p {
    margin: 0;
    color: var(--text-soft);
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.4));
    border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 0.9rem 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-mark {
    font-family: "Source Code Pro", monospace;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.3), transparent);
    font-size: 0.8rem;
    color: var(--accent);
}

.logo-text {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--text-soft);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.1rem;
}

/* NAV underline */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), #0ea5e9); /* was #a855f7 */
    transition: width 0.2s ease;
}


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

.main-nav a:hover::after {
    width: 100%;
}

/* NAV TOGGLE (MOBILE) */

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-left: 1rem;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

/* Primary buttons */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9, var(--accent)); /* was var(--accent), #a855f7 */
    color: #020617;
    box-shadow: var(--shadow-soft);
}


.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(59, 130, 246, 0.55);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--border-subtle);
    color: var(--text-soft);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-soft);
}

.btn-small {
    padding-block: 0.45rem;
    padding-inline: 0.95rem;
    font-size: 0.8rem;
}

.btn-block {
    width: 100%;
}

/* HERO */

.hero {
    padding-top: 5rem;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
}

.eyebrow {
    font-family: "Source Code Pro", monospace;
    font-size: 0.9rem;
    color: var(--accent);
    margin: 0 0 0.4rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 3.4vw, 3.2rem);
    margin: 0;
}

/* Accent text (Full-Stack Developer) */
.accent {
    background: linear-gradient(120deg, #0ea5e9, var(--accent)); /* was var(--accent), #a855f7 */
    -webkit-background-clip: text;
    color: transparent;
}


.hero-subtitle {
    font-family: "Source Code Pro", monospace;
    font-size: 0.9rem;
    margin: 0.8rem 0 0.6rem;
    color: var(--text-soft);
}

.hero-text {
    margin: 0 0 1.5rem;
    color: var(--text-soft);
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.pill {
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(34, 211, 238, 0.35); /* cyan border */
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.8rem;
    color: var(--text-soft);
    transition: all 0.25s ease;
}

/* 🔥 Hover effect matching logo colors */
.pill:hover {
    color: #020617;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee); /* blue → cyan */
    border-color: transparent;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.55);
    transform: translateY(-2px);
}


/* HERO CODE CARD */

.hero-code-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), #020617 60%);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.code-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.7rem;
    color: var(--text-soft);
}

.code-card-header .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.9;
}

.code-card-header .red { background: #f97373; }
.code-card-header .yellow { background: #facc15; }
.code-card-header .green { background: #22c55e; }

.code-title {
    margin-left: auto;
    font-family: "Source Code Pro", monospace;
}

.code-block {
    margin: 0;
    padding: 1.2rem 1.4rem;
    font-family: "Source Code Pro", monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

/* Simple syntax colors */
.c-keyword { color: #22d3ee; } 
.c-type    { color: #0ea5e9; } /* was #a855f7 */
.c-operator{ color: #f97373; }
.c-string  { color: #4ade80; }
.c-brace   { color: #e5e7eb; }
.c-punc    { color: #9ca3af; }

/* LAYOUT HELPERS */

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.section-text p {
    margin-top: 0;
    margin-bottom: 0.9rem;
    color: var(--text-soft);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.chip {
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.7rem;
    border: 1px solid rgba(34, 211, 238, 0.35); /* cyan border */
    background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), rgba(15, 23, 42, 0.95));
    color: var(--text-soft);
    transition: all 0.25s ease;
    cursor: default;
}

/* hover for chips – matches logo colors */
.chip:hover {
    color: #020617;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee); /* blue -> cyan */
    border-color: transparent;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.6);
    transform: translateY(-2px);
}


/* CARDS & GRID */

.grid {
    display: grid;
    gap: 1.75rem;
}

.projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85));
    border: 1px solid var(--border-subtle);
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-subtle);
}

.card-body h3 {
    margin-top: 0.2rem;
    margin-bottom: 0.4rem;
    text-align: center;
}

.card-body p {
    margin: 0.2rem 0;
    color: var(--text-soft);
}

/* PROJECT CARDS */

/*
.project-thumb {
    border-radius: calc(var(--radius-lg) - 2px);
    height: 180px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    margin: -1.5rem -1.6rem 1.3rem;
    border-bottom: 1px solid var(--border-subtle);
}*/

.project-thumb {
    height: 200px; /* you can adjust to what you prefer: 160, 180, 220 etc */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    border-radius: 20px 20px 0 0; /* keeps smooth rounded corners */
}


/* Placeholder gradient thumbs 
.project-thumb-1 {
    background-image: linear-gradient(135deg, #22d3ee, #6366f1);
}
.project-thumb-2 {
    background-image: linear-gradient(135deg, #f97316, #a855f7);
}
.project-thumb-3 {
    background-image: linear-gradient(135deg, #22c55e, #0ea5e9);
}
*/

.project-thumb-1 {
    background-image: url('assets/mr_logo.png');
    background-size: cover;
    background-position: center;
}

.project-thumb-2 {
    background-image: url('assets/mrt-nation.webp');
    background-size: cover;
    background-position: center;
}

.project-thumb-3 {
    background-image: url('assets/mrt-nation.webp');
    background-size: cover;
    background-position: center;
}


.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
    font-size: 0.75rem;
}

.tags span {
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(148, 163, 184, 0.45);
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.25s ease;
    cursor: default;
}

/* 🔥 Beautiful hover animation */
.tags span:hover {
    color: #020617;
    background: linear-gradient(135deg, #0ea5e9, #22d3ee);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.55);
    transform: translateY(-2px);
}



.project-link {
    display: inline-flex;
    margin-top: 0.7rem;
    font-size: 0.85rem;
    align-content: center;
    text-decoration: none;
    color: var(--accent);
}


/* Project CTA button */
.project-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    background: linear-gradient(135deg, #0ea5e9, var(--accent)); /* was #22d3ee, #a855f7 */
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 8px 25px rgba(100, 100, 255, 0.25);
}


.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 211, 238, 0.45);
    filter: brightness(1.05);
}

.project-btn:active {
    transform: translateY(0px);
    box-shadow: 0 6px 16px rgba(34, 211, 238, 0.3);
}


/* SERVICES */

.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

.service-card p {
    margin: 0;
    color: var(--text-soft);
}

/* TIMELINE */

.timeline {
    border-left: 1px solid var(--border-subtle);
    padding-left: 1.6rem;
    margin-top: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.6rem;
}

.timeline-dot {
    position: absolute;
    left: -1.9rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.2);
}

.timeline-content h3 {
    margin: 0 0 0.3rem;
}

.timeline-meta {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.timeline-content p {
    margin: 0.4rem 0 0;
    color: var(--text-soft);
}

.resume-actions {
    margin-top: 2rem;
}

/* CONTACT */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: flex-start;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.field input,
.field textarea {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid var(--border-subtle);
    background: #020617;
    padding: 0.6rem 0.75rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.field input:focus,
.field textarea:focus {
    outline: 1px solid var(--accent);
    box-shadow: 0 0 0 1px var(--accent-soft);
}

.contact-info h3 {
    margin-top: 0;
    margin-bottom: 0.6rem;
}

.contact-info ul {
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

.contact-info li {
    margin-bottom: 0.2rem;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}


.contact-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-soft);
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.3rem 0 1.5rem;
    background: rgba(2, 6, 23, 0.95);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-soft);
}

.footer-meta {
    font-family: "Source Code Pro", monospace;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-code-card {
        order: -1;
    }

    .two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .projects-grid,
    .services-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .main-nav {
        position: absolute;
        right: 1.5rem;
        top: 60px;
        flex-direction: column;
        align-items: flex-start;
        background: #020617;
        padding: 0.8rem 1rem;
        border-radius: 0.8rem;
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-subtle);
        display: none;
    }

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

    .nav-toggle {
        display: flex;
    }

    .header-inner {
        padding-inline: 1.2rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 3.5rem 0;
    }

    .card {
        padding: 1.3rem 1.2rem;
    }

    .project-thumb {
        height: 160px;
    }

    .hero {
        padding-top: 4rem;
    }
}


/* Disable text selection globally */
* {
    user-select: none !important;
    -webkit-user-select: none !important;
    -ms-user-select: none !important;
    -moz-user-select: none !important;
}

/* Disable image dragging */
img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}




/* ===================== */
/* PRELOADER + MATRIX    */
/* ===================== */

.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease;    /* πιο smooth fade out */
}

.preloader-hide {
    opacity: 0;
    pointer-events: none;
}

/* MATRIX CANVAS (background) */
#matrixCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    z-index: 1; /* ΠΙΣΩ από το κουτί */
}

/* CONSOLE OVERLAY πάνω από τη matrix */
.boot-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* όταν γίνει visible από JS */
.boot-overlay.boot-visible {
    opacity: 1;
}

/* ΚΟΥΤΙ ΚΟΝΣΟΛΑΣ – πιο γεμάτο background για να διαβάζεται */
.boot-screen {
    font-family: "Source Code Pro", monospace;
    color: #e5e7eb;
    font-size: 0.95rem;
    line-height: 1.5rem;
    padding: 20px 32px;
    border: 1px solid rgba(34, 211, 238, 0.55);
    border-radius: 16px;
    background: rgba(3, 7, 18, 0.96); /* σχεδόν full opaque */
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.55);
    min-width: 320px;
}

/* ΓΡΑΜΜΕΣ – default: κρυφές, χωρίς animation στην αρχή */
.boot-line {
    opacity: 0;
    margin-bottom: 6px;
    transform: translateY(4px);
}

/* Προσομοίωση prompt */
.boot-line::before {
    content: "$ ";
    color: #4ade80;
}

/* active animation ΜΟΝΟ όταν η κονσόλα γίνει visible */
.boot-overlay.boot-visible .boot-line {
    animation: bootLine 1.5s forwards;
}

/* καθυστερήσεις ανά γραμμή – τώρα ξεκινάνε τη στιγμή που εμφανίζεται το κουτί */
.boot-overlay.boot-visible .boot-line:nth-child(1) { animation-delay: 0.1s; }
.boot-overlay.boot-visible .boot-line:nth-child(2) { animation-delay: 0.9s; }
.boot-overlay.boot-visible .boot-line:nth-child(3) { animation-delay: 1.2s; }
.boot-overlay.boot-visible .boot-line:nth-child(4) { animation-delay: 1.9s; }

.boot-line.highlight {
    color: #4ade80;
    font-weight: 600;
}

/* εμφάνιση γραμμής */
@keyframes bootLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}







/* ========================= */
/* COOKIE BANNER (EU STYLE)  */
/* ========================= */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    display: none;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617 90%);
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.85);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-banner-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner-hide {
    opacity: 0;
    transform: translateY(10px);
}

.cookie-banner-inner {
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-soft);
}

.cookie-banner-text {
    margin: 0;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

/* When cookie banner is visible, push up the content
   so the footer isn't hidden behind it */
body.has-cookie-banner {
    padding-bottom: 80px; /* adjust if needed to match banner height */
}


/* Mobile tweaks */
@media (max-width: 700px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    body.has-cookie-banner {
        padding-bottom: 110px; /* a bit more on mobile if banner is taller */
    }

    .cookie-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }
}



/* FOOTER LEGAL LINKS */
.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.78rem;
    opacity: 0.8;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-legal a:hover {
    color: var(--accent);
    opacity: 1;
    text-decoration: underline;
}


/* GLOBAL CONTENT LINKS (cards, policy text, etc.) */
.section-priv a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed rgba(34, 211, 238, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.section-priv a:hover {
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.8);
    opacity: 1;
}





/* TABLET & SMALL LAPTOPS */
@media (max-width: 900px) {
    .section {
        padding: 3.5rem 0;
    }

    .header-inner {
        padding-inline: 1.2rem;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
        text-align: center;
    }

    .hero-code-card {
        order: -1; /* να έρχεται πάνω στο mobile */
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-meta {
        justify-content: center;
    }

    .two-col {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    /* NAV -> mobile menu */
    .main-nav {
        position: absolute;
        right: 1.5rem;
        top: 60px;
        flex-direction: column;
        align-items: flex-start;
        background: #020617;
        padding: 0.8rem 1rem;
        border-radius: 0.8rem;
        border: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-subtle);
        display: none;
        z-index: 60;
    }

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

    .nav-toggle {
        display: flex;
    }


    .project-thumb {
        height: 120px !important;   /* shrink height */
        border-radius: 14px 14px 0 0;
        background-size: contain !important;  /* prevents cropping */
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .card {
        padding: 1rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr !important; /* one column on mobile */
    }

    .card-body h3 {
        font-size: 1.1rem;
    }
}

/* PHONES */
@media (max-width: 600px) {
    .section {
        padding: 3rem 0;
    }

    body {
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    
    .project-thumb {
        height: 120px !important;   /* shrink height */
        border-radius: 14px 14px 0 0;
        background-size: contain !important;  /* prevents cropping */
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .card {
        padding: 1rem 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr !important; /* one column on mobile */
    }

    .card-body h3 {
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.55rem 1.05rem;
        font-size: 0.85rem;
    }

    .tags {
        font-size: 0.7rem;
    }
}
