/* Force uppercase for all main and menu buttons */
.button-container button,
.members-button,
.left-button,
.right-button,
.menu-item {
    text-transform: uppercase !important;
    letter-spacing: 0.06em;
}
/* Performance optimizations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* Improve font rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Better scrolling on mobile */
    -webkit-overflow-scrolling: touch;
    /* Improve text rendering */
    text-rendering: optimizeSpeed;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

main {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    min-height: 100vh; /* Ensure full height on mobile */
    /* Hardware acceleration for better performance */
    transform: translateZ(0);
    will-change: transform;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    /* Improve rendering performance */
    backface-visibility: hidden;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1000;
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

.navbar {
    background: #1a1a1a;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Hardware acceleration */
    transform: translateZ(0);
}

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

.logo h1 {
    color: #ff6b35;
    font-size: 2rem;
    font-weight: bold;
}

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

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #ff6b35;
}

.hero {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    position: relative;
    min-height: 100vh;
    background-color: #1a1a1a;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.fullscreen-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.fullscreen-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    
    /* Improve video quality */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Clean mobile video optimization */
@media (max-width: 767px) {
    .fullscreen-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        position: fixed; /* Better for mobile */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        /* iOS optimizations */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Specific fix for iOS portrait orientation */
@media (max-width: 767px) and (orientation: portrait) {
    .fullscreen-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        /* iOS-specific fixes for portrait */
        position: fixed; /* Use fixed instead of absolute on iOS */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
    }
}

/* For very small mobile screens - fine-tune positioning */
@media (max-width: 480px) {
    .fullscreen-video {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
        object-position: center center;
        /* Additional iOS fixes for small screens */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* iOS Safari video fix - alternative approach */
@media (max-width: 767px) {
    /* Detect iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .fullscreen-video {
            width: 100vw !important;
            height: 100vh !important;
            object-fit: cover !important;
            object-position: center center !important;
            position: fixed !important;
            top: 0 !important;
            left: 0 !important;
            /* Force hardware acceleration */
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
            /* Prevent zoom/stretch */
            -webkit-user-select: none;
            user-select: none;
            /* Ensure proper video sizing */
            max-width: none !important;
            max-height: none !important;
        }
        
        .hero {
            /* Ensure container doesn't interfere */
            overflow: hidden;
            position: relative;
        }
    }
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.button-container {
    position: absolute;
    top: 70%; /* Lowered from 65% to 70% */
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 1.5rem;
    z-index: 10;
    align-items: center;
    padding: 0 20px; /* Add padding for mobile */
    width: 100%;
    max-width: 400px; /* Limit max width */
}

/* Both buttons with elongated oval shape */
.left-button, .right-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 50px; /* Elongated oval shape */
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 100%; /* Full width on mobile */
    /* Performance optimizations */
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
    max-width: 250px; /* Controlled max width */
    white-space: nowrap; /* Prevent text wrapping */
    text-align: center; /* Center the text */
    display: flex; /* Changed from inline-block to flex for perfect centering */
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    box-sizing: border-box; /* Include padding in width calculation */
    min-height: 50px; /* Consistent height */
    line-height: 1; /* Reset line height for better control */
}

/* Left button - light purple */
.left-button {
    background: #b19cd9;
    color: #fff;
}

.left-button:hover {
    background: #9b7bc7;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Right button - off white with light purple text */
.right-button {
    background: #fff;
    color: #222;
}

.right-button:hover {
    background: #e8e8e8;
    color: #9b7bc7;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Keep mobile centered */
@media (max-width: 767px) {
    .button-container {
        left: 50%; /* Keep centered on mobile */
    }
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .button-container {
        flex-direction: row; /* Side by side on tablets */
        gap: 2rem;
        top: 65%;
        left: 50%; /* Keep centered for perfect alignment */
        justify-content: center; /* Center the buttons in container */
        align-items: center; /* Vertically align buttons */
    }
    
    .left-button, .right-button {
        width: auto; /* Auto width to fit content */
        font-size: 1.2rem;
        padding: 16px 45px;
        max-width: 280px; /* Increased for longer text */
        min-width: 200px; /* Ensure consistent minimum size */
        display: flex; /* Maintain flex for perfect text centering */
        align-items: center; /* Perfect vertical centering */
        justify-content: center; /* Perfect horizontal centering */
    }
    
    /* Remove margin-left for cleaner flex alignment */
    .right-button {
        margin-left: 0; /* Reset margin for proper flex centering */
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .button-container {
        top: 65%;
        gap: 3rem;
        left: 50%; /* Keep centered for perfect alignment */
        justify-content: center; /* Center both buttons */
    }
    
    .left-button, .right-button {
        font-size: 1.3rem;
        padding: 18px 50px;
        max-width: 320px; /* Even larger for desktop */
        min-width: 220px;
        display: flex; /* Maintain flex for perfect centering */
        align-items: center; /* Perfect vertical centering */
        justify-content: center; /* Perfect horizontal centering */
    }
    
    /* Remove margin-left for cleaner layout */
    .right-button {
        margin-left: 0; /* No extra margin needed with flex centering */
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .button-container {
        top: 70%;
        gap: 1rem;
        padding: 0 15px;
    }
    
    .left-button, .right-button {
        font-size: 1rem;
        padding: 14px 35px;
        max-width: 220px;
        border-radius: 40px; /* Slightly less rounded on small screens */
    }
    
    /* Reset margin on mobile */
    .right-button {
        margin-left: 0;
    }
}

/* DAO Page Mobile Optimization */
.dao-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: white;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px;
}

.dao-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.dao-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.dao-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.dao-form {
    background: rgba(0, 0, 0, 0.85);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.2rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #b19cd9;
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #9b7bc7;
    box-shadow: 0 0 10px rgba(177, 156, 217, 0.3);
}

.radio-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.bow-dog-fields {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(177, 156, 217, 0.1);
    border-radius: 8px;
    border: 1px solid #b19cd9;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.submit-button, .back-button {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    width: 100%;
}

.submit-button {
    background: #4CAF50;
    color: white;
}

.back-button {
    background: #b19cd9;
    color: white;
}

/* Tablet view for DAO form */
@media (min-width: 768px) {
    .dao-content {
        width: 90%;
        padding: 20px;
    }
    
    .dao-content h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .dao-form {
        padding: 2rem;
    }
    
    .form-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .submit-button, .back-button {
        width: auto;
        padding: 15px 30px;
        font-size: 1.2rem;
    }
}

/* Shop Page Mobile Optimization */
.shop-page {
    background-color: white;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px;
}

.handwritten-text {
    text-align: center;
    color: #333;
    font-family: "Rubik Puddles", system-ui;
    font-weight: 400;
    font-style: normal;
    transform: rotate(-1deg);
}

.silk-sicarios {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.store {
    font-size: 2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.coming {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
}

.soon {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Shop page tablet/desktop */
@media (min-width: 768px) {
    .silk-sicarios {
        font-size: 4rem;
        margin-bottom: 1.5rem;
        letter-spacing: 3px;
    }
    
    .store {
        font-size: 3rem;
        margin-bottom: 1.5rem;
        letter-spacing: 2px;
    }
    
    .coming {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .soon {
        font-size: 2rem;
        letter-spacing: 2px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .silk-sicarios {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .store {
        font-size: 1.5rem;
    }
    
    .coming {
        font-size: 1.3rem;
    }
    
    .soon {
        font-size: 1.1rem;
    }
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999; /* Ensure it's always on top */
}

.hamburger-btn {
    background: rgba(177, 156, 217, 0.9);
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hamburger-btn:hover {
    background: rgba(155, 123, 199, 0.9);
    transform: scale(1.05);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Hamburger Animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.menu-content {
    text-align: center;
}

.menu-item {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem 2rem;
    margin: 1rem 0;
    border-radius: 25px;
    background: rgba(177, 156, 217, 0.8);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: rgba(155, 123, 199, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-color: white;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger-menu {
        top: 15px;
        right: 15px;
    }
    
    .menu-item {
        font-size: 1.5rem;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hamburger-btn {
        width: 35px;
        height: 35px;
    }
    
    .hamburger-line {
        width: 18px;
    }
    
    .menu-item {
        font-size: 1.3rem;
        padding: 0.7rem 1.2rem;
    }
}

/* Footer styling */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    z-index: 100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #b19cd9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #9b7bc7;
    text-decoration: underline;
}

/* Mobile footer */
@media (max-width: 768px) {
    .footer {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .footer {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}