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

:root {
    --primary: #3498db;
    --primary-rgb: 52, 152, 219;
    --secondary: #16a085;
    --secondary-rgb: 22, 160, 133;
    --accent: #e74c3c;
    --accent-rgb: 231, 76, 60;
    --text: #ecf0f1;
    --dark: #2c3e50;
    --overlay-bg: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 40, 0.85), rgba(0, 0, 0, 0.8));
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    --animation-time: 0.3s;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-image: url('../assets/images/logo.webp');
    background-size: contain;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #000;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    transition: all 0.3s ease;
    /* Prevent default body margins which can cause issues */
    margin: 0;
    padding: 0;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

.overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 20, 40, 0.85), rgba(0, 0, 0, 0.8));
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    overflow-x: hidden;
    max-width: 100%;
}

.top-bar {
    position: relative  ;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.top-bar.scrolled {
    padding: 5px 30px;
    background-color: rgba(0, 0, 0, 0.9);
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 25px;
    background-color: var(--dark);
    border-radius: 25px;
    padding: 3px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-toggle .toggle-circle {
    width: 19px;
    height: 19px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

body.light-mode {
    color: #333;
}

body.light-mode .overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(200, 200, 220, 0.85), rgba(255, 255, 255, 0.8));
}

body.light-mode .top-bar, 
body.light-mode footer {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .social-icons a,
body.light-mode .footer-nav a {
    color: var(--dark);
}

body.light-mode .theme-toggle {
    background-color: var(--primary);
    justify-content: flex-end;
}

body.light-mode h1 {
    background: linear-gradient(90deg, var(--dark), var(--primary), var(--dark));
    -webkit-background-clip: text;
    color: transparent;
}

body.light-mode .subtitle {
    color: #555;
}

body.light-mode .copyright {
    color: #555;
}

.mini-logo {
    height: 40px;
    display: flex;
    align-items: center;
}

.mini-logo img {
    height: 100%;
    margin-right: 10px;
}

.mini-logo span {
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.2em;
    background: linear-gradient(90deg, var(--text), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text);
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

header {
    padding: 140px 20px 50px;
    text-align: center;
    width: 100%;
    animation: fadeDown 1s ease-out;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    max-width: 350px;
    margin-bottom: 40px;
    filter: drop-shadow(0 5px 15px rgba(255, 255, 255, 0.4));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
    animation: pulse 6s infinite;
}

.logo:hover {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.7));
}

h1 {
    color: white;
    font-size: 5em;
    font-weight: 800;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 25px;
    letter-spacing: 3px;
    background: linear-gradient(90deg, #fff, var(--primary), #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
    line-height: 1.2;
}

h2 {
    font-size: 3.2em;
    font-weight: 700;
    margin-bottom: 15px;
}

h3 {
    font-size: 2.6em;
    font-weight: 600;
    margin-bottom: 12px;
}

h4 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

h5 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5em;
    color: #eee;
    margin-bottom: 50px;
    font-weight: 400;
    letter-spacing: 5px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 30px;
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    opacity: 0;
    font-size: 1.1em;
    letter-spacing: 1px;
    animation: fadeIn 1s ease-out 0.7s forwards;
}

.cta-button:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin: 40px 0;
    padding: 0 30px;
    max-width: 1500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.nav-item {
    flex: 1 1 260px;
    max-width: 300px;
    margin-bottom: 25px;
    transform: scale(1);
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    text-align: center;
    perspective: 1000px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    text-decoration: none;
}

.nav-item:nth-child(1) { animation-delay: 0.2s; }
.nav-item:nth-child(2) { animation-delay: 0.4s; }
.nav-item:nth-child(3) { animation-delay: 0.6s; }
.nav-item:nth-child(4) { animation-delay: 0.8s; }
.nav-item:nth-child(5) { animation-delay: 1s; }

.nav-card {
    position: relative;
    width: 100%;
    height: auto;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    transform-origin: center;
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.nav-item:hover .nav-card {
    transform: rotateY(-5deg) translateY(-20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.nav-item:hover .nav-card img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.5), rgba(var(--secondary-rgb), 0.5));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: overlay;
}

.nav-item:hover .nav-card::before {
    opacity: 0.6;
}

.nav-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-item:hover .nav-card::after {
    opacity: 0.9;
}

.nav-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 15px;
    color: var(--text);
    font-weight: 600;
    font-size: 1.6em;
    z-index: 2;
    transform: translateY(0) translateZ(20px);
    transition: all 0.4s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    display: none !important;
}

.nav-item:hover .nav-title {
    transform: translateY(-5px);
}

.nav-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.nav-item:hover .nav-title::before {
    width: 80%;
}

footer {
    padding: 40px 20px;
    text-align: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary);
}

.copyright {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

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

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

@keyframes shine {
    to { background-position: 200% center; }
}

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

@media (max-width: 1200px) {
    .navigation {
        gap: 30px;
    }
    
    .nav-item {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    /* Mobile background fix */
    body {
        background-image: url('../assets/images/logo.webp');
        background-size: 95% auto;
        background-position: center 15%;
        background-repeat: no-repeat;
        background-attachment: scroll;
        background-color: #000;
        font-size: 14px;
        position: relative;
        overflow-x: hidden;
    }
    
    /* Add pseudo-elements for top and bottom gradients - similar to JS version */
    body::before,
    body::after {
        content: '';
        position: fixed;
        left: 0;
        right: 0;
        height: 25%;
        pointer-events: none;
        z-index: -1;
    }
    
    /* Top gradient matching logo colors */
    body::before {
        top: 0;
        background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 51, 102, 0.8) 50%, 
            rgba(0, 0, 0, 0) 100%);
    }
    
    /* Bottom gradient matching logo colors */
    body::after {
        bottom: 0;
        background: linear-gradient(to top, 
            rgba(0, 0, 0, 1) 0%, 
            rgba(0, 51, 102, 0.8) 50%, 
            rgba(0, 0, 0, 0) 100%);
    }
    
    /* Ensure content can't cause horizontal scrolling */
    .overlay {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Rest of mobile styles */
    header {
        padding: 110px 15px 40px;
    }
    
    .logo {
        max-width: 270px;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 3.8em;
        margin-bottom: 20px;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1.2em;
        margin-bottom: 35px;
        letter-spacing: 3px;
    }
    
    .cta-button {
        padding: 12px 35px;
        font-size: 1em;
    }
    
    h5 {
        font-size: 1.6em;
    }
    
    .navigation {
        flex-direction: column;
        gap: 40px;
        margin: 35px 0;
        align-items: center;
        width: 100%;
        padding: 0 15px;
    }
    
    .nav-item {
        flex: 0 0 auto;
        width: 92%;
        max-width: 380px;
        text-align: center;
        perspective: 1000px;
    }
    
    .nav-title {
        font-size: 1.3em;
    }
    
    .top-bar {
        padding: 10px 15px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .hamburger {
        display: block;
    }
    
    .social-icons {
        display: none;
    }
    
    .theme-toggle {
        margin-right: 15px;
    }
    
    .theme-selector,
    .scroll-indicator-container {
        display: none;
    }
    
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    
    .nav-card {
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    .nav-card img {
        width: 100%;
    }
    
    .overlay-text {
        padding: 1rem;
        font-size: 1.2rem;
    }
    
    .career-navigation .nav-item {
        margin: 0.5rem 0;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        background-size: auto 50%;
        background-position: center 10%;
    }
    
    body::before,
    body::after {
        height: 20%;
    }
}

@media (max-width: 576px) {
    .mini-logo span {
        display: none;
    }
    
    header {
        padding-top: 90px;
    }
    
    .navigation {
        gap: 25px;
        padding: 0 10px;
        margin: 25px 0;
    }
    
    .nav-item {
        max-width: 100%;
        width: 94%;
    }
    
    .nav-card {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }
    
    .nav-title {
        font-size: 1.4em;
        padding: 25px 15px;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8em;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Skeleton loading */
@keyframes pulse-bg {
    0% { background-position: 0% 0%; }
    100% { background-position: -135% 0%; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 400% 100%;
    animation: pulse-bg 1.5s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), var(--secondary));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary), var(--primary));
}

::selection {
    background-color: var(--primary);
    color: white;
}

/* Accessibility focus styles */
a:focus, button:focus, input:focus, select:focus, textarea:focus, [tabindex]:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -50px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    z-index: 999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Loading progress bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
}

/* Content reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
    filter: blur(5px);
    will-change: transform, opacity, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* 3D Effect for Cards */
.tilt-effect {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Pulse effect for CTA button */
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

.pulse-effect {
    animation: pulse-border 2s infinite;
}

/* Mobile menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
}

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

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: center;
}

.mobile-menu-links a {
    color: var(--text);
    font-size: 1.5em;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-links a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-links a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-links a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu-links a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu-links a:nth-child(5) { transition-delay: 0.5s; }

.mobile-menu-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-menu-links a:hover::after {
    width: 100%;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text);
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
}

/* Page transition effect - optimized for speed */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.7), rgba(22, 160, 133, 0.7));
    z-index: 9998;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    backdrop-filter: blur(3px);
    will-change: transform;
}

.page-transition.active {
    transform: translateX(0);
}

/* Page entry animation - optimized for speed */
body {
    /* Remove pageEnter animation to prevent animation conflicts */
    /* animation: pageEnter 0.8s ease-out; */
    will-change: opacity, transform, filter;
}

/* Custom cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: transform 0.2s ease;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

/* Video background */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

/* Floating elements animation */
.float {
    animation: float 6s ease-in-out infinite;
}

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

/* Typing animation */
.typing-effect::after {
    content: '|';
    animation: blink 1s infinite;
}

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

/* Color theme selector */
.theme-selector {
    display: none;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Section scroll indicators */
.scroll-indicator-container {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 97;
    display: none;
}

@media (min-width: 1200px) {
    .scroll-indicator-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

.scroll-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-indicator.active {
    background: var(--primary);
    transform: scale(1.5);
}

/* Adding Career Mode Page Specific Styles */

/* Back link styling */
.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.back-link:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.back-link i {
    margin-right: 0.5rem;
}

/* Career navigation styling */
.career-navigation {
    margin-top: 2rem;
    width: 100%;
}

.career-navigation .nav-item {
    margin: 0.8rem;
}

/* Enhanced overlay text for nav cards */
.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 1.2rem;
    font-weight: 500;
    z-index: 3;
}

.nav-card:hover .overlay-text {
    transform: translateY(0);
}

/* Career description section */
.career-description {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.career-description h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent-color);
}

.career-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.feature-item {
    flex: 1 1 300px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Career header specific styling */
#career-header {
    padding: 2rem 1rem 1rem;
}

#career-header h1 {
    font-size: 3rem;
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
    
    .feature-item {
        margin-bottom: 1.5rem;
    }
    
    #career-header h1 {
        font-size: 2.2rem;
    }
    
    .career-description {
        padding: 1.5rem;
    }
}

/* Additional Enhanced Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    will-change: transform, opacity, filter;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }
.delay-6 { animation-delay: 1.2s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Animated section - performance optimized */
.animated-section {
    position: relative;
    overflow: hidden;
}

.animated-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: translateX(-100%);
    opacity: 0.12;
    animation: slideIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    z-index: -1;
    pointer-events: none;
    filter: blur(15px);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    will-change: transform, filter;
}

@keyframes slideIn {
    from { transform: translateX(-100%); filter: blur(20px); }
    to { transform: translateX(100%); filter: blur(15px); }
}

/* Enhanced fade-in animations with performance optimizations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    will-change: transform, opacity, filter;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Enhanced Transition Effects */
.nav-item {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease;
}

.nav-item:hover {
    transform: scale(1.02);
}

/* Enhance nav card transitions */
.nav-card img {
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-item:hover .nav-card img {
    filter: brightness(1.1);
    transform: scale(1.05);
}

/* Optimized ripple effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 10;
    will-change: transform, opacity;
}

.ripple-effect.fast {
    animation: ripple 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes ripple {
    to {
        transform: scale(15);
        opacity: 0;
    }
}

/* Global Footer Navigation Fixes */
footer .footer-content {
    padding: 20px;
}

footer .footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

footer .footer-nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    font-weight: 500;
}

footer .footer-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Mobile responsiveness for footer */
@media (max-width: 768px) {
    footer .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    footer .footer-nav a {
        width: 100%;
        text-align: center;
    }
}

/* Performance optimizations */
img, video {
    max-width: 100%;
    height: auto;
}

/* Lazy load classes */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Better responsive containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* Improved mobile sizing */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.8em;
    }
    
    .container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    body {
        background-size: 100% auto;
        background-position: center 12%;
    }
    
    body::before,
    body::after {
        height: 30%;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.6em;
    }
}

/* Home page specific styles */
.home-description {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-heading {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.section-text {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.cta-heading {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Testimonials section */
.testimonials {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    flex: 1 1 300px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.testimonial-item::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

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

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author {
    margin-top: 1.5rem;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
}

/* Improved Career Mode Page Layout */
.career-description {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.career-description h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.career-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1rem;
}

.feature-item {
    flex: 1 1 300px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.6);
}

.feature-item i {
    font-size: 2.8rem;
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.2rem;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
}

.feature-item p {
    font-size: 1.1rem;
    margin-bottom: 0;
    line-height: 1.6;
    text-align: center;
}

#career-header {
    padding: 2.5rem 1.5rem 2rem;
    margin-bottom: 1rem;
}

#career-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#career-header .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.career-navigation {
    margin-top: 2.5rem;
    max-width: 1300px;
}

@media (max-width: 768px) {
    .career-description {
        padding: 1.5rem;
        margin: 1.5rem 1rem;
    }
    
    .career-description h2 {
        font-size: 2rem;
    }
    
    .career-description p {
        font-size: 1.1rem;
    }
    
    #career-header {
        padding: 2rem 1rem 1.5rem;
    }
    
    #career-header h1 {
        font-size: 2.5rem;
    }
}

/* Responsive styles for home sections */
@media (max-width: 992px) {
    .home-description,
    .testimonials {
        padding: 2rem 1.5rem;
    }
    
    .section-heading {
        font-size: 2.2rem;
    }
    
    .section-text {
        font-size: 1.1rem;
    }
    
    .testimonial-container {
        flex-direction: column;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Career Stats Section */
.career-stats {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 2.5rem;
    gap: 1.5rem;
}

.stat-item {
    flex: 1 1 200px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.stat-label {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Career Timeline Section */
.career-timeline {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.timeline {
    position: relative;
    margin-top: 3rem;
    padding: 0 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.timeline-marker {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    background: var(--secondary);
    box-shadow: 0 0 0 8px rgba(var(--secondary-rgb), 0.3);
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    width: 45%;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 30px;
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive adjustments for career sections */
@media (max-width: 992px) {
    .stats-container {
        justify-content: center;
    }
    
    .stat-item {
        flex: 1 1 180px;
        max-width: 200px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }
}

@media (max-width: 768px) {
    .career-stats,
    .career-timeline {
        padding: 1.5rem;
        margin: 2rem 1rem;
    }
    
    .stat-item {
        flex: 1 1 150px;
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .timeline {
        margin-top: 2rem;
    }
    
    .timeline-item {
        margin-bottom: 2.5rem;
    }
    
    .timeline-content {
        padding: 1.2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.3rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stat-item {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 1rem;
    }
}

/* Scroll Animation Styles */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.2, 0.6, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Items Animation */
.moze-gallery li.hidden {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.moze-gallery li.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header Elements Animation */
.black-box.hidden {
    transform: translateY(-15px);
    transition-duration: 0.25s;
}

.club-info.hidden {
    transform: translateY(15px);
    transition-duration: 0.25s;
}

/* Tournament Cards Animation */
.tournament-card.hidden {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.tournament-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Season Box Animation */
.season-box.hidden {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.2, 0.6, 0.3, 1);
}

.season-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hidden {
        transform: translateY(15px);
    }
    
    .moze-gallery li.hidden {
        transform: translateY(10px) scale(0.99);
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .hidden {
        transition-duration: 0.1s;
        transform: translateY(10px);
    }
    
    .moze-gallery li.hidden {
        transition-duration: 0.1s;
        transform: translateY(5px);
    }
}

/* Performance Optimizations */
.moze-gallery li,
.tournament-card,
.season-box,
.black-box,
.club-info {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-font-smoothing: antialiased;
}

/* Custom styles for index and career pages to override animations */
body[data-page="index"] .nav-item,
body[data-page="index"] .feature-item,
body[data-page="index"] .timeline-item,
body[data-page="index"] .cta-section,
body[data-page="career-mode"] .nav-item,
body[data-page="career-mode"] .feature-item,
body[data-page="career-mode"] .timeline-item,
body[data-page="career-mode"] .cta-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Remove delay animations for index and career pages */
body[data-page="index"] .nav-item:nth-child(1),
body[data-page="index"] .nav-item:nth-child(2),
body[data-page="index"] .nav-item:nth-child(3),
body[data-page="index"] .nav-item:nth-child(4),
body[data-page="index"] .nav-item:nth-child(5),
body[data-page="career-mode"] .nav-item:nth-child(1),
body[data-page="career-mode"] .nav-item:nth-child(2),
body[data-page="career-mode"] .nav-item:nth-child(3),
body[data-page="career-mode"] .nav-item:nth-child(4),
body[data-page="career-mode"] .nav-item:nth-child(5) {
    animation-delay: 0s !important;
    transition-delay: 0s !important;
}

/* Trophy cabinet scroll animations */
.season-content .club-info.hidden,
.season-content .textbox.hidden,
.season-content p.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

.season-content .club-info.animate-in,
.season-content .textbox.animate-in,
.season-content p.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Positioning Fixes */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: transform;
    margin: 0;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0px); /* Prevent layout shift */
}

/* Modal Content Styling */
.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.modal-header {
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: -1rem;
    right: -1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .modal-close {
        top: -0.5rem;
        right: -0.5rem;
    }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        background-size: auto 50%;
        background-position: center 10%;
    }
    
    body::before,
    body::after {
        height: 20%;
    }
}

@media (max-width: 576px) {
    // ... existing code ...
} 