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

/* Icon Styles */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-filled {
    fill: currentColor;
    stroke: none;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-md {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

.icon-2xl {
    width: 2.5rem;
    height: 2.5rem;
}

.icon-3xl {
    width: 3rem;
    height: 3rem;
}

.nav-link .icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-link:hover .icon {
    transform: scale(1.1);
}

.section-title-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    color: var(--accent-primary);
    opacity: 0.8;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.app-card-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    opacity: 0.9;
}

.feature-icon {
    width: 0.875rem;
    height: 0.875rem;
    margin-right: 0.375rem;
    vertical-align: middle;
    color: var(--accent-primary);
    opacity: 0.7;
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.hero-decoration-eye {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.hero-decoration-eye-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 8%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Product Card Icon Container */
.app-card-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    padding: 0.5rem;
}

/* VisionLens Icon Container - Orange */
.visionlens-icon-container {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.app-card-icon-container .icon {
    width: 2rem;
    height: 2rem;
    color: white;
    stroke: white;
    fill: none;
}

.app-card-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

[data-theme="dark"] .app-card-icon-container {
    box-shadow: 0 4px 12px rgba(77, 171, 247, 0.3);
}

[data-theme="dark"] .visionlens-icon-container {
    background: linear-gradient(135deg, #ff8c42, #ff6b1a);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background-color: var(--nav-bg-scrolled);
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--accent-primary);
}

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

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

.theme-icon {
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: white;
    text-align: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--accent-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s ease;
}

/* Products Section */
.products {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.app-card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.app-description {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.feature-tag {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.app-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.app-link:hover {
    color: var(--accent-hover);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-email-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background-color: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-email-link:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-email-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.email-icon {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
    fill: none;
}

.email-address {
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--bg-secondary);
    text-align: center;
    color: var(--text-secondary);
    transition: background-color 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .nav-link .icon {
        width: 1rem;
        height: 1rem;
        margin-right: 0.375rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title-icon {
        width: 2rem;
        height: 2rem;
        margin-right: 0.75rem;
    }

    .app-card-icon-container {
        width: 3.5rem;
        height: 3.5rem;
        padding: 0.4rem;
    }

    .app-card-icon-container .icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .hero-decoration-eye,
    .hero-decoration-eye-2 {
        width: 120px;
        height: 120px;
    }

    .about,
    .products,
    .contact {
        padding: 3rem 0;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 15px;
    }

    .nav-menu {
        gap: 0.75rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-link .icon {
        width: 0.9rem;
        height: 0.9rem;
        margin-right: 0.25rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-title-icon {
        width: 1.75rem;
        height: 1.75rem;
        margin-right: 0.5rem;
    }

    .app-card-icon-container {
        width: 3rem;
        height: 3rem;
        padding: 0.35rem;
    }

    .app-card-icon-container .icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .hero-decoration-eye,
    .hero-decoration-eye-2 {
        width: 100px;
        height: 100px;
    }

    .contact-email-link {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .email-icon {
        font-size: 1.25rem;
    }

    .about-text,
    .contact-text {
        font-size: 1rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .app-title {
        font-size: 1.5rem;
    }
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.store-button {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background-color: #000;
    color: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    min-width: 135px;
    height: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.store-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.store-button.coming-soon {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.store-btn-text-small {
    font-size: 10px;
    line-height: 1;
    margin-bottom: 2px;
}

.store-btn-text-large {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.coming-soon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

[data-theme="dark"] .store-button {
    background-color: #fff;
    color: #000;
}

/* App Page Styles */
.app-page {
    padding-top: 100px;
    min-height: 100vh;
}

.app-hero {
    padding: 7rem 0 3rem 0;
    text-align: center;
    background-color: var(--bg-secondary);
}

.app-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.app-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.app-details {
    padding: 4rem 0;
    background-color: var(--bg-primary);
}

.app-details-content {
    max-width: 800px;
    margin: 0 auto;
}

.app-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.app-details p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.app-details ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.app-details li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.app-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

@media (max-width: 768px) {
    .app-hero-title {
        font-size: 2rem;
    }

    .app-hero-subtitle {
        font-size: 1.1rem;
    }

    .store-button img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .app-hero-title {
        font-size: 1.75rem;
    }

    .store-button img {
        height: 40px;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: center;
    }
}

