/* Base styles */
:root {
    --primary-color: #385B66; /* Fő szín - mély teal */
    --secondary-color: #6D9197; /* Másodlagos szín - közepes teal */
    --accent-color: #D2B48C; /* Accent szín - halvány bézs */
    --text-color: #333333;
    --light-text: #ffffff;
    --bg-color: #ffffff;
    --bg-alt-color: #f8f9fa;
    --border-color: #e0e0e0;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --radius: 8px;
    --transition: all 0.3s ease;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Raleway', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--bg-color);
    font-weight: 300;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
    font-weight: 500;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--accent-color);
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

/* Navigation */
#navbar {
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.logo h1 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.logo p {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 300;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin-left: 35px;
}

.nav-links ul li a {
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.9rem;
    padding: 8px 0;
    position: relative;
}

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

.nav-links ul li a:hover::after {
    width: 100%;
}

/* Mobile menu icons */
#menuOpen, #menuClose {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero section */
.hero {
    background-image: url('../img/fejlec.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 80px;
    color: var(--light-text);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
}

.hero-button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About section */
.about {
    padding: 100px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content.full-width .about-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.about-content.full-width .section-title {
    text-align: center;
}

.about-content.full-width .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-title::after {
    left: 0;
    transform: none;
}

.about-text p {
    margin-bottom: 20px;
}

/* Approach section */
.approach {
    background-color: var(--bg-alt-color);
    padding: 80px 0;
    text-align: left;
}

.approach .container {
    max-width: 900px;
    position: relative;
    padding-left: 30px;
}

.approach .container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
    opacity: 0.7;
}

.approach p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Background section with timeline */
.background {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg-color);
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border-radius: 50%;
    top: 15px;
    border: 4px solid var(--accent-color);
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
}

.timeline-date {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Qualifications section */
.qualifications {
    background-color: var(--bg-alt-color);
    padding: 100px 0;
}

.qualification-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.qualification-card {
    background-color: var(--bg-color);
    border-radius: var(--radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    flex-basis: 300px;
    text-align: center;
    transition: var(--transition);
}

.qualification-card:hover {
    transform: translateY(-10px);
}

.qualification-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.qualification-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Appointment section */
.appointment {
    padding: 100px 0;
    text-align: center;
}

.appointment-content {
    max-width: 600px;
    margin: 0 auto;
}

.appointment-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.appointment-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
}

.appointment-button:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    background-image: url('../img/kanape.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--light-text);
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(56, 91, 102, 0.85);  /* A primary color with opacity */
    z-index: 0;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-info, .footer-links, .footer-contact {
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-links h4, .footer-contact h4 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

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

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

.footer-links ul li a, .footer-contact a {
    color: var(--light-text);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover, .footer-contact a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container, 
    .download .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content, 
    .download-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .download .section-title {
        text-align: center;
    }
    
    .download .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .timeline-item {
        width: 100%;
        left: 0;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content::after {
        left: -33px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -33px;
    }
    
    .timeline-item {
        padding-left: 70px;
        padding-right: 0;
    }
    
    .qualification-cards {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background-color: var(--bg-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1001;
        padding: 80px 20px 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
    }
    
    .nav-links ul li {
        margin: 15px 0;
    }
    
    #menuOpen, #menuClose {
        display: block;
    }
    
    #menuClose {
        position: absolute;
        top: 25px;
        right: 25px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .approach .container {
        padding-left: 20px;
    }
    
    .approach .container::before {
        width: 2px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo img {
        margin: 0 auto 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}
