/* ==========================================================================
   Modern Design System - 2024
   ========================================================================== */

/* Enhanced Variables */
:root {
    /* Modern Gradients - Fresh & Vibrant */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-cool: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(14, 165, 233, 0.15);

    /* Modern Shadows */
    --shadow-brutal: 8px 8px 0 0 rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Primary Colors */
    --color-primary: #0ea5e9;
    --color-secondary: #10b981;
    --color-accent: #f97316;
}

/* Modern Navbar with Glassmorphism */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* Modern Hero Section */
.hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.375rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

/* Modern Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

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

.tool-card.featured {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.tool-card.featured:hover {
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.5);
}

.tool-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1f2937;
}

.tool-card.featured .tool-title {
    color: white;
}

.tool-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.tool-card.featured .tool-description {
    color: rgba(255, 255, 255, 0.9);
}

.tool-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Form Elements */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
    transform: translateY(-1px);
}

/* Modern Result Cards */
.result-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.result-card.available {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.result-card.unavailable {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Modern Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.badge-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Page Hero Sections */
.page-hero {
    background: var(--gradient-primary);
    padding: 5rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.page-hero p {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

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

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 2rem;
    }
}

/* Loading States */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* CTA Buttons with Warm Gradient */
.btn-cta {
    background: var(--gradient-warm);
    color: white;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
}

.btn-cta:hover {
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
    transform: translateY(-3px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(14, 165, 233, 0.8);
    }
}

/* Animated Background Gradient for Hero */
.hero {
    background: linear-gradient(-45deg, #0ea5e9, #06b6d4, #3b82f6, #8b5cf6);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating Icons */
.tool-icon {
    animation: float 3s ease-in-out infinite;
}

/* Stagger animation for tool cards */
.tool-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.tool-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.tool-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.tool-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Glowing CTA Button */
.btn-primary:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Enhanced Navbar with Shadow on Scroll */
.navbar.scrolled {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

/* Parallax Hero Effect */
.hero-content {
    animation: slideInFromLeft 0.8s ease-out;
}

/* Interactive Form Elements with Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::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;
    pointer-events: none;
}

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

/* Colorful Underline for Links */
.nav-menu a {
    position: relative;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom: 2px solid var(--primary-color);
}

/* Highlight special menu items (like products) */
.nav-highlight {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    font-weight: 600;
    border-bottom: none !important;
    transition: all 0.3s ease;
}

.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    border-bottom: none !important;
}

.nav-highlight.active {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

/* Enhanced Footer with Gradient */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

/* Tool Card Enhanced Hover Effects */
.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(to bottom, rgba(14, 165, 233, 0) 0%, rgba(14, 165, 233, 0.1) 50%, rgba(14, 165, 233, 0) 100%);
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    transition: transform 0.6s ease-out;
    pointer-events: none;
}

.tool-card:hover::after {
    transform: rotateZ(60deg) translate(25em, -15em);
}

/* Smooth Page Load Animation */
body {
    animation: fadeIn 0.5s ease-in;
}

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

/* CTA Section with Animated Particles */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="stars" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1.5" fill="rgba(255,255,255,0.3)"/><circle cx="150" cy="100" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="100" cy="150" r="2" fill="rgba(255,255,255,0.4)"/></pattern></defs><rect width="200" height="200" fill="url(%23stars)"/></svg>');
    animation: float 20s linear infinite;
}

/* Enhanced Button Styles */
.btn-white {
    background: white;
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-white:hover {
    background: #f9fafb;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Section Dividers */
.section-divider {
    height: 4px;
    width: 80px;
    background: var(--gradient-primary);
    margin: 2rem auto;
    border-radius: 2px;
}
