/* MGC Safety Nets - Page Header & CTA Section Styles */

/* ============================================
   PAGE HEADER SECTION (All pages except home)
   ============================================ */

.page-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    overflow: hidden;
}

/* Animated background pattern */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: patternMove 20s ease-in-out infinite;
}

@keyframes patternMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* Geometric shapes decoration */
.page-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.8s ease;
    letter-spacing: -1px;
}

.page-header p {
    font-size: 22px;
    opacity: 0.95;
    margin-bottom: 0;
    font-weight: 400;
    animation: slideInUp 0.8s ease 0.2s both;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
}

/* Breadcrumb navigation */
.breadcrumb {
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
    animation: fadeIn 0.8s ease 0.1s both;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Page header with icon/badge */
.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 40px;
    margin-bottom: 25px;
    animation: bounceIn 1s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Quick action buttons in header */
.header-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    animation: slideInUp 0.8s ease 0.3s both;
    flex-wrap: wrap;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.header-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-action-btn.primary {
    background: white;
    color: #667eea;
    border-color: white;
}

.header-action-btn.primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.05);
}

/* Statistics bar in header */
.header-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    animation: fadeIn 1s ease 0.4s both;
    flex-wrap: wrap;
}

.header-stat {
    text-align: center;
}

.header-stat-number {
    font-size: 42px;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.header-stat-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Alternative header styles */
.page-header.gradient-orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.page-header.gradient-green {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
}

.page-header.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.page-header.gradient-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   CTA (Call To Action) SECTION
   ============================================ */

.cta-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Animated background elements */
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: rotateBackground 30s linear infinite;
}

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating shapes */
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    animation: floatShape 20s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease 0.2s both;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.4s both;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Ripple effect */
.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-btn:hover::before {
    width: 400px;
    height: 400px;
}

/* Primary CTA button */
.cta-btn.primary {
    background: linear-gradient(135deg, #00cc66, #009944);
    color: white;
    border: none;
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #00dd77, #00aa55);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 204, 102, 0.4);
}

/* Secondary CTA button */
.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: white;
    color: #1a1a2e;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(255, 255, 255, 0.3);
}

/* CTA with icon */
.cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    font-size: 50px;
    margin: 0 auto 30px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

/* Alternative CTA styles */
.cta-section.gradient-purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-section.gradient-orange {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

.cta-section.gradient-blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Contact info in CTA */
.cta-contact-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.cta-contact-item {
    text-align: center;
}

.cta-contact-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.cta-contact-item a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-contact-item a:hover {
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.cta-contact-label {
    display: block;
    font-size: 13px;
    opacity: 0.8;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 42px;
    }
    
    .page-header p {
        font-size: 18px;
    }
    
    .cta-section h2 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 50px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    .page-header-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }
    
    .header-actions {
        flex-direction: column;
    }
    
    .header-action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .header-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .header-stat-number {
        font-size: 32px;
    }
    
    .cta-section {
        padding: 70px 0;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-btn {
        width: 60%;
        justify-content: center;
    }
    
    .cta-contact-info {
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 70px 0 40px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .header-action-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .cta-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
}