/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --primary-bg: #0f172a;
    --gold: #fbbf24;
    --gold-hover: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(30, 41, 59, 0.9);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--primary-bg);
    background-image: url('kepek/new_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--gold);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 30vh;
    padding: 3rem 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    margin-top: 60px;
    /* offset for fixed header */
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-primary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.3s backwards;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Added text shadow for better readability on image */
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--gold);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

/* Services Grid */
.services-section {
    padding: 4rem 20px;
    flex: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;

}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(251, 191, 36, 0.3);
}

.card a {
    display: block;
    height: 100%;
}

.card-image-wrapper {
    overflow: hidden;
    height: 300px;
    /* Fixed height for consistency */
    border-bottom: 1px solid var(--glass-border);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    text-align: center;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0;
    color: var(--gold);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2rem 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-menu {
    margin-bottom: 1.5rem;
}

.footer-menu a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0 15px;
    font-weight: 500;
}

.footer-menu a:hover {
    color: var(--gold);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
        background: rgba(15, 23, 42, 0.95);
    }

    .container {
        /* flex-direction: column;  <-- Changed to row to keep logo and hamburger aligned */
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
        padding: 0 15px;
    }

    .logo {
        font-size: 1.5rem;
        /* Slightly smaller logo on mobile */
        order: 2;
        /* Logo in the middle or right, but we want hamburger left, logo right/center */
        margin-left: auto;
        /* Push logo to the right if we want, or remove to keep next to hamburger */
        /* Let's try: Hamburger Left, Logo Center or Right. 
           Requested: "bal oldalon egy hamburger menü", "felső menüsor eltűnik (csak az Astrosupport maradjon meg)"
           So: Hamburger (Left), Logo (Right or Center). 
           Let's default to Hamburger Left, Logo Right for standard mobile pattern, 
           or Hamburger Left, Logo Center.
        */
        margin-right: auto;
        margin-left: 15px;
    }

    .hamburger {
        display: block;
        order: 1;
        background: none;
        border: none;
        color: var(--gold);
        font-size: 1.8rem;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    nav {
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden by default */
        width: 250px;
        height: 100vh;
        background: var(--primary-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        border-right: 1px solid var(--glass-border);
    }

    nav.nav-active {
        left: 0;
    }

    nav a {
        font-size: 1.1rem;
        margin-bottom: 20px;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 10px;
    }

    nav a::after {
        display: none;
        /* Remove underline animation on mobile for cleaner look */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        /* Single column on mobile */
        padding: 0 10px;
    }

    .services-section {
        padding-top: 1rem;
        /* Reduced from 4rem */
        padding-bottom: 2rem;
    }

    .card-image-wrapper {
        height: 250px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* Content Page Styles */
.content-section {
    padding: 8rem 20px 4rem;
    /* Top padding accounts for fixed header */
    flex: 1;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.content-container h1,
.content-container h2,
.content-container h3 {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

.content-container h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.content-container h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-container p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
}

.content-container ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.content-container ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.content-container ul li::before {
    content: '★';
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.8rem;
}

.content-container strong {
    color: var(--text-primary);
}

.profile-image {
    float: right;
    width: 250px;
    margin: 0 0 20px 30px;
    border-radius: 12px;
    border: 2px solid var(--gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .content-section {
        padding-top: 6rem;
    }

    .content-container {
        padding: 20px;
    }

    .content-container h1 {
        font-size: 2rem;
    }

    .profile-image {
        float: none;
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 20px auto;
    }
}

/* Facebook Posts Styles */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 30px 0;
    justify-content: center;
}

.search-bar input[type="text"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background-color: rgba(15, 23, 42, 0.8);
    color: var(--gold);
}

.search-bar input::placeholder {
    color: rgba(251, 191, 36, 0.5);
}

.search-bar button {
    padding: 10px 18px;
    font-size: 0.95rem;
    border-radius: 4px;
    border: 1px solid var(--gold);
    background-color: transparent;
    color: var(--gold);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 600;
}

.search-bar button:hover {
    background-color: var(--gold);
    color: var(--primary-bg);
}

section.post {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}

section.post h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    color: var(--gold);
}

section.post p {
    margin: 0 0 10px 0;
    color: var(--text-secondary);
}

.timestamp {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
}

.images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.images img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.images img:hover {
    transform: scale(1.05);
}

mark {
    background-color: rgba(251, 191, 36, 0.3);
    color: var(--text-primary);
    padding: 0 2px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .images img {
        max-width: 48%;
    }
}