/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Arial, sans-serif;
}

/* Color Variables */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5649c0;
    --secondary: #00cec9;
    --dark: #0d0d0d;
    --dark-gray: #1a1a1a;
    --medium-gray: #333;
    --light-gray: #bfbfbf;
    --white: #ffffff;
}

/* Body Styling */
html {
    scroll-behavior: smooth;
    background-color: #1a1a2e; /* Prevents white flash on mobile scroll */
}

body {
    /* The gradient background has been moved to #particles-js */
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
}


@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- START OF FIXED CODE --- */
/* Stacking context for main content and footer */
main,
.footer {
    position: relative;
    z-index: 1;
}
/* --- END OF FIXED CODE --- */


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(26, 26, 26, 0.9);
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: top 0.3s;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    color: var(--white);
    font-size: 1.5em;
    font-weight: 600;
    text-decoration: none;
}

.author-link {
    color: var(--light-gray);
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s;
}

.author-link:hover {
    color: var(--primary);
}

/* UPDATED: New container for right-aligned items */
.navbar-right {
    display: flex;
    align-items: center;
    gap: 30px; /* Controls space between nav, lang switcher, and hamburger */
}

.nav-links {
    list-style-type: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Language Switcher with Flags */
.lang-switcher {
    display: flex;
    gap: 12px;
}

.lang-btn {
    width: 32px;
    height: 24px;
    border: none;
    border-radius: 4px;
    padding: 0;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.lang-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.lang-btn.active {
    outline-color: var(--primary);
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.7);
    transform: scale(1.1);
}

#lang-hu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 600'%3E%3Crect width='900' height='600' fill='%23CE1126'/%3E%3Crect y='200' width='900' height='200' fill='%23FFFFFF'/%3E%3Crect y='400' width='900' height='200' fill='%23228B22'/%3E%3C/svg%3E");
}

#lang-en {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='s'%3E%3Cpath d='M0,0 v30 h60 v-30 z'/%3E%3C/clipPath%3E%3CclipPath id='t'%3E%3Cpath d='M30,15 h30 v15 z v15 h-30 z h-30 v-15 z v-15 h30 z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23s)'%3E%3Cpath d='M0,0 v30 h60 v-30 z' fill='%2300247D'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' stroke='%23FFFFFF' stroke-width='6'/%3E%3Cpath d='M0,0 L60,30 M60,0 L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23FFFFFF' stroke-width='10'/%3E%3Cpath d='M30,0 v30 M0,15 h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E");
}

/* Section Base Styling */
section {
    padding: 0px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 60px;
    gap: 60px;
}

.hero-content {
    text-align: center;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 3.0em;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--light-gray);
    margin: 20px 0 30px;
    text-align: center;
}

.hero-content .highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-content .description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1em;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Button Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-card {
    background-color: rgba(26, 26, 26, 0.7);
    padding: 30px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0, 0.3);
}

.feature-icon {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--light-gray);
}

/* Showcase Gallery (in Hero) */
.showcase-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.showcase-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    line-height: 0;
}

.showcase-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.showcase-item img {
    max-height: 150px;
    width: auto;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 50px;
    background-color: var(--dark-gray);
    margin-top: 50px;
    font-size: 0.9em;
    color: var(--light-gray);
}

/* Image Modal (Lightbox) */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 5px;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}


/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Behind content, in front of html background */
    /* Animated gradient is now here */
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    background-attachment: fixed;
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8em;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    /* On mobile, hide the desktop nav links */
    .navbar-right nav {
        display: none;
    }

    /* --- START OF FIXED CODE --- */
    /* All hamburger and mobile overlay menu styles removed. */
    /* --- END OF FIXED CODE --- */

    section {
        padding: 80px 20px;
    }

    .hero-content h1 {
        font-size: 2.2em;
    }
    
    .hero-content h2 {
        font-size: 1.2em;
    }
}