/* ==========================================================================
   ELEGANT DARK MODE DESIGN
   ========================================================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background-color: #0a0c15;
    color: #e8edf5;
}

/* ==========================================================================
   DARK THEME VARIABLES (JEDINÉ TÉMA)
   ========================================================================== */
:root {
    --bg-primary: #0a0c15;
    --bg-secondary: #0f111a;
    --bg-tertiary: #151821;
    --card-bg: #11141e;
    --surface-hover: #1a1e2a;
    --text-primary: #edf2f7;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --text-muted: #64748b;
    --border-light: #1e2230;
    --border-medium: #2d313e;
    --accent: #4f7df3;
    --accent-hover: #6b92f5;
    --accent-soft: #1a2538;
    --accent-glow: rgba(79, 125, 243, 0.2);
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, #4f7df3, #3b6aed);
    --gradient-hero: linear-gradient(135deg, #0a0c15 0%, #11141e 100%);
    --gradient-cta: linear-gradient(135deg, #0f111a 0%, #151821 100%);
    --header-bg: rgba(10, 12, 21, 0.95);
    --button-primary-bg: #4f7df3;
    --button-primary-hover: #6b92f5;
}

/* ========== BASE STYLES ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

section {
    position: relative;
}

/* ========== HEADER ========== */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    gap: 24px;
}

.logo img {
    height: 44px;
    width: auto;
    transition: opacity 0.3s;
}

.logo img:hover {
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.cta-button {
    background-color: var(--button-primary-bg);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 125, 243, 0.3);
    color: var(--white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* ========== HERO ========== */
.hero {
    padding: 180px 0 100px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero h1 {
    font-size: 52px;
    margin-bottom: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: 18px;
    color: var(--text-tertiary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.secondary-button {
    background-color: transparent;
    color: var(--text-secondary);
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    border: 1.5px solid var(--border-medium);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 550px;
    border-radius: 24px;
    opacity: 0.85;
    transition: transform 0.3s;
}

/* ========== SERVICES ========== */
.services {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 40px;
    margin-bottom: 16px;
    font-weight: 700;
}

.section-title h2 span {
    color: var(--accent);
}

.section-title p {
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

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

.service-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 26px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 12px;
}

/* ========== FEATURES ========== */
.features {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

.features-image {
    flex: 1;
    min-width: 300px;
}

.features-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

.features-content {
    flex: 1;
    min-width: 300px;
}

.features-content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.features-content h2 span {
    color: var(--accent);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 18px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-text p {
    color: var(--text-tertiary);
    font-size: 15px;
}

/* ========== PORTFOLIO ========== */
.portfolio {
    padding: 100px 0;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-button {
    background: transparent;
    border: 1px solid var(--border-light);
    padding: 8px 22px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.filter-button.active,
.filter-button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-light);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(10, 12, 21, 0.95), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    margin-top: 12px;
}

/* ========== TEAM ========== */
.team {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    text-align: center;
    padding: 32px 20px;
    border: 1px solid var(--border-light);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-6px);
}

.team-info h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.team-info p {
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.team-social a:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ========== CONTACT ========== */
.contact {
    padding: 100px 0;
    background: var(--gradient-hero);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--accent);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 40px;
}

.contact-item {
    display: flex;
    gap: 18px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background-color: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contact-text h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.contact-text a,
.contact-text p {
    color: var(--text-tertiary);
}

.contact-text a:hover {
    color: var(--accent);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ========== CTA ========== */
.cta {
    padding: 100px 0;
    background: var(--gradient-cta);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 50px;
    border-radius: 28px;
    border: 1px solid var(--border-light);
}

.cta-container h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-container h2 span {
    color: var(--accent);
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--bg-tertiary);
    padding: 70px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-logo-icon {
    color: var(--accent);
}

.footer-column p {
    color: var(--text-tertiary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 14px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .hero-image {
        display: none;
    }
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-light);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .hero h1 {
        font-size: 36px;
    }
    .section-title h2 {
        font-size: 32px;
    }
    .cta-container {
        padding: 30px 20px;
    }
}

/* ========== UTILITIES ========== */
.text-accent {
    color: var(--accent);
}

/* ========== PROCESS SECTION ========== */
.process-section {
    padding: 80px 0;
    background-color: var(--bg-secondary);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.step-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.8;
    line-height: 1;
    min-width: 60px;
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-tertiary);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 12px;
    }
    .step-number {
        font-size: 36px;
    }
}