﻿/* =========================================
   ENHANCED VISUAL DISPLAY STYLES & RESPONSIVE LAYOUT
   ========================================= */

:root {
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a1d47 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #4dc8ff 100%);
}

/* --- Hero & Visual Enhancements --- */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

    .hero-visual::before {
        content: "";
        position: absolute;
        top: -30px;
        right: -30px;
        width: 120%;
        height: 120%;
        background: radial-gradient(circle at 80% 20%, rgba(24, 177, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(31, 77, 156, 0.1) 0%, transparent 50%);
        border-radius: var(--radius-lg);
        z-index: -1;
        transform: rotate(3deg);
        animation: float 20s infinite ease-in-out;
    }

.hero-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(31, 77, 156, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

    .hero-card:hover {
        transform: translateY(-10px) rotateX(2deg);
    }

    .hero-card::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
        background-size: 200% 100%;
        animation: shimmer 3s infinite linear;
    }

.hero-text h1 {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 30%, var(--accent) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 4px 12px rgba(31, 77, 156, 0.1);
    position: relative;
    color: #102a5c;
    text-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Hero Layout (Responsive) */
.hero-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.hero-text, .hero-visual {
    flex: 1 1 400px;
}

/* Enhanced Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

    .hero-actions .btn {
        position: relative;
        overflow: hidden;
    }

        .hero-actions .btn::after {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: translateX(-100%);
        }

        .hero-actions .btn:hover::after {
            animation: shimmer 1.5s;
        }

/* --- Stats Enhancements --- */
.stats {
    background: linear-gradient(135deg, rgba(31, 77, 156, 0.03) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-top: 1px solid rgba(31, 77, 156, 0.1);
    border-bottom: 1px solid rgba(31, 77, 156, 0.1);
    position: relative;
    overflow: hidden;
}

    .stats::before {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.05;
        filter: blur(40px);
    }

.stat {
    position: relative;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: var(--radius-md);
    background: white;
    box-shadow: 0 8px 30px rgba(31, 77, 156, 0.08);
}

    .stat:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 20px 40px rgba(31, 77, 156, 0.15);
    }

    .stat::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-light) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: var(--radius-md);
    }

    .stat:hover::before {
        opacity: 1;
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.stats-modern {
    background: #0f172a;
    color: #fff;
    padding: 50px 0;
}

.stat-card {
    text-align: center;
}

    .stat-card h3 {
        font-size: 28px;
        margin-bottom: 5px;
    }

/* --- Cards & Features --- */
.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(31, 77, 156, 0.15);
}

    .card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, transparent 0%, rgba(24, 177, 255, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
.card p {
    color: #374151;
}
    .card:hover::before {
        opacity: 1;
    }

    .card:hover {
        transform: translateY(-12px) scale(1.02);
        border-color: var(--accent);
        box-shadow: 0 25px 50px rgba(31, 77, 156, 0.15);
    }

.card-icon-container {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(31, 77, 156, 0.2);
}

    .card-icon-container::after {
        content: "";
        position: absolute;
        inset: -2px;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        border-radius: 20px;
        z-index: -1;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

.card:hover .card-icon-container::after {
    opacity: 1;
}

.card-icon {
    width: 32px;
    height: 32px;
    background: white;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.card:nth-child(1) .card-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 7.24l-7.19-.62L12 2 9.19 6.63 2 7.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-9.03L22 7.24z'/%3E%3C/svg%3E");
}

.card:nth-child(2) .card-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm2 0c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8zm10-5h-4v6h4v-6zm-2 4h-1v-2h1v2z'/%3E%3C/svg%3E");
}

.card:nth-child(3) .card-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z'/%3E%3C/svg%3E");
}

.card:nth-child(4) .card-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z'/%3E%3C/svg%3E");
}

.card:nth-child(5) .card-icon {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56A8.03 8.03 0 0 1 18.93 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38C7.55 10.66 7.5 11.32 7.5 12s.05 1.34.14 2H4.26zm.81 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.99 7.99 0 0 1 5.07 16zm2.95-8H5.07a7.99 7.99 0 0 1 4.33-3.56C8.8 5.55 8.34 6.75 8.02 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.1-.66-.16-1.32-.16-2s.06-1.35.16-2h4.68c.1.65.16 1.32.16 2s-.06 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56zM16.36 14c.09-.66.14-1.32.14-2s-.05-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z'/%3E%3C/svg%3E");
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-light), rgba(24, 177, 255, 0.1));
    color: var(--primary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(31, 77, 156, 0.1);
}

/* --- Section Headers & CTA --- */
.section-header {
    position: relative;
    padding: 2rem;
    margin-bottom: 3rem;
}

    .section-header::before {
        content: "";
        position: absolute;
        width: 150px;
        height: 150px;
        background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: -1;
        opacity: 0.3;
        filter: blur(20px);
    }

    .section-header h2 {
        position: relative;
        display: inline-block;
        padding-bottom: 1rem;
    }

        .section-header h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
        }

.section-cta {
    background: radial-gradient(circle at top left, var(--primary-dark), var(--primary) 70%), radial-gradient(circle at bottom right, rgba(24, 177, 255, 0.3), transparent 70%);
    position: relative;
    overflow: hidden;
}

    .section-cta::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(24, 177, 255, 0.1) 0%, transparent 50%);
    }

.section-cta-inner {
    position: relative;
    z-index: 2;
}

.section-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* --- Progress & Visual Dividers --- */
.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #4dc8ff);
    border-radius: 3px;
    width: 0;
    animation: progress 1.5s ease-out forwards;
}

.visual-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 3rem 0;
}

.highlight-box {
    background: linear-gradient(135deg, var(--primary-light), #f8faff);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

/* --- Grids & Layouts (Merged) --- */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.content-block {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(31, 77, 156, 0.08);
    transition: transform 0.3s ease;
}

    .content-block:hover {
        transform: translateY(-5px);
    }

    .content-block h3 {
        color: var(--primary-dark);
        margin-top: 0;
    }
    .content-block p {
        color: #374151;
    }
/* --- Services & Timeline --- */
.services-grid {
    gap: 25px;
}

.service-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    }

    .service-card .icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

.timeline {
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 3px;
        background: linear-gradient(to bottom, var(--primary), var(--accent));
        transform: translateX(-50%);
    }

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(31, 77, 156, 0.1);
}

/* --- About & Global Boxes --- */
.about-box {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.global-box {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

    .faq-question:hover {
        color: #2563eb;
    }

    .faq-question::after {
        content: '+';
        font-size: 1.5rem;
        font-weight: 300;
        color: #6b7280;
        flex-shrink: 0;
        transition: transform 0.3s ease, color 0.3s ease;
    }

.faq-item[open] .faq-question {
    color: #2563eb;
}

    .faq-item[open] .faq-question::after {
        content: '-';
        color: #2563eb;
        transform: rotate(180deg);
    }

.faq-answer {
    padding: 0 0 1.5rem 0;
    color: #4b5563;
    line-height: 1.7;
    animation: faqFadeIn 0.4s ease-out;
}

.faq-question::-webkit-details-marker {
    display: none;
}

/* =========================================
   ANIMATIONS
   ========================================= */
@@keyframes float {
    0%, 100% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-20px);
    }
}

@@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@@keyframes progress {
    from {
        width: 0;
    }

    to {
        width: 85%;
    }
}

@@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@@media (max-width: 992px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }

    .card:hover {
        transform: translateY(-8px);
    }

    .section-header {
        padding: 1rem;
    }

    .section-cta h2 {
        font-size: 2rem;
    }

    .timeline-item {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline::before {
        left: 20px; /* Aligns timeline line to the left on mobile */
    }
}

@@media (max-width: 576px) {
    .grid-4, .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@@media (max-width: 480px) {
    .stat {
        padding: 1.5rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}
