/* ============================================
   SUHEDA THEME - PROFESSIONAL ENHANCEMENTS
   Modern, Clean & Elegant Corporate Design
   Optimized for Fast Loading & Professional UX
   ============================================ */

/* ===== COLOR PALETTE ===== */
:root {
    /* Primary Colors - Elegant Red */
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;
    --primary-lighter: #f87171;
    
    /* Secondary Colors - Warm Accent */
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --secondary-light: #fbbf24;
    
    /* Success Colors */
    --success-color: #10b981;
    --success-dark: #059669;
    --success-light: #34d399;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL IMPROVEMENTS ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Instant page load - no loader delay */
    opacity: 1;
    animation: none;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Professional Page Transitions */
body {
    animation: fadeInPage 0.3s ease-in;
}

@keyframes fadeInPage {
    from {
        opacity: 0.95;
    }
    to {
        opacity: 1;
    }
}

/* ===== SECTION IMPROVEMENTS ===== */
section {
    position: relative;
    overflow: hidden;
}

/* Section Badges - Enhanced */
.section-badge .badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 0.625rem 1.25rem !important;
    border-radius: 50px !important;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.section-badge .badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: 1.5rem;
    box-shadow: var(--shadow-2xl);
    transition: transform var(--transition-slow);
}

.about-image-wrapper:hover img {
    transform: scale(1.02);
}

.about-badge {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== FEATURES SECTION ===== */
.features-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.feature-card {
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon .icon-wrapper {
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* ===== PRODUCTS SECTION ===== */
.product-card {
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl) !important;
    border-color: var(--primary-color);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-image .badge {
    backdrop-filter: blur(10px);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.product-title {
    transition: color var(--transition-base);
}

.product-card:hover .product-title {
    color: var(--primary-color) !important;
}

.product-price {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
}

.testimonial-card {
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
    transform: scaleY(0);
    transition: transform var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl) !important;
}

.testimonial-card:hover::before {
    transform: scaleY(1);
}

.testimonial-icon {
    opacity: 0.1;
}

.author-avatar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.testimonial-card:hover .author-avatar {
    transform: scale(1.1);
}

/* ===== BLOG SECTION ===== */
.blog-card {
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

.blog-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl) !important;
    border-color: var(--primary-color);
}

.blog-card:hover::after {
    transform: scaleX(1);
}

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-image img {
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-title {
    transition: color var(--transition-base);
}

.blog-card:hover .blog-title {
    color: var(--primary-color) !important;
}

.blog-meta {
    transition: all var(--transition-base);
}

.blog-card:hover .blog-meta {
    transform: translateX(5px);
}

/* ===== FAQ SECTION ===== */
.accordion-item {
    border: 1px solid var(--gray-200) !important;
    transition: all var(--transition-base);
}

.accordion-item:hover {
    border-color: var(--primary-color) !important;
    box-shadow: var(--shadow-md) !important;
}

.accordion-button {
    font-weight: 600 !important;
    color: var(--gray-800) !important;
    transition: all var(--transition-base);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: none !important;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25) !important;
}

.accordion-button::after {
    transition: transform var(--transition-base);
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.cta-section .btn-light {
    background: white !important;
    color: var(--primary-color) !important;
    font-weight: 600;
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
    background: var(--gray-50) !important;
}

/* ===== BUTTONS ENHANCEMENT ===== */
.btn {
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all var(--transition-base);
    border-radius: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== SWIPER PAGINATION ===== */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--gray-300);
    opacity: 1;
    transition: all var(--transition-base);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

/* ===== LOADING ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .section-badge .badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem !important;
    }
    
    .feature-card:hover,
    .product-card:hover,
    .blog-card:hover,
    .testimonial-card:hover {
        transform: translateY(-5px);
    }
}

/* ===== ACCESSIBILITY ===== */
.btn:focus,
.accordion-button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-slider-section,
    .cta-section {
        display: none;
    }
}


/* ===== EXTRA ANIMATIONS & EFFECTS ===== */

/* Parallax Effect for Sections */
.about-section,
.features-section,
.products-section,
.testimonials-section,
.blog-section {
    position: relative;
}

/* Decorative Elements */
.about-section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.features-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Enhanced Hover Effects for Images */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 1.5rem;
    z-index: -1;
    transition: all var(--transition-base);
    opacity: 0.3;
}

.about-image-wrapper:hover::after {
    top: 30px;
    left: 30px;
    opacity: 0.5;
}

/* Gradient Borders */
.gradient-border {
    position: relative;
    background: white;
    border-radius: 1rem;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Glow Effect on Hover */
.glow-on-hover {
    transition: all var(--transition-base);
}

.glow-on-hover:hover {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5),
                0 0 40px rgba(220, 38, 38, 0.3),
                0 0 60px rgba(220, 38, 38, 0.1);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Section Titles */
.display-5 {
    position: relative;
    display: inline-block;
}

.display-5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Card Stacking Effect */
.card-stack {
    position: relative;
}

.card-stack::before,
.card-stack::after {
    content: '';
    position: absolute;
    width: 95%;
    height: 100%;
    background: white;
    border-radius: inherit;
    box-shadow: var(--shadow-sm);
    z-index: -1;
}

.card-stack::before {
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.card-stack::after {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

/* Typing Animation for Headings */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--primary-color);
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

/* Floating Animation */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

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

.bounce-in {
    animation: bounceIn 0.6s ease;
}

/* Slide In Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

/* Zoom In Animation */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.zoom-in {
    animation: zoomIn 0.5s ease;
}

/* Rotate In Animation */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-200deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

.rotate-in {
    animation: rotateIn 0.6s ease;
}

/* Text Gradient Animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-text {
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color),
        var(--primary-color)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

/* Pulse Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring {
    position: relative;
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 3px solid var(--primary-color);
    border-radius: inherit;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* Underline Animation */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-base);
}

.animated-underline:hover::after {
    width: 100%;
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform var(--transition-base);
}

.card-3d:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(5deg);
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 5px rgba(220, 38, 38, 0.5),
        0 0 10px rgba(220, 38, 38, 0.5),
        0 0 20px rgba(220, 38, 38, 0.5),
        0 0 40px rgba(220, 38, 38, 0.3);
}

/* Glassmorphism Enhanced */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Gradient Background Animation */
@keyframes gradient-bg {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-bg {
    background: linear-gradient(
        -45deg,
        #dc2626,
        #ef4444,
        #f87171,
        #fca5a5
    );
    background-size: 400% 400%;
    animation: gradient-bg 15s ease infinite;
}


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

/* Mobile First Approach */
@media (max-width: 576px) {
    /* Reduce spacing on mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .py-lg-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Adjust font sizes */
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Stack buttons vertically */
    .hero-button-wrapper,
    .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-button-wrapper .hero-btn,
    .d-flex.gap-3 .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Adjust feature cards */
    .feature-card,
    .product-card,
    .blog-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    /* Reduce decorative elements */
    .about-section::before,
    .features-section::after {
        width: 150px;
        height: 150px;
    }
}

/* Tablet Optimization */
@media (min-width: 577px) and (max-width: 992px) {
    .display-5 {
        font-size: 2.25rem !important;
    }
    
    .about-badge {
        font-size: 0.875rem;
    }
}

/* Desktop Enhancements */
@media (min-width: 1200px) {
    /* Add subtle parallax effect */
    .about-image-wrapper,
    .feature-card,
    .product-card,
    .blog-card {
        transition: transform 0.3s ease;
    }
    
    /* Enhance hover states on desktop */
    .feature-card:hover,
    .product-card:hover,
    .blog-card:hover {
        transform: translateY(-12px) scale(1.02);
    }
}

/* High Resolution Displays */
@media (min-width: 1400px) {
    .container-xl {
        max-width: 1320px;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* This can be enabled if needed */
    /* body {
        background-color: var(--gray-900);
        color: var(--gray-100);
    } */
}

/* Print Optimization */
@media print {
    /* Hide interactive elements */
    .hero-nav,
    .swiper-pagination,
    .btn,
    .cta-section {
        display: none !important;
    }
    
    /* Optimize spacing */
    section {
        page-break-inside: avoid;
    }
    
    /* Remove shadows and effects */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .btn,
    .hero-btn,
    .accordion-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .feature-card:hover,
    .product-card:hover,
    .blog-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    /* Add active states instead */
    .feature-card:active,
    .product-card:active,
    .blog-card:active {
        transform: scale(0.98);
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-slider-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .hero-features {
        margin-top: 1rem;
    }
}

/* Ultra-wide Screens */
@media (min-width: 1920px) {
    .container-xl {
        max-width: 1600px;
    }
    
    .hero-slider-section {
        height: 700px;
    }
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
    .btn,
    .hero-btn,
    .feature-card,
    .product-card {
        border: 2px solid currentColor;
    }
    
    .section-badge .badge {
        border: 2px solid currentColor;
    }
}

/* Reduced Transparency for Better Readability */
@media (prefers-reduced-transparency: reduce) {
    .glass-effect,
    .glass-card,
    .hero-btn-secondary {
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.95);
    }
}


/* ===== SCROLL REVEAL EFFECTS ===== */
.feature-card,
.product-card,
.blog-card,
.testimonial-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.product-card.visible,
.blog-card.visible,
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for multiple items */
.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }
.feature-card:nth-child(4) { transition-delay: 0.4s; }

.product-card:nth-child(1) { transition-delay: 0.1s; }
.product-card:nth-child(2) { transition-delay: 0.15s; }
.product-card:nth-child(3) { transition-delay: 0.2s; }
.product-card:nth-child(4) { transition-delay: 0.25s; }

.blog-card:nth-child(1) { transition-delay: 0.1s; }
.blog-card:nth-child(2) { transition-delay: 0.2s; }
.blog-card:nth-child(3) { transition-delay: 0.3s; }

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 1000;
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
/* GPU Acceleration for Smooth Animations */
.feature-card,
.product-card,
.blog-card,
.testimonial-card,
.hero-btn,
.btn {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize Images */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy Loading Placeholder */
img[loading="lazy"] {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 6px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-dark), var(--primary-color));
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--gray-100);
}

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ===== FOCUS VISIBLE (Accessibility) ===== */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-image {
    height: 200px;
    width: 100%;
}


/* ===== CORPORATE HEADER ENHANCEMENTS ===== */
header {
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-top {
    font-size: 0.875rem;
    background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
}

.header-content {
    background: white;
    border-bottom: 1px solid var(--gray-100);
}

/* Professional Menu Styling */
.webmenu a {
    position: relative;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.3s ease;
}

.webmenu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.webmenu a:hover {
    color: var(--primary-color);
}

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

/* Dropdown Menu Enhancement */
.dropdown-box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-box a {
    padding: 12px 20px;
    transition: all 0.2s ease;
}

.dropdown-box a:hover {
    background: var(--gray-50);
    padding-left: 25px;
}

/* Mobile Menu Enhancement */
.offcanvas {
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-section {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

/* Professional Button Styling */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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.6s, height 0.6s;
}

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

/* ===== CORPORATE CONTENT SECTIONS ===== */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 2px solid var(--gray-200);
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--gray-800);
    font-weight: 600;
}

/* ===== PROFESSIONAL CARD DESIGN ===== */
.card {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ===== CORPORATE FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--gray-300);
}

footer a {
    color: var(--gray-300);
    transition: color 0.2s ease;
}

footer a:hover {
    color: white;
}

/* ===== INSTANT LOAD OPTIMIZATION ===== */
/* Remove any loading delays */
* {
    animation-delay: 0s !important;
}

/* Fast fade-in for images */
img {
    animation: quickFadeIn 0.2s ease-in;
}

@keyframes quickFadeIn {
    from {
        opacity: 0.9;
    }
    to {
        opacity: 1;
    }
}

/* ===== PROFESSIONAL SPACING ===== */
section {
    padding: 4rem 0;
}

@media (min-width: 992px) {
    section {
        padding: 5rem 0;
    }
}

/* ===== CORPORATE COLOR SCHEME ===== */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* ===== PROFESSIONAL TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.lead {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== INSTANT INTERACTION FEEDBACK ===== */
button, a, .btn {
    transition: all 0.2s ease;
}

button:active, a:active, .btn:active {
    transform: scale(0.98);
}

/* ===== PROFESSIONAL FORM STYLING ===== */
.form-control, .form-select {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.15);
}

/* ===== CORPORATE BADGE STYLING ===== */
.badge {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.badge-primary {
    background: var(--primary-color);
}

/* ===== PROFESSIONAL ALERT STYLING ===== */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ===== INSTANT PAGE READY STATE ===== */
body.loaded {
    /* No special animation needed - instant display */
    opacity: 1;
}
