/* TANTRA NEMESIS - Modern MMORPG Website Styles */
/* Inspired by Blade & Soul Heroes design with transparency effects */

@charset "utf-8";

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 50px; /* Account for sticky secondary navbar */
}

/* Enhanced smooth scrolling for all browsers */
* {
    scroll-behavior: smooth;
}

/* Smooth scrolling for webkit browsers */
html {
    -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling for Firefox */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px; /* Account for sticky secondary navbar */
}

/* Smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
}

/* Transparent Navigation */
.transparent-nav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.transparent-nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    height: 80px;
    position: relative;
    overflow: visible;
}

/* Ensure logo stays on the left */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    z-index: 2;
    min-width: fit-content;
    justify-self: start;
    margin-right: auto;
}

/* Ensure actions stay on the right */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    justify-content: flex-end;
    z-index: 2;
    min-width: fit-content;
    justify-self: end;
    margin-left: auto;
}

@media (min-width: 1501px) {
    .nav-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        overflow: visible;
        justify-items: stretch;
    }
    
    /* Ensure logo stays left */
    .nav-logo {
        grid-column: 1;
        justify-self: start;
    }
    
    /* Ensure actions stay right */
    .nav-actions {
        grid-column: 3;
        justify-self: end;
    }
}


.logo-img {
    height: 50px;
    width: auto;
}

.server-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 900;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    letter-spacing: 2px;
}

/* Default nav-menu styles */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.nav-menu::-webkit-scrollbar {
    display: none;
}

@media (min-width: 1501px) {
    .nav-menu {
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        position: relative;
        left: auto;
        transform: none;
        z-index: 1;
        width: auto;
        max-width: none;
        gap: 6px;
        white-space: nowrap;
        pointer-events: auto;
    }
    
    .nav-menu li {
        flex-shrink: 0;
        flex-grow: 0;
        min-width: fit-content;
        position: relative;
        z-index: 100;
        pointer-events: auto;
    }
    
    .nav-menu .nav-link {
        position: relative;
        z-index: 100;
        pointer-events: auto;
        display: inline-block;
        white-space: nowrap;
    }
}

@media (min-width: 1600px) {
    .nav-menu {
        gap: 8px;
    }
}

@media (min-width: 1700px) {
    .nav-menu {
        gap: 10px;
    }
}

@media (min-width: 1800px) {
    .nav-menu {
        gap: 12px;
    }
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: pointer;
}

/* Desktop nav-link styles only apply above 1500px */
@media (min-width: 1501px) {
    .nav-link {
        font-size: 0.75rem;
        padding: 8px 12px;
        letter-spacing: 0.5px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (min-width: 1600px) {
    .nav-link {
        font-size: 0.8rem;
        padding: 9px 12px;
        letter-spacing: 0.75px;
    }
}

@media (min-width: 1700px) {
    .nav-link {
        font-size: 0.85rem;
        padding: 9px 14px;
        letter-spacing: 0.85px;
    }
}

@media (min-width: 1800px) {
    .nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
        letter-spacing: 1px;
    }
}

@media (min-width: 1900px) {
    .nav-link {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}

.nav-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}


/* Nav actions gap adjustments only apply above 1500px */
@media (min-width: 1501px) {
    .nav-actions {
        gap: 10px;
    }
}

@media (min-width: 1600px) {
    .nav-actions {
        gap: 15px;
    }
}

.btn-register, .btn-login {
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-register {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-login {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* User Info Styles */
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 15px;
}

.welcome-text:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    transform: translateY(-1px);
}

.welcome-text strong {
    color: #00d4ff;
    font-weight: 700;
}

.btn-logout {
    padding: 8px 20px;
    background: #ff4444;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-logout:hover {
    background: transparent;
    border-color: #ff4444;
    color: #ff4444;
    transform: translateY(-2px);
}

/* Login Dropdown */
.login-dropdown {
    position: relative;
}

.login-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    min-width: 300px;
    margin-top: 10px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.login-content h3 {
    color: #00d4ff;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Orbitron', monospace;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 12px;
}

/* Hero Content */

.hero-logo {
    width: 35vw;
    max-width: 550px;
    height: auto;
    animation: floatImage 3s ease-in-out infinite;
    -webkit-animation: floatImage 3s ease-in-out infinite;
    -moz-animation: floatImage 3s ease-in-out infinite;
    -o-animation: floatImage 3s ease-in-out infinite;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    display: block;
    margin: 0 auto;
    will-change: transform;
    /* Debug styles - remove these after testing */
    /* border: 2px solid rgba(0, 212, 255, 0.3); */
    /* box-shadow: 0 0 20px rgba(0, 212, 255, 0.2); */
}

@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0px);
    }
}

@-webkit-keyframes floatImage {
    0% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
    50% {
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    100% {
        -webkit-transform: translateY(0px);
        transform: translateY(0px);
    }
}

@-moz-keyframes floatImage {
    0% {
        -moz-transform: translateY(0px);
        transform: translateY(0px);
    }
    50% {
        -moz-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    100% {
        -moz-transform: translateY(0px);
        transform: translateY(0px);
    }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.3);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.hero-description {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-play-now, .btn-learn-more {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-play-now {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-play-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-learn-more {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-learn-more:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Main Content Sections */
#main-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* Events Section */
.events-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.event-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.event-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image {
    transform: scale(1.05);
}

.event-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 12px;
}

.event-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #00d4ff;
    margin: 0;
    flex: 1;
}

.event-type {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.event-schedule {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffc107;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.event-schedule-icon {
    font-size: 1rem;
}

.event-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex: 1;
}

.btn-event {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #00d4ff 0%, #007aff 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-event:hover {
    background: linear-gradient(135deg, #007aff 0%, #00d4ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.events-footer {
    text-align: center;
    margin-top: 40px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: #00d4ff;
    text-decoration: none;
    border: 2px solid #00d4ff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #007aff;
    color: #007aff;
    transform: translateX(5px);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: #0a0a0a;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: #00d4ff;
    margin-bottom: 30px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.about-text p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Download Section */
.download-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0a0a0a 100%);
}

.download-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.download-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: #00d4ff;
    margin-bottom: 20px;
}

.download-info p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.download-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.stat-label {
    display: block;
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-download, .btn-register-alt {
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-download {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.btn-register-alt {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-register-alt:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

/* Community Section */
.community-section {
    padding: 100px 0;
    background: #0a0a0a;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.community-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.community-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.community-card p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-community {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-community:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Footer */
#footer {
    background: #000000;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-family: 'Orbitron', monospace;
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00d4ff;
    color: #000000;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-logos img {
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-logos img:hover {
    opacity: 1;
}

.footer-bottom p {
    color: #888888;
    font-size: 0.9rem;
}

/* Secondary Navigation */
nav.secondary-nav {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    will-change: transform !important;
}

/* Force sticky behavior for secondary nav */
.secondary-nav {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
}

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

.secondary-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.secondary-link {
    color: #cccccc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.secondary-link:hover {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.secondary-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    background: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.status-indicator.offline {
    background: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.status-text {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cccccc;
    font-size: 0.85rem;
}

.count-icon {
    font-size: 1rem;
}

.count-text {
    font-weight: 500;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Responsive Design */
@media (max-width: 1500px) {
    .nav-container {
        display: flex;
        flex-direction: row;
        height: 80px;
        padding: 0 20px;
        justify-content: space-between;
        align-items: center;
        grid-template-columns: none;
        overflow: visible;
        min-width: 0;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }
    
    /* Center the logo */
    .nav-logo {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    /* Keep nav actions on the right */
    .nav-actions {
        order: 3;
    }
    
    /* Hide nav menu by default on screens 1500px or less */
    .nav-menu {
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        width: 100% !important;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 20px 15px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        margin: 0;
        gap: 8px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    /* Show nav menu when active */
    .nav-menu.active {
        transform: translateX(0) !important;
    }
    
    .nav-menu li {
        width: 100%;
        max-width: 100%;
        text-align: center;
        flex-shrink: 0;
    }
    
    .nav-link {
        display: block;
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 8px;
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
    }
    
    /* Adjust nav actions for mobile */
    .nav-actions {
        gap: 10px;
    }
    
    .btn-register, .btn-login {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .user-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .welcome-text {
        font-size: 12px;
        text-align: center;
    }
    
    .btn-logout {
        padding: 6px 15px;
        font-size: 11px;
    }
    
    /* Login dropdown adjustments for mobile */
    .login-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        right: auto;
        min-width: 90vw;
        max-width: 400px;
        margin: 0;
    }
    
    /* Secondary menu mobile styles */
    .secondary-nav {
        top: 0;
        position: sticky;
    }
    
    .secondary-nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .secondary-menu {
        flex-wrap: wrap;
    }
}

/* Additional mobile optimizations for smaller screens */
@media (max-width: 768px) {
    .nav-menu {
        padding: 15px 10px !important;
        gap: 6px !important;
    }
    
    .nav-link {
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        padding: 10px 8px !important;
        gap: 4px !important;
    }
    
    .nav-link {
        padding: 8px 10px !important;
        font-size: 0.85rem !important;
    }
    
    .nav-menu li {
        margin: 0 !important;
    }
}

/* Fix toggle button on very small screens (455px or less) */
@media (max-width: 455px) {
    .nav-container {
        padding: 0 10px !important;
        min-width: 0;
        overflow: visible;
    }
    
    .mobile-menu-toggle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        flex-shrink: 0 !important;
        margin-right: 8px !important;
        z-index: 1002 !important;
    }
    
    .nav-logo {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important;
        justify-content: center !important;
    }
    
    .nav-logo img {
        max-width: 100% !important;
        height: auto !important;
        max-height: 40px !important;
    }
    
    .nav-actions {
        flex-shrink: 0 !important;
        min-width: fit-content !important;
        gap: 6px !important;
        margin-left: 8px !important;
    }
    
    .btn-register, 
    .btn-login {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }
    
    .user-info {
        gap: 4px !important;
    }
    
    .welcome-text {
        font-size: 10px !important;
    }
    
    .btn-logout,
    .btn-play-now {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .community-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .community-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Registration Page Styles */
.register-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: heroSlideIn 1s ease-out;
}

@keyframes heroSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/home.jpeg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.register-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.register-header {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #ffffff;
}

.register-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    color: #00d4ff;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 212, 255, 0.8), 0 0 60px rgba(0, 212, 255, 0.3);
    }
}

.register-subtitle {
    font-size: 1.3rem;
    color: #cccccc;
    font-weight: 400;
}

.register-section {
    padding: 80px 0;
    background: #0a0a0a;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.register-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

.register-container {
    max-width: 800px;
    margin: 0 auto;
}

.register-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: formSlideUp 1.2s ease-out 0.3s both;
    position: relative;
    overflow: hidden;
}

.register-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes formSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.form-header {
    text-align: center;
    margin-bottom: 40px;
    animation: headerSlideDown 1s ease-out 0.2s both;
}

@keyframes headerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: #00d4ff;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.form-header p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    animation: sectionFadeIn 0.8s ease-out both;
    transition: all 0.3s ease;
    position: relative;
}

.form-section:nth-child(1) { animation-delay: 0.5s; }
.form-section:nth-child(2) { animation-delay: 0.7s; }
.form-section:nth-child(3) { animation-delay: 0.9s; }
.form-section:nth-child(4) { animation-delay: 1.1s; }

.form-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.1);
}

@keyframes sectionFadeIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    animation: titleSlideIn 0.8s ease-out both;
    transition: all 0.3s ease;
}

.section-title:hover {
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    transform: translateX(5px);
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-icon {
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
    animation: labelSlideIn 0.6s ease-out both;
    transition: color 0.3s ease;
}

.form-group:nth-child(1) label { animation-delay: 0.1s; }
.form-group:nth-child(2) label { animation-delay: 0.2s; }
.form-group:nth-child(3) label { animation-delay: 0.3s; }
.form-group:nth-child(4) label { animation-delay: 0.4s; }

.form-group:hover label {
    color: #00d4ff;
}

@keyframes labelSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group input,
.form-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    animation: inputSlideIn 0.6s ease-out both;
}

.form-group:nth-child(1) input,
.form-group:nth-child(1) select { animation-delay: 0.1s; }
.form-group:nth-child(2) input,
.form-group:nth-child(2) select { animation-delay: 0.2s; }
.form-group:nth-child(3) input,
.form-group:nth-child(3) select { animation-delay: 0.3s; }
.form-group:nth-child(4) input,
.form-group:nth-child(4) select { animation-delay: 0.4s; }

@keyframes inputSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
    animation: inputPulse 0.3s ease-out;
}

@keyframes inputPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.02);
    }
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group select option {
    background: #1a1a2e;
    color: #ffffff;
}

.form-group small {
    color: #888888;
    font-size: 0.8rem;
    margin-top: 5px;
    line-height: 1.4;
}

.birth-date-group {
    grid-column: 1 / -1;
}

.birth-date-inputs {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
}

.birth-date-inputs select,
.birth-date-inputs input {
    width: 100%;
}

.terms-section {
    text-align: center;
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #cccccc;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #00d4ff;
    border-color: #00d4ff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000000;
    font-weight: bold;
    font-size: 12px;
}

.terms-link {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.btn-register-submit {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: buttonSlideIn 0.8s ease-out 1.3s both;
}

.btn-register-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register-submit:hover::before {
    left: 100%;
}

@keyframes buttonSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-register-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.btn-register-submit:active {
    transform: translateY(-1px);
}

.btn-register-submit:disabled {
    background: linear-gradient(45deg, #666666, #444444);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 2px 10px rgba(102, 102, 102, 0.2) !important;
    opacity: 0.7;
}

.btn-register-submit:disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(102, 102, 102, 0.2) !important;
}

.btn-cancel {
    color: #cccccc;
    text-decoration: none;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    animation: buttonSlideIn 0.8s ease-out 1.5s both;
    position: relative;
    overflow: hidden;
}

.btn-cancel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-cancel:hover::before {
    left: 100%;
}

.btn-cancel:hover {
    color: #ffffff;
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

/* Form Validation Styles */
.was-validated .form-group input:invalid,
.was-validated .form-group select:invalid {
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.was-validated .form-group input:valid,
.was-validated .form-group select:valid {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Live Validation Styles */
.field-valid {
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3) !important;
    background: rgba(0, 212, 255, 0.05) !important;
}

.field-invalid {
    border-color: #ff6b35 !important;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3) !important;
    background: rgba(255, 107, 53, 0.05) !important;
}

.field-error {
    color: #ff6b35;
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.field-error::before {
    content: '⚠';
    font-size: 0.9rem;
}

/* Password Strength Indicator */
.password-strength {
    font-size: 0.8rem;
    margin-top: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.password-strength.very-weak {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.password-strength.weak {
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    border: 1px solid #ffa500;
}

.password-strength.fair {
    background: rgba(255, 255, 0, 0.2);
    color: #ffff00;
    border: 1px solid #ffff00;
}

.password-strength.good {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.password-strength.strong {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    border: 1px solid #00d4ff;
}

/* Loading state for availability checks */
.field-checking {
    position: relative;
}

.field-checking::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #00d4ff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success checkmark for valid fields */
.field-valid {
    position: relative;
}

.field-valid::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d4ff;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
}

/* Error X for invalid fields */
.field-invalid {
    position: relative;
}

.field-invalid::after {
    content: '✗';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 10;
}

/* Responsive Design for Registration */
@media (max-width: 768px) {
    .register-title {
        font-size: 2.5rem;
    }
    
    .register-container {
        max-width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    
    .register-form-wrapper {
        padding: 20px;
        margin: 0;
        border-radius: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .birth-date-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-register-submit,
    .btn-cancel {
        width: 100%;
        justify-content: center;
    }
    
    /* Fix input widths for mobile */
    .form-group input,
    .form-group select {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
    }
    
    /* Specific fixes for secret fields */
    #txtKey,
    #txtQuest,
    #txtAnswer {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .register-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .register-title {
        font-size: 2rem;
    }
    
    .register-subtitle {
        font-size: 1.1rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .register-container {
        padding: 0 5px;
    }
    
    .register-form-wrapper {
        padding: 15px;
        border-radius: 10px;
    }
    
    .form-section {
        padding: 20px;
        border-radius: 10px;
    }
    
    .form-grid {
        gap: 15px;
    }
    
    /* Enhanced mobile input styling */
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Ensure secret fields are properly sized */
    #txtKey,
    #txtQuest,
    #txtAnswer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    
    /* Fix long select options */
    #txtQuest {
        word-wrap: break-word;
        white-space: normal;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .register-container {
        padding: 0 2px;
    }
    
    .register-form-wrapper {
        padding: 10px;
        border-radius: 8px;
    }
    
    .form-section {
        padding: 15px;
        border-radius: 8px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 16px;
    }
    
    /* Ensure all inputs fit properly on very small screens */
    .form-group input,
    .form-group select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* CAPTCHA Styles */
.captcha-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s ease;
}

.captcha-container:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.captcha-display {
    flex: 1;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border: 2px solid #00d4ff;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    letter-spacing: 3px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    animation: captchaShimmer 2s infinite;
}

@keyframes captchaShimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.captcha-refresh {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    border: none;
    border-radius: 6px;
    padding: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.captcha-refresh:hover {
    background: linear-gradient(45deg, #0099cc, #0077aa);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.captcha-refresh:active {
    transform: scale(0.95);
}

.captcha-refresh i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.captcha-refresh:hover i {
    transform: rotate(180deg);
}

#captcha {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 15px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
}

#captcha:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

#captcha::placeholder {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: normal;
    font-family: inherit;
    font-weight: normal;
}

/* Mobile CAPTCHA Styles */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .captcha-display {
        font-size: 1.2rem;
        letter-spacing: 2px;
        min-height: 45px;
    }
    
    .captcha-refresh {
        width: 100%;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .captcha-display {
        font-size: 1rem;
        letter-spacing: 1px;
        min-height: 40px;
    }
    
    #captcha {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* Enhanced smooth scrolling performance */
html, body {
    scroll-behavior: smooth;
    scroll-padding-top: 50px; /* Account for sticky secondary navbar */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

/* Smooth scrolling for all scrollable elements */
* {
    scroll-behavior: smooth;
}

/* Performance optimizations for smooth scrolling */
html {
    will-change: scroll-position;
}

body {
    will-change: scroll-position;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Smooth scrolling for specific elements */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Enhanced scroll performance */
.container, .section, .content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

/* Selection colors */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: #ffffff;
}