/* public/css/style.css */
/* Modern premium dark-mode styling for Relax247 */

:root {
    --bg-base: #07040f;
    --bg-surface: rgba(22, 17, 43, 0.45);
    --bg-surface-solid: #150f28;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 242, 254, 0.25);
    
    --primary: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.5);
    --secondary: #9d4edd;
    --secondary-glow: rgba(157, 78, 221, 0.5);
    --accent: #ff007f;
    
    --text-main: #f8f9fa;
    --text-muted: #a0a5c0;
    
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

/* Glowing background blobs */
.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.45;
}

.blob-1 {
    top: 5%;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
}

.blob-2 {
    top: 20%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.blob-3 {
    top: 65%;
    left: 15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.2) 0%, transparent 60%);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(7, 4, 15, 0.7);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: var(--font-header);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    gap: 0.5rem;
}

.logo-icon {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo span span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Custom Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #07040f;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 254, 0.5);
}

.btn-primary.btn-sm {
    padding: 0.65rem 1.4rem;
    font-size: 0.85rem;
}

.btn-primary.btn-lg {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    gap: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-secondary.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-pulse {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 242, 254, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

/* Hero Section */
.hero-section {
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
}

.hero-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background: rgba(157, 78, 221, 0.15);
    border: 1px solid rgba(157, 78, 221, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c8b6ff;
    gap: 0.5rem;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.rating-badge-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.rating-stars {
    color: #ffb703;
    display: flex;
    gap: 0.2rem;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rating-text strong {
    color: var(--text-main);
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-top: 1rem;
}

.btn-icon-wrapper {
    font-size: 1.4rem;
}

.btn-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-sub {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

.btn-main {
    font-size: 1.05rem;
    font-weight: 700;
}

.app-specs {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.spec-item i {
    color: var(--primary);
}

.spec-item strong {
    color: var(--text-main);
}

/* Smartphone Mockup */
.hero-phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup-wrapper {
    position: relative;
    width: 310px;
    height: 610px;
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 10, 36, 0.8);
    border: 12px solid #2d264f;
    border-radius: 40px;
    padding: 18px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
                inset 0 0 15px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    z-index: 2;
}

.phone-speaker {
    width: 60px;
    height: 5px;
    background-color: #2d264f;
    border-radius: 10px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #0b071e;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.2rem;
    font-family: var(--font-body);
}

.phone-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 65%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

/* Simulated App UI inside screen */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.app-welcome {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.app-user {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.app-bell {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.app-quote-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.75rem;
    margin-bottom: 1.2rem;
}

.app-quote-card p {
    font-size: 0.75rem;
    font-style: italic;
    color: #e2e4ef;
    line-height: 1.4;
}

.app-quote-card span {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 0.3rem;
}

.app-active-sound {
    background: linear-gradient(135deg, rgba(31, 23, 61, 0.9) 0%, rgba(13, 8, 30, 0.9) 100%);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.playing-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.sound-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.sound-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 25px;
    margin-bottom: 1rem;
}

.sound-visualizer .bar {
    width: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    animation: waveBounce 1.2s ease-in-out infinite alternate;
}

.bar-1 { height: 10px; animation-delay: 0.1s !important; }
.bar-2 { height: 22px; animation-delay: 0.3s !important; }
.bar-3 { height: 15px; animation-delay: 0.5s !important; }
.bar-4 { height: 25px; animation-delay: 0.2s !important; }
.bar-5 { height: 18px; animation-delay: 0.4s !important; }
.bar-6 { height: 8px; animation-delay: 0.6s !important; }

@keyframes waveBounce {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1.1); }
}

.sound-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
}

.sound-controls .play-icon {
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

.app-sound-grid-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.app-sound-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.app-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.app-grid-item.active {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
}

.app-grid-item.active i {
    color: var(--primary);
}

.app-grid-item i {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.app-grid-item span {
    font-size: 0.65rem;
    color: var(--text-main);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.section-title {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.08);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.cyan-glow {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.purple-glow {
    background: rgba(157, 78, 221, 0.1);
    color: var(--secondary);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.15);
}

.pink-glow {
    background: rgba(255, 0, 127, 0.1);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.15);
}

.blue-glow {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.15);
}

.feature-card-title {
    font-family: var(--font-header);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.feature-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Instructions Section */
.instructions-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
}

.step-num {
    font-family: var(--font-header);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 15px;
    line-height: 1;
}

.step-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    z-index: 2;
    position: relative;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    z-index: 2;
    position: relative;
}

/* Reviews Section */
.reviews-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.user-avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #261f43;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.review-stars {
    color: #ffb703;
    font-size: 0.8rem;
    display: flex;
    gap: 0.15rem;
}

.review-comment {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

/* Download CTA Section */
.download-cta-section {
    padding: 80px 0 120px 0;
    position: relative;
}

.cta-container {
    background: linear-gradient(135deg, rgba(21, 15, 40, 0.9) 0%, rgba(8, 4, 20, 0.9) 100%);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    padding: 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cta-glow-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.15) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-content h2 {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 800;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
}

.cta-actions {
    margin-top: 1rem;
}

.sec-stat {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sec-stat i {
    color: #4caf50;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 50px 0;
    background-color: #05030b;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-admin-link {
    color: var(--primary) !important;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-grid {
        gap: 2rem;
    }
    .features-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }
    .nav-menu {
        display: none; /* Hide navigation links on mobile */
    }
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 20px;
    }
    .badge-new {
        align-self: center;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .rating-badge-container {
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        max-width: 320px;
    }
    .app-specs {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    .cta-container {
        padding: 2.5rem 1.5rem;
    }
    .cta-content h2 {
        font-size: 1.8rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-right {
        align-items: center;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Scroll Animation Fade-in classes */
.fade-in-init {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

