/* Common Section Styles */
section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Base section spacing */
section:not(.hero) {
    padding: 6rem 0;
}

/* Section background colors */
section {
    background-color: var(--white);
}

#solutions {
    background-color: var(--light-gray);
}

.cta-section {
    background: linear-gradient(135deg, #0B4F6C 0%, #1B7A9F 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Hero specific */
.hero {
    padding: 0;
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* Section subtitle */
.section-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    font-weight: 700;
}

.header-line {
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    margin: 0 auto;
}

/* Content spacing */
.content-block {
    margin-bottom: 4rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Text content spacing */
p {
    margin-bottom: 1.5rem;
    color: rgba(45, 52, 54, 0.95);
    line-height: 1.8;
}

p:last-child {
    margin-bottom: 0;
}

/* Button Styles */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-size: 1.1rem;
}

.cta-button.primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.cta-button.primary:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
}

/* Grid Styles */
.grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

.grid:last-child {
    margin-bottom: 0;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05),
                0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1),
                0 4px 6px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

/* Icon Styles */
.icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: var(--light-gray);
    transition: all 0.3s ease;
}

.icon-container i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* CTA Section specific */
.cta-section {
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-content p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Services section specific */
#solutions .grid {
    margin-top: 0;
}

/* Responsive styles */
@media (max-width: 1200px) {
    section:not(.hero) {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 3.5rem;
    }

    .card {
        padding: 2rem;
    }

    .cta-content h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    section:not(.hero) {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .content-block {
        margin-bottom: 3rem;
    }

    .grid {
        margin-bottom: 3rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    section:not(.hero) {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 15px;
    }

    .content-block {
        margin-bottom: 2.5rem;
    }

    .grid {
        margin-bottom: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

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

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}
