/* ============================================
   MINE INSURANCE - MODERN DESIGN ENHANCEMENTS
   Created: 2025
   Modern, Fast, Interactive, Professional
   ============================================ */

/* ========== CSS VARIABLES - Modern Color Palette ========== */
:root {
    /* Primary Colors - Professional Blue (Logo Brand Colors) */
    --primary-blue: #1E88E5;
    --primary-blue-dark: #1565C0;
    --primary-blue-light: #42A5F5;
    --accent-gray: #4A4A4A;
    --accent-gray-light: #6B6B6B;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    --gradient-blue: linear-gradient(135deg, #42A5F5 0%, #1E88E5 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* ========== GLOBAL IMPROVEMENTS ========== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
}

/* ========== MODERN TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* ========== MODERN HERO/SLIDER SECTION ========== */
#theme-main-banner {
    position: relative;
    overflow: hidden;
}

#theme-main-banner .camera_caption {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    backdrop-filter: blur(1px);
}

.slider-text h1,
.slider-text h2 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.2;
}

/* Modern CTA Buttons */
.button-two,
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: none;
    letter-spacing: 0.02em;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.button-two {
    background: var(--gradient-blue);
    color: var(--white);
}

.button-two:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
}

.button-two::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.button-two:hover::before {
    left: 100%;
}

/* ========== MODERN OVERVIEW CARDS ========== */
.categories-view1-wrap {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.categories-view1-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.categories-view1-wrap:hover::before {
    transform: scaleX(1);
}

.categories-view1-wrap:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.categories-view1-wrap i {
    font-size: 3.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.25rem;
    transition: var(--transition-normal);
}

.categories-view1-wrap:hover i {
    transform: scale(1.15) rotate(5deg);
}

.categories-view1-wrap a {
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    transition: var(--transition-fast);
}

.categories-view1-wrap:hover a {
    color: var(--primary-blue-dark);
}

.categories-view1-wrap span {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-blue);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
}

/* ========== SECTION IMPROVEMENTS ========== */
section {
    padding: 5rem 0;
}

.theme-title {
    margin-bottom: 3rem;
}

.theme-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.theme-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-blue);
    border-radius: var(--radius-full);
}

/* ========== MODERN CONTACT FORM ========== */
.consultation-form,
.contact-us-form {
    background: var(--gray-50);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
.form-validation input,
asp\:TextBox {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--white);
    margin-bottom: 1.25rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

input::placeholder {
    color: var(--gray-400);
}

.form-button,
input[type="submit"],
asp\:Button {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    width: 100%;
    margin-top: 1rem;
}

.form-button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary);
}

/* ========== MODERN CARDS (About, Features) ========== */
.portfolio-details,
.about-us-section {
    background: var(--white);
}

.portfolio-info-list img,
.about-us-section img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
}

.portfolio-info-list img:hover,
.about-us-section img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* ========== PARTNER LOGOS ========== */
.latest-update {
    background: var(--gray-50);
    padding: 4rem 0;
}

.latest-update .single-update-post {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.latest-update .single-update-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.latest-update img {
    transition: var(--transition-normal);
    filter: grayscale(100%);
    opacity: 0.7;
}

.latest-update img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ========== MODERN STATISTICS/COUNTERS ========== */
.stats-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: var(--gray-700);
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========== RESPONSIVE IMPROVEMENTS ========== */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .slider-text {
        padding: 3rem 1.5rem !important;
    }

    .slider-text h1,
    .slider-text h2 {
        font-size: 2rem !important;
    }

    .button-two {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .categories-view1-wrap {
        margin-bottom: 1.5rem;
    }

    .consultation-form,
    .contact-us-form {
        padding: 2rem 1.5rem;
    }
}

/* ========== SCROLL ANIMATIONS ========== */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ========== PERFORMANCE OPTIMIZATIONS ========== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading support */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ========== MODERN HEADER IMPROVEMENTS ========== */
.theme-main-header {
    transition: var(--transition-normal);
    position: relative;
    z-index: 1000;
}

.theme-main-header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.theme-main-header.scrolled .main-menu-wrapper {
    padding: 0.5rem 0;
}

/* ========== MODERN FOOTER IMPROVEMENTS ========== */
footer.theme-footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

footer a {
    color: var(--gray-300);
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary-blue);
    transform: translateX(3px);
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ========== UTILITIES ========== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
