* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --white: #ffffff;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 1rem 2rem;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 300px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    /* Desktop: flex layout, Mobile: will be changed in media query */
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.demo-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white) !important;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.18);
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Mobile Menu Button (Hamburger) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.6rem 0.4rem;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: 30px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    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="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero-logo img {
    width: 1000px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

/* Section Styles */
.section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.about {
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 4rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    text-align: center;
}

.about-description {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}



/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--bg);
    background: var(--bg-dark);
    padding: 10px 20px;
    width: fit-content;
    border-radius: 20px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* Animation Showcase */
.showcase {
    background: var(--dark);
    color: var(--white);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.showcase-item {
    background: var(--dark-light);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showcase-item h4 {
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

.showcase-item code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--accent);
    display: inline-block;
    margin-top: 1rem;
}

/* Installation Section */
.installation {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.code-block {
    background: var(--dark);
    color: #a78bfa;
    padding: 2rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
    position: relative; /* allow absolute-positioned copy button */
}

.code-block code {
    color: #34d399;
}

/* Copy button for code blocks */
.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: var(--white);
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    backdrop-filter: blur(6px);
    transition: background 0.18s ease, transform 0.12s ease;
}

.copy-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: linear-gradient(90deg, #10b981, #059669);
}

@media (max-width: 480px) {
    .copy-btn {
        top: 8px;
        right: 8px;
        padding: 6px 8px;
        font-size: 0.85rem;
    }
}

.code-block .comment {
    color: var(--gray-light);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
}

.footer-socials {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-social-link i {
    font-size: 1.5rem;
    color: var(--gray-light);
    transition: color 0.3s;
}

.footer-social-link:hover i {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        width: 200px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }

    .nav-links.mobile-open {
        max-height: 500px;
         padding: 1rem 0; 
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links li a {
        /* padding: 1rem 1.5rem; */
        display: block;
        text-align: center;
        color: var(--dark);
    }

    .nav-links li a:hover {
        background-color: rgba(99, 102, 241, 0.08);
        color: var(--primary);
    }

    .demo-btn {
        margin: 0 auto;
        width: fit-content;
    }

    .hero {
        padding: 100px 1rem 60px;
    }

    .hero-logo img {
        width: 350px;
        margin-bottom: 1rem;
    }

    .section {
        padding: 60px 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Badge */
.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}


.install-heading {
    margin-bottom: 1rem;
    color: var(--dark);
}

.install-heading-first {
    margin-top: 0;
}

.install-heading-subsequent {
    margin-top: 2rem;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

.cta-large {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.18);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(79, 70, 229, 0.22);
}

/* Footer Styles */
.footer-logo {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 200px;
}

.footer-description {
    color: var(--gray-light);
    margin-bottom: 1rem;
}


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: opacity 200ms ease, transform 200ms ease, background 0.25s ease;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    z-index: 1100;
    font-weight: bold;
    font-size: 25px;
}

.back-to-top.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--primary-dark);
}

/* Contact Form Styles */
.contact-container {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark);
    background: var(--bg);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success-msg {
    display: none;
    padding: 1rem;
    background: #d1fae5;
    color: #047857;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    animation: slideIn 0.3s ease;
}

.form-success-msg.show {
    display: block;
}

#result {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 1.5rem;
        margin: 2rem auto 0;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem 0.85rem;
    }
}
