:root {
    --bg: #0a0c0b;
    /* fundo principal */
    --surface: #0f1211;
    /* cartões/elementos */
    --text: #f1f5f2;
    /* texto principal */
    --muted: #aab6ae;
    /* texto secundário */
    --accent: #e5e7eb;
    /* linhas/menus */
    --brand: #e6e6e6;
    /* botões claros */
    --brand-ink: #0b0b0b;
    /* texto botões claros */
    --radius: 18px;
    --nav-h: 64px;

}

/* ===== Tema (variáveis) ===== */
:root {
    --bg: #0a0c0b;
    --surface: #0f1211;
    --text: #f1f5f2;
    --muted: #aab6ae;
    --accent: #e5e7eb;
    --brand: #e6e6e6;
    --brand-ink: #0b0b0b;
    --radius: 18px;
    --nav-h: 64px;

    /* Luzes (feixes) no dark: BRANCAS */
    --spot-strong: rgba(255, 255, 255, 0.30);
    --spot-mid: rgba(255, 255, 255, 0.18);
    --spot-soft: rgba(255, 255, 255, 0.08);

    /* Cores utilitárias */
    --border-soft: #ffffff1a;
    --border: #ffffff1f;
    --shadow-strong: #00000070;
    --shadow-soft: #00000060;

    /* Navbar hover sublinhado */
    --hover-underline: #ffffff40;

    /* Drawer overlay */
    --overlay: #000000aa;
}

/* Light Theme Variables */
:root.light {
    --bg: #ffffff;
    --surface: #f5f5f5;
    --text: #0a0c0b;
    --muted: #6b7280;
    --accent: #374151;
    --brand: #000000; /* Change button color to black in light mode */
    --brand-ink: #ffffff;
    --radius: 18px;
    --nav-h: 64px;

    --spot-strong: rgba(0, 0, 0, 0.30);
    --spot-mid: rgba(0, 0, 0, 0.18);
    --spot-soft: rgba(0, 0, 0, 0.08);

    --border-soft: #0000001a;
    --border: #0000001f;
    --shadow-strong: #00000030;
    --shadow-soft: #00000020;

    --hover-underline: #00000040;
    --overlay: #000000aa;
}

/* Reset elegante */
*,
*::before,
*::after {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    padding-top: 70px;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}



/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(32px, 6vw, 64px) 20px 120px;
    margin-top: -70px;
    padding-top: calc(clamp(32px, 6vw, 64px) + 70px);
}

.hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr .9fr;
    gap: 48px;
    align-items: center;
}

/* Spotlights (apenas feixes, sem as bolas) */
/* Spotlights (apenas feixes, sem as bolas) */
.spot-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Feixes: inclinados para o centro */
.spot {
    position: absolute;
    width: 1200px;
    height: 480px;
    background: radial-gradient(100% 75% at 50% 0%,
            var(--spot-strong) 0%,
            var(--spot-mid) 35%,
            var(--spot-soft) 65%,
            transparent 80%);
    filter: blur(3px);
    clip-path: polygon(49% 0, 55% 0, 100% 100%, 0 100%);
    transform-origin: top center;
    z-index: 0;
}

.spot--left {
    left: -60vw;
    top: -10vh;
    transform: rotate(-35deg);
}

.spot--right {
    right: -60vw;
    top: -10vh;
    transform: rotate(35deg);
}


/* Conteúdo esquerdo */
.kicker {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .3px;
    margin-bottom: 12px
}

.display {
    font-family: Orbitron, Inter, sans-serif;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .4px;
    font-size: clamp(28px, 4.6vw, 56px);
    margin: 0 0 14px;
    text-shadow: 0 1px 0 #ffffff16;
}

.sub {
    color: var(--muted);
    font-size: clamp(14px, 1.4vw, 18px);
    margin-bottom: 28px
}

.cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

button{
    cursor: pointer;
}

.btn {
    border-radius: 14px;
    padding: 14px 20px;
    border: 1px solid var(--border);
    background: var(--brand-ink);
    /* escuro no dark; também escuro no light (contraste) */
    color: var(--brand);
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent), 0 8px 24px var(--shadow-soft);
    transition: .25s transform ease, .25s background-color ease, .25s box-shadow ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--light {
    background: var(--brand);
    color: var(--brand-ink);
}

/* Terminal animado */
.terminal {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px var(--shadow-strong), inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent);
    color: var(--text);
}

.terminal__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #000 10%), var(--surface));
    border-radius: 17px;
}

.terminal__header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block
}

.terminal__header .dot.red {
    background: #ff5f56
}

.terminal__header .dot.yellow {
    background: #ffbd2e
}

.terminal__header .dot.green {
    background: #27c93f
}

.terminal__header .title {
    margin-left: 6px;
    color: #9fb0a7;
    font-size: 12px
}

.terminal__body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    margin: 0;
    padding: 16px;
    min-height: 200px;
    white-space: pre-wrap;
    color: var(--text);
}

.terminal__body .prompt {
    opacity: .9; 
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.05em;
    transform: translateY(2px);
    background: #c8f7d0;
    margin-left: 2px;
    animation: blink 1s steps(1) infinite
}

@keyframes blink {
    50% {
        opacity: 0
    }
}

/* Footer tiny */
footer {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 32px 20px;
    text-align: center;
    border-top: 1px solid var(--border-soft);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
    border-radius: var(--radius) var(--radius) 0 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .hero {
        position: relative;
    }

    .hero__inner {
        position: relative;
        z-index: 2;
    }

    .spot-wrap {
        z-index: 0;
    }

    /* lanterna ilumina o fundo e feixes, sem “estourar” o texto */


    .terminal {
        order: 2
    }
}

@media (max-width: 760px) {
    .menu {
        display: none
    }

    .hamb {
        display: block
    }

    .brand__name {
        font-size: 14px
    }

    .hero {
        padding-bottom: 80px
    }

    .cta {
        gap: 12px
    }

    .btn {
        padding: 12px 16px
    }
}


/* Menu móvel */
.drawer {
    position: fixed;
    inset: 0;
    background: #000000aa;
    display: none;
    z-index: 50;
}



.drawer__panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: var(--surface);
    border-left: 1px solid var(--border-soft);
    padding: 20px
}

.drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px
}

.drawer__nav a {
    padding: 10px 6px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    color: var(--text);
}

.drawer.show {
    display: block
}

@media (min-width: 761px) {
    .drawer.show {
        display: none !important;
    }
}

/* Form submission */
.contact__form button[type="submit"] {
    align-self: flex-start;
}

/* Redução de movimento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important
    }
}

/* ===== Skills Section ===== */
.section {
    padding: clamp(48px, 8vw, 96px) 20px;
}

.skills__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.skills__head {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.skills__title {
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: .4px;
    margin: 0 0 8px;
}

.skills__tag {
    color: var(--muted);
    font-size: 14px;
    opacity: .85;
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.skill-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-soft);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-strong);
    border-color: var(--accent);
}

.skill-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.skill-card h3 {
    font-family: Orbitron, Inter, sans-serif;
    margin: 0 0 8px;
    font-size: 18px;
}

.skill-card p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

.skill-detail {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 32px;
    position: relative;
    display: none;
    animation: slideIn 0.3s ease;
}

.skill-detail.active {
    display: block;
}

.skill-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.skill-content h4 {
    font-family: Orbitron, Inter, sans-serif;
    margin: 0 0 16px;
    color: var(--text);
}

.skill-content pre {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    margin: 16px 0;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    background: #000;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow-soft);
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--brand);
}

@media (max-width: 760px) {
    .theme-toggle {
        display: none;
    }
}

.drawer__theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 10px 6px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}

/* Floating Orbs Background */
.orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.orb:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.orb:nth-child(2) { width: 60px; height: 60px; left: 20%; animation-delay: 1s; }
.orb:nth-child(3) { width: 100px; height: 100px; left: 35%; animation-delay: 2s; }
.orb:nth-child(4) { width: 40px; height: 40px; left: 50%; animation-delay: 3s; }
.orb:nth-child(5) { width: 70px; height: 70px; left: 65%; animation-delay: 4s; }
.orb:nth-child(6) { width: 90px; height: 90px; left: 80%; animation-delay: 5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(0); opacity: 0; }
    50% { transform: translateY(-20px) scale(1); opacity: 1; }
}

/* Projects Section */
.projects__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.projects__head {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.projects__title {
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: .4px;
    margin: 0 0 8px;
}

.projects__tag {
    color: var(--muted);
    font-size: 14px;
    opacity: .85;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: var(--brand);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.project-status {
    background: var(--bg);
    color: var(--text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--border-soft);
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-soft);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--shadow-strong);
    border-color: var(--accent);
}

.project-card h3 {
    font-family: Orbitron, Inter, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}

.project-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 20px;
    font-size: 14px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 12px;
}

@media (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
}



/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.contact__head {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.contact__title {
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: .4px;
    margin: 0 0 8px;
}

.contact__tag {
    color: var(--muted);
    font-size: 14px;
    opacity: .85;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface);
}

.contact__icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: 8px;
}

.contact__item h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}

.contact__item a {
    color: var(--muted);
    font-size: 13px;
    transition: color 0.3s ease;
}

.contact__item a:hover {
    color: var(--text);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__group {
    position: relative;
}

.form__group input,
.form__group textarea {
    width: 100%;
    padding: 16px 12px 8px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form__group label {
    position: absolute;
    left: 12px;
    top: 16px;
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form__group input:focus + label,
.form__group input:valid + label,
.form__group textarea:focus + label,
.form__group textarea:valid + label {
    top: 4px;
    font-size: 11px;
    color: var(--accent);
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
    }
}
/* Interactive Terminal Section */
.interactive-terminal__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.interactive-terminal__head {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.interactive-terminal__title {
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: .4px;
    margin: 0 0 8px;
}

.interactive-terminal__tag {
    color: var(--muted);
    font-size: 14px;
    opacity: .85;
}

.terminal-container {
    max-width: 800px;
    margin: 0 auto;
}

.terminal-interactive {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px var(--shadow-strong);
    overflow: hidden;
}

.terminal-interactive__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #000 10%), var(--surface));
}

.terminal-interactive__body {
    font-family: ui-monospace, monospace;
    padding: 16px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    color: var(--text);
    font-size: 14px;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 8px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-top: 1px solid var(--border-soft);
    background: var(--bg);
}

.terminal-input {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: ui-monospace, monospace;
    font-size: 14px;
    outline: none;
    flex: 1;
    margin-left: 8px;
}

.prompt {
    color: #a9ffb9;
    font-weight: 600;
}

.welcome {
    color: var(--muted);
}

.command {
    color: #ffeb3b;
}

.output {
    color: var(--text);
    margin-left: 20px;
}

.error {
    color: #ff6b6b;
    margin-left: 20px;
}
/* About Me Section */
.about__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.about__head {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 40px);
}

.about__title {
    font-family: Orbitron, Inter, sans-serif;
    font-size: clamp(26px, 3.2vw, 40px);
    letter-spacing: .4px;
    margin: 0 0 8px;
}

.about__tag {
    color: var(--muted);
    font-size: 14px;
    opacity: .85;
}

.about__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}

.about__content p {
    margin: 0 0 14px;
    color: var(--text);
}

.about__facts {
    list-style: none;
    margin: 18px 0 8px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.about__facts li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--surface);
}

.about__facts li span {
    color: var(--muted);
    font-size: 13px;
}

.about__facts li strong {
    color: var(--text);
    font-weight: 600;
}

.about__skills {
    margin: 16px 0 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
}

.about__cta {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.about__photo {
    justify-self: center;
}

.polaroid {
    filter: contrast(1.1);
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 20px 60px var(--shadow-strong);
    background: var(--surface);
}

.polaroid img {
    display: block;
    width: min(420px, 70vw);
    height: auto;
}

@media (max-width: 980px) {
    .about__grid {
        grid-template-columns: 1fr;
    }
    
    .about__photo {
        order: -1;
    }
}
/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 18px;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-soft);
    border-color: var(--accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}
/* Responsive spotlight effects */
@media (max-width: 1024px) {
    .spot {
        width: 800px;
        height: 360px;
    }
    
    .spot--left {
        left: -50vw;
        transform: rotate(-25deg);
    }
    
    .spot--right {
        right: -50vw;
        transform: rotate(25deg);
    }
}

@media (max-width: 760px) {
    .spot {
        width: 600px;
        height: 300px;
    }
    
    .spot--left {
        left: -40vw;
        transform: rotate(-15deg);
    }
    
    .spot--right {
        right: -40vw;
        transform: rotate(15deg);
    }
}
/* Beautiful Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 12, 11, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 12, 11, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
}

:root.light .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}

:root.light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar__brand:hover {
    transform: scale(1.05);
}

.brand__icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.brand__text {
    font-family: Orbitron, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.5px;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.navbar__link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

:root.light .navbar__link {
    color: #000000;
}

:root.light .navbar__link::before {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

:root.light .navbar__link:hover {
    color: #4ade80;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.navbar__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.navbar__link:hover::before {
    left: 100%;
}

.navbar__link:hover {
    color: #a9ffb9;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.toggle__line {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar__toggle.active .toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar__toggle.active .toggle__line:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active .toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .navbar__menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 12, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-soft);
    }
    
    :root.light .navbar__menu {
        background: rgba(255, 255, 255, 0.98);
    }
    
    .navbar__menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar__link {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        background: var(--surface);
    }
    
    .navbar__toggle {
        display: flex;
    }
}
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: var(--surface);
    color: #ffffff;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow-soft);
    transition: all 0.3s ease;
}

:root.light .theme-toggle {
    color: #000000;
}

.theme-toggle:hover {
    background: var(--accent);
    color: var(--brand);
    transform: scale(1.1);
}
.mobile-theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: center;
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle {
        display: none;
    }
    
    .mobile-theme-toggle {
        display: block;
    }
}
/* Theme Toggle in Menu */
@media (max-width: 768px) {
    .theme-toggle {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        background: var(--surface);
        color: var(--text);
        font-size: 14px;
        cursor: pointer;
    }
}

@media (min-width: 769px) {
    .theme-toggle {
        padding: 8px 16px;
        border-radius: 8px;
        background: var(--surface);
        border: 1px solid var(--border-soft);
        color: var(--text);
        cursor: pointer;
        font-size: 14px;
    }
}
/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Hero Section */
    .hero {
        padding: 80px 20px 60px;
    }
    
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .terminal {
        order: 2;
        max-width: 100%;
    }
    
    /* Skills Section */
    .skills__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skill-card {
        padding: 20px;
    }
    
    .skill-detail {
        padding: 20px;
        margin-top: 20px;
    }
    
    /* About Section */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about__photo {
        order: -1;
    }
    
    .polaroid img {
        width: 100%;
        max-width: 300px;
    }
    
    /* Projects Section */
    .projects__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .project-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    /* Terminal Section */
    .terminal-container {
        max-width: 100%;
    }
    
    .terminal-interactive__body {
        min-height: 250px;
        font-size: 13px;
    }
    
    /* Contact Section */
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact__item {
        padding: 12px;
    }
    
    /* General Mobile Fixes */
    .section {
        padding: 40px 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Typography */
    .display {
        font-size: clamp(24px, 8vw, 36px);
    }
    
    .skills__title,
    .about__title,
    .projects__title,
    .interactive-terminal__title,
    .contact__title {
        font-size: clamp(22px, 6vw, 32px);
    }
}
/* Mobile Navbar Light Mode Fix */
@media (max-width: 768px) {
    :root.light .navbar {
        background: rgba(255, 255, 255, 0.95);
    }
    
    :root.light .navbar__menu {
        background: rgba(255, 255, 255, 0.98);
    }
    
    :root.light .navbar__link {
        background: rgba(245, 245, 245, 1);
        color: #0a0c0b;
    }
    
    :root.light .theme-toggle {
        background: rgba(245, 245, 245, 1);
        color: #0a0c0b;
    }
}
.mobile-theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--text);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: center;
    display: none;
}

@media (max-width: 768px) {
    .theme-toggle {
        display: none;
    }
    
    .mobile-theme-toggle {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-theme-toggle {
        display: none;
    }
}