/* Reset & Base Styles
---------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(125deg, #000000, #333333, #000000);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    color: #fff;
}

/* Animations
---------------------------------------- */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes starTwinkle {
    0% { transform: translateY(0); opacity: 0.6; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-250px); opacity: 0.6; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Background Effects
---------------------------------------- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(1px 1px at 10% 10%, rgba(255,255,255,0.1) 1px, transparent 2px),
        radial-gradient(2px 2px at 30% 30%, rgba(255,255,255,0.2) 1px, transparent 3px),
        radial-gradient(2px 2px at 50% 50%, rgba(255,255,255,0.2) 1px, transparent 3px);
    background-size: 250px 250px;
    animation: starTwinkle 10s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    z-index: 0;
}

/* Download Page (dow.html) Styles
---------------------------------------- */
.main {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 8vw 5vw;
    margin: 0 auto;
    max-width: 1200px;
}

/* App Header */
.app-header {
    margin-bottom: 8vw;
}

.app-logo {
    width: 25vw;
    max-width: 160px;
    margin: 8vw 0 0;
    border-radius: 25%;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    animation: float 3s ease-in-out infinite;
}

.app-title {
    font-size: 6vw;
    margin: 0;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

/* Download Buttons */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 4vw;
    margin: 6vw auto;
    border-radius: 16px;
    padding: 3vw 5vw;
    text-decoration: none;
    max-width: 400px;
    width: 80%;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.download-btn .icon {
    width: 8vw;
    height: 8vw;
    margin-right: 3vw;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.download-btn .text {
    text-align: left;
    flex-grow: 1;
}

.download-btn .text span {
    display: block;
    font-size: 0.7em;
    opacity: 0.7;
}

.download-btn .text b {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
}

/* Button Variants */
.android-btn {
    background: linear-gradient(45deg, #fff, #e8f5e9);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.android-btn .icon svg {
    fill: #3ddc84;
}

.android-btn .text {
    color: #2e7d32;
}

.ios-btn {
    background: linear-gradient(45deg, #fff, #f5f5f7);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ios-btn .icon svg {
    fill: #000000;
}

.ios-btn .text {
    color: #1d1d1f;
}

/* Installation Guide */
.install-guide {
    text-align: left;
    padding: 6vw;
    margin: 15vw auto 5vw;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    max-width: 700px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.install-guide h2 {
    margin: 0 0 4vw;
    font-size: 5vw;
    color: #1a1a1a;
}

.install-guide-content {
    font-size: 3.8vw;
    color: #4a4a4a;
    line-height: 2;
}

.install-guide-content p {
    margin: 2vw 0;
}

/* Home Page (home.html) Styles
---------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 0 60px;
}

.hero-text {
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.4em;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.desc-en {
    font-size: 1em !important;
    opacity: 0.7;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
}

/* Hero Download Button */
.hero-download-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 30px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 250px;
}

.hero-download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.hero-download-btn .icon {
    width: 48px;
    height: 48px;
    margin-right: 15px;
    flex-shrink: 0;
}

.hero-download-btn .text {
    text-align: left;
    flex-grow: 1;
}

.hero-download-btn .text span {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    text-align: left;
}

.hero-download-btn .text b {
    display: block;
    font-size: 1.2em;
    font-weight: 600;
    text-align: left;
}

.download-buttons {
    display: flex;
    justify-content: flex-start;
    margin-top: 40px;
}

/* App Preview Image */
.hero-image {
    position: relative;
}

.app-preview {
    width: 100%;
    max-width: 600px;
    height: auto;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(2deg);
}

/* Responsive Design
---------------------------------------- */
/* Tablet & Desktop */
@media (min-width: 768px) {
    .main {
        padding: 60px 20px;
    }

    .app-header {
        margin-bottom: 50px;
    }

    .app-logo {
        width: 120px;
        margin-bottom: 20px;
    }

    .app-title {
        font-size: 36px;
    }

    .download-btn {
        font-size: 18px;
        margin: 25px auto;
        padding: 20px 30px;
        border-radius: 12px;
        width: 360px;
    }

    .download-btn .icon {
        width: 32px;
        height: 32px;
        margin-right: 15px;
    }

    .install-guide {
        padding: 40px;
        margin: 60px auto;
        max-width: 600px;
        border-radius: 16px;
    }

    .install-guide h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .install-guide-content {
        font-size: 16px;
    }

    .install-guide-content p {
        margin: 15px 0;
    }
}

/* Mobile */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 20px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-text h1 {
        font-size: 2.5em;
    }

    .hero-text p {
        font-size: 1.2em;
    }

    .desc-en {
        font-size: 0.9em !important;
    }

    .download-buttons {
        justify-content: center;
    }

    .app-preview {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-download-btn {
        margin: 0 auto;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .main {
        padding: 80px 20px;
    }

    .app-logo {
        width: 140px;
    }

    .app-title {
        font-size: 42px;
    }

    .download-btn {
        width: 400px;
    }

    .install-guide {
        max-width: 700px;
    }
}