@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

/* Modern Root Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Body Styles */
body {
    font-family: 'Inter', 'Lato', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: background 0.5s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.dark {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #e0e0e0;
}

body.dark::before {
    background: radial-gradient(circle, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', 'Lora', serif;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Tab Buttons */
.tab-button {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    color: #495057;
    transition: var(--transition);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.tab-button:hover::before {
    left: 0;
}

.tab-button:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.tab-button.active {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Modern Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.5);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

/* Copy Button */
.copy-button {
    background: var(--primary-gradient);
    transition: var(--transition);
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.copy-button::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.copy-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.copy-button:active::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Dark Mode Styles */
.dark .tab-button {
    background: rgba(44, 44, 46, 0.8);
    color: #b0b0b0;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .tab-button.active {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(167, 139, 250, 0.4);
}

.dark .card {
    background: rgba(44, 44, 46, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .card::before {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
}

.dark .copy-button {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
}

.dark .bg-gray-50 {
    background-color: rgba(58, 58, 60, 0.8);
}

.dark .text-gray-700 {
    color: #d0d0d0;
}

.dark .text-gray-600 {
    color: #a0a0a0;
}

/* Modern Theme Switch */
.theme-switch {
    width: 60px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-switch::before {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: #f1f1f1;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath d='M8 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM8 0a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 0zm0 13a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-1 0v-2A.5.5 0 0 1 8 13zm8-5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2a.5.5 0 0 1 .5.5zM3 8a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1 0-1h2A.5.5 0 0 1 3 8zm10.657-5.657a.5.5 0 0 1 0 .707l-1.414 1.414a.5.5 0 1 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm-9.193 9.193a.5.5 0 0 1 0 .707L3.05 13.657a.5.5 0 0 1-.707-.707l1.414-1.414a.5.5 0 0 1 .707 0zm9.193 2.121a.5.5 0 0 1-.707 0l-1.414-1.414a.5.5 0 0 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707zM4.464 4.465a.5.5 0 0 1-.707 0L2.343 3.05a.5.5 0 1 1 .707-.707l1.414 1.414a.5.5 0 0 1 0 .707z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px;
    border: 1px solid #dcdcdc;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease-in-out;
}




.theme-switch.dark-active {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.theme-switch.dark-active::before {
    content: '🌙';
    transform: translateX(28px);
    background: #4a5568;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content.dark {
    background: rgba(45, 55, 72, 0.98);
}

.close-button {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    color: #999;
}

.close-button:hover {
    color: #667eea;
    transform: rotate(90deg);
}

/* Navigation Styles */
.dark nav {
    background: rgba(44, 44, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark nav button {
    color: #e2e8f0;
}

.dark nav button:hover {
    color: #a78bfa;
}

.dark header h1 {
    color: #e0e0e0;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark header p {
    color: #a0a0a0;
}

/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.slider-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slider-container:hover .slider-image {
    transform: scale(1.05);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(71, 72, 78, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 6px;
}

.slider-nav-btn:hover {
    background: rgb(92, 110, 192);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev-btn {
    left: 3px;
}

.slider-next-btn {
    right: 3px;
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    :root {
        --border-radius: 12px;
    }
    
    .card {
        border-radius: 12px;
    }
    
    .tab-button {
        padding: 10px 18px;
        font-size: 14px;
    }
}










