/* Geometry America - Main Styles */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    overflow: hidden;
    min-height: 100vh;
    position: relative;
}

/* Background Effects */
.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 99, 132, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(88, 166, 255, 0.2) 0%, transparent 50%);
    animation: gradientMove 15s ease infinite;
}

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

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
    pointer-events: none;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    z-index: 50;
}

/* Stars */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

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

.shooting-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
    animation: shoot 3s ease-out forwards;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(300px) translateY(300px);
        opacity: 0;
    }
}

/* Container & Slides */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(1.2);
    padding: 20px;
    pointer-events: none;
}

.slide.active {
    animation: slideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

.slide.exit {
    animation: slideOut 1s cubic-bezier(0.7, 0, 0.84, 0) forwards;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: scale(1.3) translateY(50px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
        filter: blur(10px);
    }
}

/* Slide 1 - Logo */
.slide-1 .logo-container {
    perspective: 1500px;
    position: relative;
}

.slide-1 .logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3), transparent 70%);
    filter: blur(60px);
    animation: pulseGlowBg 3s ease-in-out infinite;
}

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

.slide-1 .logo {
    font-size: 6.5rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 80px rgba(120, 119, 198, 0.8),
                 0 0 120px rgba(255, 99, 132, 0.5);
    letter-spacing: 8px;
    transform-style: preserve-3d;
    text-align: center;
    line-height: 1.2;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.slide-1.active .logo {
    animation: logoEntrance 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(180deg) rotateX(45deg);
        filter: blur(20px);
    }
    60% {
        transform: scale(1.1) rotateY(-10deg) rotateX(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) rotateX(0deg);
        filter: blur(0);
    }
}

.slide-1 .logo .initial {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 8rem;
    animation: pulseGlow 2s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8))
            drop-shadow(0 0 60px rgba(240, 147, 251, 0.6));
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 30px rgba(102, 126, 234, 0.8))
                drop-shadow(0 0 60px rgba(240, 147, 251, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(102, 126, 234, 1))
                drop-shadow(0 0 100px rgba(240, 147, 251, 0.9));
    }
}

.slide-1 .subtitle {
    font-size: 1.5rem;
    color: #aaa;
    margin-top: 30px;
    text-align: center;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0;
    position: relative;
}

.slide-1.active .subtitle {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.5s;
}

.slide-1 .subtitle::before,
.slide-1 .subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

.slide-1 .subtitle::before {
    right: 110%;
}

.slide-1 .subtitle::after {
    left: 110%;
}

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

/* Slide 2 - Timeline */
.slide-2 .timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 30px;
    position: relative;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.slide-2.active .timeline-item {
    animation: timelineItemPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-2.active .timeline-item:nth-child(1) { animation-delay: 0.3s; }
.slide-2.active .timeline-item:nth-child(2) { animation-delay: 0.5s; }
.slide-2.active .timeline-item:nth-child(3) { animation-delay: 0.7s; }
.slide-2.active .timeline-item:nth-child(4) { animation-delay: 0.9s; }
.slide-2.active .timeline-item:nth-child(5) { animation-delay: 1.1s; }

@keyframes timelineItemPop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(100px) rotate(180deg);
    }
    70% {
        transform: scale(1.2) translateY(-10px) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    position: relative;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: ripple 2s ease-out infinite;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px white;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.timeline-line {
    width: 100px;
    height: 4px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.slide-2.active .timeline-item:nth-child(2) .timeline-line::before {
    animation: lineExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.6s;
}

.slide-2.active .timeline-item:nth-child(4) .timeline-line::before {
    animation: lineExpand 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

@keyframes lineExpand {
    0% {
        left: -100%;
    }
    100% {
        left: 0;
    }
}

.timeline-year {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-2 .history-text {
    max-width: 700px;
    text-align: center;
    color: #bbb;
    font-size: 1.4rem;
    line-height: 2;
    opacity: 0;
}

.slide-2.active .history-text {
    animation: textReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.4s;
}

@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.slide-2 .highlight {
    color: #667eea;
    font-weight: bold;
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
}

.slide-2.active .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #f093fb);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.8);
    animation: underlineExpand 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.8s;
}

@keyframes underlineExpand {
    to {
        width: 100%;
    }
}

/* Slide 3 - Stats */
.slide-3 .stats-title {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.slide-3.active .stats-title {
    animation: titleBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
}

@keyframes titleBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px) rotate(-10deg);
    }
    70% {
        transform: scale(1.1) translateY(10px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.slide-3 .stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transform: rotate(45deg);
}

.slide-3.active .stat-card::before {
    animation: cardShine 2s ease-in-out infinite;
}

@keyframes cardShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.slide-3.active .stat-card {
    animation: cardFlip 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slide-3.active .stat-card:nth-child(1) { animation-delay: 0.4s; }
.slide-3.active .stat-card:nth-child(2) { animation-delay: 0.6s; }
.slide-3.active .stat-card:nth-child(3) { animation-delay: 0.8s; }

@keyframes cardFlip {
    0% {
        opacity: 0;
        transform: rotateY(90deg) scale(0.5);
    }
    70% {
        transform: rotateY(-10deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

.stat-number {
    font-size: 4.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.slide-3.active .stat-number {
    animation: numberCount 1s ease-out forwards;
}

@keyframes numberCount {
    from {
        transform: scale(2) rotate(360deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.stat-label {
    font-size: 1.1rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Slide 4 - Coming Soon */
.slide-4 .coming-soon-container {
    text-align: center;
    max-width: 800px;
    position: relative;
}

.slide-4 .main-message {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 60px;
    line-height: 1.6;
    opacity: 0;
}

.slide-4.active .main-message {
    animation: messageExplosion 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.3s;
}

@keyframes messageExplosion {
    0% {
        opacity: 0;
        transform: scale(0.3);
        filter: blur(20px);
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.slide-4 .highlight-pink {
    color: #f093fb;
    font-weight: bold;
    font-size: 4rem;
    text-shadow: 0 0 40px rgba(240, 147, 251, 0.8);
    display: block;
    margin: 20px 0;
    position: relative;
}

.slide-4.active .highlight-pink {
    animation: glowPulse 2s ease-in-out infinite 1.5s;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 40px rgba(240, 147, 251, 0.8);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 80px rgba(240, 147, 251, 1), 0 0 120px rgba(102, 126, 234, 0.8);
        transform: scale(1.05);
    }
}

.slide-4 .final-text {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 40px;
    opacity: 0;
}

.slide-4.active .final-text {
    animation: textWave 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.8s;
}

@keyframes textWave {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

.slide-4 .glow-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
}

.slide-4.active .orb {
    animation: orbFloat 4s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: rgba(102, 126, 234, 0.3);
    top: -50px;
    left: -50px;
    animation-delay: 0s !important;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: rgba(240, 147, 251, 0.3);
    bottom: -50px;
    right: -50px;
    animation-delay: 1s !important;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
}

/* Navigation Dots */
.nav-dots {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid transparent;
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.5);
    transition: all 0.4s ease;
}

.nav-dot.active {
    background: linear-gradient(135deg, #667eea, #f093fb);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
    transform: scale(1.4);
}

.nav-dot.active::before {
    width: 30px;
    height: 30px;
    opacity: 0;
}

.nav-dot:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.nav-dot.active:hover {
    transform: scale(1.4);
}

/* Geometric Shapes */
.geometric-shape {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.08);
    animation: rotate 20s linear infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 8%;
}

.shape-2 {
    width: 180px;
    height: 180px;
    bottom: 12%;
    right: 8%;
    border-radius: 50%;
    animation: rotate 30s linear infinite reverse;
}

.shape-3 {
    width: 90px;
    height: 90px;
    top: 65%;
    left: 5%;
    transform: rotate(45deg);
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 15%;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border: none;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
}

.shape-5 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 15%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(88, 166, 255, 0.1), transparent);
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Scanline Effect */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent 50%, rgba(102, 126, 234, 0.03) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanlineMove 8s linear infinite;
    opacity: 0.3;
}

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

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash-message {
    padding: 15px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideInRight 0.3s ease;
}

.flash-message button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
}

.flash-message button:hover {
    opacity: 1;
}

.flash-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #81c784;
}

.flash-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #e57373;
}

.flash-info {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.5);
    color: #90caf9;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .slide-1 .logo {
        font-size: 3rem;
    }
    .slide-1 .logo .initial {
        font-size: 4.5rem;
    }
    .slide-1 .subtitle {
        font-size: 1rem;
    }
    .timeline-line {
        width: 50px;
    }
    .slide-3 .stats-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .slide-4 .main-message {
        font-size: 1.5rem;
    }
    .slide-4 .highlight-pink {
        font-size: 2.5rem;
    }
}
