/* ========== RESET & VARIABLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-blue: #121212;      /* fekete */
    --accent-blue: #d32f2f;     /* piros */
    --light-bg: #f5f5f5;        /* világosszürke */
    --white: #ffffff;
    --text-dark: #1e293b;       /* sötétszürke */
    --text-light: #475569;      /* középszürke */
    --border-radius: 12px;
    --spacing: 1rem;
    --max-width: 1200px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ========== TYPOGRAPHY ========== */
h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--deep-blue);
}
h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
}
h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
p {
    font-size: 1rem;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    padding: 0 1.25rem;
    margin: 0 auto;
    max-width: var(--max-width);
}

/* ========== STICKY CONTACT BAR ========== */
.contact-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    background: var(--deep-blue);
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.contact-btn {
    flex: 1;
    text-align: center;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.75rem;
    margin: 0 0.5rem;
    border-radius: 40px;
    transition: transform 0.2s, background 0.2s;
}
.contact-btn.call-btn {
    background: var(--accent-blue);
}
.contact-btn.email-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
}
.contact-btn:hover {
    transform: scale(1.02);
    background: var(--accent-blue);
}
.contact-btn:active {
    transform: scale(0.98);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 1rem 1.8rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    text-align: center;
}
.btn-primary {
    background: var(--deep-blue);
    color: white;
}
.btn-primary:hover {
    background: var(--accent-blue);
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(211,47,47,0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--deep-blue);
    border: 2px solid var(--deep-blue);
}
.btn-secondary:hover {
    background: var(--deep-blue);
    color: white;
    transform: scale(1.05);
}
.btn-full {
    width: 100%;
}

/* ========== HERO ========== */
.hero {
    background: var(--light-bg);
    padding: 3rem 0;
}
.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.hero-content {
    text-align: center;
}
.subheadline {
    font-size: 1.25rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-dark);
}
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.hero-image {
    text-align: center;
}
.hero-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* ========== SERVICES ========== */
.services {
    padding: 4rem 0;
}
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
.service-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 24px rgba(18,18,18,0.1);
}
.service-card h3 {
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}
.service-card p {
    font-size: 0.95rem;
}

/* ========== WHY ME ========== */
.why-me {
    background: var(--light-bg);
    padding: 4rem 0;
}
.achievements-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
.achievement-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.2s;
    border: 1px solid #e9ecef;
}
.achievement-card:hover {
    transform: translateY(-4px);
}
.achievement-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 0.75rem;
}
.achievement-card h3 {
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}
.achievement-card p {
    font-size: 0.95rem;
}

/* ========== REFERENCES ========== */
.references {
    padding: 4rem 0;
}
.references-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
.references-grid a {
    display: block;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 3/2;
    background: #e9ecef;
}
.references-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.references-grid img:hover {
    opacity: 0.85;
}

/* ========== CONTACT ========== */
.contact {
    background: var(--light-bg);
    padding: 4rem 0;
}
.contact-grid {
    display: grid;
    gap: 2rem;
}
.contact-info {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e9ecef;
}
.contact-info p {
    margin: 1rem 0;
    font-size: 1.125rem;
}
.contact-info a {
    color: var(--deep-blue);
    text-decoration: none;
    font-weight: 600;
}
.contact-info a:hover {
    text-decoration: underline;
}
.phone a, .email a {
    font-size: 1.2rem;
}
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--deep-blue);
    box-shadow: 0 0 0 3px rgba(18,18,18,0.1);
}
.honeypot {
    display: none !important;
}
.form-message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}
.form-message.success {
    background: #d1fae5;
    color: #065f46;
}
.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ========== LIGHTBOX ========== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid white;
    border-radius: 4px;
}
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-weight: bold;
}
.close:hover {
    color: var(--accent-blue);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--deep-blue);
    padding: 2rem 0;
    text-align: center;
}
.footer p {
    color: rgba(255,255,255,0.9);
}

/* ========== ANIMATIONS ========== */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.float-image {
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== MEDIA QUERIES (MOBILE-FIRST) ========== */
@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    .hero-buttons .btn {
        min-width: 160px;
    }
}

@media (min-width: 640px) {
    .hero-grid {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }
    .hero-content {
        flex: 2;
        text-align: left;
    }
    .hero-image {
        flex: 1;
    }
    .hero-image img {
        width: 280px;
        height: 280px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    h1 { font-size: 2.8rem; }
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .achievements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .references-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    /* make the last card span if needed – but 7 items, we can let it be 3+3+1, which is fine */
    .contact-grid {
        grid-template-columns: 1fr 2fr;
        align-items: start;
    }
    .contact-info {
        position: sticky;
        top: 100px;
    }
}