/* Základné nastavenia a font */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
}

/* Konštanty pre zelenú farbu (Dominantná farba) */
:root {
    /* Brand */
    --color-primary: #4CAF50;
    --color-red: #ff2222;

    /* Backgrounds - DEFAULT DARK */
    --bg-body: #121212;
    --bg-header: #1e1e1e;
    --bg-hero: #121212;
    --bg-section-alt: #181818;
    --bg-card: #1e1e1e;
    --bg-footer: #000000;
    --bg-input: #2c2c2c;

    /* Text - DEFAULT DARK */
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-on-primary: #ffffff;

    /* Borders */
    --border-color: #333333;

    /* Elements */
    --shadow-card: rgba(0, 0, 0, 0.5);

    /* Links */
    --link-color: #81C784;
    /* Lighter Green for Dark Mode */
    --link-visited: #A5D6A7;
    /* Slightly different green or muted */
    --link-hover: #4CAF50;
}

/* Light Mode Overrides */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-header: #ffffff;
    --bg-hero: #333333;
    /* Hero stays dark for visual impact */
    --bg-section-alt: #f9f9f9;
    --bg-card: #ffffff;
    --bg-footer: #333333;
    /* Footer stays dark */
    --bg-input: #ffffff;

    --text-main: #333333;
    --text-muted: #666666;

    --border-color: #eeeeee;
    --shadow-card: rgba(0, 0, 0, 0.1);

    /* Links Light Mode */
    --link-color: #2E7D32;
    /* Darker Green */
    --link-visited: #1B5E20;
    --link-hover: #4CAF50;
}

/* Kontajner a centrovanie obsahu */
.container {
    width: 90%;
    max-width: 1280px;
    /* Širší layout */
    margin: 0 auto;
}

.small-width {
    max-width: 800px;
    /* Pre textové sekcie (O nás, Kontakt) */
}

.text-center {
    text-align: center;
}

/* Navigácia (Minimalistická) */
.main-header {
    background: var(--bg-header);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.red {
    color: var(--color-red);
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 400;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--color-primary);
}

.cta-button {
    border: 1px solid var(--color-primary);
    color: var(--color-primary) !important;
    padding: 8px 15px;
    border-radius: 5px;
}

.cta-button:hover {
    background: var(--color-primary);
    color: white !important;
}

/* Sekcia Hero (Vizuálny dôraz) */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-on-primary);
    background: var(--bg-hero);
    /* Falošné tmavé pozadie pre text */
}

.hero-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('demostudio.png') center/cover no-repeat;
    /* Zmeň za tvoj obrázok */
    opacity: 0.5;
    /* Stmavenie obrázku */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3em;
    font-weight: 300;
    margin-bottom: 40px;
}

/* Global Link Styles */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--link-hover);
}

/* Specific overrides to prevent "visited" colors on UI elements */
nav a,
.cta-button,
.cta-primary,
.cta-secondary,
.logo,
.blog-card,
footer a {
    text-decoration: none !important;
    /* Ensure no underline */
}

/* Navigation Links - keep them consistent with text/theme */
nav a {
    color: var(--text-main);
}

nav a:visited {
    color: var(--text-main);
}

nav a:hover {
    color: var(--color-primary);
}

/* Logo */
.logo,
.logo:visited,
.logo:hover {
    color: var(--color-primary);
}

/* Footer Links */
footer a {
    color: #bbb;
}

footer a:visited {
    color: #bbb;
}

footer a:hover {
    color: var(--color-primary);
}

/* Blog Card - inherit text color, don't look like a blue link */
.blog-card,
.blog-card:visited,
.blog-card:hover {
    color: inherit;
}


/* CTA Buttons */
.cta-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--color-primary);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-primary:hover {
    background: #388E3C;
}

.cta-secondary {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    transition: background 0.3s;
}

.cta-secondary:hover {
    background: var(--color-primary);
    color: var(--text-on-primary);
}

/* Všeobecná sekcia */
.content-section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

.content-section:nth-child(even) {
    background: var(--bg-section-alt);
}

h2 {
    color: var(--text-main);
    font-size: 2.2em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    color: var(--color-primary);
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 20px;
}

.bullet-list {
    margin-top: 30px;
    color: var(--color-primary);
    font-weight: 600;
}

/* 4. Služby Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.service-item {
    padding: 20px;
}

.icon-placeholder {
    font-size: 2.5em;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-item h3 {
    color: var(--text-main);
    font-size: 1.3em;
}

/* 5. Portfólio CTA */
.portfolio-cta {
    background: var(--bg-body);
}

/* 6. Cenník */
.pricing-section {
    background: var(--bg-section-alt);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

/* Základný štýl balíka */
.pricing-plan {
    border: 2px solid var(--border-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    /* Centruje text aj tlačidlo */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Zvýraznený balík */
.pricing-plan.featured {
    border: 2px solid #e63946;
    /* Červený rámik */
    box-shadow: 0 10px 20px var(--shadow-card);
    transform: scale(1.05);
    background: var(--bg-card);
}

/* Centrovanie tlačidla */
.pricing-plan .cta-primary {
    margin: 20px auto 0;
    display: inline-block;
    width: fit-content;
}

/* Zoznam v balíku */
.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    /* Text zoznamu ostáva vľavo pre lepšiu čitateľnosť */
}


.pricing-plan:hover,
.pricing-plan.featured {
    border-top-color: var(--color-primary);
    transform: translateY(-5px);
}

.pricing-plan h3 {
    color: var(--text-main);
    font-size: 1.5em;
}

.pricing-plan .price {
    font-size: 1.2em;
    color: var(--text-muted);
    margin: 10px 0 20px;
}

.pricing-plan .price span {
    font-size: 2.5em;
    color: var(--color-primary);
    font-weight: 600;
    display: block;
    line-height: 1.1;
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: center;
}

.pricing-plan ul li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-weight: 300;
}

/* 7. Kontakt */
.contact-form form {
    margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background: var(--bg-input);
    color: var(--text-main);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-primary {
    width: 100%;
}

#contactForm select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-input);
    color: var(--text-main);
}

/* 8. Pätička */
footer {
    background: var(--bg-footer);
    color: var(--text-on-primary);
    padding: 25px 0;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: #bbb;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--color-primary);
}

.social-links {
    font-size: 1.1em;
}

/* ================= HAMBURGER & RESPONSIVE NAV ================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
}

@media (max-width: 1050px) {
    .hamburger {
        display: flex;
    }

    nav#nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(30, 30, 30, 0.97);
        backdrop-filter: blur(10px);
        transition: right 0.4s ease-in-out;
        z-index: 1005;
        margin: 0;
    }

    [data-theme="light"] nav#nav-menu {
        background-color: rgba(255, 255, 255, 0.97);
    }

    nav#nav-menu.active {
        right: 0;
    }

    nav#nav-menu a,
    nav#nav-menu #theme-toggle {
        margin: 15px 0;
        font-size: 1.5em;
    }
}

/* Responsívny dizajn */
@media (max-width: 900px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .content-section {
        padding: 50px 0;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer p,
    .social-links {
        margin: 5px 0;
    }
}

.pricing-carousel {
    padding: 20px 0 50px;
}

.price .old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.6em;
    margin-right: 5px;
}

.price .new-price {
    color: #e63946;
    /* červená */
    font-weight: bold;
}

.promo-badge {
    background: #e63946;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    display: inline-block;
    margin-bottom: 10px;
}

/* Štýly pre AJAX správy */
#formMessages {
    padding: 15px;
    border-radius: 5px;
    font-weight: 600;
}

#formMessages.success {
    background-color: #e8f5e9;
    /* Svetlo zelená */
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

#formMessages.error {
    background-color: #ffebee;
    /* Svetlo červená */
    color: #c62828;
    border: 1px solid #c62828;
}

/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
    background: #252525;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    user-select: none;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ================= TEAM STYLES ================= */
.team-section {
    background: var(--bg-section-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.member-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    background: #333;
}

.team-member h3 {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    color: var(--text-main);
}

.team-member p.role {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0 0 15px 0;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member p.bio {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.5;
}

/* ================= BLOG STYLES ================= */

/* Blog Section on Homepage */
.blog-section {
    padding: 80px 0;
    background: var(--bg-body);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--color-primary);
}

.blog-image-wrapper {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-date {
    font-size: 0.85em;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25em;
    color: var(--text-main);
    line-height: 1.4;
}

.blog-excerpt {
    font-size: 0.95em;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 600;
    color: var(--color-primary);
    margin-top: auto;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* Article Detail Page */
.article-header {
    height: 50vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-hero);
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Dark overlay */
}

.article-title-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    color: white;
}

.article-title-wrapper h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.article-meta {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.8);
}

.article-body-section {
    padding: 60px 0;
    background: var(--bg-body);
    color: var(--text-main);
}

.article-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.article-content h2,
.article-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 40px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--color-primary);
}

/* VAT Notice */
.vat-notice {
    text-align: center;
    font-size: 0.9em;
    color: var(--text-muted);
    margin-top: 20px;
    font-style: italic;
}

/* FAQ Section */
.faq-section {
    background: var(--bg-section-alt);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-main);
}

.faq-question:hover {
    background: rgba(76, 175, 80, 0.05);
    /* Light primary color hover effect */
}

[data-theme="dark"] .faq-question:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
}



.faq-question::after {
    content: '\25BC';
    /* Down Arrow */
    font-size: 0.8em;
    color: var(--color-primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

/* Removed .faq-item.active .faq-answer rule as JS handles visibility */