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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #0f172a;
}

.gradient-text {
    background: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
    background: transparent;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
}

.logo i {
    color: #06B6D4;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #06B6D4;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #475569;
}

/* Hero Section */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 48px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #06B6D4;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.automation-dashboard {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.dashboard-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.metric-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: #64748b;
}

.automation-flow {
    display: flex;
    align-items: center;
    gap: 16px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    min-width: 120px;
}

.step-icon {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06B6D4;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    text-align: center;
}

.flow-arrow {
    color: #cbd5e1;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-description {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 96px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06B6D4, #0891B2);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-color: #06B6D4;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
}

.service-title {
    font-size: 24px;
    margin-bottom: 16px;
    color: #0f172a;
}

.service-description {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: #475569;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #06B6D4;
    font-weight: bold;
}

/* Solutions Section */
.solutions {
    padding: 96px 0;
    background: #f8fafc;
}

.solutions-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    background: white;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #06B6D4;
    color: white;
}

.tab-content {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.tab-panel {
    display: none;
    padding: 48px;
}

.tab-panel.active {
    display: block;
}

.solution-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
}

.solution-text h3 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #0f172a;
}

.solution-text p {
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    margin-bottom: 12px;
}

.solution-features i {
    color: #06B6D4;
}

.solution-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-bar {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.chart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* About Section */
.about {
    padding: 96px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 48px;
    line-height: 1.6;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-feature {
    display: flex;
    gap: 20px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #0f172a;
}

.feature-content p {
    color: #64748b;
    line-height: 1.5;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.stat-card .stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #06B6D4;
    margin-bottom: 8px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 96px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-description {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #475569;
}

.contact-item i {
    color: #06B6D4;
}

.contact-cta {
    text-align: left;
}

.cta-note {
    margin-top: 12px;
    font-size: 14px;
    color: #64748b;
}

.form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06B6D4;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 16px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #06B6D4;
}

.footer-column p {
    color: #94a3b8;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #1e293b;
    color: #64748b;
}

.footer-bottom a {
    color: #06B6D4;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .solution-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-menu.mobile-open {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
        gap: 4px;
        padding: 4px;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 80px;
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Mobile-specific improvements */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .service-card {
        padding: 32px 24px;
    }
    
    .form-container {
        padding: 20px 16px;
    }
    
    .nav-container {
        padding: 12px 16px;
    }
    
    .logo {
        font-size: 20px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Form Specific Styles */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 48px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}



.contact-info {
    padding: 24px 0;
}

.contact-info h2 {
    color: #0f172a;
    margin-bottom: 24px;
    font-size: 32px;
}

.contact-info h3 {
    color: #0f172a;
    margin-bottom: 16px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input[type="file"] {
    padding: 12px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: #06B6D4;
    background: #f0f9ff;
}

.form-group input[type="file"]:focus {
    border-color: #06B6D4;
    background: #f0f9ff;
    outline: none;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #06B6D4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.field-error {
    color: #ef4444;
    font-size: 14px;
    margin-top: 4px;
    animation: fadeIn 0.3s ease-in;
}

.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 16px 0;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in;
}

.status-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group label input[type="checkbox"] {
    margin-right: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* File upload styling */
.form-group input[type="file"]::-webkit-file-upload-button {
    background: #06B6D4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 12px;
}

.form-group input[type="file"]::-webkit-file-upload-button:hover {
    background: #0891B2;
}

/* Mobile Navigation */
.nav-menu.mobile-open {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile form improvements */
@media (max-width: 768px) {
    .form-container {
        padding: 32px 24px;
    }
    
    .contact-info h2 {
        font-size: 28px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    /* Stack form fields on mobile */
    .form-container div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    .form-container div[style*="grid-template-columns: 1fr 1fr"] .form-group {
        margin-bottom: 24px;
    }
    
    /* Mobile dashboard adjustments */
    .dashboard-metrics {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .automation-flow {
        flex-direction: column;
        gap: 12px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .automation-dashboard {
        padding: 24px;
    }
    
    /* Fix hero layout */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .form-container {
        padding: 24px 16px;
    }
    
    .contact-info h2 {
        font-size: 24px;
    }
    
    .form-container h3 {
        font-size: 20px;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 48px;
        padding: 16px 24px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .tab-panel {
        padding: 32px 24px;
    }
}