:root {
    --primary-color: #29549b;
    --secondary-color: #6fa8ff;
    --dark-overlay: rgba(41, 84, 155, 0.8);
    --light-overlay: rgba(41, 84, 155, 0.3);
}

body {
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    overflow-x: hidden;
    background: var(--primary-color);
}

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b2f5e 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(111, 168, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(111, 168, 255, 0.15) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 2%;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 400;
    /* letter-spacing: 2px; */
    color: white;
    /* text-shadow: 2px 2px 4px rgba(0,0,0,0.5); */
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.project-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1b2f5e 100%);
    opacity: 0.8;
    transition: all 0.4s ease;
    z-index: -2;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: all 0.4s ease;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(41, 84, 155, 0.3);
    border-color: var(--secondary-color);
}

.project-card:hover::after {
    opacity: 0.1;
}

.project-icon {
    font-size: 4.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.2);
    color: white;
}

.project-title {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

.project-card:hover .project-description {
    opacity: 1;
    transform: translateY(0);
}

.project-location {
    display: inline-block;
    background: rgba(111, 168, 255, 0.2);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    /* margin-top: auto; */
}

.project-card:hover .project-location {
    background: var(--secondary-color);
    color: white;
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--secondary-color), #9fc6ff);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.9; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.btn-custom {
    background: linear-gradient(135deg, var(--secondary-color), #9fc6ff);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(111, 168, 255, 0.3);
    color: white;
}

/* Különböző projekt típusok színezése */
.project-card.rental::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5fb3 100%);
}

.project-card.sale::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, #16274f 100%);
}

.project-card.land::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, #234a8a 100%);
}

.project-card.featured::before {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }
    
    .project-card {
        margin-bottom: 1.5rem;
        min-height: 300px;
        padding: 1.5rem;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    /* Make project descriptions visible on mobile without requiring hover */
    .project-description {
        opacity: 1;
        transform: translateY(0);
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}

/* Betöltési animáció */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.4s; }
.fade-in:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-align: center;
}

.scroll-arrow {
    animation: bounce 2s infinite;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hatter1 {
    position: absolute;
    height: auto;
    width: 80%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    overflow: visible !important;
    transition: all 0.3s ease;
}

.hatter1::before {
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 0;
}

.project-description {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.project-card:hover .hatter1 {
    opacity: 0;
    transition: all 0.3s ease;
}

.hatter2 {
    position: absolute;
    height: auto;
    width: 80%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    overflow: visible !important;
    transition: all 0.3s ease;
}

.hatter2::before {
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 0;
}

.project-description {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.project-card:hover .hatter2 {
    opacity: 0;
    transition: all 0.3s ease;
}
