:root {
    --bg-color: #070709;
    --text-primary: #F8F8F8;
    --text-secondary: #9CA3AF;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================================
   BACKGROUND EFFECTS (Mashes & Orbs)
   ========================================================================= */
.mesh-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 50%);
    z-index: 0;
}

.glow-orb {
    position: fixed;
    width: 400px;
    height: 400px;
    background: var(--accent);
    filter: blur(180px);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
    animation: floatOrb 12s ease-in-out infinite alternate;
}

.glow-orb.top {
    top: -100px;
    right: -100px;
}

.glow-orb.bottom {
    bottom: -150px;
    left: -150px;
    animation-delay: -6s;
    background: #8b5cf6;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-40px, 40px) scale(1.1); }
}

/* =========================================================================
   MAIN GLASSMORPHISM CARD
   ========================================================================= */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 80px 100px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   LOGO & JUMPING Q
   ========================================================================= */
.logo-container {
    margin-bottom: 24px;
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 7.5rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    display: flex;
    align-items: baseline;
    justify-content: center;
    line-height: 1;
}

.animated-q {
    display: inline-block;
    color: #60a5fa; /* fallback */
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #8B5CF6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Elegant jumping animation */
    transform-origin: bottom center;
    animation: jumpQ 3s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
    
    /* Using drop-shadow on the element makes it glow while keeping background-clip text */
    filter: drop-shadow(0 15px 25px rgba(59, 130, 246, 0.4));
    
    padding-right: 8px; /* space between Q and B */
}

@keyframes jumpQ {
    0%, 100% {
        transform: translateY(0) scaleY(1) scaleX(1);
    }
    10% {
        transform: translateY(0) scaleY(0.85) scaleX(1.1); /* Squish down before jump */
    }
    28% {
        transform: translateY(-50px) scaleY(1.05) scaleX(0.95); /* Highest point */
    }
    45% {
        transform: translateY(0) scaleY(0.9) scaleX(1.1); /* Land and squish */
    }
    55% {
        transform: translateY(-12px) scaleY(1.02) scaleX(0.98); /* Slight rebound bounce */
    }
    65%, 100% {
        transform: translateY(0) scaleY(1) scaleX(1); /* Return to rest */
    }
}

.logo-remainder {
    color: var(--text-primary);
}

/* =========================================================================
   TEXT & BUTTONS
   ========================================================================= */
.subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn:hover {
    background: #fff;
    color: var(--bg-color);
    border-color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

/* =========================================================================
   RESPONSIVE DESIGN
   ========================================================================= */
@media (max-width: 768px) {
    .container {
        padding: 60px 40px;
    }
    .logo-text { 
        font-size: 4.5rem; 
    }
    .subtitle {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 50px 20px;
        width: 90%;
    }
    .logo-text { 
        font-size: 3.5rem; 
    }
    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}

/* =========================================================================
   NEW SECTIONS & ARROW
   ========================================================================= */
.scroll-container {
    width: 100%;
    height: 200vh;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.hero-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
    transition: color 0.3s ease;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 20;
}
.scroll-arrow:hover {
    color: var(--text-primary);
}

.up-arrow {
    bottom: auto;
    top: 40px;
    animation: bounceUp 2s infinite;
}

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

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

.repasit-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.secondary-container {
    padding: 60px 80px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Logo from REPASit exact match */
.logo-group-repasit {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: center;
}

.logo-repasit {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem; 
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    color: #fff;
}

.logo-repasit .accent-repasit {
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: #ffffff;
    padding: 2px 14px;
    border-radius: 12px;
    font-size: 3.2rem;
    margin-left: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.sub-logo-repasit {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: normal;
    color: #3b82f6;
    text-transform: lowercase;
    opacity: 0.8;
    margin-left: 8px;
    animation: gentleLevitate 3s ease-in-out infinite alternate;
}

@keyframes gentleLevitate {
    0% { transform: translateY(4px); }
    100% { transform: translateY(12px); }
}

.repasit-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 35px;
    font-weight: 300;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: #2563EB;
    color: #fff;
}

/* Responzívny dizajn pre sekciu Repasit */
@media (max-width: 768px) {
    .secondary-container {
        padding: 50px 30px;
    }
    .logo-repasit {
        font-size: 3rem;
    }
    .logo-repasit .accent-repasit {
        font-size: 2.5rem;
        padding: 2px 10px;
    }
    .sub-logo-repasit {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .secondary-container {
        padding: 40px 20px;
    }
    .logo-group-repasit {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
    .logo-repasit {
        font-size: 2.2rem;
    }
    .logo-repasit .accent-repasit {
        font-size: 1.8rem;
        padding: 2px 8px;
    }
    .sub-logo-repasit {
        font-size: 1.2rem;
        margin-left: 0;
    }
}
