:root {
    --primary-color: #0f172a;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --secondary-color: #64748b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Navbar Overrides */
.navbar-draytek {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Modern Hero Section */
.hero-modern-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Desktop Height */
    margin-bottom: 0;
    /* border-radius: 0 0 3rem 3rem; */ /* Removed large rounded corners */
    overflow: hidden;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-modern-slider {
        height: 400px; /* Mobile Height */
        /* border-radius: 0 0 1.5rem 1.5rem; */ /* Removed large rounded corners */
    }
    
    .slider-title {
        font-size: 2rem !important;
    }
    
    .slider-subtitle {
        font-size: 1rem !important;
    }
}

.hero-modern-slider .swiper {
    width: 100%;
    height: 100%;
}

.hero-modern-slider .swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gradient Overlay for Slider */
.hero-modern-slider .swiper-slide::before {
    content: none;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 100%; /* Full width for precise positioning */
    width: 100%;
    padding: 0 2rem;
    color: white;
    /* Enable flexbox for easier alignment */
    display: flex;
    flex-direction: column;
}

/* Slider Content Alignment */
.slider-content.align-left {
    align-items: flex-start;
    padding-left: max(10%, calc(50% - 1100px)); /* Optimized for 4K: Max content width ~2200px */
}

.slider-content.align-right {
    align-items: flex-end;
    padding-right: max(10%, calc(50% - 1100px)); /* Optimized for 4K */
    text-align: right; 
}

/* Ensure text block text alignment resets or follows parent */
.slider-content.align-right .slider-text-block {
    text-align: left; /* Keep text inside the block left-aligned for readability, or remove to inherit */
}

@media (min-width: 769px) {
    .slider-content.align-center {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 10%;
    }

    .slider-content.align-center .slider-text-block {
        text-align: center;
        background: rgba(15, 23, 42, 0.6); /* Darker background for better readability */
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* ----------------------------------
   Slider Product Image Styles 
   ---------------------------------- */
.slider-product-img {
    position: absolute;
    bottom: 50px; /* Vertically positioned near bottom */
    z-index: 1; /* Below text content (z-index 2) */
    max-height: 85%; /* Responsive height relative to slider height */
    width: 25vw !important; /* Force 25% of viewport width */
    max-width: 480px; /* Cap at reasonable size */
    object-fit: contain;
    
    /* Initial Animation State */
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy effect */
}

/* Positioning */
.slider-product-img.position-left {
    left: max(10%, calc(50% - 1100px)); /* Optimized for 4K */
    transform: translateX(-100px) scale(0.9); /* Start from left and slightly smaller */
}

.slider-product-img.position-right {
    right: max(10%, calc(50% - 1100px)); /* Optimized for 4K */
    transform: translateX(100px) scale(0.9); /* Start from right and slightly smaller */
}

/* Active Slide Animation */
.swiper-slide-active .slider-product-img {
    opacity: 1;
    transform: translateX(0) scale(1); /* Move to final position and scale up */
    transition-delay: 0.2s; /* Start slightly before text */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    /* Main Layout for Mobile: Stack Vertically with Absolute Positioning */
    .hero-modern-slider .swiper-slide {
        display: block !important; /* Force block to allow precise absolute positioning */
        padding: 0 !important;
        position: relative;
    }

    /* Text Block Adjustments - Sticky to Top */
    .slider-content {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px !important; /* Small padding from edges */
        margin: 0 !important;
        z-index: 20; /* Ensure text is topmost */
        height: auto;
        display: block !important;
    }

    .slider-text-block {
        width: 100%;
        max-width: 100%; /* Use full width available */
        margin: 0 auto;
        padding: 1rem;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.7); /* More visible background for readability */
        border: none;
        border-radius: 0 0 1rem 1rem; /* Rounded bottom corners only */
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .slider-title {
        font-size: 1.4rem !important; /* Smaller title */
        margin-bottom: 0.3rem;
        color: #1e293b; /* Ensure text color is dark for contrast */
    }

    .slider-subtitle {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        color: #475569;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Limit to 2 lines */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .slider-btn.btn {
        padding: 0.4rem 1.0rem;
        font-size: 0.8rem;
        margin-top: 0.2rem;
    }

    /* Reset desktop alignments */
    .slider-content.align-left,
    .slider-content.align-right,
    .slider-content.align-center,
    .slider-content.align-right .slider-text-block,
    .slider-content.align-center .slider-text-block {
        align-items: center;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    /* Image Adjustments - Sticky to Bottom Center */
    .slider-product-img {
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(20px) !important; /* Initial state */
        width: auto !important;
        height: auto !important;
        max-width: 80% !important; /* Allow more width */
        max-height: 45% !important; /* Limit height to avoid hitting text */
        z-index: 10;
        opacity: 0; /* Hidden initially */
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        object-position: bottom center;
    }
    
    /* Override specific positioning classes for mobile */
    .slider-product-img.position-left,
    .slider-product-img.position-right {
        left: 50%;
        right: auto;
        /* Transform handled by base rule and active state */
    }
    
    /* Active State for Mobile */
    .swiper-slide-active .slider-product-img {
        opacity: 1 !important; /* Fully opaque */
        transform: translateX(-50%) translateY(0) !important; /* Slide up to final position */
        transition-delay: 0.2s;
    }
}

.slider-text-block {
    background: transparent; /* Removed dark background as requested */
    backdrop-filter: blur(12px); /* Enhanced blur for frosted glass effect */
    padding: 2rem 3rem;
    border-radius: var(--radius-lg);
    display: inline-block;
    max-width: 650px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Slightly more visible border */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Animation for the block itself */
    opacity: 0;
    transform: translateY(20px);
}

/* Animation Trigger for Active Slide */
.swiper-slide-active .slider-text-block {
    animation: fadeInUp 0.8s forwards 0.5s; /* Block appears first */
}

.swiper-slide-active .slider-title {
    animation: fadeInUp 0.8s forwards 1.0s; /* +0.5s delay */
}

.swiper-slide-active .slider-subtitle {
    animation: fadeInUp 0.8s forwards 1.2s; /* +0.5s delay */
}

.swiper-slide-active .slider-btn {
    animation: fadeInUp 0.8s forwards 1.4s; /* +0.5s delay */
}

/* Reset animation state for non-active slides */
.slider-text-block, .slider-title, .slider-subtitle, .slider-btn {
    opacity: 0;
    transform: translateY(30px);
}

/* Modern Button Style */
.slider-btn.btn { /* Increased specificity */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* Bright Blue Gradient */
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Pill shape */
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); /* Glowing shadow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.slider-btn.btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.slider-btn.btn:active {
    transform: translateY(0) scale(0.98);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

.bg-slate-50 {
    background-color: #f1f5f9; /* Slate 100 for better contrast */
}

.bg-white {
    background-color: #ffffff;
}

/* Custom Swiper Navigation */
.swiper-button-next, .swiper-button-prev {
    color: white !important;
    background: rgba(255,255,255,0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    width: 30px !important;
    border-radius: 5px !important;
    background: var(--accent-color) !important;
}

/* Bento Grid Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.bento-item {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.bento-large {
    grid-column: span 12;
}

@media (min-width: 768px) {
    .bento-large { grid-column: span 8; }
    .bento-small { grid-column: span 4; }
    .bento-medium { grid-column: span 8; }
}

@media (max-width: 767px) {
    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .bento-item {
        width: 100%;
        margin-bottom: 0;
    }

    /* Adjust stats for mobile */
    .stats-modern {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-modern-item h3 {
        font-size: 2.5rem;
    }
    
    .section-heading-modern h2 {
        font-size: 1.8rem;
    }
}

.product-pill {
    background: #eff6ff;
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.bento-desc {
    color: var(--text-muted);
}

/* Stats Modern */
.stats-modern {
    display: flex;
    justify-content: space-around;
    background: transparent;
    padding: 2rem 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    text-align: center;
}

.stat-modern-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-modern-item p {
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Section Headings */
.section-heading-modern {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading-modern h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-heading-modern h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Cards List */
.modern-list-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

.modern-list-card:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.modern-list-title {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.modern-list-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Footer Overrides */
footer.bg-light {
    background-color: #1e293b !important; /* Dark Slate */
    color: #e2e8f0 !important;
    margin-top: 0 !important;
    padding-top: 4rem;
}

footer .text-dark {
    color: #cbd5e1 !important; /* Light Gray text for links */
}

footer .text-dark:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

footer .text-primary {
    color: #60a5fa !important; /* Lighter Blue for headings/icons on dark bg */
}

footer .text-muted {
    color: #94a3b8 !important;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
}

footer .bg-light {
    background-color: transparent !important; /* Remove inner bg if any */
}

/* Quick Access Bar Styles */
.quick-access-bar {
    position: relative;
    z-index: 50;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.quick-access-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px; /* Pill shape */
    padding: 1rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.5);
}

.quick-access-label {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-access-label i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.quick-access-form {
    display: flex;
    flex: 1;
    gap: 0.5rem;
    align-items: center;
}

.modern-select {
    border-radius: 25px;
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1.5rem;
    background-color: #f8fafc;
    cursor: pointer;
    width: 100%;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s;
}

.modern-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modern-btn-go {
    border-radius: 25px;
    padding: 0.5rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.modern-btn-go:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

@media (max-width: 768px) {
    .quick-access-bar {
        margin-top: 1rem; /* No negative margin on mobile */
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .quick-access-content {
        flex-direction: column;
        border-radius: 20px;
        padding: 1.5rem;
        width: 100%;
        gap: 1rem;
    }
    
    .quick-access-label {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .quick-access-form {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
    
    .modern-btn-go {
        width: 100%;
        padding: 0.75rem;
    }
}

/* Badge Styles for Sidebar */
.badge-new {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
