/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* Reset */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Inter', 'Montserrat', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 75%, #f5576c 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="g" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="20" cy="20" r="1.5" fill="url(%23g)"><animate attributeName="cy" values="20;80;20" dur="4s" repeatCount="indefinite"/></circle><circle cx="50" cy="60" r="1" fill="url(%23g)"><animate attributeName="cx" values="50;10;50" dur="5s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="2" fill="url(%23g)"><animate attributeName="cy" values="40;70;40" dur="3s" repeatCount="indefinite"/></circle><circle cx="30" cy="80" r="1.5" fill="url(%23g)"><animate attributeName="cx" values="30;70;30" dur="6s" repeatCount="indefinite"/></circle></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header with stunning effects */
header {
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f8f9ff, #e8f4fd);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
    animation: titleFloat 3s ease-in-out infinite alternate;
    position: relative;
}

@keyframes titleFloat {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-10px) scale(1.02); }
}

header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#visitorCount {
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Main content */
main {
    position: relative;
    z-index: 2;
}

.section {
    margin: 60px 0;
}

/* Enhanced glass container */
.glass-container, .container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 50px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* Feature grid with impressive cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon-wrapper {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.feature-icon {
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.feature-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.feature-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1rem;
}

/* Enhanced download section */
.download-app {
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.download-app::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: rotate 4s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.download-app p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Impressive button */
.button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.4);
}

/* Stunning loader section */
#loaderCustomSection {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Enhanced Newton's Cradle Loader */
.newtons-cradle-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px 0;
    position: relative;
}

.newtons-cradle_dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    margin: 0 5px;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    position: relative;
}

.newtons-cradle_dot::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

.newtons-cradle_dot:first-child {
    animation: newtonsCradleLeft 2s ease-in-out infinite;
}

.newtons-cradle_dot:last-child {
    animation: newtonsCradleRight 2s ease-in-out infinite;
}

@keyframes newtonsCradleLeft {
    25% { transform: translateX(-50px) rotate(-90deg); }
    75% { transform: translateX(0px) rotate(0deg); }
}

@keyframes newtonsCradleRight {
    25% { transform: translateX(0px) rotate(0deg); }
    75% { transform: translateX(50px) rotate(90deg); }
}

#loaderCustomSection h2 {
    font-size: 2.5rem;
    margin: 30px 0 20px;
    color: #fff;
}

#loaderCustomSection > p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Loading features list */
.loading-features {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-features h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.loading-features ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.loading-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.loading-features li:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.loading-features .emoji {
    width: 35px;
    height: 35px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 2;
}

footer .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mouse trail effect */
.mouse-trail {
    position: fixed;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.6), rgba(78, 205, 196, 0.3));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 30px 20px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .loading-features ul {
        grid-template-columns: 1fr;
    }
}