/* Reset and Base Styles */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #e0e7ff;
    --secondary: #7c3aed;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-gray: #334155;
    --medium-gray: #64748b;
    --light-gray: #e2e8f0;
    --lighter-gray: #f8fafc;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--primary), var(--accent));
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
}

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

.nav-logo h2 {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
    margin: 0;
    transition: var(--transition);
}

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

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

.nav-link:hover::after {
    width: calc(100% - 2rem);
}

.cta-button {
    background: var(--gradient);
    color: white;
    padding: 0.7rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.35);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(3px);
}

.cta-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.cta-button i {
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #fbbf24;
    color: #1f2937;
}

.btn-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #1f2937;
    border: 2px solid rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
    color: #1f2937;
    transform: translateY(-2px);
}

/* Services Section */
.services {
    padding: 200px 0 0;
    background: #f8fafc;
}

/* Services CTA Band */
.services-cta-band {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

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

.service-features li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

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

/* --- QoreFlow Modern About Section --- */
.about-modern {
    padding: 100px 0 60px;
    background: linear-gradient(120deg, #f8fafc 60%, #e0e7ff 100%);
    position: relative;
    overflow: hidden;
}

.qoreflow-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: rgba(255,255,255,0.65);
    box-shadow: 0 8px 32px 0 rgba(31,41,55,0.12);
    border-radius: 22px;
    padding: 2.5rem 2rem 2rem 2rem;
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(79,70,229,0.13);
    transition: transform 0.25s cubic-bezier(.61,-0.09,.7,1.27), box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.benefit-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 16px 48px 0 rgba(79,70,229,0.18);
    background: rgba(255,255,255,0.85);
}
.benefit-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(79,70,229,0.08);
}
.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #312e81;
}
.benefit-card p {
    color: #4b5563;
    font-size: 1rem;
    opacity: 0.92;
}

/* --- How It Works Modern Timeline --- */
.how-it-works-modern {
    padding: 100px 0 60px;
    background: linear-gradient(120deg, #eef2ff 60%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}
.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: rgba(255,255,255,0.75);
    border-radius: 18px;
    padding: 2rem 2rem 2rem 1.5rem;
    box-shadow: 0 6px 28px 0 rgba(31,41,55,0.09);
    margin-bottom: 0;
    width: 100%;
    position: relative;
    z-index: 2;
    transition: transform 0.2s cubic-bezier(.61,-0.09,.7,1.27), box-shadow 0.2s;
}
.timeline-step:hover {
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 12px 36px 0 rgba(79,70,229,0.15);
    background: rgba(255,255,255,0.95);
}
.timeline-icon {
    min-width: 54px;
    min-height: 54px;
    max-width: 54px;
    max-height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 40%, #7c3aed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
    box-shadow: 0 2px 12px rgba(79,70,229,0.13);
    margin-top: 0.2rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
    transition: background 0.3s;
}
.timeline-step:hover .timeline-icon {
    background: linear-gradient(135deg, #10b981 30%, #06b6d4 100%);
}
.timeline-content h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #312e81;
}
.timeline-content p {
    color: #4b5563;
    font-size: 1rem;
    opacity: 0.9;
}
.timeline-connector {
    width: 6px;
    height: 40px;
    background: linear-gradient(180deg, #6366f1 10%, #fbbf24 100%);
    border-radius: 3px;
    margin: -10px 0 -10px 24px;
    box-shadow: 0 2px 8px rgba(79,70,229,0.08);
    opacity: 0.6;
    animation: timelineFadeIn 1s;
}
@keyframes timelineFadeIn {
    from { opacity: 0; height: 0; }
    to { opacity: 0.6; height: 40px; }
}

/* Responsive for new sections */
@media (max-width: 900px) {
    .qoreflow-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    .faq-modern-grid {
        grid-template-columns: 1fr 1fr;
    }
    .timeline {
        max-width: 98vw;
    }
}
@media (max-width: 600px) {
    .qoreflow-benefits-grid {
        grid-template-columns: 1fr;
    }
    .faq-modern-grid {
        grid-template-columns: 1fr;
    }
    .timeline-step {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1rem 1.25rem 1rem;
    }
    .timeline-icon {
        margin-bottom: 0.8rem;
        margin-right: 0;
    }
    .timeline-connector {
        margin-left: 22px;
    }
}

/* Specializations Section */
.specializations {
    padding: 100px 0;
    background: white;
}

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

.specialization-card {
    text-align: center;
    padding: 2rem;
}

.specialization-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.specialization-icon i {
    font-size: 2rem;
    color: white;
}

.specialization-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.specialization-card p {
    color: #6b7280;
}

/* Case Studies Section */
.case-studies {
    padding: 100px 0;
    background: #f8fafc;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-study-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.case-study-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.case-study-tag {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
}

.case-study-result {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.case-study-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.case-study-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.about-intro {
    font-size: 1.2rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.credentials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.credential i {
    color: #2563eb;
    font-size: 1.2rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 4rem;
    color: white;
}

/* FAQ Modern Section */
.faq-modern {
    padding: 100px 0;
    background: linear-gradient(120deg, #f8fafc 60%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.faq-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(365px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.faq-modern-card {
    background: rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px 0 rgba(31,41,55,0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(79,70,229,0.1);
    transition: transform 0.25s cubic-bezier(.61,-0.09,.7,1.27), box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.faq-modern-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px 0 rgba(79,70,229,0.15);
    background: rgba(255,255,255,0.9);
}

.faq-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 40%, #8b5cf6 100%);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(79,70,229,0.2);
    flex-shrink: 0;
}

.faq-modern-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #312e81;
    line-height: 1.4;
}

.faq-modern-card p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: #f8fafc;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: #4b5563;
    line-height: 1.7;
}

.testimonial-author strong {
    color: #1f2937;
    font-weight: 600;
}

.testimonial-author span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #2563eb;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #f9fafb;
}

.footer-column a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .case-studies-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .case-study-card,
    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.service-card,
.case-study-card,
.testimonial-card,
.specialization-card {
    animation: fadeInUp 0.6s ease-out;
}
