@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600&display=swap');

:root {
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-color: #1a1a1a;
    --text-muted: #6c757d;
    --accent-color: #c94c4c;
    /* Refined earthy red */
    --accent-hover: #b03e3e;
    --border-radius: 12px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 48px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

/* Header Icons/Actions (Modern touch) */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 32px;
    background-color: var(--text-color);
    color: #fff;
    border: 1px solid var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
    /* Modern pill shape */
}

.btn:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #e1e1e1;
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: #fff;
}

/* Typography specifics */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 64px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Layout Utilities */
section {
    padding: 100px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Home Page Specifics */
.hero {
    min-height: 100vh;
    /* Full viewport height for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('images/home_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 60px;
    /* Compensation for header */
}

/* Override header transparency for homepage if needed, but sticky white is fine. 
   We will ensure the hero text punches through. */

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 5rem;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero .btn {
    background-color: #fff;
    color: #1a1a1a;
    border-color: #fff;
    padding: 16px 40px;
}

.hero .btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
}

.hero .btn-secondary:hover {
    background-color: #fff;
    color: #1a1a1a;
    border-color: #fff;
}

/* Remove separate hero-image styling for the hero section as it is no longer used there */
.hero-image {
    /* Kept for other sections (features) but reset if needed locally */
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

/* Floating Elements (3D Effect) */
.floating-element {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    display: none;
    /* Hidden by default (mobile) */
}

.floating-element img {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 10px;
}

@media (min-width: 961px) {
    .floating-element {
        display: block;
    }

    .float-1 {
        top: 15%;
        left: 3%;
        animation: float 6s ease-in-out infinite;
    }

    .float-2 {
        bottom: 12%;
        right: 3%;
        animation: float 7s ease-in-out infinite 1s;
    }

    .float-3 {
        top: 18%;
        right: 5%;
        animation: float 5s ease-in-out infinite 2s;
        /* Using translateZ if we were in a 3D context, but normal transform is fine for "floating" */
    }

    .float-4 {
        bottom: 18%;
        left: 5%;
        animation: float 8s ease-in-out infinite 0.5s;
    }

    .float-4 img {
        width: 150px;
        height: 150px;
    }

    /* Add a slight blur/depth of field to some elements */
    .float-3 img {
        width: 120px;
        height: 120px;
        filter: blur(1px) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Product Cards */
.product-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.product-card:hover {
    border-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-img-wrapper {
    height: 220px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
    background: #fcfcfc;
    border-radius: 8px;
}

.product-img-wrapper img {
    max-height: 80%;
    width: auto;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.1);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 24px;
}

/* Newsletter / Highlight */
.newsletter-section {
    background-image: url('images/newsletter_bg.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    position: relative;
    border-radius: 20px;
    margin: 40px 24px;
    padding: 120px 24px;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
}

.newsletter-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: #fff;
    font-size: 3rem;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 24px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Prompt', sans-serif;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group input:focus {
    outline: none;
}

.input-group button {
    padding: 12px 32px;
    border-radius: 40px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.input-group button:hover {
    background: var(--accent-color);
    color: #fff;
}

/* Detailed Feature Section */
/* Detailed Feature Section */
.features {
    padding: 120px 0;
    /* Using home_vibe.png with strong overlay for a premium dark atmospheric background */
    background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.8) 100%), url('images/home_vibe.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
}

.features h2 {
    font-size: 3rem;
    margin-bottom: 32px;
    color: #ffffff;
}

.features p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.features ul {
    display: flex;
    flex-direction: column;
    /* PC layout list */
    gap: 16px;
    margin-bottom: 40px !important;
}

.features li {
    font-size: 1.1rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features .fa-check {
    color: var(--accent-color);
    background: #fff;
    border-radius: 50%;
    padding: 4px;
    font-size: 0.8rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features .btn-secondary {
    border-color: #fff;
    color: #fff;
}

.features .btn-secondary:hover {
    border-color: #fff;
    background-color: #fff;
    color: #000;
}

/* Enhancing the image to look good on dark background */
.features .hero-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Testimonials */
.reviews {
    background-color: #fff;
}

.review-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: var(--border-radius);
    position: relative;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-initial {
    width: 48px;
    height: 48px;
    background-color: var(--text-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 16px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-color);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
    color: #999;
    font-size: 0.9rem;
}

/* Responsive */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 960px) {

    .grid-2,
    .grid-3,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        text-align: center;
        padding-top: 80px;
        background-attachment: scroll;
        /* Fix parallax jitter on mobile */
    }

    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    .hero-content p,
    .features p {
        font-size: 1rem;
    }

    /* Mobile Nav */
    .mobile-toggle {
        display: block;
        order: 3;
        /* Ensure it's on the right */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        gap: 32px;
        display: flex;
        /* Override display:none from previous desktop assumption or ensure flex works */
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text-color);
    }

    .features h2 {
        font-size: 2rem;
        color: #fff;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    /* Mobile Feature Section Override */
    .features {
        background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('images/feature_bg.png');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        text-align: center;
    }

    .features .hero-image {
        display: none;
        /* Hide the image element on mobile, use BG instead */
    }

    .features p,
    .features li,
    .features .btn-secondary {
        color: #fff;
    }

    .features p {
        max-width: 100%;
        margin: 0 auto 32px;
    }

    .features ul {
        align-items: center;
        /* Center list items */
    }

    .features .btn-secondary {
        border-color: #fff;
    }

    .input-group {
        flex-direction: column;
        border-radius: 20px;
    }

    .input-group input {
        width: 100%;
        text-align: center;
    }

    .input-group button {
        width: 100%;
        margin-top: 8px;
    }
}