/* Base Styles & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background: #000;
    color: #eafdff;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Layers */
/* Dynamic Plasma/Liquid Background (enhanced "jal type" animation) */
.liquid-plasma-bg {
    position: fixed;
    inset: -50%; /* Ensures it covers beyond viewport for seamless animation */
    background: linear-gradient(135deg,
        rgba(0, 100, 200, 0.25) 0%, /* Increased opacity for prominence */
        rgba(100, 0, 200, 0.3) 25%, /* Increased opacity */
        rgba(0, 150, 250, 0.25) 50%, /* Increased opacity */
        rgba(120, 0, 220, 0.33) 75%, /* Increased opacity */
        rgba(0, 100, 200, 0.25) 100%
    );
    background-size: 400% 400%;
    animation: plasmaFlow 30s ease-in-out infinite alternate;
    filter: blur(220px); /* Stronger blur for more fluid look */
    opacity: 0.95; /* Maximized overall opacity for full coverage */
    z-index: -5;
}
@keyframes plasmaFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Dot Grid Overlay (enhanced animation) */
.dot-grid-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 1px, transparent 1px); /* More visible white dots */
    background-size: 45px 45px; /* Denser dots */
    animation: dotMove 25s linear infinite;
    opacity: 0.5; /* Increased opacity for prominence */
    z-index: -4;
}
@keyframes dotMove {
    0% { background-position: 0 0; }
    100% { background-position: 600px 600px; }
}

/* Main Background Image */
.main-bg-image {
    position: fixed;
    inset: 0;
    background: url('https://i.ibb.co.com/pByVtMB1/bg.png') center/cover no-repeat;
    opacity: 0.15; /* Adjusted for visual balance with prominent liquid/dots */
    z-index: -3;
}

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35); /* Slightly more opaque for contrast */
    backdrop-filter: blur(20px); /* Stronger blur for header glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* More visible border */
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #9ff1ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.6);
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    color: #eafdff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: #00e0ff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}
.nav-links a:hover { color: #9ff1ff; }

.auth-buttons {
    display: flex;
    gap: 20px;
}

.auth-buttons .btn-auth {
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px); /* Stronger blur for buttons */
    border: 1px solid rgba(255, 255, 255, 0.3); /* More visible border */
}

.auth-buttons .btn-register {
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 150, 255, 0.4);
}
.auth-buttons .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 255, 0.6);
}

.auth-buttons .btn-login {
    background: rgba(255, 255, 255, 0.2); /* More opaque */
    color: #eafdff;
}
.auth-buttons .btn-login:hover {
    background: rgba(255, 255, 255, 0.3); /* More opaque on hover */
    transform: translateY(-2px);
}

/* Main Content Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding-top: 100px; /* Offset for fixed header */
    position: relative;
    z-index: 1;
    flex-direction: row; /* Default to row for wider screens */
    text-align: left; /* Default text alignment */
    padding-left: 5%;
    padding-right: 5%;
}

.hero-content {
    max-width: 650px;
    margin-right: 80px; /* Increased space from phone UI */
    position: relative;
}

.hero-content h1 {
    font-size: 68px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 0 25px rgba(0, 200, 255, 0.5), 0 0 10px rgba(255, 255, 255, 0.1);
    color: #d8faff;
}

/* Removed .download-buttons as per request */

/* Floating UI Element (Phone UI) */
.phone-ui-container {
    position: relative;
    width: 320px;
    height: 600px;
    background: rgba(255, 255, 255, 0.12); /* More opaque glass effect */
    backdrop-filter: blur(35px); /* Stronger blur for glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.3); /* More visible border */
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(0, 200, 255, 0.5), inset 0 0 40px rgba(255, 255, 255, 0.1);
    animation: floatUI 10s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
    transform: translateY(0);
    transition: transform 0.5s ease;
}
@keyframes floatUI {
    0% { transform: translateY(0px) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateX(-5deg); }
    100% { transform: translateY(0px) rotateX(5deg); }
}

.phone-ui-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1; /* Fully opaque now */
    transition: opacity 0.3s ease;
}
.phone-ui-container:hover .phone-ui-image { opacity: 1; }


/* Central Coin Icon (Adjusted Size) */
.center-coin-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; /* Increased size for coin background circle */
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05); /* Slightly more opaque */
    backdrop-filter: blur(15px); /* Stronger blur */
    box-shadow: 0 0 90px rgba(0, 200, 255, 0.5), inset 0 0 45px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    animation: coinCircleGlow 5s ease-in-out infinite alternate;
}
@keyframes coinCircleGlow {
    0% { box-shadow: 0 0 90px rgba(0, 200, 255, 0.5), inset 0 0 45px rgba(255, 255, 255, 0.08); }
    100% { box-shadow: 0 0 110px rgba(0, 255, 255, 0.7), inset 0 0 55px rgba(255, 255, 255, 0.12); } /* Stronger glow */
}

.center-coin-overlay img {
    width: 300px; /* Increased size for the coin image */
    animation: coinfloat 4.5s ease-in-out infinite,
               coinGlow 3s ease-in-out infinite alternate,
               coin3Drotate 8s linear infinite;
    filter: drop-shadow(0 0 20px rgba(0,200,255,1)); /* Stronger drop shadow */
}

/* Coin Animations (Re-used from previous iteration) */
@keyframes coinfloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); } /* Slightly increased float height */
    100% { transform: translateY(0); }
}
@keyframes coinGlow {
    0% { filter: drop-shadow(0 0 20px rgba(0,200,255,1)); }
    100% { filter: drop-shadow(0 0 35px rgba(0,255,255,1.2)); } /* Stronger glow */
}
@keyframes coin3Drotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(8deg); } /* More pronounced X-rotation */
    50% { transform: rotateY(180deg) rotateX(0deg); }
    75% { transform: rotateY(270deg) rotateX(-8deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content { margin-right: 50px; }
    .hero-content h1 { font-size: 58px; }
    .phone-ui-container {
        width: 280px;
        height: 520px;
        border-radius: 25px;
    }
    .center-coin-overlay {
        width: 350px; /* Adjusted coin background size */
        height: 350px;
    }
    .center-coin-overlay img { width: 260px; } /* Adjusted coin image size */
}

@media (max-width: 992px) {
    .nav-links { gap: 25px; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-content { margin-right: 0; margin-bottom: 50px; text-align: center; }
    .hero-content h1 { font-size: 48px; }
    .phone-ui-container {
        width: 260px;
        height: 480px;
        border-radius: 20px;
    }
    .center-coin-overlay {
        width: 300px; /* Adjusted coin background size */
        height: 300px;
    }
    .center-coin-overlay img { width: 220px; } /* Adjusted coin image size */
}

@media (max-width: 768px) {
    .header { flex-wrap: wrap; justify-content: center; padding: 15px 5%; }
    .logo { margin-bottom: 15px; width: 100%; text-align: center; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 15px; width: 100%; }
    .auth-buttons { width: 100%; justify-content: center; }
    .hero-section { padding-top: 180px; } /* More space for wrapped header */
    .hero-content h1 { font-size: 38px; }
    .phone-ui-container {
        width: 220px;
        height: 400px;
        border-radius: 18px;
    }
    .center-coin-overlay {
        width: 260px; /* Adjusted coin background size */
        height: 260px;
    }
    .center-coin-overlay img { width: 180px; } /* Adjusted coin image size */
}

@media (max-width: 480px) {
    .header { padding: 10px 3%; }
    .nav-links { gap: 15px; font-size: 15px; }
    .auth-buttons { gap: 10px; }
    .auth-buttons .btn-auth { padding: 8px 18px; font-size: 14px; }
    .hero-content h1 { font-size: 32px; }
    .phone-ui-container {
        width: 180px;
        height: 330px;
        border-radius: 15px;
    }
    .center-coin-overlay {
        width: 220px; /* Adjusted coin background size */
        height: 220px;
    }
    .center-coin-overlay img { width: 150px; } /* Adjusted coin image size */
}