/* Download Page Specific Styles */

/* Download Header */
.download-header {
    position: relative;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #34495e 100%);
    padding: 120px 0 80px 0;
    text-align: center;
    overflow: hidden;
}

.download-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(116, 185, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(116, 185, 255, 0.05) 0%, transparent 50%);
    animation: downloadHeaderFloat 15s ease-in-out infinite;
}

.download-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.download-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #74b9ff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1.2;
}

.download-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.7;
    margin: 0 auto;
}

/* Download Platforms */
.download-platforms {
    padding: 80px 0;
    background: transparent;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Platform Cards */
.platform-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(0,212,255,0.10) 100%);
    border-radius: 36px;
    padding: 44px;
    transition: all 0.4s cubic-bezier(.23,1.02,.64,1.01);
    border: 1.5px solid rgba(116,185,255,0.13);
    box-shadow: 0 8px 40px 0 rgba(0,212,255,0.10), 0 1.5px 8px 0 rgba(0,0,0,0.10);
    backdrop-filter: blur(28px) saturate(1.2);
    overflow: hidden;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
    animation: platformCardPop 1.2s cubic-bezier(.23,1.02,.64,1.01) both;
}

@keyframes platformCardPop {
  0% { opacity: 0; transform: scale(0.97) translateY(30px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.platform-card:hover {
    transform: translateY(-12px) scale(1.025) rotate(-1deg);
    border-color: #00d4ff;
    box-shadow: 0 30px 80px 0 rgba(0,212,255,0.18), 0 8px 32px 0 rgba(0,0,0,0.18);
    background: linear-gradient(120deg, rgba(0,212,255,0.13) 0%, rgba(255,255,255,0.10) 100%);
    z-index: 2;
}

.platform-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.13;
    border-radius: 36px;
    filter: blur(2px) saturate(1.2);
    z-index: 0;
    pointer-events: none;
    animation: platformBgGlow 8s ease-in-out infinite alternate;
}

@keyframes platformBgGlow {
  0% { opacity: 0.13; }
  100% { opacity: 0.22; }
}

.platform-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 1.2s 0.2s both;
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.platform-icon {
    font-size: 2.5rem;
    color: white;
}

.platform-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* App Mockups */
.app-mockup {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 35px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.android-frame {
    border-radius: 25px;
}

.screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
    border-radius: 27px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.indicators {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: white;
}

.games-header h3 {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 700;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
}

.game-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.category {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.category.active {
    background: linear-gradient(135deg, #74b9ff 0%, #00d4ff 100%);
    color: white;
}

.games-grid-mockup {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
    gap: 8px;
}

.game-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.game-icon.ocho {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.game-icon.pool {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.game-icon.bowling {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.game-icon.soccer {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.game-icon.monsters {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.game-icon.chess {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.game-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Desktop Mockup */
.desktop {
    width: 100%;
    max-width: 350px;
}

.desktop-frame {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.window-header {
    background: #e0e0e0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.window-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.desktop-content {
    display: flex;
    height: 300px;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 100%);
}

.sidebar {
    width: 120px;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item.active {
    background: rgba(116, 185, 255, 0.2);
    color: white;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.desktop-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.desktop-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
}

.game-thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.desktop-game-card span {
    font-size: 0.7rem;
    text-align: center;
}

/* Download Buttons */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(.23,1.02,.64,1.01);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,212,255,0.13);
    border: none;
    outline: none;
    z-index: 2;
    animation: ctaBtnPop 1.2s 0.3s both;
    color: rgb(255, 255, 255);
}

@keyframes ctaBtnPop {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.download-btn::after {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg,rgba(255,255,255,0.08) 0%,rgba(0,212,255,0.12) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: 50px;
}

.download-btn:hover::after {
    opacity: 1;
}

.download-btn:hover {
    transform: scale(1.04) translateY(-3px) rotate(-1deg);
    box-shadow: 0 25px 60px rgba(0,212,255,0.18);
}

/* Platform Decorations */
.platform-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: 36px;
    z-index: 1;
}

.decoration {
    position: absolute;
    opacity: 0.13;
    animation: float 7s ease-in-out infinite alternate;
    filter: blur(0.5px) saturate(1.2);
}

/* Animations */
@keyframes downloadHeaderFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    .platform-card {
        padding: 32px 12px;
        min-height: 420px;
        border-radius: 28px;
    }
    .download-title {
        font-size: 2.3rem;
    }
    .phone-frame {
        width: 210px;
        height: 420px;
    }
}

@media screen and (max-width: 768px) {
    .download-header {
        padding: 60px 0 30px 0;
    }
    .download-title {
        font-size: 1.5rem;
    }
    .download-subtitle {
        font-size: 1.05rem;
    }
    .platform-card {
        padding: 18px 6px;
        min-height: 320px;
        border-radius: 18px;
    }
    .phone-frame {
        width: 120px;
        height: 220px;
    }
    
    /* Features tablet responsive */
    .download-features {
        padding: 80px 0;
    }
    
    .features-title {
        font-size: 2.8rem;
        margin-bottom: 50px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        padding: 0 20px;
    }
    
    .feature-item {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-item h3 {
        font-size: 1.6rem;
    }
    
    .feature-item p {
        font-size: 1.05rem;
    }
}

/* Features Section */
.download-features {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(26, 35, 50, 0.95) 0%, rgba(44, 62, 80, 0.9) 100%),
        radial-gradient(circle at 20% 30%, rgba(116, 185, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.download-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='20' cy='20' r='2' fill='%2374b9ff' opacity='0.3'/%3E%3Ccircle cx='80' cy='30' r='1.5' fill='%2300d4ff' opacity='0.4'/%3E%3Ccircle cx='30' cy='70' r='1.8' fill='%2374b9ff' opacity='0.2'/%3E%3Ccircle cx='70' cy='80' r='1.2' fill='%2300d4ff' opacity='0.5'/%3E%3C/svg%3E") repeat;
    background-size: 150px 150px;
    animation: featuresParticleFloat 20s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

.features-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    background: linear-gradient(
        45deg, 
        #74b9ff 0%, 
        #00d4ff 25%, 
        #81ecec 50%, 
        #74b9ff 75%, 
        #00d4ff 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: 
        featuresTextGlow 4s ease-in-out infinite,
        featuresGradientShift 8s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(116, 185, 255, 0.3);
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #74b9ff, #00d4ff, #74b9ff);
    border-radius: 2px;
    animation: titleUnderline 3s ease-in-out infinite;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-item {
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(116,185,255,0.05) 100%),
        rgba(255, 255, 255, 0.02);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border: 2px solid rgba(116, 185, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 25px rgba(116, 185, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: featureSlideUp 0.8s ease-out forwards;
    transform: translateY(30px);
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(116, 185, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(116, 185, 255, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(116, 185, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(116,185,255,0.1) 100%),
        rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: 
        linear-gradient(135deg, #74b9ff 0%, #00d4ff 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 
        0 15px 30px rgba(116, 185, 255, 0.3),
        0 0 20px rgba(116, 185, 255, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    animation: iconShine 3s ease-in-out infinite;
}

.feature-icon i {
    font-size: 2.2rem;
    color: white;
    z-index: 2;
    position: relative;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 
        0 20px 40px rgba(116, 185, 255, 0.4),
        0 0 30px rgba(116, 185, 255, 0.3);
}

.feature-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover h3 {
    color: #74b9ff;
    text-shadow: 0 0 10px rgba(116, 185, 255, 0.5);
}

.feature-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 400;
    margin: 0;
}

/* Animations */
@keyframes featuresParticleFloat {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-150px) translateY(-30px); }
}

@keyframes featuresTextGlow {
    0%, 100% { 
        text-shadow: 
            0 0 30px rgba(116, 185, 255, 0.3),
            0 0 40px rgba(116, 185, 255, 0.2);
    }
    50% { 
        text-shadow: 
            0 0 40px rgba(116, 185, 255, 0.6),
            0 0 60px rgba(0, 212, 255, 0.4);
    }
}

@keyframes featuresGradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes titleUnderline {
    0%, 100% { 
        width: 80px;
        opacity: 0.8;
    }
    50% { 
        width: 120px;
        opacity: 1;
    }
}

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

@keyframes iconShine {
    0% { transform: translateX(-200%) translateY(-200%) rotate(45deg); }
    50% { transform: translateX(200%) translateY(200%) rotate(45deg); }
    100% { transform: translateX(-200%) translateY(-200%) rotate(45deg); }
}

@media screen and (max-width: 480px) {
    .download-title {
        font-size: 1.1rem;
    }
    .download-subtitle {
        font-size: 0.95rem;
    }
    .platform-card {
        padding: 8px 2px;
        border-radius: 12px;
        min-height: 180px;
    }
    .phone-frame {
        width: 70px;
        height: 120px;
    }
    .platform-name {
        font-size: 1.1rem;
    }
    .download-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 18px;
    }
    
    /* Features responsive */
    .download-features {
        padding: 60px 0;
    }
    
    .features-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .feature-item {
        padding: 30px 20px;
        border-radius: 18px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    .feature-item h3 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 1rem;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .download-features::before,
    .features-title,
    .feature-item,
    .feature-icon::before {
        animation: none;
    }
    
    .features-title {
        background: linear-gradient(135deg, #74b9ff 0%, #00d4ff 100%);
        background-size: 100% 100%;
    }
    
    .features-title::after {
        animation: none;
        width: 80px;
    }
    
    .feature-item {
        opacity: 1;
        transform: translateY(0);
    }
    
    .feature-item:hover,
    .feature-item:hover .feature-icon {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .feature-item {
        border-color: #74b9ff;
        background: rgba(0, 0, 0, 0.8);
    }
    
    .feature-item h3 {
        color: #ffffff;
    }
    
    .feature-item p {
        color: #ffffff;
    }
    
    .feature-icon {
        background: #74b9ff;
        border: 2px solid #ffffff;
    }
}