/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #111;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    min-height: -webkit-fill-available;
}

/* Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    nav {
        padding: 1rem 30%;
        max-width: none;
        margin: 0;
    }
}

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

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #111;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 4.5rem;
    left: 0;
    transform: none;
    width: 100%;
    height: calc(100% - 4.5rem);
    background-image: url('images/Design-HOME.jpg');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* v2: žiadny farebný overlay, nech obraz nie je prekrývaný */
    background: transparent;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #111;
    padding: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    position: relative;
    animation: moveAcross 6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
    will-change: transform, opacity;
}

.hero p {
    font-size: 1.8rem;
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0;
    position: relative;
    animation: moveAcross 6s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s forwards;
    will-change: transform, opacity;
}

.reagan-quote {
    position: absolute;
    bottom: calc(4rem + 1cm + 4mm);
    right: 4rem;
    text-align: right;
    max-width: 250px;
    opacity: 0;
    animation: fadeIn 3s ease-in-out 0.5s forwards;
    z-index: 1001;
}

.reagan-quote p {
    font-size: 1.05rem;
    margin: 0;
    color: #000000;
    text-shadow: none;
    animation: none;
    opacity: 1;
    line-height: 1.4;
}

.quote-attribution {
    font-size: 0.9rem !important;
    font-style: italic;
    margin-top: 0.3rem !important;
    opacity: 0.9;
    color: #000000;
}

@keyframes moveAcross {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    20% {
        opacity: 1;
        transform: translateX(-70%);
    }
    40% {
        opacity: 1;
        transform: translateX(0%);
    }
    60% {
        opacity: 1;
        transform: translateX(0%);
    }
    80% {
        opacity: 1;
        transform: translateX(70%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 0.8;
    }
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    margin-top: -5mm;
}

.about-content h2,
.about-content p {
    width: 100%;
    text-align: center;
}

.about h2 {
    color: #111;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

/* Card fan – in contact section only, left of center and a bit up */
.card-fan.contact-fan {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    margin-top: -2rem;
    width: 520px;
    max-width: 45vw;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.card-fan.contact-fan .card-fan-item {
    position: absolute;
    width: 200px;
    max-width: 28vw;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-fan-item img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.card-fan-left {
    left: 0;
    bottom: 10%;
    transform: rotate(-12deg);
    z-index: 1;
}

.card-fan-mid {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    z-index: 2;
    width: 220px;
    max-width: 32vw;
}

.card-fan-right {
    right: 0;
    bottom: 10%;
    transform: rotate(10deg);
    z-index: 1;
}

.pitch-link {
    display: inline-block;
    color: #000000;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.pitch-link:hover {
    color: #000000;
}

/* Pitch Section */
.pitch {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 0, 5, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.pitch.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.pitch-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.pdf-container {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-fallback {
    text-align: center;
    color: #666;
    padding: 20px;
}

.pdf-container iframe {
    border: none;
    width: 100%;
    height: 100%;
    display: block;
}

.close-pitch {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3498db;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 2001;
}

.close-pitch:hover {
    background: #2980b9;
}

/* Mobile optimization for pitch deck */
@media (max-width: 768px) {
    .pitch-content {
        width: 95%;
        height: 95%;
    }
    
    .close-pitch {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* Contact Section – fan left, content right; align content with nav Contact, a bit lower */
.contact {
    position: relative;
    min-height: 100vh;
    padding: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    scroll-snap-align: start;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

@media (min-width: 769px) {
    .contact-content.contact-align-right {
        margin: 0;
        margin-right: 30%;
        margin-top: 12rem;
        text-align: right;
    }

    .contact-align-right .contact-info {
        align-items: flex-end;
    }
}

.contact h2 {
    margin-bottom: 2rem;
    color: #111;
    font-size: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-email, .contact-phone {
    font-size: 1.5rem;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-email:hover, .contact-phone:hover {
    color: #000000;
}

.contact-email i, .contact-phone i {
    font-size: 1.2em;
}

/* Footer */
footer {
    background-color: #ffffff;
    color: #111;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000;
    border-top: 1px solid #e5e5e5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo span {
        display: none;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.4rem;
    }

    .hero::before {
        background-size: cover;
        background-position: top center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .reagan-quote {
        bottom: 10rem;
        right: 1rem;
        max-width: 250px;
        background: none;
        padding: 0;
        z-index: 1001;
        opacity: 1;
        animation: none;
    }
    
    .reagan-quote p {
        font-size: 0.7rem;
    }
    
    .quote-attribution {
        font-size: 0.6rem !important;
    }

    .card-fan.contact-fan {
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 280px;
        height: 200px;
    }

    .card-fan.contact-fan .card-fan-item {
        width: 100px;
        max-width: 30vw;
    }

    .card-fan-mid {
        width: 110px;
        max-width: 34vw;
    }

    .about-content {
        margin-top: -4cm !important;
        padding: 0.5rem !important;
        gap: 0.5rem !important;
        max-width: 100vw !important;
    }
    .about h2 {
        font-size: 1.8rem !important;
        margin-bottom: 0.3rem !important;
    }
    .about p {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem !important;
        line-height: 1.2 !important;
    }
    .card-and-links {
        gap: 0.3rem !important;
        margin-top: 2.3rem !important;
        padding: 0 !important;
        min-height: unset !important;
        max-width: 100vw !important;
    }
    .card-container {
        width: 148.5px !important;
        height: 207.9px !important;
        margin: 0 !important;
    }
    .right-content {
        width: 148.5px !important;
        min-width: 148.5px !important;
        max-width: 148.5px !important;
        height: 207.9px !important;
        margin-left: 0.3rem !important;
        padding: 0 !important;
    }
    .coming-soon-text {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    .legions-text {
        font-size: 0.99rem !important;
    }
    .coming-text {
        font-size: 0.594rem !important;
    }
    .pitch-links {
        width: 148.5px !important;
        align-items: center !important;
        margin: 2cm 0 0 0 !important;
        gap: 0.1rem !important;
        position: static !important;
        text-align: center !important;
    }
    .pitch-link:not(.mobile-version .pitch-link) {
        font-size: 0.51rem !important;
    }
    .mobile-version .pitch-link {
        font-size: 1rem !important;
        margin-top: 0.2rem !important;
        width: 100% !important;
        text-align: center !important;
        display: block !important;
    }

    /* Fix for iOS notch */
    @supports (padding: max(0px)) {
        .hero, .about, .contact {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* Remove iPhone-specific font-size overrides for moving text */
@media only screen 
    and (device-width: 375px) 
    and (device-height: 812px) 
    and (-webkit-device-pixel-ratio: 3),
    only screen 
    and (device-width: 414px) 
    and (device-height: 896px) 
    and (-webkit-device-pixel-ratio: 2),
    only screen 
    and (device-width: 390px) 
    and (device-height: 844px) 
    and (-webkit-device-pixel-ratio: 3) {
    /* Removing the override to allow our mobile styles to work */
}

.pitch-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-version {
    margin-top: 0.5rem;
}

.mobile-version .pitch-link {
    font-size: 1rem;
    color: #3498db;
    opacity: 0.9;
}

.mobile-version .pitch-link:hover {
    opacity: 1;
}

.mobile-version .fa-mobile-alt {
    margin-right: 0.5rem;
}

/* Rotating Card Animation */
.card-and-links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    gap: 1.5cm;
}

.card-container {
    position: relative;
    width: 280px;
    height: 392px;
    perspective: 1000px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 5/7;
}

.rotating-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 9s infinite linear;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-front {
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
}

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

.coming-soon-text {
    position: relative;
    text-align: right;
    margin-bottom: 2rem;
    opacity: 0;
    width: auto;
}

.legions-text {
    display: block;
    font-size: 3.3rem;
    font-weight: bold;
    color: #111;
    text-shadow: none;
    margin-bottom: 0.5rem;
    text-align: right;
}

.coming-text {
    display: block;
    font-size: 1.5rem;
    color: #111;
    text-shadow: none;
    text-align: right;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.coming-soon-text {
    animation: fadeInOut 7s ease-in-out 7.5s forwards;
}

/* Add dimming overlay for the entire page during animation */
.page-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: none;
}

@keyframes dimPage {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
    }
}

.right-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    width: auto;
    margin-left: auto;
    padding-right: 0;
    text-align: right;
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .card-container {
        width: 360px;
        height: 504px;
        aspect-ratio: 5/7;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .card-container {
        width: 140px;
        height: 196px;
        aspect-ratio: 5/7;
    }
}

/* iPhone specific adjustments */
@media only screen 
    and (device-width: 375px) 
    and (device-height: 812px) 
    and (-webkit-device-pixel-ratio: 3),
    only screen 
    and (device-width: 414px) 
    and (device-height: 896px) 
    and (-webkit-device-pixel-ratio: 2),
    only screen 
    and (device-width: 390px) 
    and (device-height: 844px) 
    and (-webkit-device-pixel-ratio: 3) {
    
    .card-container {
        width: 120px;
        height: 168px;
        aspect-ratio: 5/7;
    }
}

/* REMOVE THIS DUPLICATE MEDIA QUERY BLOCK */
