/* --- 1. Alapbeállítások --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
}
.bg-light {
    background-color: #f8fafc;
}
.bg-dark {
    background-color: #0f172a;
    color: white;
}

/* --- 2. Tipográfia --- */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    font-weight: 800;
    color: #0f172a;
}
#tech .section-title {
    color: #ffffff;
}

/* --- 3. Navigáció --- */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f1f5f9;
    z-index: 1000;
    height: 80px;
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo img {
    height: 45px;
    width: auto;
}
.nav-links a {
    text-decoration: none;
    color: #475569;
    margin-left: 30px;
    font-size: 0.95rem;
    font-weight: 600;
}
.btn-nav {
    background: #1e4073;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
}

/* --- 4. Hero Szekció --- */
.hero {
    padding: 200px 0 120px;
    background: radial-gradient(circle at top right, #eff6ff, #ffffff);
    text-align: center;
}
.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 30px;
    color: #0f172a;
    line-height: 1.2;
}
.hero h1 span {
    color: #1e4073;
}
.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 45px;
    color: #64748b;
}
.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* --- 5. Gombok --- */
.btn-dark {
    background: #1e4073;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}
.btn-outline {
    border: 2px solid #1e4073;
    color: #1e4073;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}
.btn-dark:hover {
    background: #152d52;
    transform: translateY(-2px);
}

/* --- 6. Rácsok és Kártyák --- */
.grid-3, .grid-3-center {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.ref-card-logo {
    background: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    height: 140px;
    transition: all 0.3s ease;
}
.ref-card-logo:hover {
    border-color: #1e4073; 
    box-shadow: inset 0 0 0 1px #1e4073, 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.ref-card-logo img {
    max-width: 85%;
    max-height: 70px;
    opacity: 1 !important;
}

.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    height: 100%;
}
.feature-card i {
    font-size: 2rem;
    color: #1e4073;
    margin-bottom: 25px;
    display: block;
}

.services-list {
    max-width: 900px;
    margin: 0 auto;
}
.service-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
}
.service-icon {
    min-width: 64px;
    height: 64px;
    /* Alapból sötétkék háttér, fehér ikon */
    background: #1e4073;
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(30, 64, 115, 0.15);
}

/* --- 7. Technológia --- */
.tech-intro {
    max-width: 850px;
    margin: 0 auto 50px;
    text-align: center;
    color: #cbd5e1;
}
.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.tech-group h4 {
    color: #38bdf8;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 1px solid #334155;
    padding-bottom: 10px;
}
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.badge {
    background: #1e293b;
    padding: 6px 14px;
    border-radius: 6px;
    color: #38bdf8;
    font-size: 0.8rem;
    border: 1px solid #334155;
}

/* --- 8. Kapcsolat --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    height: 100%;
}
.contact-card h3 {
    margin-bottom: 25px;
    color: #0f172a;
    font-size: 1.5rem;
}
.contact-info-list {
    list-style: none;
}
.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-info-list i {
    color: #1e4073;
    font-size: 1.2rem;
    min-width: 25px;
}
.company-details {
    display: grid;
    gap: 15px;
}
.detail-item {
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}
.detail-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}
.detail-value {
    color: #334155;
    font-weight: 600;
}

.footer {
    padding: 60px 0;
    text-align: center;
    color: #94a3b8;
    border-top: 1px solid #f1f5f9;
}

/* --- 9. MOBIL NÉZET --- */
@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    .nav-flex {
        justify-content: flex-start !important;
        padding: 0 20px !important;
    }
    .logo img {
        height: 38px !important;
    }

    .hero {
        padding: 120px 0 60px !important;
    }
    .hero h1 {
        font-size: 1.9rem !important;
    }
    .hero-btns {
        flex-direction: column;
        padding: 0 20px;
    }

    .section {
        padding: 40px 0 !important;
    }
    .section-title {
        font-size: 1.7rem !important;
        margin-bottom: 30px !important;
    }

    .grid-3, .services-list, .tech-grid {
        display: block !important;
    }

    /* Kapcsolat rács mobilon */
    .grid-2 {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important; /* Itt adjuk meg a kártyák közötti távolságot */
    }

    .service-item, .feature-card {
        display: flex !important;
        flex-direction: row !important;
        padding: 20px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        background: transparent !important;
    }
    .service-icon, .feature-card i {
        background: #1e4073 !important;
        color: #ffffff !important;
        min-width: 45px !important;
        max-width: 45px !important;
        height: 45px !important;
        border-radius: 8px !important;
    }
    .service-text, .feature-card {
        padding: 0 !important;
        text-align: left !important;
    }

    .contact-card {
        padding: 30px !important;
    }
    .tech-group {
        margin-bottom: 30px;
    }
    .grid-3-center {
        grid-template-columns: 1fr !important;
        max-width: 250px;
        margin: 0 auto;
    }
}