/* =============== CSS VARIABLES =============== */
:root {
    --color-primary: #602366;
    --color-primary-light: #7c3182;
    --color-primary-dark: #46194a;
    --color-bg: #fdfdfd;
    --color-white: #ffffff;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-border: #e0e0e0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s ease-in-out;
    --transition-medium: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(96, 35, 102, 0.2);
    --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============== HEADER =============== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-medium);
    background: transparent;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 75px;
    width: auto;
    max-width: 250px;
    border-radius: 8px;
    object-fit: contain;
    border: 2px solid var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    background-color: var(--color-white); /* in case logo is transparent and text is dark */
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.5px;
    transition: var(--transition-medium);
}

header.scrolled .logo span {
    color: var(--color-primary);
}

header.scrolled .logo img {
    border-color: var(--color-primary);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-white);
    transition: var(--transition-medium);
    position: relative;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
}

header.scrolled nav a {
    color: var(--color-text-main);
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

header.scrolled nav a:hover {
    background-color: rgba(96, 35, 102, 0.1);
    color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: var(--transition-medium);
}

header.scrolled .mobile-menu-btn .bar {
    background-color: var(--color-primary);
}

/* =============== HERO SECTION =============== */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    animation: fadeInUpper 1s ease-out forwards;
}

.profile-container {
    margin-bottom: 30px;
}

.profile-pic {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-white);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-medium);
}

.profile-pic:hover {
    transform: scale(1.05);
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
}

.hero-text .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-main);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: 0 5px 15px rgba(96, 35, 102, 0.4);
    font-family: var(--font-heading);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(96, 35, 102, 0.6);
}

/* =============== MODAL (BEMUTATKOZÁS) =============== */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: visibility 0.3s, opacity 0.3s;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--color-white);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: var(--shadow-modal);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2;
}

.close-btn:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal-header {
    padding: 30px 40px 10px;
}

.modal-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.separator {
    height: 4px;
    width: 60px;
    background: var(--color-primary);
    border-radius: 2px;
}

.modal-body {
    padding: 20px 40px 40px;
    overflow-y: auto;
}

/* Custom Scrollbar for Entire Website */
::-webkit-scrollbar {
    width: 14px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg); 
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-light); 
    border-radius: 7px;
    border: 3px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary); 
}

/* Custom Scrollbar for Modal */
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: var(--color-white); 
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-primary-light); 
    border-radius: 4px;
    border: 1px solid var(--color-white);
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary); 
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--color-text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    text-align: justify;
}

.modal-body .signature {
    margin-top: 30px;
    font-size: 1.2rem;
    text-align: right;
    color: var(--color-primary-dark);
}
.modal-body .signature span {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

/* =============== GALLERY SECTION =============== */
.gallery-section {
    padding: 100px 0;
    background-color: var(--color-white);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.separator-center {
    height: 4px;
    width: 80px;
    background: var(--color-primary);
    border-radius: 2px;
    margin: 0 auto 50px;
}

.separator-center.light {
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
    cursor: zoom-in;
    transform: translateZ(0); /* Hardware accel */
    background: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(96, 35, 102, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.gallery-item .overlay svg {
    width: 40px;
    height: 40px;
    color: white;
    transform: scale(0.5);
    transition: transform var(--transition-medium);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item:hover .overlay svg {
    transform: scale(1);
}

/* =============== LINKS / FOOTER =============== */
.links-section {
    background-color: var(--color-primary-dark);
    padding: 80px 0 40px;
    color: var(--color-white);
    text-align: center;
}

.text-white {
    color: var(--color-white) !important;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.social-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 40px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 220px;
    transition: var(--transition-medium);
}

.social-card svg,
.social-card img.social-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.social-card img.social-icon {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-dark);
}

.social-card span {
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.social-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* =============== ANIMATIONS =============== */
@keyframes fadeInUpper {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== RESPONSIVE =============== */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .profile-pic {
        width: 225px;
        height: 225px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    /* Mobile menu */
    .mobile-menu-btn {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-primary-dark);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-medium);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    nav a {
        font-size: 1.5rem;
        color: var(--color-white);
    }

    header.scrolled nav a {
        color: var(--color-white);
    }

    nav.active {
        right: 0;
    }

    /* Animate hamburger to X */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--color-white);
    }
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--color-white);
    }
}
