/* Advanced Styles for 3D Animations and Enhanced Features */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-light);
}

.loading-logo h2 {
    color: var(--gold);
    font-size: 3rem;
    margin-bottom: 2rem;
    animation: glow 2s ease-in-out infinite;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--soft-lavender));
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced Page Transitions */
.page-transition {
    animation: pageTransition 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pageTransition {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        transform: translateY(25px) scale(0.98);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Smooth Page Load Animation */
body {
    animation: pageLoad 1.5s ease-out;
}

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

/* Enhanced Section Transitions */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: sectionReveal 0.8s ease forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.3s; }
section:nth-child(3) { animation-delay: 0.5s; }
section:nth-child(4) { animation-delay: 0.7s; }
section:nth-child(5) { animation-delay: 0.9s; }

@keyframes sectionReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.float-btn span {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.float-btn:hover span {
    opacity: 1;
    transform: translateX(0);
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.1);
}

.float-btn.call {
    background: #FF6B6B;
}

.float-btn.call:hover {
    background: #FF5252;
    transform: scale(1.1);
}

.float-btn.book {
    background: var(--gold);
    color: var(--text-dark);
}

.float-btn.book:hover {
    background: #B8941F;
    transform: scale(1.1);
}

/* 3D Services Hero */
.services-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.floating-element {
    position: absolute;
    background: linear-gradient(135deg, var(--gold), var(--soft-lavender));
    border-radius: 50%;
    opacity: 0.1;
    animation: float3d 20s infinite ease-in-out;
}

.elem-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.elem-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.elem-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float3d {
    0%, 100% {
        transform: translateY(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translateY(-50px) rotateX(10deg) rotateY(10deg);
    }
    50% {
        transform: translateY(-30px) rotateX(-10deg) rotateY(10deg);
    }
    75% {
        transform: translateY(-70px) rotateX(10deg) rotateY(-10deg);
    }
}

/* Glitch Text Effect */
.glitch-text {
    font-size: clamp(3rem, 6vw, 5rem);
    position: relative;
    animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--gold);
    z-index: -1;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--soft-lavender);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 30% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(50% 0 20% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(80% 0 5% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(1px, -2px); }
    80% { clip-path: inset(5% 0 80% 0); transform: translate(-1px, 1px); }
}

/* Service Filters */
.service-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: var(--font-body);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

/* 3D Services Grid */
.services-advanced {
    padding: 100px 0;
    background: var(--text-light);
}

.services-3d-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

/* Service Overlay Gradient */
.service-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(212, 175, 55, 0.3));
    border-radius: 15px;
    z-index: 1;
}

.service-front .service-icon-3d,
.service-front h3,
.service-front p,
.service-front .service-price {
    position: relative;
    z-index: 2;
}

.service-item-3d.featured .service-overlay-gradient {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.8), rgba(203, 170, 203, 0.6));
}

/* Enhanced 3D Service Cards */
.service-item-3d {
    height: 400px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
}

.service-item-3d:hover {
    transform: rotateY(180deg);
}

.service-item-3d.flipped {
    transform: rotateY(180deg);
}

.service-card-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-front,
.service-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.service-front {
    background: linear-gradient(135deg, var(--light-pink), var(--soft-blush));
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.service-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
}

.service-back {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    color: var(--text-light);
    transform: rotateY(180deg);
    border: 2px solid var(--gold);
    backdrop-filter: blur(10px);
}

.service-item-3d.featured .service-front {
    background: linear-gradient(135deg, var(--gold), var(--khaki-orange));
    border: 3px solid var(--bright-yellow);
    box-shadow: 0 15px 50px rgba(225, 195, 0, 0.3);
}

.service-item-3d.featured .service-front h3,
.service-item-3d.featured .service-front p {
    color: var(--text-dark);
}

.service-item-3d.featured .service-icon-3d {
    background: var(--text-light);
    color: var(--gold);
    box-shadow: 0 10px 30px rgba(225, 195, 0, 0.4);
}

.featured-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, var(--attention), var(--reddish-pink));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.4);
    animation: featuredPulse 2s infinite;
    z-index: 10;
}

@keyframes featuredPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 77, 109, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 77, 109, 0.6);
    }
}

/* Enhanced Service Icon */
.service-icon-3d {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--gold), var(--khaki-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: iconPulse 3s infinite ease-in-out;
    box-shadow: 0 8px 25px rgba(225, 195, 0, 0.3);
    transition: all 0.3s ease;
}

.service-item-3d:hover .service-icon-3d {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(225, 195, 0, 0.5);
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(225, 195, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(225, 195, 0, 0.5);
    }
}

/* Enhanced Service Typography */
.service-front h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-front p {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    background: rgba(26, 26, 26, 0.1);
    padding: 10px 25px;
    border-radius: 25px;
    border: 1px solid rgba(225, 195, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.service-item-3d.featured .service-price {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-dark);
    border-color: var(--bright-yellow);
}

/* Enhanced Back Side */
.service-back h3 {
    color: var(--gold);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 10px rgba(225, 195, 0, 0.3);
}

.service-back ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
}

.service-back li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

.service-back li::before {
    content: '✦';
    color: var(--gold);
    font-weight: bold;
    font-size: 1rem;
}

.service-back li:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.service-back li:last-child {
    border-bottom: none;
}

/* Enhanced Service Features */
.service-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.service-duration i {
    font-size: 1rem;
}

.service-benefits {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    border: 1px solid rgba(225, 195, 0, 0.3);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(225, 195, 0, 0.2);
    transform: translateY(-2px);
}

.benefit-item i {
    color: var(--gold);
    font-size: 0.9rem;
}
.service-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.btn-3d {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.btn-3d::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;
}

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

.btn-3d {
    background: linear-gradient(135deg, var(--gold), var(--khaki-orange));
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(225, 195, 0, 0.3);
}

.btn-3d:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(225, 195, 0, 0.5);
}

.btn-3d.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-3d.secondary:hover {
    background: var(--text-light);
    color: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
}

.btn-3d.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-3d.whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #0E5F4E);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Service Process Timeline */
.service-process {
    padding: 100px 0;
    background: var(--warm-neutral);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    z-index: 1;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    margin: 0 2rem;
}

.timeline-content {
    flex: 1;
    background: var(--text-light);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.timeline-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-dark);
}

/* Special Offers */
.special-offers {
    padding: 100px 0;
    background: var(--primary-dark);
    color: var(--text-light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.offer-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--attention);
    color: white;
    padding: 10px 20px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(255, 77, 109, 0.3);
}

.offer-card h3 {
    color: var(--gold);
    margin: 1rem 0 0.5rem;
}

.offer-card p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.offer-code {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-family: monospace;
    font-size: 1.1rem;
    border: 1px solid var(--gold);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }
    50% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    }
}

/* Responsive Design for Advanced Features */
@media (max-width: 768px) {
    .services-3d-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item-3d {
        height: 350px;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-marker {
        position: absolute;
        left: 0;
        margin: 0;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .float-btn span {
        display: none;
    }
    
    .service-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .glitch-text {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

@media (max-width: 480px) {
    .services-hero {
        min-height: 80vh;
    }
    
    .service-card-3d {
        padding: 1.5rem;
    }
    
    .service-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-3d {
        width: 100%;
        max-width: 200px;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animations for Service Cards */
.service-item-3d {
    opacity: 0;
    animation: serviceCardReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.service-item-3d:nth-child(1) { animation-delay: 0.1s; }
.service-item-3d:nth-child(2) { animation-delay: 0.2s; }
.service-item-3d:nth-child(3) { animation-delay: 0.3s; }
.service-item-3d:nth-child(4) { animation-delay: 0.4s; }
.service-item-3d:nth-child(5) { animation-delay: 0.5s; }
.service-item-3d:nth-child(6) { animation-delay: 0.6s; }

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

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Parallax Scroll Effects */
.parallax-scroll {
    transition: transform 0.6s ease-out;
}

/* Enhanced Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-light);
    animation: loadingContentPulse 2s ease-in-out infinite;
}

@keyframes loadingContentPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

.loading-logo h2 {
    color: var(--gold);
    font-size: 3.5rem;
    margin-bottom: 2rem;
    animation: logoGlow 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(225, 195, 0, 0.5);
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(225, 195, 0, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 50px rgba(225, 195, 0, 0.8);
        transform: scale(1.05);
    }
}

.loading-bar {
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 0 auto 2rem;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--gold), var(--khaki-orange), var(--bright-yellow));
    animation: loadingShimmer 2s ease-in-out infinite;
    border-radius: 3px;
}

@keyframes loadingShimmer {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.parallax-bg {
    transform: translateZ(-1px) scale(2);
}

.parallax-mid {
    transform: translateZ(0) scale(1);
}

.parallax-fg {
    transform: translateZ(1px) scale(0.8);
}

/* Advanced Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.magnetic-btn:hover {
    transform: scale(1.05);
}

/* Loading States */
.loading-state {
    pointer-events: none;
    opacity: 0.6;
    position: relative;
}

.loading-state::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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