/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #6c757d;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #0ea5e9;
    --light: #f8fafc;
    --dark: #1e293b;
    --accent: #f97316;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #334155;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes barSlide {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animate-bar-slide-1 {
    animation: barSlide 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
    pointer-events: none;
}

.hero-section > div {
    position: relative;
    z-index: 1;
}

.hero-section .display-4 {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 3.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 500;
}

/* Shortener Form */
.shortener-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
}

.shortener-form .form-control,
.shortener-form .form-control-lg {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.shortener-form .form-control:focus,
.shortener-form .form-control-lg:focus {
    background: white;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
    border: none;
    transition: all 0.3s;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-install {
    background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
    border: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    border-radius: 8px;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.features-section h2 {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e2e8f0;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--blue);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h4 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-card p {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.stats-section .container {
    position: relative;
    z-index: 1;
}

.stats-section h2 {
    font-weight: 800;
    margin-bottom: 60px;
    font-size: 2.5rem;
}

.stat-card {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0369a1 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
    z-index: 0;
}

.cta-section > div {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    border-radius: 12px;
    border: 1px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 16px 20px;
}

.alert-danger {
    background-color: #fef2f2;
    color: #7f1d1d;
    border-color: #fca5a5;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fcd34d;
}

.alert-info {
    background-color: #f0f9ff;
    color: #0c4a6e;
    border-color: #7dd3fc;
}

/* Cards */
.card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--blue);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    color: var(--dark);
    padding: 20px;
}

.card-body {
    padding: 20px;
    color: #475569;
}

.card-title {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.card-text {
    font-size: 0.95rem;
    color: #64748b;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 1px solid #e2e8f0;
}

/* Tables */
.table {
    margin-bottom: 0;
    border-collapse: collapse;
}

.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: var(--dark);
    padding: 16px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #475569;
}

.table-hover tbody tr:hover {
    background-color: #f8fafc;
    cursor: pointer;
}

.table tbody tr {
    transition: all 0.3s ease;
}

/* Badges */
.badge {
    padding: 8px 14px;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.85rem;
}

.badge-primary {
    background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
    color: white;
}

.badge-success {
    background-color: #d1fae5;
    color: #065f46;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    margin-top: auto;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--blue);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .features-section h2,
    .stats-section h2,
    .cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .shortener-form {
        padding: 20px;
        margin-top: 20px;
    }

    .features-section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 25px;
        margin-bottom: 20px;
    }

    .stats-section {
        padding: 60px 0;
    }

    .stat-card {
        margin-bottom: 20px;
        padding: 30px;
    }

    .cta-section {
        padding: 60px 0;
        text-align: center;
    }

    .cta-section h2 {
        font-size: 1.75rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Code blocks */
code {
    background-color: var(--light);
    padding: 2px 6px;
    border-radius: 3px;
    color: #d63384;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form styling */
.form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.form-control {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 10px 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem !important;
    font-weight: 700;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: var(--light);
    color: var(--primary);
}
