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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, rgba(6, 147, 227, 0.95) 0%, rgba(15, 33, 47, 0.90) 100%),
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
        min-height: 100vh;
    }
}

/* Shape Divider Base */
.shape-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.shape-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 155px;
}

/* Divider vers section grise (gray-50: #f9fafb) */
.shape-divider svg[fill="#f9fafb"] path:nth-child(1) {
    fill: #e5e7eb;
}

.shape-divider svg[fill="#f9fafb"] path:nth-child(2) {
    fill: #f3f4f6;
}

.shape-divider svg[fill="#f9fafb"] path:nth-child(3) {
    fill: #f9fafb;
}

/* Divider vers section navy (#0f212f) */
.shape-divider svg[fill="#0f212f"] path:nth-child(1) {
    fill: #2a4a5f;
}

.shape-divider svg[fill="#0f212f"] path:nth-child(2) {
    fill: #1a3a4f;
}

.shape-divider svg[fill="#0f212f"] path:nth-child(3) {
    fill: #0f212f;
}

/* Divider vers section blanche (#ffffff) */
.shape-divider svg[fill="#ffffff"] path:nth-child(1) {
    fill: #e5e7eb;
}

.shape-divider svg[fill="#ffffff"] path:nth-child(2) {
    fill: #f3f4f6;
}

.shape-divider svg[fill="#ffffff"] path:nth-child(3) {
    fill: #ffffff;
}

/* Divider vers section cyan-blue (#0693e3) */
.shape-divider svg[fill="#0693e3"] path:nth-child(1) {
    fill: #f3f4f6;
}

.shape-divider svg[fill="#0693e3"] path:nth-child(2) {
    fill: #6bb5e8;
}

.shape-divider svg[fill="#0693e3"] path:nth-child(3) {
    fill: #0693e3;
}

/* Divider vers section charcoal (#0d1c28) */
.shape-divider svg[fill="#0d1c28"] path:nth-child(1) {
    fill: #0a1520;
}

.shape-divider svg[fill="#0d1c28"] path:nth-child(2) {
    fill: #0b1824;
}

.shape-divider svg[fill="#0d1c28"] path:nth-child(3) {
    fill: #0d1c28;
}

/* Responsive Dividers */
@media (max-width: 999px) {
    .shape-divider {
        bottom: -2px;
    }

    .shape-divider svg {
        height: 117px;
        width: calc(100% + 2px);
    }
}

@media (max-width: 690px) {
    .shape-divider {
        bottom: -2px;
    }

    .shape-divider svg {
        height: 60px;
        width: calc(100% + 3px);
    }
}

/* Section with Divider */
.section-with-divider {
    position: relative;
    padding-bottom: 0 !important;
    margin-bottom: -1px;
}

.section-with-divider::after {
    content: '';
    display: block;
    height: 155px;
    width: 100%;
    margin-top: -1px;
}

/* Ensure no gaps between sections */
section {
    display: block;
    margin: 0;
    padding: 0;
}

@media (max-width: 999px) {
    .section-with-divider {
        margin-bottom: -2px;
    }

    .section-with-divider::after {
        height: 117px;
        margin-top: -2px;
    }
}

@media (max-width: 690px) {
    .section-with-divider {
        margin-bottom: -2px;
    }

    .section-with-divider::after {
        height: 60px;
        margin-top: -2px;
    }
}

/* Standard Layout - Max Width Container */
.max-w-standard {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.max-w-content {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Card Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Container Responsive */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Typography Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .text-5xl {
        font-size: 2.5rem;
    }

    .text-4xl {
        font-size: 2rem;
    }

    .text-3xl {
        font-size: 1.75rem;
    }

    .text-2xl {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #0693e3 0%, #0575b8 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(6, 147, 227, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(6, 147, 227, 0.3);
    transform: translateY(-2px);
}

/* Grid Responsive */
@media (max-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .md\:grid-cols-2, .md\:grid-cols-3 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .gap-8 {
        gap: 1.5rem;
    }
}

/* Padding Responsive */
@media (max-width: 768px) {
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-4 {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
}

/* Hero Section Responsive */
@media (max-width: 768px) {
    .hero-bg {
        height: auto !important;
        min-height: 100vh;
        padding: 4rem 0 6rem 0;
    }
}

/* Smooth Transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
