@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-gold: #FFD700;
    --primary-blue: #1E3A8A;
    --accent-purple: #8B5CF6;
    --accent-red: #DC2626;
    --accent-teal: #06B6D4;
    --dark-bg: #0F172A;
    --light-text: #F3F4F6;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

.egyptian-title {
    font-family: 'Playfair Display', serif;
}

.gold-text {
    color: var(--primary-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.blue-text {
    color: var(--primary-blue);
}

.btn-gold {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    border: 2px solid var(--primary-gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7);
}

.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

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

.btn-blue {
    background-color: var(--primary-blue);
    color: var(--primary-gold);
    border: 2px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-blue:hover {
    background-color: transparent;
    color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.7);
}

.card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    border-color: var(--primary-gold);
}

/* Enhanced Navigation Link Styles with Smooth Transitions */
.nav-link {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 8px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-link:hover {
    transform: translateY(-2px);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.nav-link.active {
    color: var(--primary-gold) !important;
    font-weight: 600;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

/* Smooth scrolling behavior for modern browsers */
html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
    -moz-scroll-behavior: smooth;
    -ms-scroll-behavior: smooth;
}

/* Fallback for older browsers */
html.no-smooth-scroll {
    scroll-behavior: auto;
}

/* Enhanced section transitions */
section {
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
}

/* Focus styles for accessibility */
.nav-link:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Touch and keyboard interaction styles */
.nav-link.touch-active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
    -webkit-transition: transform 0.1s ease;
    -moz-transition: transform 0.1s ease;
    -ms-transition: transform 0.1s ease;
}

.nav-link.keyboard-focus {
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

/* Enhanced mobile menu navigation */
.mobile-menu a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    transform: translateX(10px);
    -webkit-transform: translateX(10px);
    -moz-transform: translateX(10px);
    -ms-transform: translateX(10px);
    color: var(--primary-gold) !important;
}

/* Performance optimizations for smooth scrolling */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hardware acceleration for smoother animations */
.nav-link,
.mobile-menu,
.btn-gold,
.btn-blue {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
}

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

.hero-overlay {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.egyptian-border {
    position: relative;
}

.egyptian-border::before,
.egyptian-border::after,
.egyptian-border::left,
.egyptian-border::right {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: var(--primary-gold);
    border-style: solid;
    opacity: 0.7;
}

.egyptian-border::before {
    top: 0;
    left: 0;
    border-width: 3px 0 0 3px;
}

.egyptian-border::after {
    top: 0;
    right: 0;
    border-width: 3px 3px 0 0;
}

.egyptian-border::left {
    bottom: 0;
    left: 0;
    border-width: 0 0 3px 3px;
}

.egyptian-border::right {
    bottom: 0;
    right: 0;
    border-width: 0 3px 3px 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

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

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.counter {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-icon:hover {
    background-color: var(--primary-gold);
    color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
}

.footer {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 1));
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: #0F172A;
    width: 100%;
    height: 100%;
    div{
        background-color: #0F172A;
    }
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Game slot animation */
.slot-reel {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

/* Loading animation */
.loader {
    border: 5px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top: 5px solid var(--primary-gold);
    width: 50px;
    height: 50px;
    animation: spin-loader 1s linear infinite;
    margin: 20px auto;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.8);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .counter {
        font-size: 2rem;
    }
}