:root {
    --primary-color: #3a6ea5;
    --secondary-color: #ff6b6b;
    --text-color: #333;
    --light-text: #fff;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --border-color: #ddd;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
}

.btn-primary:hover {
    background-color: #2d5a8a;
}

.btn-outline {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.btn-outline:hover {
    background-color: var(--light-text);
    color: var(--primary-color);
}

/* Header */
.site-header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.logo a {
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    position: relative;
}

.hero-buttons {
    position: relative;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    padding: 0 20px;
}

.service-card p {
    padding: 0 20px;
    margin-bottom: 20px;
}

.btn-text {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px 20px;
    transition: var(--transition);
}

.btn-text:hover {
    color: var(--secondary-color);
}

.logo-image {
    max-height: 60px; /* Állítsd be a logód méretének megfelelően */
    width: auto;
}



/* Táblázat formázás */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  background-color: var(--bg-color);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #e0e0e0; /* halvány szegély */
}

th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

tr:nth-child(even) {
  background-color: #f9f9f9; /* zebra csíkozás a jobb olvashatóságért */
}

tr:hover {
  background-color: #f0f7ff; /* hover hatás a sorokra */
}

/* Reszponzív táblázat */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Kontaktűrlap formázás */
.contact-form {
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 150px 1fr; /* Fix szélességű oszlop a címkéknek */
  gap: 15px;
  align-items: start;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 5px;
  text-align: right; /* Jobbra igazítja a címkéket */
  padding-top: 8px; /* Kicsit lejjebb tolja, hogy középre igazodjon a beviteli mezőhöz képest */
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group button {
  grid-column: 2; /* A gomb a második oszlopban legyen */
  justify-self: start; /* Balra igazítva a második oszlopban */
  margin-top: 10px;
}

/* Reszponzív űrlap */
@media (max-width: 768px) {
  .form-group {
    grid-template-columns: 1fr; /* Mobilon egymás alatt */
    gap: 5px;
  }
  
  .form-group label {
    text-align: left; /* Mobilon balra igazítva */
    padding-top: 0;
  }
  
  .form-group button {
    grid-column: 1; /* Mobilon az első oszlopban */
  }
}

/* About Section */
.about-section {
    padding: 120px 0 80px;
}

.about-section img {
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    margin-top: 25px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Reszponzív igazítások */
@media (max-width: 991px) {
    .about-section {
        padding: 100px 0 60px;
    }
    
    .about-section .section-title {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .contact-info {
        margin-bottom: 40px;
    }
}

/* Fix a fixed header miatt - minden oldalt érintő megoldás */
body {
    padding-top: 80px; /* A header magasságához igazítva */
}

/* Árak oldal specifikus formázás */
.pricing-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 50px;
}

.pricing-header .section-title {
    color: var(--light-text);
    margin-bottom: 10px;
}

.pricing-header .section-subtitle {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-tables {
    padding: 0 0 50px;
}

.pricing-category {
    margin-bottom: 50px;
}

.pricing-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.pricing-table {
    overflow-x: auto;
}

.pricing-info {
    background-color: var(--light-bg);
    padding: 50px 0;
}

.info-box, .cta-box {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.info-box h3, .cta-box h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    margin-bottom: 10px;
}

.cta-box {
    text-align: center;
}

.cta-box p {
    margin-bottom: 20px;
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .pricing-info .container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
    
    .info-box, .cta-box {
        margin-bottom: 0;
    }
}

/* Portfólió oldal formázás */
.portfolio-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
    margin-bottom: 30px;
}

.portfolio-header .section-title {
    color: var(--light-text);
    margin-bottom: 20px;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--light-text);
    color: var(--primary-color);
}

.portfolio-gallery {
    padding: 0 0 80px;
}

.gallery-section {
    margin-bottom: 50px;
}

.gallery-section h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox formázás */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow: hidden;
}

.lightbox.active {
    display: block;
}

.lightbox-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: transparent;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: var(--secondary-color);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 3rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .lightbox-content {
        max-width: 95%;
    }
    
    .lightbox-prev, .lightbox-next {
        font-size: 1.5rem;
    }
}
