/* SnapIt Website Styles */
:root {
    /* SnapIt Color Palette */
    --primary-color: #2196F3;        /* Blue - Primary brand color */
    --secondary-color: #1976D2;      /* Darker blue for accents */
    --accent-color: #4CAF50;         /* Green for success states */
    --background-color: #F8F9FA;     /* Light gray background */
    --text-color: #333333;           /* Dark text */
    --text-light: #666666;           /* Light gray text */
    --card-bg-color: #FFFFFF;        /* White cards */
    --dark-color: #1A1A1A;           /* Dark headers */
    --gradient-start: #2196F3;       /* Blue gradient start */
    --gradient-end: #1976D2;         /* Blue gradient end */
    --shadow-color: rgba(33, 150, 243, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.download-btn {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    gap: 15px;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.app-store-btn img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

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

.phone-screenshot {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}


/* Features Section */
.features {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1), rgba(25, 118, 210, 0.05));
}

.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    border-radius: 20px;
    background: var(--card-bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-section:last-child {
    margin-bottom: 0;
}

.feature-section.reverse {
    direction: rtl;
}

.feature-section.reverse .feature-content {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.feature-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    transition: transform 0.3s ease;
}

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

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

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

footer p {
    margin: 0;
}

.privacy-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #64B5F6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .download-buttons {
        justify-content: center;
    }
    
    .feature-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 30px 20px;
    }
    
    .feature-section.reverse {
        direction: ltr;
    }
    
    .feature-content h2 {
        font-size: 1.8rem;
    }
    
    .feature-content p {
        font-size: 1rem;
    }
    
    nav {
        gap: 15px;
    }
    
    .download-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    footer .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .features {
        padding: 60px 0;
    }
    
    .feature-section {
        margin-bottom: 60px;
        padding: 20px 15px;
    }
    
    .feature-content h2 {
        font-size: 1.5rem;
    }
    
    .app-store-btn svg {
        height: 40px;
    }
    
    nav {
        flex-direction: column;
        gap: 10px;
    }
    
    header .container {
        padding: 12px 15px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .star {
        animation: none;
    }
}

/* Focus states for accessibility */
.nav-link:focus,
.download-btn:focus,
.app-store-btn:focus,
.privacy-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }
    
    .hero {
        background: none;
        color: var(--text-color);
    }
    
    .stars-container {
        display: none;
    }
    
    .download-buttons {
        display: none;
    }
}