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

:root {
    --primary: #c0c0c0;
    --android: #3ddc84;
    --ios: #000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: #0a0a0a url('../assets/images/vise-campaign-background.jpg') center/cover fixed;
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 0;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192,192,192,0.15) 0%, transparent 70%);
    animation: float 20s infinite ease-in-out;
}

.bg-circle:nth-child(1) {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.bg-circle:nth-child(2) {
    width: 400px;
    height: 400px;
    top: 50%;
    right: -10%;
    animation-delay: 7s;
}

.bg-circle:nth-child(3) {
    width: 600px;
    height: 600px;
    bottom: -20%;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Header */
.header {
    text-align: center;
    padding: 5rem 0 4rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.logo-section {
    position: relative;
}

.header-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(192,192,192,0.5));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.08);
}

.title-section {
    position: relative;
}

.main-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #e8e8e8 50%, #c0c0c0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleReveal 1s ease-out 0.3s backwards;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c0c0c0, transparent);
    border-radius: 2px;
}

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

/* Apps Container */
.apps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    perspective: 2000px;
    margin-bottom: 6rem;
}

/* App Card */
.app-card {
    animation: cardAppear 0.8s ease-out backwards;
}

.app-card:nth-child(1) { animation-delay: 0.8s; }
.app-card:nth-child(2) { animation-delay: 1s; }
.app-card:nth-child(3) { animation-delay: 1.2s; }

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

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

.app-card.flipped .card-3d {
    transform: rotateY(180deg) !important;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 80px rgba(0,0,0,0.6),
                0 0 0 1px rgba(255,255,255,0.05),
                inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
}

.card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
}

.app-card:hover .card-front {
    transform: translateY(-5px);
    box-shadow: 0 30px 100px rgba(0,0,0,0.7),
                0 0 0 1px rgba(255,255,255,0.15),
                inset 0 1px 0 rgba(255,255,255,0.15);
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
}

/* Card Effects */
.card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(192,192,192,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.app-card:hover .card-glow {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

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

.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.app-card:hover .card-shine {
    transform: translateX(100%);
}

/* Icon */
.icon-container {
    width: 130px;
    height: 130px;
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-card:hover .icon-container {
    transform: scale(1.1) rotateZ(5deg);
}

.app-icon {
    width: 100%;
    height: 100%;
    border-radius: 28%;
    box-shadow: 0 15px 60px rgba(0,0,0,0.5),
                0 0 0 1px rgba(255,255,255,0.1);
    transition: all 0.5s ease;
}

.app-card:hover .app-icon {
    box-shadow: 0 25px 80px rgba(0,0,0,0.6),
                0 0 0 1px rgba(255,255,255,0.2),
                0 0 40px rgba(192,192,192,0.3);
}

/* Text */
.app-name {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.app-tagline {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Flip Button */
.flip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 1rem;
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.flip-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.flip-btn svg {
    transition: transform 0.3s ease;
}

.flip-btn:hover svg {
    transform: translateX(4px);
}

/* Back Side */
.back-btn {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.1);
}

.back-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 3.5rem 0 1rem;
    letter-spacing: -0.01em;
}

.back-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: auto;
    max-height: 180px;
    overflow-y: auto;
}

/* Store Links */
.stores {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.0625rem;
    transition: all 0.3s ease;
}

.store-link.android {
    background: var(--android);
    color: #000;
    box-shadow: 0 8px 25px rgba(61,220,132,0.3);
}

.store-link.android:hover {
    background: #2ec96d;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(61,220,132,0.4);
}

.store-link.ios {
    background: var(--ios);
    color: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.store-link.ios:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0 2rem;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
}

/* Responsive */
@media (max-width: 1024px) {
    .apps-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 3rem 0 3rem;
        margin-bottom: 2rem;
    }
    
    .header-logo {
        width: 110px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .apps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card-3d {
        height: 520px;
    }
    
    .card-face {
        padding: 2.5rem 2rem;
    }
    
    .card-back {
        padding: 2rem 1.75rem;
    }
    
    .icon-container {
        width: 110px;
        height: 110px;
    }
    
    .app-name {
        font-size: 1.875rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem 3rem;
    }
    
    .header {
        padding: 2rem 0 2rem;
        margin-bottom: 1.5rem;
    }
    
    .header-content {
        gap: 1.5rem;
    }
    
    .header-logo {
        width: 90px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .main-title::after {
        width: 60px;
        height: 2px;
    }
    
    .card-3d {
        height: 500px;
    }
    
    .card-back {
        padding: 2rem 1.5rem;
    }
    
    .icon-container {
        width: 100px;
        height: 100px;
    }
    
    .app-name {
        font-size: 1.75rem;
    }
    
    .back-title {
        font-size: 1.5rem;
        margin-top: 3rem;
    }
    
    .back-description {
        font-size: 0.875rem;
        max-height: 160px;
    }
}
