/*
Theme Name: Saphire
Description: A modern WordPress theme for Saphire company
Version: 1.0
*/

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

html {
    overflow-x: hidden;
}

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

/* Saphire.az brand color scheme matching original site */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #1e40af;
    --accent-color: #2563eb;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --surface: #f9fafb;
    --border: #e5e7eb;
}

/* Header with Rounded Navigation Design */
.site-header {
    background: transparent;
    padding: 2rem 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-background {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-container {
    background: #ffffff;
    border-radius: 50px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo .logo-diamond {
    height: 32px;
    width: 32px;
    object-fit: contain;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    display: inline-block;
}

.main-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

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

/* Main Content */
.main-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-content > section:not(.hero-carousel):not(.core-expertise-section):not(.what-we-offer-section):not(.how-we-work-section):not(.why-saphire-section) {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content .content-section {
    margin-top: 120px; /* Add top margin for fixed header spacing */
}

.main-content .hero-carousel {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin: 0;
    background: #1e40af;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(30, 64, 175, 0.5) 100%);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.carousel-content .hero-title,
.carousel-content .hero-subtitle,
.carousel-content .hero-content {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* Navigation Dots */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Carousel Loading State */
.hero-carousel:not(.loaded) .carousel-slide {
    opacity: 0;
}

.hero-carousel.loaded .carousel-slide:first-child {
    opacity: 1;
}

/* Additional Carousel Animations */
.carousel-content .hero-title,
.carousel-content .hero-subtitle,
.carousel-content .hero-content,
.carousel-content .btn-primary {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.carousel-slide.active .hero-title {
    animation-delay: 0.2s;
}

.carousel-slide.active .hero-subtitle {
    animation-delay: 0.4s;
}

.carousel-slide.active .hero-content {
    animation-delay: 0.6s;
}

.carousel-slide.active .btn-primary {
    animation-delay: 0.8s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fallback Hero Section */
.hero-section {
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    margin: 0;
    position: relative;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

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

.btn-primary {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Sections */
.content-section {
    margin-bottom: 4rem;
}

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

.section-spacer {
    height: 50px;
    width: 100%;
    background: transparent;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Cards/Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Footer Design */
.site-footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-social p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    color: var(--primary-color);
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method strong {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: white;
    font-size: 0.875rem;
}

.contact-method p {
    color: #9ca3af;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 1rem 0 0.5rem;
    }
    
    .header-background {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 25px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .main-content {
        padding: 140px 1rem 1rem; /* Adjust for mobile header height */
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Carousel Adjustments */
    .hero-carousel {
        height: 400px;
    }
    
    .carousel-nav {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
    
    .carousel-dots {
        bottom: 1rem;
        gap: 0.75rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-content {
        padding: 0 1rem;
    }
    
    /* Mobile Section Adjustments */
    .expertise-grid,
    .solutions-grid {
        margin: 0 2rem;
    }

    .solution-card {
        flex: 0 0 calc(50% - 1rem);
        min-width: 250px;
    }

    .service-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Mobile: Keep colored background sections full width */
    .core-expertise-section,
    .what-we-offer-section,
    .how-we-work-section,
    .why-saphire-section {
        width: 100%;
        margin: 0;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .solutions-grid {
        margin: 0 3rem;
    }

    .solution-card {
        flex: 0 0 calc(100% - 2rem);
        min-width: 200px;
    }

    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .work-process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Extra small mobile: Keep colored background sections full width */
    .core-expertise-section,
    .what-we-offer-section,
    .how-we-work-section,
    .why-saphire-section {
        width: 100%;
        margin: 0;
    }
    
    .customers-logos,
    .partners-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Footer Mobile Styles */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-contact {
        text-align: left;
    }
}

/* Additional Section Styles for FullSite Design */

/* Section Spacing */
.how-we-work-section,
.why-saphire-section,
.about-us-section,
.customers-section,
.partners-section,
.cta-section {
    padding: 5rem 0;
}

/* Core Expertise Section */
.core-expertise-section {
    background: #f8fafc;
    margin: 0;
    border-radius: 0;
    width: 100%;
    padding: 6rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 0;
    align-items: start;
    padding-bottom: 3rem;
}

.expertise-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 350px;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.expertise-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
}

/* Uniform image placeholder styling */
.expertise-image::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #d1d5db;
    border-radius: 8px;
    opacity: 0.5;
}

.expertise-image::after {
    content: "Image";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
}

/* Styling for actual images when added */
.expertise-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hide placeholder when image exists */
.expertise-image:has(img)::before,
.expertise-image:has(img)::after {
    display: none;
}

/* Image hover effect */
.expertise-card:hover .expertise-image {
    transform: scale(1.02);
}

.expertise-content {
    padding: 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.expertise-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.expertise-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* What We Offer Section */
.what-we-offer-section {
    background: url('/wp-content/themes/saphire/assets/images/black-and-blue-gradient.jpg') center/cover no-repeat;
    color: white;
    margin: 0;
    border-radius: 2rem;
    width: 100%;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.what-we-offer-section .section-container {
    max-width: none;
}

.section-title-white {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: white;
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: white;
}

/* Solutions Carousel Container */
.solutions-carousel-container {
    position: relative;
    margin-top: 2rem;
    overflow: hidden;
    width: 100%;
}

.solutions-grid {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
    margin: 0 4rem;
}

.solution-card {
    flex: 0 0 calc(25% - 1.5rem);
    min-width: 280px;
}

/* Service Navigation Arrows */
.service-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 20px;
    font-weight: bold;
}

.service-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.service-nav-prev {
    left: 0;
}

.service-nav-next {
    right: 0;
}

.service-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.service-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1);
}

.solution-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.solution-icon {
    color: white;
    margin-bottom: 1.5rem;
}

.solution-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.solution-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.service-button:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* How We Work Section */
.how-we-work-section {
    background: url('/wp-content/themes/saphire/assets/images/background_2.jpg') center/cover no-repeat;
    color: white;
    margin: 0;
    border-radius: 0;
    width: 100%;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.work-process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.process-number {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.process-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.process-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Why Saphire Section */
.why-saphire-section {
    background: #f8fafc;
    margin: 0;
    border-radius: 0;
    width: 100%;
    padding: 6rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.benefit-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: left;
}

/* About Us Section */
.about-us-section {
    background: white;
    margin-bottom: 2rem;
}

.about-us-section .section-title {
    margin-top: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    align-items: end;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: auto;
}

/* Customers and Partners Sections */
.customers-section,
.partners-section {
    background: #f8fafc;
}

.customers-logos,
.partners-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: center;
}

.customer-logo,
.partner-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.customer-logo:hover,
.partner-logo:hover {
    transform: translateY(-3px);
}

.customer-logo img,
.partner-logo img {
    max-width: 120px;
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    margin-bottom: 1rem;
}

.customer-logo:hover img,
.partner-logo:hover img {
    opacity: 1;
}

.customer-logo span,
.partner-logo span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: white;
    text-align: center;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Custom Scroll Animations - Similar to Align.com */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for different elements */
[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-left"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"] {
    transform: translateX(50px);
}

/* Card hover animations similar to Align.com */
.expertise-card,
.solution-card,
.benefit-card,
.process-card,
.customer-logo,
.partner-logo,
.stat-item,
.contact-item {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expertise-card:hover,
.solution-card:hover,
.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.customer-logo:hover,
.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
    transform: scale(1.05);
}

.contact-item:hover {
    transform: translateY(-3px);
    background: #f1f5f9;
}

/* Icon animations */
.expertise-icon,
.solution-icon,
.benefit-icon {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expertise-card:hover .expertise-icon,
.solution-card:hover .solution-icon,
.benefit-card:hover .benefit-icon {
    transform: scale(1.1);
}

/* Process number bounce effect similar to Align.com */
.process-number {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-card:hover .process-number {
    transform: scale(1.1) rotate(5deg);
}

/* Subtle background gradient animation on hover */
.expertise-card:hover,
.benefit-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Statistics number animation */
.stat-number {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Smooth image transitions */
.customer-logo img,
.partner-logo img {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.customer-logo:hover img,
.partner-logo:hover img {
    transform: scale(1.05);
}

/* Post Page Styles */
.post-content {
    padding: 0;
    margin-top: 150px; /* Ensure clearance from fixed header */
}

.post-section {
    padding: 4rem 0;
    background: #ffffff;
    margin-top: 0;
}

.post-article {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.post-separator {
    margin: 0 0.5rem;
}

.post-category a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-category a:hover {
    text-decoration: underline;
}

.post-content-area {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.post-content-area h1,
.post-content-area h2,
.post-content-area h3,
.post-content-area h4,
.post-content-area h5,
.post-content-area h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.post-content-area h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
}

.post-content-area h3 {
    font-size: 1.5rem;
}

.post-content-area p {
    margin: 1.5rem 0;
}

.post-content-area ul,
.post-content-area ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content-area li {
    margin: 0.5rem 0;
}

.post-content-area a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content-area a:hover {
    border-bottom-color: var(--primary-color);
}

.post-content-area blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 2rem;
    margin: 2rem 0;
    background: #f8fafc;
    font-style: italic;
    color: var(--text-secondary);
}

.post-content-area code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Consolas', monospace;
}

.post-content-area pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content-area pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 2rem;
    margin-top: 3rem;
}

.post-tags {
    color: var(--text-secondary);
}

.post-tags a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Posts */
@media (max-width: 768px) {
    .post-content {
        margin-top: 160px; /* Extra clearance for mobile header */
    }

    .post-section {
        padding: 2rem 1rem;
        margin-top: 0;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-content-area {
        font-size: 1rem;
    }

    .post-content-area h2 {
        font-size: 1.5rem;
    }

    .post-content-area h3 {
        font-size: 1.3rem;
    }
}

/* Customer Description Styling */
.customer-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.3;
    max-width: 200px;
    text-align: center;
    display: none; /* Hidden by default, can be shown on hover */
}

.customer-logo:hover .customer-description {
    display: block;
}

.customer-logo a {
    color: inherit;
    text-decoration: none;
}

.customer-logo a:hover {
    text-decoration: underline;
}