/* Import Google Fonts as alternatives */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700;800;900&display=swap');

/* Font faces - fallback to Google Fonts if local fonts not available */
@font-face {
    font-family: 'FutoSans-Bold';
    src: url('/fonts/FutoSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FutoSans-Regular';
    src: url('/fonts/FutoSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FutoSans-LightItalic';
    src: url('/fonts/FutoSans-LightItalic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image: url('/img/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
}

.hero-section {
    background: transparent;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.navbar {
    background: transparent;
    backdrop-filter: none;
    border-bottom: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
}

.nav-link {
    background: white;
    color: #333 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(84, 28, 135, 0.15);
    border: 1px solid transparent;
}

.nav-link:hover {
    background: white;
    color: #541C87 !important;
    box-shadow: 0 4px 12px rgba(84, 28, 135, 0.25);
}

.nav-link.active {
    background: white;
    color: #333 !important;
    border: 1px solid #000;
    box-shadow: 0 2px 8px rgba(84, 28, 135, 0.15);
}

.hero-content {
    text-align: center;
    color: #333;
    z-index: 2;
    position: relative;
}

.hero-title {
    color: #171717;
    text-align: center;
    font-family: 'FutoSans-Bold', 'Inter', 'Work Sans', 'Montserrat', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: 72px; /* 112.5% */
    letter-spacing: 0.48px;
    margin-bottom: 2rem;
}

.hero-main-text {
    color: #171717;
    text-align: center;
    font-family: 'FutoSans-Bold', 'Inter', 'Work Sans', 'Montserrat', sans-serif;
    font-size: 64px;
    font-style: normal;
    font-weight: 700;
    line-height: 72px; /* 112.5% */
    letter-spacing: 0.48px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.hero-animation {
    text-align: center;
    margin: 2rem 0;
    z-index: 2;
    position: relative;
}

.hero-animation img {
    width: 400px;
    height: 400px;
    object-fit: contain;
}

.highlight {
    color: #0099BA;
    font-family: 'FutoSans-LightItalic', 'Inter', 'Work Sans', 'Montserrat', sans-serif;
    font-size: 64px;
    font-style: italic;
    font-weight: 400;
    line-height: 72px;
    letter-spacing: 0.48px;
}

.content-section {
    padding: 5rem 0;
    background: white;
}

.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Content page styling */
.content-page {
    padding-top: 80px;
    min-height: 60vh;
    padding-bottom: 0;
}

.content-page .container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    box-shadow: none;
}

/* About page specific styles */
.about-intro {
}

.about-mission {
}

.about-vision {
    background: linear-gradient(135deg, #541C87 0%, #7C3AED 100%);
}



.about-strengths {
    background: linear-gradient(135deg, #541C87 0%, #7C3AED 100%);
}

/* Grayscale filter for profile images */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* NKFIA logo at the bottom of the page content */
.nkfia-logo {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 999;
    width: auto; /* Eredeti méret megtartása */
    height: auto;
    transition: all 0.3s ease;
    pointer-events: none; /* Logo nem akadályozza a kattintást */
}

.nkfia-logo:hover {
    opacity: 1;
    transform: scale(1.05); /* Enyhe nagyítás hover-nél */
}

.nkfia-logo img {
    width: auto; /* Eredeti szélesség */
    height: auto; /* Eredeti magasság */
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Enyhe árnyék a jobb láthatóságért */
}

/* 1366x768 resolution fix for hero section overlap */
@media (min-width: 1200px) and (max-width: 1400px) and (min-height: 700px) and (max-height: 800px) {
    .hero-section {
        padding-top: 100px; /* Extra padding for navbar clearance */
    }
    
    .hero-title {
        font-size: 3rem; /* Slightly smaller for better fit */
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-main-text {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .highlight {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .hero-animation img {
        width: 300px; /* Smaller animation for compact layout */
        height: 300px;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-main-text {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .highlight {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-animation img {
        width: 250px;
        height: 250px;
    }
    
    .nav-link {
        margin: 0 0.5rem;
    }
    
    .content-page .container {
        padding: 2rem 1rem;
    }
    
    /* Mobile responsive NKFIA logo */
    .nkfia-logo {
        width: 50vw; /* Mobilon a képernyő szélességének 30%-a */
        bottom: 0px; /* Mobilon is ragadjon az aljához */
        right: 0px; /* Mobilon is ragadjon a jobb szélhez */
        position: fixed; /* Fixed pozíció a jobb rögzítésért */
        max-width: 200px; /* Maximum méret nagy képernyőkön */
        min-width: 60px; /* Minimum méret kis képernyőkön */
    }
    
    .nkfia-logo img {
        width: 100%; /* A container szélességét követi */
        height: auto;
        max-width: none; /* Nincs maximális szélesség korlátozás */
    }
}

/* Scroll Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered animation delays for multiple elements */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.5s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.6s; }

/* Special animation for sections */
section.animate-on-scroll {
    transition-delay: 0s;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}