/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --dark-secondary: #1e293b;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --tracker-primary: #14b8a6;
    --tracker-gradient: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-brand a {
    text-decoration: none;
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Simple Layout */
.hero-simple {
    padding: 120px 0 80px;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
}

.tracker-hero {
    background: radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.15) 0%, transparent 50%);
}

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tracker-page .badge {
    background: rgba(20, 184, 166, 0.1);
    color: var(--tracker-primary);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.intro-p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-visual {
    text-align: center;
}

.hero-preview-img {
    max-width: 320px; /* Reduced size */
    width: 100%;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 8px solid #1e293b;
}

/* Features */
.features-section {
    padding: 80px 0;
    background: var(--dark-secondary);
}

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

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

.feature-card {
    background: var(--dark-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.tracker-page .feature-card:hover {
    border-color: var(--tracker-primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Info Section (Tracker Only) */
.info-section {
    padding: 80px 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--tracker-primary);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.info-card p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact a {
    color: var(--tracker-primary);
    text-decoration: none;
    font-weight: 600;
}

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

.screenshots-slider {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
}

.screenshots-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.screenshot-wrapper {
    flex: 0 0 auto;
    width: 220px; /* Controlled size for screenshots */
}

.screenshot-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 4px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.tracker-page .btn-primary {
    background: var(--tracker-gradient);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.tracker-page .btn-primary:hover {
    box-shadow: 0 15px 30px rgba(20, 184, 166, 0.3);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    cursor: pointer;
    border: none;
    font-size: 20px;
}

.tracker-page + .back-to-top {
    background: var(--tracker-gradient);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.tracker-page + .back-to-top:hover {
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid, .info-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .intro-p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}

html {
    scroll-behavior: smooth;
}
