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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-img {
    height: 120px;
    width: auto;
    max-width: 600px;
}

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

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #1e40af;
    background-color: #eff6ff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px 0 rgba(30, 64, 175, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px 0 rgba(30, 64, 175, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: #1e40af;
    color: white;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    padding-top: 16rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #1e40af;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-description {
    color: #6b7280;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 500px;
}

/* About Section */
.about {
    background-color: #ffffff;
}

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

.about-text h3 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
    background-color: #f8fafc;
}

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

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

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 1rem;
}

.service-icon img {
    width: 50px;
    height: 50px;
}

.service-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

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

.service-benefits {
    list-style: none;
    margin-bottom: 1rem;
}

.service-benefits li {
    color: #059669;
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-benefits li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.service-note {
    font-size: 0.9rem;
    color: #9ca3af;
    font-style: italic;
    margin-top: 1rem;
}

.services-cta {
    text-align: center;
}

/* Case Studies Section */
.case-studies {
    background-color: #ffffff;
}

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

.case-study-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.case-study-header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    padding: 1.5rem;
}

.case-study-header h3 {
    margin-bottom: 0.5rem;
}

.case-study-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.case-study-content {
    padding: 1.5rem;
}

.case-study-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.case-study-metrics {
    display: flex;
    background: #eff6ff;
    padding: 1.5rem;
    gap: 2rem;
    justify-content: center;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.metric-label {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.case-studies-cta {
    text-align: center;
}

/* Blog Section */
.blog {
    background-color: #f8fafc;
}

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

.blog-post-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-post-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.blog-post-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.blog-tag {
    background: #eff6ff;
    color: #1e40af;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-cta {
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: #ffffff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: #1f2937;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item strong {
    color: #1f2937;
    display: inline-block;
    width: 80px;
}

.contact-item a {
    color: #1e40af;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-cta h4 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.contact-cta ul {
    list-style: none;
}

.contact-cta li {
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-form-wrapper {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
}

.contact-form h3 {
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1f2937;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

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

.form-note {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: #1f2937;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-text {
    text-align: right;
}

.footer-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e5e7eb;
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid,
    .case-studies-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding-top: 12rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .case-study-metrics {
        gap: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 100px;
    }

    .nav-wrapper {
        padding: 0.75rem 0;
    }

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

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .service-card,
    .case-study-card,
    .blog-post-card {
        padding: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .case-study-metrics {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-button {
        display: none;
    }

    section {
        padding: 2rem 0;
    }

    .hero {
        padding-top: 2rem;
    }
}
