:root {
    --primary: #4a90e2;
    --primary-light: #c7e0ff;
    --secondary: #3dd598;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header .container{
    max-width: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.header-content a{
    text-decoration: none !important;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: auto; /* teljesen balra tolja */
}

.logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
  }

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
}

.logo span {
    color: var(--dark);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

.active {
    color: var(--primary) !important;
    position: relative;
}

.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    bottom: -5px;
    left: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)), url('./images/IMG_1120_utcafront.jpg') no-repeat center center;
    background-size: cover;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark);
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    /*color: var(--gray);*/
    animation: fadeIn 1.5s ease;
    z-index: -1;
}

.btn_sajat {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
    padding: 0 30px;
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray);
}

.features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: space-between;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 48%;
}

.feature i {
    font-size: 20px;
    min-width: 50px;
    min-height: 50px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 15px;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--gray);
}

.offices {
    background-color: var(--light);
}

.office-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    margin: 5px;
    background-color: white;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 30px;
}

.office-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.office-img {
    height: 200px;
    overflow: hidden;
}

.office-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.office-card:hover .office-img img {
    transform: scale(1.1);
}

.office-info {
    padding: 20px;
}

.office-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.office-title h4 {
    font-size: 1.2rem;
    color: var(--dark);
}

.office-title span {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.office-details {
    margin-bottom: 15px;
}

.office-details p {
    margin-bottom: 5px;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.office-details p i {
    margin-right: 8px;
    color: var(--primary);
}

.office-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
}

.price span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: normal;
}

.contact {
    background-color: white;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--gray);
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-right: 15px;
}

.contact-item div h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-item div p, .contact-item div a {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item div a:hover {
    color: var(--primary);
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-item {
    flex: 1 1 45%;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    background-color: white;
    padding: 5px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .contact-item {
        flex: 1 1 100%;
    }
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.map {
    height: 400px;
    margin-top: 80px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.footer-logo p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-newsletter {
    flex: 2;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-newsletter h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-newsletter h3::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-newsletter p {
    color: #adb5bd;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
}

.newsletter-form button {
    padding: 0 20px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 0.9rem;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--dark);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .about-content, .contact-content {
        flex-direction: column;
    }
    
    .about-img, .about-text, .contact-info, .contact-form {
        width: 100%;
        padding: 0;
        margin-bottom: 40px;
    }
    
    .feature {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .section-title h3 {
        font-size: 2rem;
    }
    
    .about-text h3, .contact-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .btn {
        display: block;
        margin: 10px 0;
    }
    
    .btn-outline {
        margin-left: 0;
    }
    
    .section-title h3 {
        font-size: 1.8rem;
    }
    
    .about-text h3, .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .office-grid {
        grid-template-columns: 1fr;
    }
}


.carousel-container {
    max-width: 400px;
    max-height: 400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-container .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.office-details-layout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  
  .office-details-layout > .carousel-container {
    flex: 1 1 400px;
    max-width: 400px;
    max-height: 400px;
  }
  
  .office-details-layout > .about-text {
    flex: 1 1 300px;
    min-width: 300px;
  }


  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
  }
  
  .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .modal-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
  }
  
  .modal-content p {
    margin: 10px 0;
    color: var(--dark);
  }
  
  .close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
  }
  
  .close:hover {
    color: var(--primary);
  }
  

  .gallery {
    padding: 80px 0;
    background-color: #fff;
  }
  .carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
  }
  .carousel-item {
    flex: 0 0 auto;
    width: 400px;
    height: 400px;
    overflow: hidden;
    display: block;
    position: relative;
  }
  
  .carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
    gap: 20px;
    align-items: center;
  }
  .carousel a {
    flex: 0 0 auto;
    width: 400px;
    height: 400px;
    overflow: hidden;
    display: block;
    position: relative;
  }
  .carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
  }
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    z-index: 2;
  }
  .carousel-btn.prev {
    left: 0;
  }
  .carousel-btn.next {
    right: 0;
  }
  @media (max-width: 768px) {
    .carousel-wrapper {
      max-width: 100%;
    }
    .carousel a {
      width: 280px;
      height: 280px;
    }
    .carousel-btn {
      font-size: 16px;
      padding: 8px;
    }
  }
  @media (max-width: 480px) {
    .carousel a, .carousel-item {
      width: 100vw;
      height: auto;
    }
    .carousel img {
      height: auto;
      width: 100%;
    }
  }

  .modal-title{
    text-align: center;
    font-size: larger;
  }

  .modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.5); 
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  text-align: left;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}