/* ROOT VARIABLES */
:root {
    --bg-dark: #0a0014;
    --bg-card: rgba(30, 10, 50, 0.4);
    --border-glass: rgba(255, 105, 180, 0.15);

    --color-pink: #ff66b2;
    /* Soft Neon Pink */
    --color-magenta: #d900ff;
    /* Vibrant Magenta */
    --color-cyan: #00e5ff;
    /* Electric Cyan */
    --color-purple: #9d4edd;

    --text-main: #e0d0f0;
    --text-muted: #8b7a9e;

    --font-sans: 'Poppins', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Static CSS Grid Background Fallback */
    background-image:
        linear-gradient(rgba(255, 105, 180, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 105, 180, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* CANVAS BACKGROUND */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* TYPOGRAPHY */
h1,
h2,
h3 {
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-pink), var(--color-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
    background: linear-gradient(90deg, var(--color-cyan), var(--color-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mono {
    font-family: var(--font-mono);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-solid {
    background: rgba(255, 105, 180, 0.1);
    color: var(--color-pink);
    border: 1px solid var(--color-pink);
}

.btn-solid:hover {
    background: var(--color-pink);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
}

/* GLASSMORPHISM CARDS */
.glass-panel,
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 105, 180, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 0, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
}

.logo span {
    color: var(--color-cyan);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* LAYOUT & SECTIONS */
.section-container {
    /* UPDATED: Kijjebb húzva (szélesebb lett) */
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.col-layout {
    flex-direction: column;
}

.section-num {
    font-family: var(--font-mono);
    color: var(--color-pink);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.section-header {
    flex: 1;
    position: sticky;
    top: 120px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.quote {
    font-family: var(--font-mono);
    color: var(--color-cyan);
    font-style: italic;
    font-size: 0.95rem;
    border-left: 2px solid var(--color-cyan);
    padding-left: 15px;
}

.full-width-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.full-width-header p {
    color: var(--text-muted);
    max-width: 600px;
}

/* GRIDS */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    width: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    filter: blur(2px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

.reveal[data-reveal="left"] {
    transform: translate3d(-40px, 0, 0);
}

.reveal[data-reveal="right"] {
    transform: translate3d(40px, 0, 0);
}

.reveal[data-reveal="up"] {
    transform: translate3d(0, 30px, 0);
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .hero-ambient .orb,
    .hero-ambient .beam {
        animation: none;
    }
}

/* HERO SECTION */
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* UPDATED: Kijjebb húzva (szélesebb lett) */
    max-width: 1400px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 0 20px;
    padding-top: 80px;
}

.hero-ambient {
    position: absolute;
    inset: -10% -5% -10% -5%;
    pointer-events: none;
    z-index: 0;
}

.hero-ambient .orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(6px);
    opacity: 0.45;
    animation: float-orb 12s ease-in-out infinite;
}

.hero-ambient .orb-pink {
    top: -160px;
    left: -140px;
    background: radial-gradient(closest-side, rgba(255, 102, 178, 0.6), rgba(255, 102, 178, 0) 72%);
}

.hero-ambient .orb-cyan {
    bottom: -200px;
    right: -140px;
    background: radial-gradient(closest-side, rgba(0, 229, 255, 0.5), rgba(0, 229, 255, 0) 70%);
    animation-delay: -4s;
}

.hero-ambient .beam {
    position: absolute;
    top: 12%;
    right: -10%;
    width: 70%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0), rgba(0, 229, 255, 0.4), rgba(255, 102, 178, 0));
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.35);
    transform: rotate(-6deg);
    animation: beam-sweep 10s ease-in-out infinite;
}

.hero-content,
.hero-terminal {
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1.2;
}

.hero-content::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 40px;
    width: 3px;
    height: 180px;
    background: linear-gradient(180deg, rgba(0, 229, 255, 0.8), rgba(255, 102, 178, 0));
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
    opacity: 0.9;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    border: 1px solid var(--border-glass);
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--color-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-pink);
}

.badge .path {
    color: var(--text-muted);
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: -10px;
}

.hero h1 {
    font-size: 5rem;
    letter-spacing: -2px;
    margin-bottom: 20px;
    line-height: 1.1;
    /* UPDATED: Fixed height to prevent shift during typing */
    min-height: 110px;
    display: flex;
    align-items: center;
}

.hero .subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero .highlight {
    color: var(--color-cyan);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.location-links {
    display: flex;
    gap: 30px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* TERMINAL & TYPING */
.hero-terminal {
    flex: 0.8;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-left: 40px;
}

.terminal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: none;
    padding-bottom: 15px;
    opacity: 0.7;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.circle.red {
    background: #ff5f56;
}

.circle.yellow {
    background: #ffbd2e;
}

.circle.green {
    background: #27c93f;
}

.term-title {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.terminal-body p {
    margin-bottom: 10px;
    color: var(--text-main);
}

.prompt {
    color: var(--color-magenta);
    font-weight: bold;
    margin-right: 10px;
}

.output {
    color: var(--color-cyan);
    margin-left: 20px;
    margin-bottom: 20px !important;
}

/* NEW: Typing cursor animation */
.typing-cursor {
    color: var(--color-cyan);
    animation: blink 1s step-end infinite;
    font-family: var(--font-mono);
    margin-left: 5px;
    font-size: 4rem;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes float-orb {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(20px, -30px, 0) scale(1.04);
    }
}

@keyframes beam-sweep {

    0%,
    100% {
        opacity: 0.2;
        transform: translateX(0) rotate(-6deg);
    }

    50% {
        opacity: 0.65;
        transform: translateX(-120px) rotate(-6deg);
    }
}

/* CARDS */
.glass-card {
    padding: 30px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-pink);
}

.card-top i {
    font-size: 1.2rem;
}

.glass-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* UPDATED: Slightly stronger muted text for readability on wider cards */
.glass-card p {
    color: #bca0d0;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.glass-card ul {
    color: #bca0d0;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.glass-card li {
    margin-bottom: 8px;
}

/* TAGS & PROGRESS */
.tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    border: 1px solid;
}

.tag-pink {
    color: var(--color-pink);
    background: rgba(255, 105, 180, 0.1);
    border-color: var(--color-pink);
}

.tag-cyan {
    color: var(--color-cyan);
    background: rgba(0, 229, 255, 0.1);
    border-color: var(--color-cyan);
}

.tag-purple {
    color: #d900ff;
    background: rgba(217, 0, 255, 0.1);
    border-color: #d900ff;
}

.border-only {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.project-links a:hover {
    color: var(--color-cyan) !important;
}

.progress-container {
    margin-top: 20px;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    box-shadow: 0 0 10px currentColor;
}

.progress-fill.pink {
    background: var(--color-pink);
    color: var(--color-pink);
}

.progress-fill.cyan {
    background: var(--color-cyan);
    color: var(--color-cyan);
}

.progress-fill.purple {
    background: var(--color-purple);
    color: var(--color-purple);
}

/* CONTACT SECTION */
.contact-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    padding-right: 60px;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    font-family: var(--font-mono);
}

.social-links-vertical a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links-vertical a:hover {
    color: var(--color-cyan);
    transform: translateX(5px);
}

/* FORM */
.form-container {
    flex: 1;
    padding: 40px;
    background: rgba(20, 5, 40, 0.6);
}

.input-group-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

input,
textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 12px 15px;
    color: #fff;
    font-family: var(--font-sans);
    transition: border 0.3s;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--color-magenta);
    background: rgba(217, 0, 255, 0.05);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 4rem;
        min-height: 90px;
    }
}

@media (max-width: 992px) {

    .section-container,
    .hero,
    .contact-section {
        flex-direction: column;
        padding: 80px 20px;
    }

    .hero-terminal {
        margin-left: 0;
        margin-top: 40px;
        width: 100%;
    }

    .hero-content::before {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .section-header {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .input-group-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-container {
        width: 100%;
        padding: 25px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-footer button {
        width: 100%;
    }
}