/* =========================================
   PREMIUM INDEX PAGE REDESIGN
   ========================================= */

/* --- General Premium Utilities --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-padding {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.section-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: radial-gradient(circle, rgba(49, 105, 155, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    top: 40%;
    right: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.section-header-premium {
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(49, 105, 155, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(49, 105, 155, 0.1);
}

.section-title-premium {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle-premium {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Premium Services Section --- */
.services-section-premium {
    background-color: var(--background);
}

.services-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.service-card-premium {
    background: var(--background-alt);
    /* More contrast than just standard background */
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.dark-theme .service-card-premium {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px -15px rgba(49, 105, 155, 0.15);
    border-color: rgba(49, 105, 155, 0.2);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.dark-theme .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
}

.service-icon-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 1rem;
    opacity: 0.1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.service-card-premium:hover .service-icon-glow {
    opacity: 0.3;
}

.service-icon-wrapper i {
    font-size: 1.75rem;
    color: var(--primary);
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card-premium:hover .service-icon-wrapper i {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* --- Premium Industries Section (Hexagonal Grid) --- */
.industries-section-premium {
    background-color: var(--background-alt);
}

.industries-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.industry-card-premium {
    position: relative;
    height: 300px;
    background: var(--background);
    border-radius: 2rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.5s ease;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.dark-theme .industry-card-premium {
    background: rgba(255, 255, 255, 0.05);
}

.industry-card-premium:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.industry-icon-premium {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(49, 105, 155, 0.1), rgba(229, 163, 36, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.industry-icon-premium i {
    font-size: 2rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

.industry-card-premium:hover .industry-icon-premium {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scale(1.1) rotate(5deg);
}

.industry-card-premium:hover .industry-icon-premium i {
    color: #fff;
}

.industry-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    z-index: 2;
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.dark-theme .industry-overlay {
    background: rgba(15, 23, 42, 0.9);
}

.industry-card-premium:hover .industry-overlay {
    opacity: 1;
}

.industry-link {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Premium Why Choose Us (Split Layout) --- */
.why-choose-section-premium {
    background-color: var(--background);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.video-wrapper-premium {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(10deg);
    transition: transform 0.5s ease;
}

.video-wrapper-premium:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.why-choose-video {
    width: 100%;
    display: block;
}

/* Decorative elements around video */
.video-decorations {
    pointer-events: none;
}

.decoration-line {
    position: absolute;
    background: var(--secondary);
    opacity: 0.6;
}

.line-1 {
    width: 100px;
    height: 5px;
    top: 20px;
    left: -20px;
}

.line-2 {
    width: 5px;
    height: 100px;
    bottom: -20px;
    right: 20px;
}

.decoration-dot {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border-radius: 50%;
}

.dot-1 {
    top: 10px;
    right: 10px;
}

.dot-2 {
    bottom: 10px;
    left: 10px;
}

.features-grid-premium {
    margin-top: 2rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item-premium {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-alt);
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.dark-theme .feature-item-premium {
    background: rgba(255, 255, 255, 0.05);
}

.feature-item-premium:hover {
    transform: translateX(10px);
    background: rgba(49, 105, 155, 0.05);
    /* Slight tint */
}

.feature-check {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* Stats Counter */
.stats-counter-premium {
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    padding: 3rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--background) 100%);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.stat-item-premium {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}


/* --- Premium Testimonials --- */
.testimonials-section-premium {
    background-color: var(--background-alt);
}

/* Testimonials Slider Buttons */
.testimonials-wrapper {
    position: relative;
    padding: 0 50px;
    /* Space for buttons */
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--primary);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    /* Ensure centering */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-theme .slider-btn {
    background: var(--background-alt);
    color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.dark-theme .slider-btn:hover {
    background: var(--secondary);
    color: var(--background);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.testimonials-slider-premium {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 3rem;
    /* Space for scrollbar */
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: none;
    /* Hide scrollbar */
    -webkit-overflow-scrolling: touch;
}

/* Hide Scrollbar explicitly */
.testimonials-slider-premium::-webkit-scrollbar {
    display: none;
}

.testimonials-slider-premium::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 4px;
}

.testimonials-slider-premium::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
}

.dark-theme .testimonials-slider-premium::-webkit-scrollbar-thumb {
    background-color: var(--secondary);
}

.testimonial-card-premium {
    flex: 0 0 calc((100% - 4rem) / 3);
    /* Exactly 3 cards with 2rem gap */
    scroll-snap-align: start;
    /* Align to start for cleaner view */
    background: var(--background);
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: transform 0.3s ease;
}

@media (max-width: 1200px) {
    .testimonial-card-premium {
        flex: 0 0 calc((100% - 2rem) / 2);
        /* 2 cards on medium screens */
    }
}

@media (max-width: 768px) {
    .testimonial-card-premium {
        flex: 0 0 100%;
        /* 1 card on mobile */
    }
}

.testimonial-card-premium:hover {
    transform: translateY(-10px);
}

.testimonial-quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    color: rgba(49, 105, 155, 0.1);
}

.testimonial-stars {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-text-premium {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-name {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.author-position {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* --- Premium CTA Section --- */
.cta-section-premium {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    min-height: 600px;
    /* Taller for impact */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

.cta-content-premium {
    position: relative;
    z-index: 10;
    /* Ensure text and buttons are above overlay */
}

.cta-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.cta-subheading-premium {
    display: block;
    color: var(--secondary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: fadeUp 1s ease-out;
}

.cta-title-premium {
    font-size: 4rem;
    /* Larger */
    font-weight: 900;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cta-text-premium {
    font-size: 1.5rem;
    margin-bottom: 3.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 10;
    /* Ensure clickable */
}

.btn-warning {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #d1921a;
    border-color: #d1921a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(229, 163, 36, 0.4);
}

.cta-buttons-premium {
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Premium Primary Button for Industries */
.btn-premium-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(49, 105, 155, 0.2);
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.btn-premium-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(49, 105, 155, 0.3);
    color: #fff;
}


/* --- Premium Footer --- */
.footer-premium {
    background-color: #0f172a;
    /* Very dark slate */
    color: #cbd5e1;
    padding-top: 5rem;
    position: relative;
}

.footer-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(49, 105, 155, 0.1), transparent 40%);
    pointer-events: none;
}

.footer-grid-premium {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-heading-premium {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links-premium {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: #94a3b8;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

.footer-link:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-links-premium {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #fff;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon-wrapper {
    color: var(--secondary);
    margin-top: 0.25rem;
}

.footer-bottom-premium {
    padding: 2rem 0;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .section-padding {
        padding: 5rem 0;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid-premium {
        grid-template-columns: 1fr 1fr;
    }

    .video-wrapper-premium {
        transform: none;
        /* Disable perspective on smaller screens */
        height: 400px;
    }

    .video-wrapper-premium:hover {
        transform: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 1rem;
        /* Add horizontal padding */
    }

    .section-title-premium {
        font-size: 2.25rem;
    }

    .section-subtitle-premium {
        font-size: 1.1rem;
    }

    .cta-title-premium {
        font-size: 2.5rem;
    }

    .cta-glass-box {
        padding: 2rem;
    }

    .footer-grid-premium {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
        /* Wrap links if needed */
    }

    .col-md-6 {
        text-align: center;
    }

    .stats-counter-premium {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .services-grid-premium,
    .industries-grid-premium {
        grid-template-columns: 1fr;
        /* Single column for better readability */
    }

    /* Ensure padding for testimonials to show arrows clearly */
    .testimonials-wrapper {
        padding: 0 10px;
    }

    /* Move arrows to bottom for better mobile ux or adjust size */
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .testimonial-card-premium {
        padding: 1.5rem;
    }
}

/* Small Mobile responsive */
@media (max-width: 480px) {
    .section-title-premium {
        font-size: 1.75rem;
    }

    .cta-title-premium {
        font-size: 2rem;
    }

    .cta-text-premium {
        font-size: 1.1rem;
    }

    .video-wrapper-premium {
        height: 250px;
    }

    .btn-xl {
        width: 100%;
        /* Full width buttons */
        padding: 1rem;
        font-size: 1.1rem;
    }

    .section-padding {
        padding: 3rem 1rem;
    }
}

/* =========================================
   DARK MODE REFINEMENTS
   ========================================= */

/* Icons */
.dark-theme .service-icon-wrapper i,
.dark-theme .industry-icon-premium i,
.dark-theme .industry-link,
.dark-theme .service-link {
    color: var(--secondary);
}

.dark-theme .service-icon-glow {
    background: var(--secondary);
}

.dark-theme .industry-card-premium:hover .industry-icon-premium {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.dark-theme .feature-check {
    background: var(--secondary);
    color: var(--background);
    /* Dark checkmark on yellow */
}

/* Badges & Text */
.dark-theme .section-badge {
    background: rgba(229, 163, 36, 0.15);
    color: var(--secondary);
    border-color: rgba(229, 163, 36, 0.2);
}

.dark-theme .stat-number {
    color: var(--secondary);
}

/* Buttons */
.dark-theme .btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: var(--background);
    /* Dark text for contrast */
}

.dark-theme .btn-primary:hover {
    background-color: #c98e1b;
    border-color: #c98e1b;
    color: var(--background);
}

.dark-theme .btn-outline {
    color: var(--secondary);
    border-color: var(--secondary);
}

.dark-theme .btn-outline:hover {
    background-color: var(--secondary);
    color: var(--background);
}

.dark-theme .btn-glow {
    box-shadow: 0 0 20px rgba(229, 163, 36, 0.3);
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 20px rgba(229, 163, 36, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(229, 163, 36, 0.6);
    }

    100% {
        box-shadow: 0 0 20px rgba(229, 163, 36, 0.3);
    }
}