* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #050818;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050818;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-logo {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

.loader-line {
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066ff, #00ccff);
    margin: 0 auto;
    border-radius: 2px;
    animation: loadLine 1.5s ease-in-out forwards;
}

@keyframes loadLine {
    0% { width: 0; }
    100% { width: 150px; }
}

/* Spotlight Effect */
.cursor-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(600px circle at var(--x, 50%) var(--y, 50%), rgba(0, 102, 255, 0.08), transparent 40%);
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a1230; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #0066ff, #00ccff); border-radius: 4px; }

/* Background Particles */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.background-particles span {
    position: absolute;
    display: block;
    background: rgba(0, 102, 255, 0.15);
    animation: floatUp 25s linear infinite;
    bottom: -150px;
    filter: blur(3px);
}

.shape-circle { border-radius: 50%; }
.shape-square { border-radius: 4px; transform: rotate(45deg); }

.background-particles span:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.background-particles span:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; background: rgba(0, 204, 255, 0.2); }
.background-particles span:nth-child(3) { left: 70%; width: 40px; height: 40px; animation-delay: 4s; }
.background-particles span:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; background: rgba(0, 51, 153, 0.2); }
.background-particles span:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.background-particles span:nth-child(6) { left: 85%; width: 50px; height: 50px; animation-delay: 3s; animation-duration: 20s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg) scale(0.5); opacity: 0; }
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 8, 24, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #0066ff, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 2px rgba(0, 102, 255, 0.2)); }
    to { filter: drop-shadow(0 0 10px rgba(0, 204, 255, 0.5)); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ccff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #00ccff; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    position: relative;
    z-index: 2;
}

section { padding: 100px 0; }

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInUp 0.8s ease-out;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    background-color: #00ccff;
    animation: blink 1s infinite;
    vertical-align: middle;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero .subtitle {
    font-size: 1.8rem;
    color: #00ccff;
    margin-bottom: 1.5rem;
    min-height: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: #b3ccff;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: linear-gradient(90deg, #0066ff, #00ccff);
    color: #ffffff;
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.cta-button.secondary {
    background: rgba(5, 8, 24, 0.5);
    color: #00ccff;
    border: 2px solid #00ccff;
    box-shadow: none;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.5);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #00ccff;
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-item {
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 102, 255, 0.2);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.skill-item .skill-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    transform: translateZ(20px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* =========================================
   ÚJ LÁTVÁNYOS KÁRTYA HÁTTEREK
   ========================================= */

.project-card, .feature-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.1s linear;
    transform-style: preserve-3d;
    position: relative;
    background-color: #0a1230; 
}

/* Overlay sötétítés a szöveg alá */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,8,24,0.6), rgba(5,8,24,0.95));
    z-index: 0;
}

/* BG 1: Kék köd / Nebula (Botoknak) */
.card-bg-1 {
    background: radial-gradient(circle at 10% 10%, rgba(0, 102, 255, 0.4), transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(0, 204, 255, 0.2), transparent 50%),
                #0a1230;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.1);
}

/* BG 2: FiveM / Autós - Neon lila és sötétszürke */
.card-bg-2 {
    background: linear-gradient(135deg, rgba(10, 10, 10, 1) 0%, rgba(30, 30, 30, 1) 100%);
    background-image: radial-gradient(circle at 100% 0%, rgba(183, 0, 255, 0.3), transparent 40%);
    border: 1px solid rgba(183, 0, 255, 0.2);
}

/* BG 3: Web / Node - Zöldes-Kékes Tech */
.card-bg-3 {
    background: radial-gradient(circle at 50% -20%, rgba(0, 255, 136, 0.15), transparent 60%),
                linear-gradient(to bottom, #050818, #0a1525);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

/* BG 4: Python / SQL - Mátrixos / Adatos */
.card-bg-4 {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 102, 255, 0.05) 2px,
        rgba(0, 102, 255, 0.05) 4px
    ), linear-gradient(to bottom right, #050818, #001133);
}

.card-bg-vulcane {
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.15) 0%, rgba(5, 8, 24, 1) 70%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-bg-skill {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(0, 102, 255, 0.05);
}

/* Tartalom kiemelése a kártyán belül */
.project-header, .project-content {
    position: relative;
    z-index: 1;
}

.project-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-icon { font-size: 3rem; transform: translateZ(30px); }
.project-title { color: #00ccff; font-size: 1.4rem; transform: translateZ(20px); }
.project-content { padding: 2rem; }
.project-description { color: #b3ccff; margin-bottom: 1.5rem; transform: translateZ(10px); }

/* --- STÁTUSZ SZÖVEGEK --- */
/* JAVÍTVA: Minden státusz villog (animation: pulse) */
.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transform: translateZ(15px);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 102, 255, 0.2); 
    color: #00ccff;
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
    animation: pulse 2s infinite; /* Ez kapcsolja be a villogást mindenhol */
}

.project-status.beta { 
    background: rgba(183, 0, 255, 0.2); 
    color: #d000ff; 
    box-shadow: 0 0 10px rgba(183, 0, 255, 0.3); 
    /* Az alap animációt örökli */
}

.project-status.maintenance { 
    background: rgba(255, 136, 0, 0.2); 
    color: #ff8800; 
    box-shadow: 0 0 10px rgba(255, 136, 0, 0.3);
    border: 1px solid rgba(255, 136, 0, 0.3); 
    /* Az alap animációt örökli */
}

.active-mini { color: #00ff88; font-size: 0.8rem; font-weight: bold; margin-bottom: 0.2rem; animation: pulse 2s infinite; }
.pause-mini { color: #888; font-size: 0.8rem; font-weight: bold; margin-bottom: 0.2rem; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }

.project-links .project-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid #00ccff;
    padding-bottom: 2px;
    transition: all 0.3s;
    transform: translateZ(25px);
    display: inline-block;
}
.project-links .project-link:hover { color: #00ccff; border-bottom-color: transparent; }

/* Feature Cards */
.feature-card { 
    padding: 2rem; 
    background: rgba(255, 255, 255, 0.03); 
    backdrop-filter: blur(5px);
}
.feature-card h3 { transform: translateZ(20px); }
.feature-card p { transform: translateZ(10px); color: #b0c0e0; }

.web-project-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-item {
    background: rgba(10, 20, 40, 0.6);
    padding: 2.5rem 1rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}
.contact-item:hover { transform: translateY(-10px); border-color: #00ccff; }

footer {
    background: #02040a;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .about-content { grid-template-columns: 1fr; }
    .contact-info { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .web-project-item { grid-template-columns: 1fr; text-align: center; }
    .cursor-spotlight { display: none; }
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }