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

body {
    background-color: black;
    overflow-x: hidden;
    width: 100vw;
    margin: 0;
}

#fullscreen-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.text-positioning {
    position: absolute;
    top: 333px;
    left: 200px;
    color: white;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    pointer-events: none;
    z-index: 10;
    white-space: pre-line;
    text-transform: uppercase;
}

.text-overlay {
    opacity: 0;
}

.big-arrow {
    font-size: 164px !important;
    left: 400px;
    top: 300px;
    animation: bounceRight 1.2s ease-in-out infinite;
}

.bigger-arrow {
    font-size: 200px !important;
    left: 450px;
    top: 300px;
    animation: bounceRight 1.2s ease-in-out infinite;
}

@keyframes bounceRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

@keyframes bounceVeryRight {
    0%, 100% {
        transform: translateX(20vw);
    }
    50% {
        transform: translateX(30vw);
    }
}

.text-overlay.visible {
    opacity: 1;
}

/* Video container to hold video and overlays */
.video-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Icon Menu */
.icon-menu {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

/* Hide icons by default */
.icon-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    opacity: 0;
    filter: blur(10px);
    transform: scale(1);
    pointer-events: none;
}

/* Reveal animation */
@keyframes iconReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: scale(5);
    }
    50% {
        opacity: 1;
        filter: blur(0px);
    }
    70% {
        transform: scale(0.85);
    }
    85% {
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

/* Reveal states */
.show-author .icon-menu a[href="#author"],
.show-blog .icon-menu a[href="#blog"],
.show-news .icon-menu a[href="#news"],
html.show-news .icon-menu a[href="#news"] {
    animation: iconReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0s;
    pointer-events: auto;
}

html.show-contact .icon-menu a[href="#contact"] {
    animation: iconReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0s;
    pointer-events: auto;
}

/* Pause button - always visible at bottom right */
a.pause-button {
    opacity: 0.3;
    position: absolute;
    bottom: 60px;
    right: 40px;
    top: auto;
    transform: scale(1);
    filter: blur(0px);
    pointer-events: auto;
    z-index: 100;
}

a:hover.pause-button,
.icon-menu a:hover {
    transform: scale(1.1) !important;
    transition: transform 0.2s ease;
}

a.pause-button img,
.icon-menu img {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
}

a.pause-button .icon-default,
.icon-menu .icon-default {
    display: block;
}

a.pause-button .icon-hover,
.icon-menu .icon-hover {
    display: none;
}

a:hover.pause-button .icon-default,
.icon-menu a:hover .icon-default {
    display: none;
}

a:hover.pause-button .icon-hover,
.icon-menu a:hover .icon-hover {
    display: block;
}

/* Specific icon adjustments */
.icon-menu a[href="#blog"] img {
    margin-left: 5px;
}

/* Skip to Menu button */
.skip-to-menu {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 18px 24px;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 1;
}

.skip-to-menu:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.skip-to-menu.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Logo */
.logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 100;
    width: 300px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 1;
}

/* Content sections */
.content-sections {
    background-color: white;
    color: black;
    padding: 80px 20px;
}

.content-section {
    max-width: 900px;
    margin: 0 auto 120px auto;
    scroll-margin-top: 20px;
}

.content-section:last-child {
    margin-bottom: 80px;
}

.content-section h2 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 40px;
    border-bottom: 4px solid black;
    padding-bottom: 20px;
}

.content-section h3 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #666;
}

.content-section p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
}

/* Contact Section Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    border: 4px solid black;
    border-radius: 16px;
    padding: 30px;
    background-color: white;
}

.contact-card h3 {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    color: black;
    letter-spacing: 1px;
}

.contact-card p {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: black;
}

.contact-card a {
    color: black;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.contact-card a:hover {
    color: #ff6600;
}

.company-address {
    border-top: 1px solid black;
    padding-top: 15px;
    margin-top: 15px;
}

.contact-card {
    border: 4px solid black;
    border-radius: 16px;
    padding: 30px;
    background-color: white;
    position: relative;
}

.contact-cta {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.contact-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: black;
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.contact-cta a:hover {
    background-color: #ff6600;
    transform: scale(1.1);
}

.contact-cta svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.contact-cta a:hover svg {
    opacity: 0;
}

/* Blog Banner Styles */
.blog-banner-link {
    display: block;
    margin-top: 40px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    background: url(https://assets.spiraldust.co.uk/pjl/images/blog-banner.png) center/cover no-repeat;
    height: 141px;
    border-radius: 8px;
}

.blog-banner-link:hover {
    opacity: 0.9;
}

/* Audio Activation Prompt */
.audio-prompt {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.audio-prompt.visible {
    opacity: 0.8;
}

.audio-prompt.hidden {
    opacity: 0;
}

/* Gradient overlay - hidden by default, shown on mobile */
.gradient-overlay {
    display: none;
}

/* Responsive - mobile styles */
@media (max-width: 768px) {
    .video-container {
        width: 100vw;
    }

    #fullscreen-video {
        transition: transform 1.2s ease-in-out;
        width: 200vw;
        transform: translateX(-50vw);
    }

    /* Gradient overlay for mobile */
    .gradient-overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 200px;
        background: linear-gradient(183deg, rgba(75, 58, 88, 0.9) 0%, transparent 70%);
        z-index: 5;
        pointer-events: none;
    }

    .video-container.reveal-book #fullscreen-video {
        transform: translateX(-100vw);
    }
    
    .text-overlay {
        text-align: center;
    }

    .text-positioning {
        top: 50%;
        left: 20px;
        right: 20px;
        transform: translateY(-50%);
        font-size: 32px;
        max-width: calc(100vw - 40px);
        transition: transform 1.2s ease-in-out;
    }
    
    .text-positioning.reveal-book {
        transform: translateY(-50%) translateX(-50vw);
    }
    
    .big-arrow {
        font-size: 100px !important;
        left: 50%;
        top: 50%;
        transform: translateX(20vw);
        animation: bounceVeryRight 1.2s ease-in-out infinite;
    }
    
    .bigger-arrow {
        font-size: 120px !important;
        left: 50%;
        top: 50%;
        transform: translateX(20vw);
        animation: bounceVeryRight 1.2s ease-in-out infinite;
    }
    
    .bigger-arrow.reveal-book {
        transform: translate(-50%, -50%) translateX(-30%);
    }
    
    /* Logo - make bigger on mobile */
    .logo {
        width: 200px;
        top: 20px;
        left: 20px;
    }
    
    /* Icon menu - keep visible and adjust position */
    .icon-menu {
        top: 20px;
        right: 20px;
        gap: 8px;
    }
    
    .icon-menu a {
        width: 45px;
        height: 45px;
    }
    
    .icon-menu img {
        width: 38px;
        height: 38px;
    }
    
    /* Skip button */
    .skip-to-menu {
        top: 20px;
        right: 20px;
        padding: 17px 18px;
        font-size: 14px;
    }
    
    /* Pause button on mobile */
    a.pause-button {
        bottom: 65px;
        right: 20px;
    }
    
    /* Audio prompt */
    .audio-prompt {
        bottom: 80px;
        font-size: 18px;
        left: 20px;
        right: 20px;
        transform: none;
    }
    
    /* Content sections */
    .content-section h2 {
        font-size: 36px;
    }
    
    /* Contact grid - single column on mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Skip link accessibility - visible on focus */
.skip-link:focus {
    left: 0;
    top: 0;
    padding: 1em;
    z-index: 9999;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Ensure video shows poster when paused */
    #fullscreen-video {
        animation: none !important;
    }

    /* Disable arrow bounce animations */
    .big-arrow, .bigger-arrow {
        animation: none !important;
    }
}

/* Visual indicator for reduced motion state */
.video-container.reduced-motion .reduced-motion-message {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 100;
}

.reduced-motion-message {
    display: none;
}

.reduced-motion-message button {
    background: white;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reduced-motion-message button:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.reduced-motion-message button:active {
    transform: scale(0.98);
}

/* Hide pause button when reduced motion is enabled */
.video-container.reduced-motion .pause-button {
    display: none !important;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    /* Footer links - increase contrast */
    footer a {
        color: #333 !important;
        font-weight: bold;
    }

    /* Navigation icons - add semi-transparent backgrounds */
    .icon-menu a,
    a.pause-button {
        background: rgba(0, 0, 0, 0.7);
        border-radius: 8px;
        padding: 8px;
    }

    /* Skip to menu button - stronger background */
    .skip-to-menu {
        background-color: rgba(0, 0, 0, 0.8) !important;
        border: 2px solid white !important;
    }

    /* Logo - add background for better visibility */
    .logo {
        background: rgba(0, 0, 0, 0.6);
        padding: 10px;
        border-radius: 8px;
    }

    /* Text overlays - stronger shadows and backgrounds */
    .text-overlay {
        text-shadow:
            0 0 10px rgba(0, 0, 0, 1),
            0 0 20px rgba(0, 0, 0, 1),
            2px 2px 4px rgba(0, 0, 0, 1),
            -2px -2px 4px rgba(0, 0, 0, 1);
        background: rgba(0, 0, 0, 0.5);
        padding: 10px 20px;
        border-radius: 5px;
    }

    /* Audio prompt - stronger background */
    .audio-prompt {
        background: rgba(0, 0, 0, 0.9) !important;
        font-weight: bold;
    }

    /* Content sections - ensure good contrast */
    .content-section {
        background: white;
        color: #000;
    }

    .content-section h2,
    .content-section h3 {
        color: #000;
    }

    .content-section a {
        color: #0000EE;
        text-decoration: underline;
        font-weight: bold;
    }

    .content-section a:visited {
        color: #551A8B;
    }

    /* Contact cards - stronger borders */
    .contact-card {
        border: 3px solid #333 !important;
    }

    /* Skip link - ensure high visibility on focus */
    .skip-link:focus {
        background: #000 !important;
        color: #fff !important;
        border: 3px solid #fff;
        font-weight: bold;
    }

    /* Reduced motion message - higher contrast */
    .video-container.reduced-motion .reduced-motion-message {
        background: rgba(0, 0, 0, 0.95) !important;
    }

    .reduced-motion-message button {
        border: 2px solid #000 !important;
    }
}
