/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text-dark: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #f3f4f6;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}

.logo img {
    height: 28px;
    width: auto;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.logo-text .ai {
    color: var(--text-light);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-dark);
}

.nav-cta {
    background: var(--primary);
    color: var(--bg-white) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem !important;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 1px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 60px;
    background: var(--bg-white);
}

.hero-box {
    background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #1f2937 100%);
    border-radius: 16px;
    padding: 80px 60px;
    text-align: center;
    max-width: 900px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="15" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="85" cy="30" r="3" fill="rgba(255,255,255,0.08)"/><circle cx="45" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="60" r="1.5" fill="rgba(255,255,255,0.12)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.hero h1 .highlight {
    display: block;
    font-weight: 400;
}

.hero .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #f3f4f6;
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-title .ai {
    color: var(--text-light);
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--border-light);
    margin: 1rem auto 0;
}

/* Services Section */
#services {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    text-align: center;
    padding: 1rem;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-section);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
}

.service-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* About Section */
#about {
    background: var(--bg-section);
}

.about-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.about-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Why Choose Us Section */
#why-choose-us {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-section);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
}

.feature-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Portfolio Section */
#portfolio {
    background: var(--bg-section);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.portfolio-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Decorative app icons in portfolio */
.portfolio-image .app-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.portfolio-image .app-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.portfolio-content {
    padding: 1.25rem;
}

.portfolio-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Testimonials Section */
#testimonials {
    background: var(--bg-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.5rem;
}

.testimonial-stars {
    color: #111827;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.testimonial-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

/* Contact Section */
#contact {
    background: var(--bg-section);
}

.contact-wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.contact-divider {
    width: 100%;
    height: 1px;
    background: var(--border-light);
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: var(--bg-white);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--bg-white);
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
}

.footer-logo {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.footer-logo .ai {
    color: var(--text-light);
}

footer p {
    color: var(--text-light);
    font-size: 0.75rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {

    .services-grid,
    .features-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.6rem 0;
    }

    .nav-cta {
        text-align: center;
        margin-top: 0.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 15px 40px;
        min-height: auto;
    }

    .hero-box {
        padding: 50px 30px;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .subtitle {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .services-grid,
    .features-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-box {
        padding: 40px 20px;
    }

    .container {
        padding: 0 15px;
    }

    .contact-form {
        padding: 1.5rem;
    }
}