:root {
    --bg: #050816;
    --bg-alt: #0b1020;
    --card: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #1f2937;
    --danger: #f97373;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.6);
    --max-width: 1120px;
    --transition: 0.2s ease;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text);
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(16px);
    animation: section-in 0.7s var(--transition) forwards;
}

.section:nth-of-type(2) { animation-delay: 0.05s; }
.section:nth-of-type(3) { animation-delay: 0.1s; }
.section:nth-of-type(4) { animation-delay: 0.15s; }
.section:nth-of-type(5) { animation-delay: 0.2s; }
.section:nth-of-type(6) { animation-delay: 0.25s; }

@keyframes section-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-alt {
    background: radial-gradient(circle at top left, #020617 0, #020617 40%, #020617 100%);
}

/* blagi linear gradient kroz sekcije */
.section-soft {
    background-image:
        linear-gradient(to bottom, rgba(15,23,42,0.55), transparent 40%),
        radial-gradient(circle at top, #020617 0, #020617 60%, #000 100%);
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.6));
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    gap: 0.75rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #38bdf8, #0ea5e9, #6366f1);
    color: #0b1220;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.logo-text {
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #e5e7eb;
}

.main-nav {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    position: relative;
    transition: color var(--transition), background var(--transition);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: -4px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity var(--transition), transform var(--transition);
}

.main-nav a:hover {
    color: var(--text);
    background: rgba(15, 23, 42, 0.8);
}

.main-nav a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch {
    display: flex;
    gap: 0.35rem;
}

.lang-btn {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--accent-soft);
    color: #e0f2fe;
    border-color: var(--accent);
}

/* Hamburger & mobile nav */

.menu-toggle {
    display: none;
    width: 34px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    padding: 0 6px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: var(--transition);
}

.menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: #e5e7eb;
    transition: var(--transition);
}

.menu-toggle.open {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 1);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    padding: 0.5rem 1.25rem 0.75rem;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.mobile-nav a:hover {
    color: var(--text);
}

.mobile-nav.open {
    display: flex;
}

/* Hero */

.hero {
    padding-top: 4rem;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.1), transparent 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 34rem;
    font-size: 0.98rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.75rem 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn.primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #0b1220;
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.5);
}

.btn.primary:hover {
    filter: brightness(1.06);
    box-shadow: 0 20px 55px rgba(37, 99, 235, 0.75);
    transform: translateY(-1px);
}

.btn.ghost {
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
}

.btn.ghost:hover {
    border-color: var(--accent);
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.95);
    transform: translateY(-1px);
}

.hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-bullets li::before {
    content: "▹";
    color: var(--accent);
    margin-right: 0.4rem;
}

/* scroll hint */

.scroll-hint {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.scroll-hint-arrow {
    font-size: 1.1rem;
    animation: scroll-bounce 1.4s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(4px);
        opacity: 1;
    }
}

.hero-panel {
    display: flex;
    justify-content: flex-end;
}

.hero-card {
    position: relative;
    background: radial-gradient(circle at top, #0f172a, #020617);
    border-radius: 1.4rem;
    padding: 1.8rem 1.6rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-card h2 {
    margin-top: 0.6rem;
    font-size: 1.1rem;
}

.hero-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-badge {
    position: absolute;
    top: -0.75rem;
    left: 1.4rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: #0b1220;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-meta {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    display: grid;
    gap: 0.35rem;
    font-size: 0.86rem;
}

.hero-meta li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta li::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #38bdf8, #6366f1);
}

/* Sections */

.section-title {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.section-intro {
    max-width: 32rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Services */

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: radial-gradient(circle at top left, #020617, #020617 55%, #020617 100%);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-card);
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.9);
    border-color: rgba(148, 163, 184, 0.5);
}

.card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--muted);
}

.card ul {
    list-style: none;
    padding-left: 0;
    margin: 0.9rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.card ul li {
    margin-bottom: 0.4rem;
}

.card ul li::before {
    content: "•";
    color: var(--accent);
    margin-right: 0.4rem;
}

/* Why */

.why-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Packages */

.packages-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.package {
    position: relative;
}

.package-target {
    color: var(--muted);
    font-size: 0.9rem;
}

.package-list {
    margin-top: 1rem;
}

.package-note {
    margin-top: 1.1rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.package-highlight {
    border-color: var(--accent);
    box-shadow: 0 20px 55px rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(6px);
}

.badge {
    position: absolute;
    top: -0.9rem;
    right: 1.2rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent);
    color: #0b1220;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* About */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
    gap: 2.5rem;
}

.subheading {
    font-size: 1rem;
    margin-top: 0;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin: 1rem 0;
}

.cert-column h4 {
    margin: 0 0 0.4rem;
    font-size: 0.92rem;
    color: #e5e7eb;
}

.cert-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.86rem;
    color: var(--muted);
}

.cert-column li::before {
    content: "✓";
    color: var(--accent);
    margin-right: 0.35rem;
}

.note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* FAQ */

.faq-list {
    margin-top: 2rem;
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.9);
    padding: 0.75rem 1rem;
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-weight: 600;
    color: var(--muted);
    margin-left: 0.75rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
    transform: translateY(1px);
}

.faq-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding-top 0.25s ease;
}

.faq-item[open] .faq-body {
    max-height: 200px;
    opacity: 1;
    padding-top: 0.5rem;
}

.faq-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 2.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 1rem;
    font-size: 0.92rem;
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.6);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: var(--transition);
}

.social-linkedin { background: #0a66c2; }
.social-facebook { background: #1877f2; }
.social-x        { background: #000000; }

.social-icon:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.85);
    filter: brightness(1.08);
}

/* Contact form */

.contact-form {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: var(--shadow-card);
}

.form-row {
    margin-bottom: 0.9rem;
}

.form-row label {
    display: block;
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

input, textarea {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: #020617;
    color: var(--text);
    padding: 0.55rem 0.65rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

input:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}

textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted);
}

/* Footer */

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.4rem 0 1.8rem;
    background: linear-gradient(to top, #020617, transparent);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Back to top button */

#backToTop {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
    z-index: 40;
}

#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#backToTop:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.95);
}

/* Responsive */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-panel {
        justify-content: flex-start;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .main-nav {
        display: none;
    }
    .menu-toggle {
        display: inline-flex;
    }
    .hero {
        padding-top: 3.5rem;
    }
    .section {
        padding: 3.25rem 0;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    #backToTop {
        right: 1rem;
        bottom: 1rem;
    }
}
