/* =============================================
   Intro Section Enhancement - Professional Design
   ============================================= */

/* Root Variables */
:root {
    --intro-primary: #1e3a8a;
    --intro-secondary: #3b82f6;
    --intro-accent: #0ea5e9;
    --intro-gold: #D4AF37;
    --intro-gold-light: #F4E4BC;
    --intro-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --intro-gold-gradient: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 100%);
    --intro-light: #f0f9ff;
    --intro-dark: #1e293b;
    --intro-gray: #64748b;
    --intro-border: #e2e8f0;
    --intro-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Intro Section Wrapper
   ============================================= */
.intro-section-wrapper {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.intro-content {
    position: relative;
    z-index: 2;
}

/* Background Pattern */
.intro-bg-pattern {
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

/* =============================================
   Images Grid Layout
   ============================================= */
.intro-images-grid {
    position: relative;
    padding: 40px;
}

.image-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(30, 58, 138, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.image-main:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 40px 80px rgba(30, 58, 138, 0.2);
}

.image-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.image-secondary {
    position: absolute;
    top: 60px;
    right: -30px;
    width: 220px;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.12);
    border: 3px solid #ffffff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.image-secondary:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 30px 50px rgba(30, 58, 138, 0.18);
}

.image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Overlays */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(30, 58, 138, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-main:hover .image-overlay,
.image-secondary:hover .image-overlay {
    opacity: 1;
}

/* Decorative Elements */
.decorative-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.element-1 {
    top: 20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
}

.element-2 {
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    bottom: 80px;
    left: 40px;
    z-index: 4;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--intro-gold-gradient);
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    border: 2px solid var(--intro-gold-light);
    transition: all 0.3s ease;
}

.badge-content:hover {
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.badge-content i {
    color: var(--intro-dark);
    font-size: 24px;
}

.badge-content span {
    color: var(--intro-dark);
    font-weight: 600;
    font-size: 14px;
}

/* =============================================
   Text Content Styling
   ============================================= */
.intro-text-content {
    padding-left: 20px;
}

/* Intro Badge */
.intro-badge {
    display: inline-block;
}

.badge-text {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--intro-light);
    color: var(--intro-primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}


/* Title Styling - REDUCED SIZE */
.intro-title {
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.3;
    color: var(--intro-dark);
    margin-bottom: 20px;
}

.title-gradient {
    background: var(--intro-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Description - REDUCED SIZE */
.intro-description {
    font-size: 15px !important;
    line-height: 1.7;
    color: var(--intro-gray);
    margin-bottom: 0;
}

/* CTA Button */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--intro-gradient);
    color: #ffffff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.2);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    background: var(--intro-gold-gradient);
    color: var(--intro-dark);
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom i {
    transition: transform 0.3s ease;
}

.btn-primary-custom:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.intro-stats {
    display: flex;
    gap: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--intro-border);
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 24px !important;
    font-weight: 700;
    color: var(--intro-gold);
    margin-bottom: 5px;
    background: var(--intro-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--intro-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 991px) {
    .intro-section-wrapper {
        padding: 60px 0;
    }

    .intro-images-grid {
        padding: 20px;
        margin-bottom: 40px;
    }

    .image-main {
        transform: none;
    }

    .image-main img {
        height: 300px;
    }

    .image-secondary {
        position: static;
        width: 100%;
        height: 200px;
        margin-top: 20px;
    }

    .decorative-element,
    .floating-badge {
        display: none;
    }

    .intro-text-content {
        padding-left: 0;
        text-align: center;
    }

    .intro-title {
        font-size: 36px;
    }

    .intro-description {
        font-size: 16px;
    }

    .intro-stats {
        justify-content: center;
    }

    .intro-badge {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .intro-section-wrapper {
        padding: 40px 0;
    }

    .intro-title {
        font-size: 28px;
    }

    .intro-description {
        font-size: 15px;
    }

    .btn-primary-custom {
        padding: 12px 24px;
        font-size: 14px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .intro-stats {
        flex-direction: column;
        gap: 20px;
        text-align: left;
    }

    .image-main img {
        height: 250px;
    }
}

/* =============================================
   Animation Classes
   ============================================= */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading skeleton animation */
@keyframes skeleton {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}

/* Hover lift effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =============================================
   CRITICAL: Font Size Override for Home Page
   ============================================= */
/* Force all text elements to reasonable sizes */
.intro-section-wrapper * {
    max-width: 100% !important;
}

.intro-section-wrapper h1,
.intro-section-wrapper h2,
.intro-section-wrapper h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem) !important;
    line-height: 1.3 !important;
}

.intro-section-wrapper h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
}

.intro-section-wrapper h5 {
    font-size: clamp(1.125rem, 1.8vw, 1.5rem) !important;
}

.intro-section-wrapper p,
.intro-section-wrapper span:not(.stat-number):not(.badge-text) {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem) !important;
    line-height: 1.6 !important;
}

/* Override any massive inline styles */
.intro-section-wrapper [style*="font-size"] {
    font-size: inherit !important;
}