/* Global Styles */
:root {
    --primary-color: #2c3e50;
    /* Dark Slate Blue */
    --accent-color: #f1c40f;
    /* Golden Yellow */
    --action-color: #3498db;
    /* Bright Blue */
    --background-color: #f8f9fa;
    /* White/Light Gray */
    --text-color: #333333;
    --white: #ffffff;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Mobile Navigation Syles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default */
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 10px 0;
        font-size: 1.1rem;
    }

    /* Layout Adjustments */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero,
    .problem-solution,
    .features,
    .how-it-works,
    .screenshots-section {
        padding: 60px 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.2s;
}

.btn-primary {
    background-color: var(--action-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav a {
    margin-left: 20px;
    color: var(--text-color);
    font-weight: 500;
}

nav a:hover {
    color: var(--action-color);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background-color: var(--white);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
    }

    .text-content {
        flex: 1;
    }

    .visual-content {
        flex: 1;
    }
}

.hero h1 {
    font-size: 2.5rem;
    /* Fallback */
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero .subheadline {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.visual-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-content .placeholder-image {
    width: 100%;
    height: 300px;
    /* Adjust as needed */
    background-color: #e9ecef;
    border: 2px dashed #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    border-radius: 8px;
    font-weight: 500;
}

/* Problem vs Solution */
.problem-solution {
    padding: 60px 0;
}

.comparison-visual {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.comparison-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.video-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-container:hover .video-cover {
    transform: scale(1.02);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.video-container:hover .video-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    transition: transform 0.3s ease;
    /* Reset previous flex/gap styles that might interfere */
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.video-container:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-play-btn {
    width: 68px;
    height: 48px;
    background-color: #ff0000;
    border-radius: 12px;
    /* Slightly softer curve than pure rectangle */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

/* White triangle */
.yt-play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid white;
    /* No margin correction needed for basic triangle here, but small adjustment helps visual centering: */
    margin-left: 4px;
}

.video-container:hover .yt-play-btn {
    background-color: #cc0000;
    /* Darker red on hover */
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--action-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    /* Below play button, but visible when play button is hidden */
    display: none;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Key Features */
/* Key Features */
.features {
    padding: 100px 0;
    background-color: var(--background-color);
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 360px;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--action-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    /* Allocated space for the icon */
}

.feature-card .icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.05));
}

.feature-card:hover .icon img {
    transform: scale(1.1);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.how-it-works h2 {
    color: var(--white);
    font-size: 2.8rem;
}

.how-it-works h3 {
    color: var(--white);
    font-size: 1.1rem;
}

.how-it-works p {
    color: rgba(255, 255, 255, 0.9);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}



/* Screenshots Gallery */
.screenshots-section {
    padding: 80px 0;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.screenshot-img:hover {
    transform: scale(1.02);
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Footer */
footer {
    background-color: #2c3e50;
    /* Primary color */
    color: #bdc3c7;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.social-links a {
    margin-left: 20px;
    color: var(--white);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.d-none {
    display: none;
}

.modal-content {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-text {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.5;
}

.modal-details {
    margin-bottom: 2rem;
    margin-top: 2rem;
    /* Added margin top since it's now at the bottom */
    text-align: left;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.modal-details summary {
    padding: 15px;
    background-color: #f8f9fa;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none;
    /* Remove default triangle in some browsers */
}

/* Custom indicator logic */
.modal-details summary::-webkit-details-marker {
    display: none;
}

.modal-details summary::after {
    content: '\25BC';
    /* Arrow Down */
    float: right;
    font-weight: bold;
    font-size: 0.8rem;
    /* Slightly smaller for cleaner look */
    transition: transform 0.2s;
}

.modal-details[open] summary::after {
    content: '\25B2';
    /* Arrow Up */
    /* Alternatively keep arrow down and rotate it: transform: rotate(180deg); but user asked for up icon */
}

.details-content {
    padding: 15px;
    background-color: #f1f8ff;
    /* Soft background color (light blueish) */
    font-size: 0.95rem;
    color: #444;
}

.details-content p {
    margin-bottom: 10px;
}

.details-content p:last-child {
    margin-bottom: 0;
}

.modal-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.modal-step {
    width: 100%;
}

.step-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--action-color);
}

.modal-step img {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .modal-steps {
        flex-direction: column;
        align-items: center;
    }
}