/* --- ROOT VARIABLES --- */
:root {
    --bg-color: #0D0D0F;
    --primary-text: #F5F5F7;
    --secondary-text: #A1A1A6;
    --card-bg: #1C1C1E;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary-accent: #007BFF;
    --secondary-accent: #8A2BE2;
    --shadow-color: rgba(0, 123, 255, 0.2);
}

/* --- GENERAL & TYPOGRAPHY --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; color: var(--primary-text); }
h3 { font-size: 1.25rem; }
p { color: var(--secondary-text); margin-bottom: 20px; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 { margin-bottom: 15px; }
.section-header p { max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}
.btn-secondary {
    background: transparent;
    color: var(--primary-text);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--primary-accent);
}
.app-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 15, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 20px 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo img { height: 80px; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 25px; }
nav ul li a {
    text-decoration: none;
    color: var(--secondary-text);
    font-weight: 500;
    transition: color 0.3s ease;
}
nav ul li a:hover { color: var(--primary-text); }

/* --- HERO SECTION --- */
.hero {
    padding-top: 200px;
    padding-bottom: 150px;
    text-align: center;
    display: flex;
    align-items: center;
    min-height: 100vh;
}
.hero-background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    opacity: 0.1;
    filter: blur(100px);
}
.hero-content-container {
    position: relative;
    z-index: 2;
}
.hero-text {
    max-width: 700px;
    margin: 0 auto 50px auto;
}
.hero-text .subtitle { font-size: 1.2rem; max-width: 550px; margin: 20px auto 0 auto; }
.hero .app-buttons { justify-content: center; }
.hero-image img {
    max-width: 350px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    animation: float-up-down 5s infinite ease-in-out;
}
@keyframes float-up-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.feature-icon {
    height: 50px;
    margin-bottom: 20px;
}

/* --- ABOUT SECTION --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-image { flex: 1; }
.about-image img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    /* FIX: Ensures the whole image is visible without being cropped */
    object-fit: contain;
}
.about-text { flex: 1; }
.about-text .section-subtitle {
    color: var(--primary-accent);
    font-weight: 600;
}
.about-text .app-buttons { justify-content: flex-start; }

/* --- SCREENSHOTS SECTION --- */
.screenshots-slider {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto; /* Allows horizontal scrolling */
    scroll-snap-type: x mandatory;
    /* FIX: Scrollbar is now visible */
    scrollbar-color: var(--primary-accent) var(--card-bg);
}
.screenshots-slider::-webkit-scrollbar {
    height: 8px;
}
.screenshots-slider::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}
.screenshots-slider::-webkit-scrollbar-thumb {
    background-color: var(--primary-accent);
    border-radius: 4px;
}

.screenshot {
    flex: 0 0 300px;
    scroll-snap-align: center;
    transition: transform 0.3s ease;
}
.screenshot img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}
.screenshot:hover {
    transform: scale(1.05);
}

/* --- CONTACT SECTION --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--primary-text);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--secondary-text);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}
.contact-form .btn { align-self: center; }

/* --- FOOTER --- */
.footer {
    background-color: #000;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-links { margin-bottom: 15px; }
.footer-links a {
    color: var(--secondary-text);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--primary-text); }
.copyright { font-size: 0.9rem; color: var(--secondary-text); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .about-content { flex-direction: column; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .navbar .container { flex-direction: column; gap: 15px; }
    .hero { text-align: center; }
    .hero-text .app-buttons, .about-text .app-buttons { justify-content: center; }
    .hero-image img { max-width: 280px; }
}

/* --- ANIMATIONS --- */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.appear {
    opacity: 1;
    transform: translateY(0);
}