/* Base Reset & Smooth Scrolling */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.8; color: #333; background-color: #fff; 
}

/* --- LANGUAGE TOGGLE DISPLAY LOGIC --- */
body.lang-en [data-lang="sk"] { display: none !important; }
body.lang-sk [data-lang="en"] { display: none !important; }
/* ------------------------------------- */

.container { width: 90%; max-width: 1000px; margin: 0 auto; }

h1, h2, h3 { color: #000; font-weight: 700; } 
a { text-decoration: none; color: inherit; } 

.btn {
    display: inline-block; background: #111827; color: #fff;
    padding: 14px 28px; border-radius: 4px; font-weight: 600;
    font-size: 1.1rem; margin-top: 25px; cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: #000; transform: translateY(-2px); color: #fff; }

/* Header & Language Switcher */
header {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); 
    padding: 15px 0; border-bottom: 1px solid #f0f0f0; 
    position: sticky; top: 0; z-index: 100;
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo-link { display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; }

nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a { color: #333; font-weight: 500; font-size: 1rem; transition: color 0.2s ease; }
nav ul li a:hover { color: #000; font-weight: 600;} 

.lang-switcher {
    display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.9rem;
}
.lang-switcher button {
    background: none; border: none; cursor: pointer; color: #9ca3af; 
    font-weight: 600; font-size: 0.95rem; font-family: inherit; transition: color 0.2s ease;
}
.lang-switcher button:hover { color: #4b5563; }
.lang-switcher button.active { color: #000; }
.lang-switcher span { color: #d1d5db; }

/* Scroll Animation Classes */
.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* Hero Section */
.hero {
    background-color: #ffffff; background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px; color: #333; padding: 140px 0 120px 0; text-align: center;
}
.hero h2 { color: #000; font-size: 3rem; margin-bottom: 25px; line-height: 1.2; letter-spacing: -0.02em; }
.hero p { font-size: 1.25rem; max-width: 700px; margin: 0 auto 30px auto; color: #555; }

/* Sections General */
section { padding: 100px 0; }
section h2 { text-align: center; font-size: 2.4rem; margin-bottom: 60px; letter-spacing: -0.01em; }

/* Services Grid */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.service-card {
    background: #fff; padding: 40px; border-radius: 8px; border: 1px solid #eee; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; border-top: 4px solid #4a4a4a; 
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08); border-top-color: #000; }
.service-chevron { color: #4a4a4a; font-size: 0.8em; margin-right: 5px; }
.service-card h3 { margin-bottom: 15px; font-size: 1.4rem;}

/* Solutions Portfolio Section */
.solutions { background: #fafafa; text-align: center; }
.section-subtitle { font-size: 1.15rem; color: #555; margin: -40px auto 60px auto; max-width: 600px; }
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.solution-card {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 40px 30px;
    text-align: left; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.solution-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1); }
.card-header { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.card-header h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card-header p { color: #6b7280; font-size: 0.95rem; line-height: 1.5; }

.feature-list { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.feature-list li { position: relative; padding-left: 25px; margin-bottom: 15px; font-size: 0.95rem; color: #4b5563; }
.feature-list li::before { content: "→"; position: absolute; left: 0; color: #000; font-weight: bold; }

.btn-outline { background: transparent; color: #000; border: 2px solid #000; text-align: center; padding: 12px 28px; }
.btn-outline:hover { background: #000; color: #fff; }

.featured-card { background: #111827; color: #fff; border-color: #111827; position: relative; overflow: hidden; }
.featured-card .card-header { border-bottom-color: #374151; }
.featured-card .card-header h3 { color: #fff; }
.featured-card .card-header p { color: #9ca3af; }
.featured-card .feature-list li { color: #d1d5db; }
.featured-card .feature-list li::before { color: #fff; }

/* Corner Ribbon */
.card-badge {
    position: absolute; top: 26px; right: -40px; width: 170px; background: #fff; color: #000;
    text-align: center; padding: 8px 0; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px; transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.featured-card .btn { background: #fff; color: #000; text-align: center; padding: 14px 28px; }
.featured-card .btn:hover { background: #e5e7eb; color: #000; }

/* About Section */
.about { background: #111827; color: #f9fafb; text-align: center; }
.about h2 { color: #ffffff; } 
.about p { max-width: 800px; margin: 0 auto; font-size: 1.2rem; color: #d1d5db; line-height: 1.9;}

/* Contact Section Grid & Form */
.contact { background: #fff; padding-bottom: 120px; }
.contact h2 { margin-bottom: 15px; }
.contact-subtitle { text-align: center; font-size: 1.2rem; color: #555; margin-bottom: 60px; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info-block { text-align: left; }
.contact-info-block h3 { font-size: 1.8rem; margin-bottom: 15px; }
.contact-info-block p { color: #555; margin-bottom: 30px; line-height: 1.6; }
.contact-details p { margin-bottom: 15px; font-size: 1.1rem; color: #333; }
.contact-details a { color: #000; text-decoration: underline; font-weight: 600; transition: color 0.2s ease;}
.contact-details a:hover { color: #4a4a4a; }
.sub-text { font-size: 0.95rem; color: #6b7280; font-weight: normal; }

.contact-form { background: #fafafa; padding: 40px; border-radius: 8px; border: 1px solid #eee; text-align: left; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.95rem; color: #111827; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 1px solid #d1d5db; border-radius: 4px;
    font-family: inherit; font-size: 1rem; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.btn-submit { width: 100%; cursor: pointer; border: none; font-size: 1.15rem; padding: 16px; }

/* Form Success Message */
.form-success-message {
    background: #f8fafc; border: 1px solid #e2e8f0; border-top: 4px solid #10b981; 
    padding: 40px; border-radius: 8px; text-align: center; animation: fadeIn 0.5s ease;
}
.form-success-message h3 { color: #0f172a; margin-bottom: 10px; font-size: 1.5rem; }
.form-success-message p { color: #475569; }

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

/* Footer & Legal */
footer { background: #000; color: #6b7280; padding: 40px 0; font-size: 0.95rem; }
.footer-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.footer-links a { color: #9ca3af; text-decoration: underline; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* Cookie Banner */
.cookie-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: #f9fafb;
    padding: 15px 25px; border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.2); display: flex;
    align-items: center; justify-content: space-between; gap: 20px; width: 90%; max-width: 800px;
    z-index: 9999; font-size: 0.9rem;
}
.cookie-banner a { color: #fff; text-decoration: underline; font-weight: 600; }
.btn-cookie {
    background: #fff; color: #000; border: none; padding: 8px 16px; border-radius: 4px;
    font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.2s;
}
.btn-cookie:hover { background: #e5e7eb; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; justify-content: space-between; padding: 15px; }
    nav { order: 3; width: 100%; margin-top: 15px; display: flex; justify-content: center; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .lang-switcher { order: 2; }
    .hero { padding: 80px 0; }
    .hero h2 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem;}
    section { padding: 70px 0; }
    section h2 { font-size: 1.8rem; margin-bottom: 40px;}
    .logo-img { height: 35px; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 30px 20px; }
    .cookie-banner { flex-direction: column; text-align: center; }
    .footer-container { justify-content: center; flex-direction: column; text-align: center;}
}

/* Privacy Policy Page Typography */
.legal-content { max-width: 800px; margin: 50px auto; padding: 0 20px; }
.legal-content h1 { font-size: 2.5rem; margin-bottom: 20px; }
.legal-content h2 { font-size: 1.8rem; margin: 40px 0 15px 0; text-align: left; }
.legal-content p { margin-bottom: 15px; color: #4b5563; }
.legal-content ul { margin-bottom: 20px; padding-left: 20px; color: #4b5563;}
.legal-content li { margin-bottom: 10px; }