/* ============================================
   TOOLSOFFICE - COMPLETE STYLESHEET
   Version: 2.0
   ============================================ */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0e1a;
    color: #ffffff;
    line-height: 1.6;
}

/* ============================================
   NAVIGATION - FIXED TOP
   ============================================ */
.navbar-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-modern.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 26, 0.98);
}

.navbar-modern .navbar-brand {
    color: white !important;
    font-weight: 800;
    font-size: 1.8rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.navbar-modern .navbar-brand:hover {
    opacity: 0.9;
}

.navbar-modern .nav-link {
    color: rgba(255,255,255,0.7) !important;
    transition: all 0.3s;
    font-weight: 500;
    margin: 0 5px;
}

.navbar-modern .nav-link:hover,
.navbar-modern .nav-link.active {
    color: white !important;
}

/* ============================================
   HERO SECTION - NO SPACING ISSUES
   ============================================ */
.hero-modern {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f35 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 80px; /* Accounts for fixed navbar */
    display: flex;
    align-items: center;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
}

.hero-modern .container {
    position: relative;
    z-index: 2;
    padding-top: 0 !important;
}

.hero-modern .row {
    margin-top: 0 !important;
}

/* Floating Elements Animation */
.floating-element {
    position: absolute;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    animation: float 20s infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card-modern {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    margin: 10px;
}

.product-card-modern:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.product-header {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-icon {
    font-size: 48px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-body {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: white;
}

.product-price {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 15px 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-gradient {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.btn-outline-glass {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-outline-glass:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 500;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
    color: white;
}

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-feed {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px;
    max-height: 450px;
    overflow-y: auto;
}

.activity-feed h5 {
    color: white;
    margin-bottom: 20px;
}

.activity-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.5s ease-out;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom scrollbar for activity feed */
.activity-feed::-webkit-scrollbar {
    width: 5px;
}

.activity-feed::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.activity-feed::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.category-card-modern {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.category-card-modern:hover {
    transform: translateY(-5px);
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.category-card-modern i {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-card-modern h6 {
    margin-bottom: 5px;
    font-weight: 600;
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.testimonial-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
    background: linear-gradient(135deg, #1e1b4b, #0f172a);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
}

.newsletter-section h3 {
    font-weight: 800;
    margin-bottom: 15px;
}

.newsletter-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    width: 100%;
}

.newsletter-input:focus {
    background: rgba(255,255,255,0.08);
    border-color: #6366f1;
    color: white;
    outline: none;
    box-shadow: none;
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.5);
}

/* ============================================
   FOOTER
   ============================================ */
.footer-modern {
    background: #0a0e1a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-modern h5, 
.footer-modern h6 {
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-modern ul {
    list-style: none;
    padding: 0;
}

.footer-modern ul li {
    margin-bottom: 10px;
}

.footer-modern ul li a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-modern ul li a:hover {
    color: white;
}

.footer-modern hr {
    border-color: rgba(255,255,255,0.05);
    margin: 20px 0;
}

/* ============================================
   SLICK SLIDER CUSTOMIZATION
   ============================================ */
.product-slider {
    margin: 0 -10px;
}

.product-slider .slick-slide {
    padding: 0 10px;
}

.product-slider .slick-prev,
.product-slider .slick-next {
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.8);
    border-radius: 50%;
    transition: all 0.3s;
}

.product-slider .slick-prev:hover,
.product-slider .slick-next:hover {
    background: #6366f1;
}

.product-slider .slick-prev:before,
.product-slider .slick-next:before {
    font-family: 'slick';
    font-size: 20px;
    opacity: 1;
}

.product-slider .slick-prev {
    left: -20px;
}

.product-slider .slick-next {
    right: -20px;
}

.product-slider .slick-dots {
    bottom: -40px;
}

.product-slider .slick-dots li button:before {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.product-slider .slick-dots li.slick-active button:before {
    color: #6366f1;
}

/* ============================================
   SECTION PADDING
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

.py-5 {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ============================================
   BADGES
   ============================================ */
.badge.bg-primary {
    background: rgba(99, 102, 241, 0.2) !important;
    color: #6366f1 !important;
    backdrop-filter: blur(5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .product-slider .slick-prev {
        left: -10px;
    }
    .product-slider .slick-next {
        right: -10px;
    }
}

@media (max-width: 992px) {
    .hero-modern {
        min-height: auto;
        padding: 100px 0 60px;
    }
    
    .hero-modern h1 {
        font-size: 36px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .newsletter-section {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .navbar-modern {
        padding: 10px 0;
    }
    
    .hero-modern {
        padding-top: 70px;
    }
    
    .hero-modern h1 {
        font-size: 28px;
    }
    
    .hero-modern .lead {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    .category-card-modern {
        padding: 15px;
    }
    
    .category-card-modern i {
        font-size: 32px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .footer-modern {
        padding: 40px 0 20px;
    }
    
    .py-5 {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .hero-modern h1 {
        font-size: 24px;
    }
    
    .btn-gradient,
    .btn-outline-glass {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .product-icon {
        font-size: 32px;
    }
    
    .product-header {
        padding: 20px;
    }
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-white-50 {
    color: rgba(255,255,255,0.5) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, #0f172a, #1e1b4b) !important;
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Staggered animations for product cards */
.product-card-modern {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.product-card-modern:nth-child(1) { animation-delay: 0.05s; }
.product-card-modern:nth-child(2) { animation-delay: 0.1s; }
.product-card-modern:nth-child(3) { animation-delay: 0.15s; }
.product-card-modern:nth-child(4) { animation-delay: 0.2s; }
.product-card-modern:nth-child(5) { animation-delay: 0.25s; }
.product-card-modern:nth-child(6) { animation-delay: 0.3s; }