@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-blue: #090f1a;
    --secondary-blue: #152238;
    --accent-color: #0ea5e9;
    --light-accent: #38bdf8;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--primary-blue);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Default dynamic background overlay if admin sets a bg_url */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.dynamic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, rgba(11, 25, 44, 0.95) 0%, rgba(30, 62, 98, 0.8) 100%);
}

/* Ambient glowing orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite alternate linear;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--secondary-blue);
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
    opacity: 0.3;
}

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

/* Navbar */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(11, 25, 44, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.store-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--light-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 25px;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover {
    color: var(--accent-color);
}

.btn-admin {
    padding: 10px 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-admin:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
}

.hero-content {
    max-width: 850px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 0 20px rgba(255,255,255,0.02);
    border-radius: 30px;
    padding: 70px 50px;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    white-space: pre-line; /* preserves newlines from textarea */
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-color), #0284c7);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.btn-primary:hover::after {
    opacity: 1;
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.6);
}

.btn-secondary {
    padding: 15px 35px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--glass-border);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Footer Section */
footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(11, 25, 44, 0.9);
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

/* Item Showcase Dummy */
.features-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.feature-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: left;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.feature-card:hover {
    transform: translateY(-12px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}
.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-size: 1.5rem;
}
.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    .nav-links {
        display: none; /* Hide on mobile for simplicity, or use hamburger */
    }
    .btn-admin {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content {
        padding: 40px 20px;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
    }
}
