/* Casa Ascendente - Immersive Experience Styles */
/* Holographic • AR • 3D Effects */

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

/* Holographic Effect Base */
.holographic {
    position: relative;
    animation: hologramFloat 6s ease-in-out infinite;
}

.holographic::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -5%;
    right: -5%;
    bottom: -5%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(212, 175, 55, 0.1) 30%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(212, 175, 55, 0.1) 70%,
        transparent 80%
    );
    background-size: 200% 200%;
    animation: hologramShine 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes hologramShine {
    0%, 100% { background-position: 200% 200%; }
    50% { background-position: -200% -200%; }
}

@keyframes hologramFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25% { transform: translateY(-8px) rotateY(2deg); }
    50% { transform: translateY(-12px) rotateY(0deg); }
    75% { transform: translateY(-8px) rotateY(-2deg); }
}

/* Hologram Container - 3D Rings */
.hologram-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
    perspective: 1000px;
}

.hologram-ring {
    position: absolute;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.ring-1 {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    animation-duration: 25s;
}

.ring-2 {
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    animation-duration: 30s;
    animation-direction: reverse;
    border-style: dashed;
}

.ring-3 {
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    animation-duration: 35s;
    border-color: rgba(212, 175, 55, 0.15);
}

@keyframes ringRotate {
    from { transform: rotateZ(0deg) rotateX(60deg); }
    to { transform: rotateZ(360deg) rotateX(60deg); }
}

.hologram-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(212, 175, 55, 0.05) 30%,
        transparent 60%
    );
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hologram-container .emblem {
    position: relative;
    z-index: 10;
    width: 220px;
    height: auto;
    margin: 30px auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
}

/* Glitch Text Effect */
.glitch {
    position: relative;
}

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

.glitch:hover::before {
    animation: glitch-1 0.3s linear infinite;
    color: #D4AF37;
    z-index: -1;
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear infinite;
    color: #F4E4BC;
    z-index: -2;
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Holographic Button */
.holographic-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none !important;
}

.holographic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: btnShine 3s ease-in-out infinite;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.holographic-btn span {
    position: relative;
    z-index: 1;
}

/* Scroll Indicator Enhanced */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; height: 60px; }
    50% { opacity: 1; height: 80px; }
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.6;
}

/* Animated Divider */
.divider.animated {
    position: relative;
    overflow: hidden;
}

.divider.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: dividerShine 4s ease-in-out infinite;
}

@keyframes dividerShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

/* 3D Card Effect */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(-5deg);
}

.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        transparent 40%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-3d:hover .card-shine {
    opacity: 1;
    animation: cardShine 1.5s ease-in-out;
}

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

/* AR Section */
.ar-section {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--black) 0%, var(--navy) 50%, var(--black) 100%);
    position: relative;
    overflow: hidden;
}

.ar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ar-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ar-phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 40px;
    padding: 15px;
    box-shadow: 
        0 50px 100px rgba(0,0,0,0.5),
        inset 0 0 0 2px rgba(255,255,255,0.1);
    position: relative;
}

.ar-phone-mockup::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 15px;
}

.ar-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--navy) 0%, var(--black) 100%);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ar-seraph-preview {
    position: relative;
    width: 150px;
}

.ar-seraph-preview img {
    width: 100%;
    animation: arFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
}

@keyframes arFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.ar-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.ar-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(212, 175, 55, 0.2), transparent),
        radial-gradient(1px 1px at 60% 20%, rgba(212, 175, 55, 0.3), transparent),
        radial-gradient(2px 2px at 80% 60%, rgba(212, 175, 55, 0.2), transparent);
    animation: particleFloat 10s linear infinite;
}

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

.ar-text {
    padding-right: 2rem;
}

.ar-badge {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.ar-section h2 {
    text-align: left;
    margin-bottom: 1rem;
}

.ar-description {
    color: var(--white-soft);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.ar-features {
    margin-bottom: 2rem;
}

.ar-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.ar-feature-icon {
    color: var(--gold);
    font-size: 0.8rem;
}

.ar-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.ar-launch-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.ar-launch-btn .btn-icon svg {
    width: 18px;
    height: 18px;
}

.ar-note {
    color: var(--white-soft);
    font-size: 0.85rem;
    margin-top: 1rem;
    opacity: 0.6;
}

/* Emblem Section Immersive */
.emblem-section.immersive {
    position: relative;
    overflow: hidden;
}

.emblem-parallax-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(212, 175, 55, 0.05) 0%,
        transparent 50%
    );
    animation: parallaxRotate 60s linear infinite;
}

@keyframes parallaxRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.emblem-3d-container {
    position: relative;
    perspective: 1000px;
}

.emblem-main {
    max-width: 280px;
    transform-style: preserve-3d;
    animation: emblemFloat 8s ease-in-out infinite;
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.3));
}

@keyframes emblemFloat {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(5deg); }
    50% { transform: translateY(-15px) rotateY(0deg); }
    75% { transform: translateY(-10px) rotateY(-5deg); }
}

.emblem-reflection {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(
        to bottom,
        rgba(212, 175, 55, 0.1) 0%,
        transparent 100%
    );
    transform: scaleY(-0.3) translateY(-50%);
    opacity: 0.3;
    filter: blur(5px);
}

/* AR Modal */
.ar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ar-modal.active {
    display: flex;
}

.ar-modal-content {
    width: 90%;
    max-width: 600px;
    height: 80vh;
    background: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ar-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.ar-modal-close:hover {
    color: var(--gold);
}

.ar-viewer {
    width: 100%;
    height: calc(100% - 60px);
}

.ar-button {
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    cursor: pointer;
}

.ar-instructions {
    text-align: center;
    padding: 1rem;
    color: var(--white-soft);
    font-size: 0.9rem;
}

/* Responsive for Immersive */
@media (max-width: 900px) {
    .ar-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .ar-visual {
        order: -1;
    }
    
    .ar-text {
        padding-right: 0;
    }
    
    .ar-section h2 {
        text-align: center;
    }
    
    .ar-features {
        display: inline-block;
        text-align: left;
    }
    
    .ar-phone-mockup {
        width: 220px;
        height: 440px;
    }
    
    .hologram-container {
        width: 220px;
        height: 220px;
    }
    
    .hologram-container .emblem {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .ar-phone-mockup {
        width: 180px;
        height: 360px;
    }
    
    .hologram-container {
        width: 180px;
        height: 180px;
    }
    
    .hologram-container .emblem {
        width: 130px;
    }
    
    .ring-2, .ring-3 {
        display: none;
    }
}
