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

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    html, body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

body {
    font-family: 'Playfair Display', serif;
    position: relative;
    background: #000;
    overflow-x: hidden;
}

/* Enable scrolling on mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-logo {
    height: clamp(60px, 10vh, 100px);
    width: auto;
    max-width: 300px;
    z-index: 2;
    position: relative;
}

.loading-circle {
    position: absolute;
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
    border: 2px solid rgba(86, 252, 138, 0.3);
    border-top-color: #56FC8A;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    z-index: 1;
}

.loading-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #56FC8A;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(86, 252, 138, 0.8);
}

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

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    /* Ensure proper scaling on all devices */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Responsive video container adjustments */
@media (max-width: 768px) {
    .video-background {
        width: 100vw;
        height: 100vh;
        min-width: 100%;
        min-height: 100%;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .video-background {
        width: 100vw;
        height: 100vh;
    }
}

/* Video Background - Canvas and Video */
.bg-video {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    display: block;
    opacity: 1;
    z-index: -1;
    /* Hide native controls */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Canvas specific styling */
#bgCanvas {
    min-width: 100%;
    min-height: 100%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    display: block;
    opacity: 1;
    z-index: -1;
}

/* Hide native video controls completely */
.bg-video::-webkit-media-controls {
    display: none !important;
}

.bg-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.bg-video::-webkit-media-controls-panel {
    display: none !important;
}

.bg-video::-webkit-media-controls-play-button {
    display: none !important;
}

.bg-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.bg-video::-webkit-media-controls-timeline {
    display: none !important;
}

.bg-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.bg-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.bg-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.bg-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.bg-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Hide controls in Firefox */
.bg-video::-moz-media-controls {
    display: none !important;
}

/* Ensure no controls attribute shows */
video:not([controls]) {
    -webkit-appearance: none;
}

/* Additional mobile-specific hiding - ensure NO play button appears */
.bg-video {
    /* Prevent any native play overlay on iOS */
    -webkit-tap-highlight-color: transparent;
}

/* Hide any potential play button overlays on mobile */
.bg-video::before,
.bg-video::after {
    display: none !important;
    content: none !important;
}

/* Ensure video poster/thumbnail doesn't show play button */
.bg-video[poster] {
    pointer-events: none;
}

/* Mobile Safari specific - hide any play indicators */
@media (max-width: 768px) {
    .bg-video {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        /* Aggressively hide all controls */
        -webkit-appearance: none;
        appearance: none;
    }
    
    /* Ensure no tap-to-play overlay */
    .bg-video::-webkit-media-controls-overlay-play-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    /* Hide any iOS play button */
    .bg-video::-webkit-media-controls-start-playback-button {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Chrome Android specific - hide all controls aggressively */
@media (max-width: 768px) {
    .bg-video {
        /* Chrome: Hide all media controls */
        -webkit-media-controls: none !important;
        -webkit-media-controls-enclosure: none !important;
    }
    
    /* Chrome: Hide play button overlay */
    .bg-video::-webkit-media-controls-overlay-enclosure {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Chrome: Ensure no controls panel */
    .bg-video::-webkit-media-controls-panel {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Additional aggressive hiding for all browsers */
.bg-video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.bg-video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Responsive video adjustments for different screen sizes */
@media (max-width: 768px) {
    .bg-video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .bg-video {
        width: 100%;
        height: 100%;
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Large screens */
@media (min-width: 1920px) {
    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Tall screens (portrait tablets, etc.) */
@media (max-height: 600px) and (orientation: portrait) {
    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }
}

/* Ultra-wide screens */
@media (min-width: 2560px) {
    .bg-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Performance optimization for mobile */
@media (max-width: 768px) {
    .bg-video {
        /* Optimize rendering on mobile */
        -webkit-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0);
        will-change: transform;
    }
    
    .video-background {
        /* Hardware acceleration */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}



/* Overlay for better text readability */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(0.5rem, 2vh, 2rem);
}

@media (max-width: 768px) {
    .container {
        min-height: 100vh;
        height: auto;
        overflow: visible;
        /* Ensure footer is visible and scrollable */
        padding-bottom: 2rem;
    }
}

/* Header with Logo */
.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(0.5rem, 2vh, 1.5rem) 0;
    padding-left: clamp(0.8rem, 2vw, 2rem);
    flex-shrink: 0;
}

.logo {
    height: clamp(45px, 7vh, 70px);
    width: auto;
    max-width: 250px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(0.5rem, 2vh, 2rem) 0 clamp(5rem, 10vh, 10rem) 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    min-height: 0;
    overflow: visible;
}

/* Ensure scrolling works on mobile */
@media (max-width: 768px) {
    .main-content {
        overflow: visible;
        padding-bottom: clamp(2rem, 5vh, 4rem);
    }
}

/* Headline */
.headline {
    font-family: 'Playfair Display', serif;
    font-weight: 100;
    font-size: clamp(2.5rem, 9vh, 7rem);
    line-height: 1.15;
    margin-bottom: clamp(0.5rem, 2vh, 2rem);
    background: linear-gradient(180deg, #ffffff 0%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Description */
.description {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: clamp(1.1rem, 2.8vh, 2rem);
    line-height: 1.4;
    margin-bottom: clamp(0.5rem, 1.5vh, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
}

/* Tagline */
.tagline {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vh, 1.6rem);
    margin-bottom: clamp(3rem, 7vh, 7rem);
    color: #56FC8A;
    font-style: italic;
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vh, 1.5rem) clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(135deg, #56FC8A 0%, #6AFF9E 50%, #56FC8A 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(1rem, 2.2vh, 1.5rem);
    line-height: 1;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(86, 252, 138, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    40% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 50%,
        rgba(0, 200, 255, 0.08) 70%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 50px;
    pointer-events: none;
}

.cta-button:hover {
    background: linear-gradient(135deg, #46DC78 0%, #5AEE8C 50%, #46DC78 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(86, 252, 138, 0.4), 0 0 25px rgba(0, 200, 255, 0.15);
}

.cta-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    width: 100%;
    padding: clamp(0.5rem, 2vh, 2rem) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

/* Ensure footer is visible on mobile */
@media (max-width: 768px) {
    .footer {
        padding: clamp(1rem, 3vh, 2rem) clamp(1rem, 4vw, 2rem);
        margin-top: 2rem;
        min-height: auto;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #56FC8A;
}

.email-link {
    color: #56FC8A;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    color: #46DC78;
}

.copy-button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.copy-button:hover {
    border-color: #56FC8A;
    color: #56FC8A;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1.2vh, 0.9rem);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .headline {
        font-size: clamp(1.8rem, 6vw, 3rem);
        line-height: 1.2;
        margin-bottom: clamp(0.8rem, 2vh, 1.5rem);
    }

    .description {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        line-height: 1.5;
        margin-bottom: clamp(0.8rem, 2vh, 1.2rem);
        padding: 0 1rem;
    }

    .tagline {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
        margin-bottom: clamp(2rem, 5vh, 4rem);
    }

    .cta-button {
        padding: clamp(0.8rem, 2vh, 1rem) clamp(2rem, 6vw, 3rem);
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }

    .logo {
        height: clamp(35px, 5vh, 50px);
    }

    .main-content {
        padding: clamp(1rem, 3vh, 2rem) 0 clamp(3rem, 6vh, 5rem) 0;
    }

    .header {
        padding: clamp(0.8rem, 2vh, 1.2rem) 0;
        padding-left: clamp(1rem, 3vw, 1.5rem);
    }

    .footer {
        padding: clamp(1rem, 2vh, 1.5rem) 0;
    }
}

/* Responsive Design - Height-based adjustments */
@media (max-height: 600px) {
    .headline {
        font-size: clamp(2rem, 7vh, 4.5rem);
        margin-bottom: clamp(0.3rem, 1vh, 1rem);
    }

    .description {
        font-size: clamp(0.9rem, 2.2vh, 1.5rem);
        margin-bottom: clamp(0.3rem, 1vh, 1rem);
    }

    .tagline {
        font-size: clamp(0.8rem, 2vh, 1.3rem);
        margin-bottom: clamp(2rem, 5vh, 5rem);
    }

    .cta-button {
        padding: clamp(0.8rem, 2vh, 1.2rem) clamp(2rem, 4vw, 3rem);
        font-size: clamp(0.9rem, 2vh, 1.3rem);
    }
}

@media (max-height: 400px) {
    .headline {
        font-size: clamp(1.5rem, 6vh, 3rem);
        line-height: 1.1;
    }

    .description {
        font-size: clamp(0.8rem, 1.8vh, 1.2rem);
    }

    .tagline {
        font-size: clamp(0.7rem, 1.6vh, 1.1rem);
        margin-bottom: clamp(1.5rem, 4vh, 4rem);
    }
}

/* Cross-browser compatibility */
@supports not (background-clip: text) {
    .headline {
        color: #ffffff;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state - video visible immediately */
.video-background video {
    opacity: 1;
    transition: none;
}

.video-background video.loaded {
    opacity: 1;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: clamp(2rem, 4vh, 3rem);
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 136, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(40, 40, 40, 0.8);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(60, 60, 60, 0.9);
    color: #56FC8A;
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 3vh, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

.email-field {
    background: rgba(30, 30, 30, 0.8);
    border-radius: 12px;
    padding: clamp(1.5rem, 3vh, 2rem) clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-address {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 3.5vh, 2.2rem);
    color: #56FC8A;
    text-align: center;
}

.email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(0.9rem, 2vh, 1.2rem) clamp(2rem, 4vw, 3rem);
    background: #56FC8A;
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 12px;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(1rem, 2vh, 1.3rem);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.email-button:hover {
    background: #46DC78;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        padding: clamp(1.5rem, 3vh, 2.5rem);
        width: 95%;
    }

    .modal-title {
        font-size: clamp(1rem, 2.5vh, 1.5rem);
        margin-bottom: 1.5rem;
    }

    .email-field {
        padding: clamp(1.2rem, 2.5vh, 1.8rem) clamp(1.2rem, 2.5vw, 1.8rem);
    }

    .email-address {
        font-size: clamp(1.2rem, 3vh, 1.8rem);
    }
}
