:root {
    --primary-color: #0056b3;
    --secondary-color: #004494;
    --accent-color: #f0ad4e;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    background-image: linear-gradient(rgba(255, 255, 255, 0.301), rgba(255, 255, 255, 0.9)), url('../animations/bg2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: var(--white);
    padding: 10px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101; /* Ensure logo stays above menu on mobile if needed */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px; /* Nagyobb térköz a menüpontok között */
    margin: 0;
    padding: 0;
    align-items: center;
}

/* ... existing nav-links styles ... */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: center;
        width: 70%;
        max-width: 300px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 100;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        gap: 20px;
    }

    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
    }
    
    /* Hide the underline animation on mobile as it might look weird */
    .nav-links a::after {
        display: none;
    }
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

/* Animált aláhúzás */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:active {
    /* Nincs transzformáció */
}

main {
    padding: 2rem 0;
    flex: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

.footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Chat */
#chat-container {
    height: 400px;
    border: 1px solid #ddd;
    background: var(--white);
    overflow-y: scroll;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
}

.message.user {
    background-color: var(--primary-color);
    color: var(--white);
    margin-left: auto;
}

.message.bot {
    background-color: #e9ecef;
    color: var(--text-color);
}

/* Wizard */
.wizard-step {
    display: none;
}
.wizard-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.wizard-nav {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Space for scrollbar */
    gap: 15px; /* Increased gap */
}

/* Hide scrollbar for cleaner look but keep functionality */
.wizard-nav::-webkit-scrollbar {
    height: 6px; /* Slightly taller for better usability on desktop */
}
.wizard-nav::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.wizard-nav-btn {
    background-color: #f8f9fa !important; /* Light background for visibility */
    color: var(--text-color) !important;
    font-weight: bold;
    margin: 0 !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    border-bottom: 3px solid transparent !important;
    padding: 10px 20px !important;
    flex-shrink: 0; /* Prevent shrinking */
    white-space: nowrap; /* Keep text on one line */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.wizard-nav-btn.active-step {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-color: #ddd !important;
    border-bottom-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wizard-step .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Documents */
.doc-card {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
}

.doc-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-icon {
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.doc-link:hover .pdf-icon {
    transform: scale(1.1);
}

.doc-name {
    font-weight: bold;
    color: var(--primary-color);
    word-break: break-word;
}

/* Master Tricks Page */
.master-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.master-content h2 {
    margin-top: 0;
    font-size: 2rem;
}

.pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.pro-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pro-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.pro-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pro-card h3 {
    margin: 10px 0;
    color: var(--text-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1;
    visibility: visible;
}

#splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    border: 8px solid #ddd;
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 0;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

/* Password Toggle */
.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 40px !important; /* Make space for the eye icon */
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    color: #6c757d;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle:hover {
    color: #343a40;
}


