/* Reset és alapértékek */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Színek */
    /* Színek */
    /* Primary Calming Palette (Teal) */
    --primary-50: #f0fdfa;
    --primary-100: #ccfbf1;
    --primary-200: #99f6e4;
    --primary-300: #5eead4;
    --primary-500: #14b8a6;
    --primary-600: #0d9488;
    --primary-700: #0f766e;

    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-500: #f59e0b;

    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --green-100: #dcfce7;
    --green-600: #16a34a;

    --rose-100: #ffe4e6;

    /* Egyéb */
    --max-width: 1280px;
    --border-radius: 0.75rem;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--amber-50) 50%, var(--teal-50) 100%);
    min-height: 100vh;
}

/* Utility classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.hidden {
    display: none;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

.nav-content {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    height: 2rem;
    width: 2rem;
    color: var(--primary-500);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 600;
    color: var(--gray-900);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--gray-600);
}

.desktop-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
}

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: none;
    background: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-menu-btn:hover {
    background-color: var(--gray-100);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.menu-icon,
.close-icon {
    height: 1.5rem;
    width: 1.5rem;
}

.mobile-nav {
    border-top: 1px solid var(--gray-200);
    background: white;
    padding: 1rem;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s;
    margin-bottom: 0.25rem;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background-color: var(--primary-50);
    color: var(--primary-600);
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--amber-100) 50%, var(--teal-100) 100%);
    padding: 5rem 0;
}

@media (min-width: 640px) {
    .hero-section {
        padding: 8rem 0;
    }
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-highlight {
    color: var(--primary-600);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    border: 2px solid var(--primary-600);
    color: var(--primary-600);
    background: transparent;
}

.btn-secondary:hover {
    background-color: var(--primary-50);
}

.btn-white {
    background-color: white;
    color: var(--primary-600);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-xl);
}

.btn-white:hover {
    background-color: var(--gray-50);
}

.btn-icon {
    height: 1.25rem;
    width: 1.25rem;
}

.hero-image {
    position: relative;
}

.image-container {
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-box {
    position: absolute;
    bottom: -1.5rem;
    right: -1.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    max-width: 20rem;
}

.quote-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}

/* Info Section */
.info-section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .info-section {
        padding: 6rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* Countdown */
.countdown-container {
    margin-bottom: 3rem;
}

.countdown-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.countdown-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .countdown-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.countdown-item {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--amber-50) 100%);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-600);
}

@media (min-width: 640px) {
    .countdown-value {
        font-size: 3rem;
    }
}

.countdown-unit {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: block;
    height: 100%;
    transition: all 0.3s;
}

.info-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-0.25rem);
}

.card-icon {
    height: 3rem;
    width: 3rem;
    color: var(--primary-500);
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.card-description {
    color: var(--gray-600);
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

@media (min-width: 640px) {
    .cta-section {
        padding: 6rem 0;
    }
}

.cta-content {
    text-align: center;
}

.cta-icon {
    height: 4rem;
    width: 4rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 2.25rem;
    }
}

.cta-description {
    font-size: 1.125rem;
    color: var(--primary-100);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: var(--primary-600);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 40;
}

.scroll-to-top:hover {
    background-color: var(--primary-700);
    transform: translateY(-0.25rem);
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-top: 1px solid var(--gray-200);
    margin-top: 4rem;
}

.footer-content {
    padding: 2rem 1rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-icon {
    height: 1.25rem;
    width: 1.25rem;
    color: var(--primary-500);
}

.footer-title {
    font-weight: 600;
    color: var(--gray-900);
}

.footer-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-delay {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Button Loading Spinner */
.btn-spinner {
    height: 1.25rem;
    width: 1.25rem;
    margin-right: 0.5rem;
    animation: rotate 2s linear infinite;
    vertical-align: middle;
}

.btn-spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}