:root {
    --royal-purple: #7d5fff;
    --royal-blue: #4b7bec;
    --royal-silver: #e2e2e2;
    --royal-white: #ffffff;
    --royal-dark: #1e1e2d;
    --royal-glow: 0 0 20px rgba(125, 95, 255, 0.7);
    --royal-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-glow: 0 0 30px rgba(75, 123, 236, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--royal-dark);
    color: var(--royal-silver);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--royal-white);
    text-shadow: var(--royal-glow);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Updated Header Styles */
.royal-header {
    position: fixed;
    top: -100px; /* Start hidden */
    width: 100%;
    padding: 1rem 0;
    background: rgba(30, 30, 45, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--royal-shadow);
    transition: transform 0.4s ease;
}

.royal-header.visible {
    transform: translateY(100px); /* Slide down into view */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.royal-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(var(--royal-glow));
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--royal-silver);
    text-shadow: var(--royal-glow);
}

/* Always show hamburger menu */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--royal-silver);
    transition: all 0.3s ease;
    box-shadow: var(--royal-glow);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hide regular nav menu on all screens */
.nav-menu {
    display: none;
}

/* Mobile menu styles (applies to all screens) */
.royal-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(30, 30, 45, 0.98);
    backdrop-filter: blur(10px);
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.4s ease;
    z-index: 1000;
    overflow-y: auto;
}

.royal-nav.active {
    right: 0;
}

.nav-menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.nav-menu-mobile li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(125, 95, 255, 0.1);
    color: var(--royal-silver);
    transition: all 0.3s ease;
}

.nav-menu-mobile li a:hover {
    background: rgba(125, 95, 255, 0.2);
    color: var(--royal-white);
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem; /* Adjusted for hidden header */
    position: relative;
    background: radial-gradient(ellipse at center, var(--royal-dark) 0%, #0a0a1a 100%);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--royal-silver), var(--royal-white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--royal-silver);
    margin-bottom: 2rem;
    text-shadow: var(--royal-glow);
}

/* YouTube Video Section */
.youtube-video {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, #0a0a1a, var(--royal-dark));
    position: relative;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--royal-shadow);
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 45, 0.4);
    transition: all 0.3s ease;
}

.video-placeholder:hover::before {
    background: rgba(30, 30, 45, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(125, 95, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(125, 95, 255, 0.5);
}

.play-button i {
    color: var(--royal-white);
    font-size: 2.5rem;
    margin-left: 5px;
}

.play-button:hover {
    transform: scale(1.1);
    background: rgba(125, 95, 255, 1);
    box-shadow: 0 0 30px rgba(125, 95, 255, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-video {
        padding: 3rem 1.5rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .youtube-video {
        padding: 2rem 1rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button i {
        font-size: 1.5rem;
    }
}

/* Cards Section */
.cards-section {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--royal-dark), #0a0a1a);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.royal-card {
    background: rgba(30, 30, 45, 0.7);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(125, 95, 255, 0.3);
    box-shadow: var(--royal-shadow);
}

.royal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(75, 123, 236, 0.4);
    border-color: var(--royal-purple);
}

.card-icon {
    font-size: 3rem;
    color: var(--royal-silver);
    margin-bottom: 1.5rem;
    text-shadow: var(--royal-glow);
}

.royal-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.royal-card p {
    color: var(--royal-silver);
    opacity: 0.9;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(125, 95, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.royal-card:hover .card-glow {
    opacity: 1;
}

/* Modal Styles */
.royal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(to bottom, #1e1e2d, #0a0a1a);
    border-radius: 15px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--royal-purple);
    box-shadow: var(--royal-glow);
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--royal-silver);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--royal-white);
    transform: rotate(90deg);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(30, 30, 45, 0.8);
    border: 1px solid var(--royal-purple);
    border-radius: 8px;
    color: var(--royal-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--royal-blue);
    box-shadow: 0 0 10px rgba(75, 123, 236, 0.5);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--royal-silver);
    cursor: pointer;
}

.royal-btn {
    padding: 1rem 2rem;
    background: linear-gradient(to right, var(--royal-purple), var(--royal-blue));
    color: var(--royal-white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(125, 95, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.royal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(125, 95, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .royal-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .royal-nav {
        width: 100%;
    }
}

/* Footer Styles */
.royal-footer {
    background: linear-gradient(to bottom, #0a0a1a, #000000);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(125, 95, 255, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-card {
    background: rgba(30, 30, 45, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(125, 95, 255, 0.3);
    box-shadow: var(--royal-shadow);
    transition: all 0.3s ease;
}

.footer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(75, 123, 236, 0.4);
}

.logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.footer-logo {
    width: calc(100% - 20px);
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(var(--royal-glow));
}

.footer-logo-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--royal-silver);
    text-shadow: var(--royal-glow);
}

.footer-bottom a {
    color: var(--royal-white) !important;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--royal-purple) !important;
    text-shadow: var(--royal-glow);
}

.contact-card h3, .policies-card h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.contact-links, .policy-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links a, .policy-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: rgba(125, 95, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-links a:hover, .policy-links a:hover {
    background: rgba(125, 95, 255, 0.2);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(125, 95, 255, 0.1);
    color: var(--royal-silver);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-card {
        padding: 1.5rem;
    }
    
    .footer-logo {
        max-width: 120px;
    }
}