@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #ff7300; /* NarancssĂˇrga */
    --primary-dark: #cc5c00;
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --text-light: #f5f5f5;
    --text-muted: #aaaaaa;
    --card-bg: #2a2a2a;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: var(--darker-bg);
    color: var(--text-light);
    animation: fadeInPage 0.4s ease-in-out forwards;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body.fade-out {
    animation: fadeOutPage 0.4s ease-in-out forwards;
}

@keyframes fadeOutPage {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

/* --- Header & Nav --- */
header {
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    display: inline-block;
}

.logo .studio-text {
    color: var(--primary-color);
}

.logo .cursor {
    color: var(--primary-color);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

nav {
    display: flex;
    align-items: center;
    position: relative; /* For absolute positioning of dropdown */
}

.top-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    margin-right: 25px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.top-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001; /* Above the menu */
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Hamburger animations */
.hamburger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.toggle .line2 {
    opacity: 0;
}

.hamburger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Dropdown Menu Styles */
nav ul {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: rgba(18, 18, 18, 0.95);
    flex-direction: column;
    width: 250px; /* Dropdown width */
    text-align: center;
    padding: 20px 0;
    gap: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    display: none; /* Hidden by default */
    list-style: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
    opacity: 0;
}

nav ul.active {
    display: flex;
    opacity: 1;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    display: block;
    padding: 10px;
}

nav ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 115, 0, 0.1);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    background: var(--dark-bg); /* Fallback */
    min-height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18,18,18,0.7), rgba(18,18,18,0.95));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Animated Gradient Text */
    background: linear-gradient(90deg, #ff7300, #00ffd5, #ff7300);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-text-anim 8s linear infinite;
}

@keyframes gradient-text-anim {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* --- Back Link --- */
.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.back-link:hover {
    transform: translateX(-5px);
}

/* --- Services Section --- */
.services-section {
    padding: 60px 0 100px; /* Reduced top padding to make room for back link */
    background-color: var(--dark-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--white);
    text-transform: uppercase;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--primary-color);
}

.icon-box {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon-box {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--white);
}

.service-card .tagline {
    font-style: italic;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card .desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

/* Badges for Apps */
.sub-categories {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.pc {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-muted);
}

.badge.android {
    background-color: rgba(255, 115, 0, 0.2);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

/* --- Pricing & Toggle Styles --- */
.pricing-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 40px 0;
}

.toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

.toggle-label.active {
    color: var(--primary-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    transition: .4s;
    border: 2px solid var(--primary-color);
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: var(--primary-color);
    transition: .4s;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.pricing-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.pricing-card h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 32px;
    color: var(--white);
    font-weight: bold;
    margin-bottom: 20px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-card ul li i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* --- Animations for Pricing --- */
.price-animate {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.price-animate.hidden {
    opacity: 0;
    transform: translateY(10px);
}

/* --- Alert Box --- */
.alert-box {
    background-color: rgba(255, 76, 76, 0.1);
    border-left: 4px solid #ff4c4c;
    border-radius: 4px;
    padding: 20px;
    margin: 40px auto;
    max-width: 900px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.alert-box i {
    color: #ff4c4c;
    font-size: 30px;
}

.alert-box strong {
    color: #ff4c4c;
}

.alert-box a {
    color: var(--white);
    text-decoration: underline;
    font-weight: bold;
}

.alert-box a:hover {
    color: var(--primary-color);
}

/* --- Legal / Terms formatting --- */
.legal-content h3 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.legal-warning {
    color: #ff4c4c !important;
    font-weight: bold;
    text-decoration: underline;
}

/* --- Reference Bar (Compact Portfolio List) --- */
.reference-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.reference-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px 25px;
    transition: transform 0.2s, border-color 0.2s;
    text-align: left;
}

.reference-bar:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.reference-info h3 {
    margin: 0;
    font-size: 18px;
    color: var(--white);
}

.reference-info p {
    margin: 5px 0 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Calculator & Sliders --- */
.calculator-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-top: 30px;
    text-align: left;
}

.slider-group {
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid #444;
}

.slider-group label {
    display: block;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
    font-size: 16px;
}

.slider-group span {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #444;
    outline: none;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* On very small screens, stack them */
@media (max-width: 600px) {
    .reference-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #0a0a0a;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid #333;
}
/* --- Mobile Responsive (Telefon nézet) --- */
@media (max-width: 768px) {
    /* Fejléc */
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        font-size: 14px;
    }

    /* Hero szekció */
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }

    /* Kártyák (Szolgáltatások és Árak) */
    .pricing-card {
        min-width: 100%;
        padding: 20px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Táblázatok reszponzivitása (hogy ne lógjanak ki) */
    .pricing-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Gombok és egyéb elemek */
    .btn {
        padding: 12px 25px;
        font-size: 16px;
    }
    
    .alert-box {
        flex-direction: column;
        text-align: center;
    }
    
    .pricing-toggle-container {
        flex-direction: column;
    }
}
