/*
Theme Name: m-design-theme
Theme URI: https://m-design.hu
Author: M-Design
Description: Letisztult, profi webdesign, DTP és felhőszolgáltatások Békéscsabán. (WP 5.0.27 kompatibilis)
Version: 1.2
Text Domain: m-design
*/

:root {
    --bg-dark: #050714;
    --accent-orange: #ff6600;
    --accent-cyan: #00f0ff;
    --accent-blue: #0066ff;
    --glass-bg: rgba(15, 20, 35, 0.55);
    --glass-border: rgba(0, 240, 255, 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
    line-height: 1.6; 
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-blue), var(--accent-cyan)); border-radius: 3px; }

#canvas-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.glow-orb { position: fixed; width: 50vw; height: 50vw; border-radius: 50%; background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, rgba(0,0,0,0) 70%); top: -20%; left: -10%; z-index: -1; pointer-events: none; filter: blur(90px); animation: pulseOrb 8s ease-in-out infinite alternate; }
.glow-orb-2 { position: fixed; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0,0,0,0) 70%); bottom: -20%; right: -10%; z-index: -1; pointer-events: none; filter: blur(90px); animation: pulseOrb 10s ease-in-out infinite alternate-reverse; }

@keyframes pulseOrb { 0% { transform: scale(1) translate(0, 0); } 100% { transform: scale(1.15) translate(30px, 20px); } }

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

.logo { font-size: 1.8rem; font-weight: 800; letter-spacing: -1px; text-decoration: none; color: #fff; text-transform: lowercase; }
.logo .m-letter { color: var(--accent-orange); text-shadow: 0 0 15px rgba(255, 102, 0, 0.6); }
.logo span { color: var(--accent-cyan); text-shadow: 0 0 15px rgba(0, 240, 255, 0.6); }

nav ul { display: flex; gap: 1.5rem; list-style: none; align-items: center; flex-wrap: wrap; }
nav a { color: var(--text-main); text-decoration: none; font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.5rem 1rem; border-radius: 8px; transition: all 0.3s ease; cursor: pointer; }
nav a:hover { background: rgba(0, 240, 255, 0.1); color: var(--accent-cyan); }

.nav-social-icon { display: flex; align-items: center; justify-content: center; padding: 0.2rem 0.5rem !important; }
.nav-social-icon svg { transition: all 0.3s ease; filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)); }
.nav-social-icon:hover { background: transparent !important; }
.nav-social-icon:hover svg { fill: var(--accent-cyan); filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.8)); transform: scale(1.15) translateY(-2px); }

.nav-btn-highlight { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)) !important; color: #fff !important; font-weight: 600; box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }
.nav-btn-highlight:hover { box-shadow: 0 0 30px rgba(0, 240, 255, 0.6); transform: translateY(-2px); }

section { padding: 130px 5% 70px; max-width: 1200px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.section-title { text-align: center; font-size: 3rem; margin-bottom: 3rem; font-weight: 800; letter-spacing: -1px; }
.section-title span { background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.glass-card { background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 3rem; box-shadow: 0 30px 60px rgba(0,0,0,0.5); transition: all 0.4s ease; position: relative; overflow: hidden; }
.glass-card:hover { border-color: rgba(0, 240, 255, 0.4); box-shadow: 0 20px 50px rgba(0, 240, 255, 0.2); transform: translateY(-3px); }

#home { max-width: 100% !important; margin-top: 75px; min-height: calc(100vh - 75px); background: linear-gradient(to bottom, rgba(5, 7, 20, 0.3) 0%, rgba(5, 7, 20, 0.7) 50%, var(--bg-dark) 100%), url('images/legyen_sajat_weboldalad.jpg'); background-size: cover; background-position: center; position: relative; }
.hero { text-align: center; align-items: center; }
.hero h1 { font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 900; letter-spacing: -3px; margin-bottom: 20px; line-height: 1; position: relative; z-index: 2; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.6rem); color: var(--text-muted); max-width: 750px; margin: 0 auto 40px; position: relative; z-index: 2; }
.hero .btn-wrapper { position: relative; z-index: 2; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card { background: rgba(15, 20, 35, 0.4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 18px; padding: 2.2rem; transition: all 0.4s ease; cursor: pointer; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent); transition: 0.6s; }
.service-card:hover::before { left: 100%; }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent-cyan); box-shadow: 0 15px 35px rgba(0, 240, 255, 0.2); }
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--accent-cyan); font-weight: 600; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); }

.carousel-container { position: relative; width: 100%; height: 450px; display: flex; align-items: center; justify-content: center; overflow: hidden; perspective: 1200px; margin-top: 2rem; }
.carousel-item { position: absolute; width: 320px; height: 220px; border-radius: 16px; background: #0a0e1c; border: 1px solid var(--glass-border); box-shadow: 0 15px 35px rgba(0,0,0,0.6); transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; overflow: hidden; }
.carousel-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: 0.4s ease; cursor: zoom-in; }
.carousel-item img:hover { transform: scale(1.05); }
.carousel-info { position: absolute; bottom: -60px; width: 100%; text-align: center; background: rgba(5, 7, 20, 0.9); backdrop-filter: blur(10px); padding: 15px 0; transition: bottom 0.4s ease; border-top: 1px solid var(--accent-cyan); z-index: 10; }
.carousel-item.active .carousel-info { bottom: 0; }
.carousel-info a { color: var(--accent-cyan); font-weight: 700; text-decoration: none; font-size: 1.1rem; letter-spacing: 1px; display: block; }
.carousel-info a:hover { color: #fff; text-shadow: 0 0 15px var(--accent-cyan); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 240, 255, 0.1); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); width: 55px; height: 55px; border-radius: 50%; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000; backdrop-filter: blur(5px); transition: all 0.3s ease; }
.carousel-btn:hover { background: var(--accent-cyan); color: #000; box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); transform: translateY(-50%) scale(1.1); }
.carousel-btn.left { left: 5%; }
.carousel-btn.right { right: 5%; }

.quiz-container { max-width: 900px; margin: 0 auto; width: 100%; text-align: center; }
.quiz-step { display: none; animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.quiz-step.active { display: block; }
.custom-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.custom-options.small { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.custom-label { background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border); padding: 1rem; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; font-weight: 500; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; height: 100%; user-select: none; line-height: 1.4; }
.custom-options.small .custom-label { padding: 0.7rem; font-size: 0.85rem; }
.custom-label:hover { border-color: var(--accent-cyan); background: rgba(0, 240, 255, 0.1); transform: translateY(-2px); }
.custom-input { display: none; }
.custom-input:checked + .custom-label { border-color: var(--accent-cyan); background: rgba(0, 240, 255, 0.25); box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); color: #fff; }

.form-group { margin-bottom: 2rem; text-align: left; }
.form-group label.question-label { display: block; margin-bottom: 0.8rem; color: var(--accent-cyan); font-weight: 600; font-size: 1.1rem; }
.form-group label.question-label span { color: #ff4d4d; }
.form-group p.desc { color: var(--text-muted); font-size: 0.9rem; margin-top: -0.5rem; margin-bottom: 0.8rem; }
.form-group input[type="text"], .form-group input[type="email"], .form-group textarea { width: 100%; padding: 1.1rem; background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); border-radius: 10px; color: #fff; font-size: 1rem; transition: all 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); background: rgba(0,0,0,0.7); }

.btn { background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); color: #fff; border: none; padding: 1rem 2.8rem; border-radius: 30px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; margin-top: 1rem; box-shadow: 0 10px 25px rgba(0, 240, 255, 0.3); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 15px 35px rgba(0, 240, 255, 0.5); }
.btn-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-main); margin-right: 10px; box-shadow: none; }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; box-shadow: none; }

.floating-audio { position: fixed; bottom: 30px; left: 30px; background: rgba(15, 20, 35, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 40px; padding: 8px 25px 8px 8px; display: flex; align-items: center; gap: 15px; cursor: pointer; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: all 0.3s ease; user-select: none; }
.floating-audio:hover { border-color: var(--accent-cyan); box-shadow: 0 10px 30px rgba(0, 240, 255, 0.25); transform: translateY(-3px); }
.audio-icon { width: 45px; height: 45px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan)); display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 0 15px rgba(0, 240, 255, 0.4); transition: all 0.3s ease; }
.audio-icon svg { width: 22px; height: 22px; margin-left: 3px; }
.audio-text { font-size: 0.9rem; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.audio-waves { display: none; align-items: center; gap: 3px; height: 18px; }
.audio-waves span { display: block; width: 3px; background: var(--accent-cyan); border-radius: 3px; animation: wave 1s infinite ease-in-out alternate; }
.audio-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.audio-waves span:nth-child(2) { height: 18px; animation-delay: 0.2s; }
.audio-waves span:nth-child(3) { height: 12px; animation-delay: 0.4s; }
@keyframes wave { 0% { height: 4px; } 100% { height: 18px; } }
.floating-audio.playing .audio-icon { background: rgba(0, 240, 255, 0.1); border: 1px solid var(--accent-cyan); color: var(--accent-cyan); box-shadow: none; }
.floating-audio.playing .audio-icon svg { margin-left: 0; }
.floating-audio.playing .audio-waves { display: flex; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(5, 7, 20, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 2000; justify-content: center; align-items: center; padding: 1.5rem; animation: fadeIn 0.3s ease; }
.modal-content { background: rgba(12, 16, 30, 0.95); border: 1px solid var(--accent-cyan); border-radius: 24px; max-width: 700px; width: 100%; max-height: 80vh; display: flex; flex-direction: column; position: relative; box-shadow: 0 0 50px rgba(0, 240, 255, 0.3); }
.modal-header { padding: 2rem 2.5rem 1rem; position: relative; flex-shrink: 0; }
.privacy-body { padding: 0 2.5rem 2rem; overflow-y: auto; flex-grow: 1; }
.privacy-body::-webkit-scrollbar { width: 5px; }
.privacy-body::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }
.close-modal { position: absolute; top: 1.8rem; right: 2rem; font-size: 2rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; line-height: 1; z-index: 2001; }
.close-modal:hover { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }
.privacy-body h3 { color: #fff; margin: 1.5rem 0 0.5rem; font-size: 1.15rem; font-weight: 600; }
.privacy-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.8rem; line-height: 1.6; }

#imageModal .modal-content-img { max-width: 90vw; max-height: 90vh; background: transparent; border: none; box-shadow: none; display: flex; justify-content: center; align-items: center; }
#imageModal img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 12px; box-shadow: 0 15px 50px rgba(0,0,0,0.8), 0 0 30px rgba(0, 240, 255, 0.2); }

.contact-zone { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; text-align: center; }
.contact-item h4 { color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.contact-item p { font-size: 1.2rem; color: #fff; font-weight: 600; }

footer { border-top: 1px solid var(--glass-border); padding: 3rem 5%; text-align: center; background: rgba(0,0,0,0.5); }
.footer-links { margin: 1.5rem 0; display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.footer-links span, .footer-links a { color: var(--text-muted); text-decoration: none; cursor: pointer; transition: color 0.3s; font-weight: 500; }
.footer-links span:hover, .footer-links a:hover { color: var(--accent-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.5); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 850px) {
    header { 
        flex-direction: column; 
        padding: 1rem 2%; 
        gap: 0.8rem; 
        text-align: center;
    }
    nav ul { 
        justify-content: center; 
        gap: 0.5rem; 
        flex-wrap: wrap; 
    }
    nav a { 
        font-size: 0.75rem; 
        padding: 0.4rem 0.6rem; 
    }

    #home { 
        margin-top: 130px; 
        min-height: calc(100vh - 130px); 
    }
    .hero h1 { font-size: 3rem; margin-bottom: 10px; }
    .hero p { font-size: 1rem; margin-bottom: 25px; padding: 0 10px; }

    section { padding: 90px 5% 40px; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    
    .glass-card { padding: 1.5rem 1rem; }

    .carousel-container { height: 350px; perspective: 800px; }
    .carousel-item { width: 220px; height: 160px; }
    .carousel-btn { width: 45px; height: 45px; font-size: 1.3rem; }
    .carousel-btn.left { left: 2%; }
    .carousel-btn.right { right: 2%; }

    div[style*="display: flex; justify-content: space-around"] {
        flex-direction: column;
        gap: 2rem !important;
    }
    
    .services-grid, 
    .contact-zone, 
    .custom-options, 
    .custom-options.small { 
        grid-template-columns: 1fr; 
    }
    
    .btn { width: 100%; margin-bottom: 10px; padding: 1rem 1.5rem; }
    .btn-outline { width: 100%; margin-right: 0; }

    #domain div[style*="display: flex"] {
        flex-direction: column;
    }
    #domainInput { min-width: 100% !important; }

    .floating-audio { 
        bottom: 15px; 
        left: 15px; 
        padding: 5px 15px 5px 5px; 
    }
    .audio-icon { width: 35px; height: 35px; }
    .audio-icon svg { width: 18px; height: 18px; }
    .audio-text { font-size: 0.75rem; }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 2.5rem; }
    .logo { font-size: 1.5rem; }
}