@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.main-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

/* Background animated effects */
.background-effects {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(232, 65, 254, 0.1) 0%, transparent 70%);
}

.circle-3 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s infinite ease-in-out;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: 20%;
    right: 15%;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 191, 255, 0.2));
    animation-delay: 2s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    bottom: 20%;
    left: 15%;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.15), rgba(0, 255, 255, 0.15));
    animation-delay: 4s;
}

/* Logo wrapper */
.logo-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

/* Logo cards with 3D effect */
.logo-card {
    position: relative;
    width: 350px;
    /* Increased size */
    height: auto;
    display: flex;
    /* Align content */
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    animation: entranceAnimation 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards, cardFloat 6s 1.5s infinite ease-in-out;
}

.logo-top {
    animation-delay: 0.2s, 1.7s;
}

.logo-bottom {
    animation-delay: 0.5s, 2s;
}

/* Removed hover effects related to the glass card */
.logo-card:hover {
    transform: translateY(-10px) rotateX(5deg) scale(1.05);
}

.logo-card:hover .glow-effect {
    opacity: 0;
    /* Keep hidden */
}

.glow-effect {
    display: none;
}


.card-inner {
    position: relative;
    /* Removed glass background and borders */
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.logo-card:hover .card-inner {
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(79, 172, 254, 0.5));
    animation: logoGlow 3s infinite ease-in-out;
    transform: translateZ(50px);
    transition: transform 0.3s ease;
}

.logo-card:hover .logo-image {
    transform: translateZ(80px);
    filter: drop-shadow(0 15px 40px rgba(79, 172, 254, 0.7));
}

/* Floating particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 30%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.particle:nth-child(5) {
    top: 50%;
    left: 50%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.particle:nth-child(6) {
    top: 20%;
    left: 40%;
    animation-delay: 5s;
    animation-duration: 11s;
}

.particle:nth-child(7) {
    top: 70%;
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 14s;
}

.particle:nth-child(8) {
    top: 40%;
    left: 10%;
    animation-delay: 4.5s;
    animation-duration: 12s;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(50px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-50px, 50px) rotate(240deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg) scale(1);
    }

    50% {
        transform: translateY(-20px) rotateX(2deg) scale(1);
    }
}

@keyframes entranceAnimation {
    0% {
        opacity: 0;
        transform: scale(0.3) rotateY(-180deg) translateZ(-200px);
        filter: blur(20px) brightness(0);
    }

    50% {
        opacity: 0.5;
        filter: blur(10px) brightness(1.5);
    }

    70% {
        transform: scale(1.1) rotateY(5deg) translateZ(20px);
        filter: blur(0px) brightness(1.2);
    }

    85% {
        transform: scale(0.95) rotateY(-2deg) translateZ(0px);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateZ(0px);
        filter: blur(0px) brightness(1);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 10px 30px rgba(79, 172, 254, 0.5));
    }

    50% {
        filter: drop-shadow(0 10px 40px rgba(232, 65, 254, 0.6));
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(100px, -100px);
        opacity: 0;
    }
}

/* Navigation Header */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

.nav-icon {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* General Section Styling */
.section-glass {
    padding: 100px 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Glass Card Utility */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* About Section */
.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-content p {
    margin-bottom: 20px;
}

/* Apps Section */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.app-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.3));
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.app-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-glass {
    padding: 12px 30px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(232, 65, 254, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.4), rgba(232, 65, 254, 0.4));
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
    transform: scale(1.05);
}

.coming-soon {
    opacity: 0.7;
}

/* Featured App Styling (Corneta Militar) */
.featured-app {
    grid-column: 1 / -1;
    /* Span full width */
    align-items: flex-start;
    text-align: left;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.app-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.3));
}

.app-title-block h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-subtitle {
    font-size: 1rem;
    color: #4facfe;
    font-weight: 500;
}

.app-body {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: 100%;
    align-items: center;
}

.app-description {
    flex: 1;
}

.app-description h4 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.app-description h5 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-weight: 400;
}

.app-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-feature-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.featured-app:hover .app-feature-img {
    transform: scale(1.02);
}

/* Footer */
.glass-footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-logo-img {
    width: 300px;
    height: auto;
    /* Combine float and glow animations */
    animation: cardFloat 6s ease-in-out infinite, logoGlow 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.footer-text-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 5px;
    /* Tighter spacing */
}

.footer-text-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.contact-details {
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 5px;
    /* Reduced margin */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    /* Smaller text to fit address */
}

.footer-badges h4 {
    margin-bottom: 20px;
    color: #fff;
}

.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 900px) {
    .app-body {
        flex-direction: column-reverse;
    }

    .featured-app {
        text-align: center;
        align-items: center;
    }

    .app-header {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .logo-card {
        width: 350px;
    }

    .circle-1,
    .circle-2,
    .circle-3 {
        width: 300px;
        height: 300px;
    }

    .glass-nav {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .badges-grid {
        justify-content: center;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .logo-card {
        width: 280px;
    }

    .card-inner {
        padding: 20px;
    }
}

/* Scroll Animation Styles - Spaceship Effect */
.scroll-effect {
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity, filter;
}

/* Initial state (coming from bottom/future) */
.scroll-enter-bottom {
    transform: perspective(1000px) translate3d(0, 100px, -200px) rotateX(-10deg);
    filter: blur(5px);
    opacity: 0;
}

/* Active state (in view) */
.scroll-in-view {
    opacity: 1;
    transform: perspective(1000px) translate3d(0, 0, 0) rotateX(0deg);
    filter: blur(0);
}

/* Exit state (going to top/past) */
.scroll-exit-top {
    transform: perspective(1000px) translateZ(-500px) translateY(-100px);
    /* Move away into distance */
    opacity: 0;
    filter: blur(10px);
}