@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-gold: #b39359;
    --primary-gold-dark: #8a6d3b;
    --bg-main: #0c0b0a;
    --bg-overlay: rgba(26, 21, 18, 0.85);
    --glass-bg: rgba(43, 34, 28, 0.3);
    --glass-border: rgba(179, 147, 89, 0.15);
    --text-main: #d3c3a5;
    --font-header: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: visible; /* Ensure scrolling is possible */
    min-height: 100vh;
}

/* Removed HUD Top Bar */

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 11, 10, 0.6); /* Slightly more transparent */
    backdrop-filter: blur(8px); /* Lower blur to see movement behind */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loader-logo {
    max-width: 250px;
    margin-bottom: 30px;
    animation: loaderPulse 2s infinite ease-in-out;
    filter: drop-shadow(0 0 20px rgba(179, 147, 89, 0.3));
}

.loader-bar-container {
    width: 240px;
    height: 3px;
    background: rgba(179, 147, 89, 0.05);
    margin: 0 auto 15px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    background-size: 200% 100%;
    animation: loadingProgress 2s infinite ease-in-out, shimmer 2s infinite linear;
    box-shadow: 0 0 15px var(--primary-gold);
}

.loader-text {
    font-family: var(--font-header);
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--primary-gold);
    opacity: 0.6;
    animation: textFlicker 3s infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(179, 147, 89, 0.3)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 40px rgba(179, 147, 89, 0.5)); }
}

@keyframes loadingProgress {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 100%; left: 100%; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes textFlicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Background Video */
.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    background: #1a1512; /* Fallback color matching the theme */
    background-image: 
        radial-gradient(circle at center, transparent 0%, #0c0b0a 100%),
        url('logo.png'); /* Using logo as a very subtle textured fallback if video fails */
    background-size: cover, 50%;
    background-repeat: no-repeat, no-repeat;
    background-position: center;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(110%) brightness(60%) grayscale(30%) blur(5px); /* Added subtle blur as requested */
    opacity: 0; /* Starte with 0 and fade in via JS when ready */
    transition: opacity 2s ease;
}

.bg-video.ready {
    opacity: 0.35; /* Slight visibility as requested */
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at center, transparent 0%, #1a1512 100%),
        linear-gradient(to bottom, rgba(26, 21, 18, 0.8), transparent 50%, rgba(26, 21, 18, 0.9));
    z-index: -1;
}

/* Navigation & Header Status */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(26, 21, 18, 0.95), rgba(0, 0, 0, 0.3));
    z-index: 1000;
}
/* Removed header status styles */

.nav-logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(197, 160, 89, 0.5));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-header);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0.8;
}

nav ul li a:hover {
    color: var(--primary-gold);
    opacity: 1;
    text-shadow: 0 0 8px rgba(197, 160, 89, 0.8);
}

.mobile-apps {
    display: flex;
    gap: 10px;
    margin: 0 10px;
}

.btn-app {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 15px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
}

.btn-app i {
    font-size: 24px !important;
    color: var(--text-main);
}

.app-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.app-text span {
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 2px;
}

.app-text strong {
    font-size: 13px;
    font-weight: 700;
}

.btn-app:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.btn-app:hover i, .btn-app:hover strong {
    color: var(--primary-gold);
}

.btn-play {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: #1a1512 !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--font-header);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255,255,255,0.1);
    border: 1px solid rgba(179, 147, 89, 0.3);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

/* Main Content */
main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    padding-top: 20px; /* Reduced to move cards up */
}

.main-logo-container {
    position: relative;
    overflow: visible; /* Allow overlap */
    margin-bottom: 0;
    z-index: 5; /* Behind cards */
    display: flex;
    justify-content: center;
    width: 100%;
}

.main-logo {
    max-width: 450px; /* Reduced as requested for 1080p fit */
    width: 90%;
    animation: elegantEntrance 2s ease-out forwards, floating 4s ease-in-out 2s infinite alternate;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.8));
    position: relative;
}

.server-info {
    text-align: center;
    animation: fadeInUp 1.2s ease-out 0.8s both;
    width: 100%;
    margin-top: -130px; /* Pulled cards further up */
    z-index: 10; /* In front of logo */
    position: relative;
    display: flex;
    justify-content: center; /* PERFECT CENTERING */
}

.active-servers-row {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
    pointer-events: auto;
}

.active-server-status {
    background: rgba(26, 21, 18, 0.4);
    border: 1px solid rgba(179, 147, 89, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px 20px; /* Compacted */
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none; /* For link */
}

.active-server-status:hover {
    background: rgba(179, 147, 89, 0.05);
    border-color: rgba(179, 147, 89, 0.3);
    transform: translateY(-2px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4caf50;
    animation: statusPulse 2s infinite;
}

.active-server-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.active-server-info strong {
    font-family: var(--font-header);
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--primary-gold);
}

.active-server-info span {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

@keyframes statusPulse {
    0% { transform: scale(1); box-shadow: 0 0 5px #4caf50; }
    50% { transform: scale(1.2); box-shadow: 0 0 15px #4caf50; }
    100% { transform: scale(1); box-shadow: 0 0 5px #4caf50; }
}

.opening-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: linear-gradient(145deg, #1f1a17 0%, #12100e 100%);
    border: 1px solid rgba(179, 147, 89, 0.1);
    width: 320px;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.card.beta { 
    border-color: rgba(52, 152, 219, 0.3); 
    background: linear-gradient(145deg, #161a20 0%, #0d1014 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(52, 152, 219, 0.05);
}
.card.grand { 
    border-color: rgba(197, 160, 89, 0.3); 
    background: linear-gradient(145deg, #1f1a17 0%, #12100e 100%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(179, 147, 89, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.platform-icons-group {
    display: flex;
    gap: 8px;
}

.platform-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
}

.mobile-theme .platform-icon { border-color: #3498db; color: #3498db; box-shadow: 0 0 10px rgba(52, 152, 219, 0.2); }
.desktop-theme .platform-icon { border-color: var(--primary-gold); color: var(--primary-gold); box-shadow: 0 0 10px rgba(179, 147, 89, 0.2); }

.header-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.badge {
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: #999;
}

.badge.primary { color: var(--primary-gold); border-color: var(--primary-gold); }

.badge-status { font-size: 11px; font-weight: 600; opacity: 0.8; }
.accent-blue { color: #3498db; }

.card-title {
    font-family: var(--font-header);
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 0.5px;
}

.card-desc {
    font-size: 12px;
    color: #777;
    line-height: 1.5;
    margin-bottom: 25px;
}

.card-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
}

.row .label {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.row .value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.card-footer {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
}

.card-footer .btn-primary, .card-footer .btn-secondary {
    flex: 1;
    padding: 10px 0;
    font-family: var(--font-header);
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    color: #1a1512;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(179, 147, 89, 0.2);
}

.card-footer .btn-secondary {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(179, 147, 89, 0.2);
    color: var(--primary-gold);
}

.card-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(179, 147, 89, 0.4);
}

.card-footer .btn-secondary:hover {
    background: rgba(179, 147, 89, 0.1);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

/* 3D Character Selection Section */
.selection-3d {
    width: 500px; /* narrowed to bring cards closer */
    z-index: 20;
}

.carousel-3d-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 320px; /* SHRUNK */
    perspective: 1200px;
    margin-bottom: 20px;
}

.carousel-3d-stage {
    width: 400px; /* Narrowed */
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.char-3d-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    backface-visibility: hidden; /* Added for 3D sharpness */
    -webkit-font-smoothing: antialiased;
}

.char-3d-slide img {
    height: 240px; /* SHRUNK */
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0,0,0,1));
    transition: all 0.7s ease;
}

.char-3d-title {
    font-family: var(--font-header);
    font-size: 13px; /* Enlarged slightly */
    color: var(--primary-gold);
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0;
    transition: 0.5s;
}

/* 3D Positions */
.char-3d-slide.active {
    opacity: 1;
    z-index: 10;
    transform: translate(-50%, -50%) translateZ(250px);
    pointer-events: auto;
}

.char-3d-slide.active img {
    filter: drop-shadow(0 0 40px rgba(179, 147, 89, 0.4));
    animation: charBreathe 4s ease-in-out infinite;
}

.char-3d-slide.active .char-3d-title {
    opacity: 1;
    text-shadow: 0 0 15px var(--primary-gold);
}

.char-3d-slide.prev {
    opacity: 0.4;
    z-index: 5;
    transform: translate(-50%, -50%) translateX(-160px) translateZ(-150px) rotateY(25deg);
    filter: brightness(0.5); /* Removed blur/grayscale for sharpness */
}

.char-3d-slide.next {
    opacity: 0.4;
    z-index: 5;
    transform: translate(-50%, -50%) translateX(160px) translateZ(-150px) rotateY(-25deg);
    filter: brightness(0.5); /* Removed blur/grayscale for sharpness */
}

/* Mini Navigation Controls */
.carousel-controls-mini {
    display: flex;
    gap: 120px; /* Spaced out further */
    margin-bottom: 25px;
    justify-content: center;
}

.nav-3d-mini {
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.7;
}

.nav-3d-mini img {
    width: 65px; /* Enlarged for better visibility */
    filter: drop-shadow(0 0 10px rgba(179, 147, 89, 0.4));
}

.nav-3d-mini:hover { 
    transform: scale(1.15); 
    opacity: 1;
}

/* Character Naming Panel */
.char-naming-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.premium-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.4);
    padding: 5px;
    border-radius: 6px;
    border: 1px solid rgba(179, 147, 89, 0.1);
}

.input-glow-wrapper {
    position: relative;
    width: 200px;
}

#charNameInput {
    width: 100%;
    background: transparent;
    border: none;
    padding: 8px 12px;
    color: #fff;
    font-family: var(--font-body); /* Switched from Cinzel to support lowercase */
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: none; /* Ensure no forcing */
    text-align: left;
    outline: none;
}

#charNameInput::placeholder {
    text-transform: none; /* Allow mixed case */
    opacity: 0.5;
}

.btn-start-mini {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    border: 1px solid #000;
    padding: 8px 20px;
    font-family: var(--font-header);
    font-size: 11px;
    font-weight: 700;
    color: #1a1512;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(179, 147, 89, 0.3);
}

.btn-start-mini:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(179, 147, 89, 0.5);
}

#charNameInput:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(179, 147, 89, 0.2);
    background: rgba(26, 21, 18, 0.9);
}

.status-msg-premium {
    min-height: 20px;
    font-size: 11px;
    color: #ff4444;
    font-family: var(--font-header);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.status-msg-premium.visible {
    opacity: 1;
    transform: translateY(0);
}

/* (btn-start-3d removed in favor of btn-start-mini) */

.cta-action-area h3 {
    font-family: var(--font-header);
    font-size: 14px; /* Reduced */
    color: var(--primary-gold);
    margin-bottom: 6px;
    opacity: 0.6;
    letter-spacing: 2px;
}

.btn-start-main {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-gold-dark));
    border: 1px solid #000;
    padding: 10px 28px; /* Slightly more compact */
    font-family: var(--font-header);
    font-size: 12px; /* Reduced for elegance */
    font-weight: 700;
    color: #1a1512;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(179, 147, 89, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-start-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(179, 147, 89, 0.6);
}

.btn-start-main i {
    font-size: 18px;
}

/* Status Sidebar (Left - Ultra Premium - COMPACT) */
.status-sidebar {
    position: fixed;
    left: 30px; /* Closer to edge */
    top: 35%; /* Moved UP to avoid card overlap */
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-trigger {
    background: linear-gradient(135deg, rgba(43, 34, 28, 0.95), rgba(12, 11, 10, 0.98));
    border: 1px solid var(--primary-gold);
    backdrop-filter: blur(10px);
    padding: 10px 18px; /* More compact */
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-gold);
    cursor: pointer;
    font-family: var(--font-header);
    font-size: 11px; /* Slightly smaller */
    letter-spacing: 1.5px;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.status-trigger .arrow {
    font-size: 10px;
    transition: transform 0.5s ease;
}

.status-sidebar:hover .status-trigger {
    background: linear-gradient(135deg, var(--primary-gold-dark), #1a1512);
    color: #fff;
    box-shadow: 0 0 25px rgba(179, 147, 89, 0.4);
}

.status-sidebar:hover .arrow {
    transform: rotate(90deg);
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateX(-30px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.status-sidebar:hover .status-list {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

.status-item {
    background: linear-gradient(145deg, rgba(31, 26, 23, 0.95), rgba(18, 16, 14, 0.98));
    border: 1px solid rgba(179, 147, 89, 0.2);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.4s ease;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
}

.status-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(179, 147, 89, 0.1), transparent);
    transition: 0.5s;
}

.status-item:hover::before {
    left: 100%;
}

.status-icon-box {
    font-size: 20px;
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(179, 147, 89, 0.5);
}

.status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-info strong {
    font-size: 14px;
    font-family: var(--font-header);
    color: #fff;
    letter-spacing: 1px;
}

.status-info span {
    font-size: 9px;
    color: var(--primary-gold);
    opacity: 0.7;
    letter-spacing: 0.5px;
}

.status-dot-glow {
    position: absolute;
    right: 15px;
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
    box-shadow: 0 0 10px #4caf50;
    animation: statusPulse 2s infinite;
}

.status-item:hover {
    border-color: var(--primary-gold);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

/* Social Media Sidebar (Right) */
.social-sidebar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.5);
}

/* Animations */
@keyframes elegantEntrance {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: brightness(0.5) blur(15px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
}

@keyframes logoPulse {
    0% { 
        filter: drop-shadow(0 0 30px rgba(0,0,0,0.8)) brightness(1);
    }
    100% { 
        filter: drop-shadow(0 0 50px rgba(179, 147, 89, 0.3)) brightness(1.1);
    }
}

@keyframes floating {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

@keyframes shine {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop/Mobile Hide Rules */
.mobile-logo-link { display: none; }
.mobile-status-summary { display: none; }

/* Mobile Responsiveness */
@media (max-width: 991px) {
    body.menu-open { overflow: hidden; }

    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 0;
        background: rgba(12, 11, 10, 0.9);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(179, 147, 89, 0.1);
        z-index: 1000;
        height: 60px;
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        height: 100%;
    }

    .mobile-logo-link { display: block; }
    .mini-logo { height: 35px; width: auto; }

    .dot-anadolu { background: #4caf50; }
    .dot-ayasofya { background: #4caf50; }
    .mobile-status-summary { display: none; }

    .main-logo { max-width: 280px; }

    /* Hamburger */
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background: var(--primary-gold);
        transition: 0.3s;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Mobile Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(12, 11, 10, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 25px;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        margin: 0;
    }

    .nav-menu.active { right: 0; }
    .nav-menu li { margin: 0; }
    .nav-menu li a { font-size: 22px; }

    .nav-btn-mobile { margin-top: 20px; }

    /* Layout */
    main { 
        padding-top: 40px; /* Reduced since header is thinner */
        justify-content: flex-start; 
        min-height: 100vh; 
        height: auto; 
        overflow-y: visible;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-logo-container {
        margin-bottom: 20px;
        order: -1; /* Ensure it stays above cards if flexed */
    }

    .server-info { 
        margin-top: 0; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .opening-cards {
        flex-direction: column;
        gap: 25px;
        padding: 0 15px;
        width: 100%;
    }

    .card { width: 100%; max-width: 360px; margin: 0 auto; padding: 20px; }
    
    /* HIDE SELECTED ELEMENTS ON MOBILE */
    .selection-3d, .social-sidebar, .active-servers-row, .mobile-apps {
        display: none !important;
    }
}
