/* ===================================
   Toolbin Home Page - Modern Design System
   =================================== */

/* Color Palette */
:root {
    /* Primary Colors */
    --primary-blue: hsl(217, 91%, 60%);
    --primary-purple: hsl(271, 81%, 56%);
    --primary-teal: hsl(173, 97%, 30%);
    
    /* Secondary Colors */
    --secondary-green: hsl(142, 71%, 45%);
    --secondary-cyan: hsl(188, 94%, 43%);
    --secondary-orange: hsl(25, 95%, 53%);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(271, 81%, 56%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(173, 97%, 30%) 0%, hsl(142, 71%, 45%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(188, 94%, 43%) 0%, hsl(217, 91%, 60%) 100%);
    --gradient-hero: linear-gradient(135deg, hsl(217, 91%, 35%) 0%, hsl(271, 81%, 40%) 50%, hsl(173, 97%, 30%) 100%);
    
    /* Neutral Colors */
    --neutral-50: hsl(0, 0%, 98%);
    --neutral-100: hsl(0, 0%, 96%);
    --neutral-200: hsl(0, 0%, 90%);
    --neutral-800: hsl(0, 0%, 20%);
    --neutral-900: hsl(0, 0%, 10%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(10px);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    background: var(--gradient-hero);
    padding: 6rem 0;
    overflow: hidden;
    border-radius: 0 0 50px 50px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/static/images/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: white;
    color: var(--primary-blue);
    border: none;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-xl);
    color: var(--primary-purple);
}

.hero-icon {
    font-size: 8rem;
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

/* ===================================
   Feature Cards
   =================================== */

.feature-card {
    position: relative;
    background: white;
    border: none;
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.feature-card:nth-child(2)::before {
    background: var(--gradient-secondary);
}

.feature-card:nth-child(3)::before {
    background: var(--gradient-accent);
}

.feature-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.feature-description {
    font-size: 1rem;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.feature-btn:hover {
    transform: translateX(4px);
    gap: 0.75rem;
}

/* ===================================
   Category Cards
   =================================== */

.category-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-card {
    position: relative;
    background: white;
    border: none;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover .category-icon {
    transform: scale(1.2) rotate(10deg);
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-900);
}

/* ===================================
   Trust Section
   =================================== */

.trust-section {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    padding: 4rem 0;
    border-radius: 50px;
    margin: 3rem 0;
}

.trust-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-8px);
}

.trust-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-item:hover .trust-icon {
    transform: scale(1.15);
}

.trust-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--neutral-900);
}

.trust-description {
    font-size: 0.95rem;
    color: var(--neutral-800);
}

/* ===================================
   Statistics Section
   =================================== */

.stats-section {
    background: var(--gradient-primary);
    padding: 3rem 0;
    border-radius: 30px;
    margin: 3rem 0;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-icon {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    .hero-section {
        padding: 4rem 0;
        border-radius: 0 0 30px 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}
