@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

body { font-family: 'Inter', sans-serif; }

.gradient-bg {
    background: linear-gradient(135deg, #BD0569 0%, #185B18 100%);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(189, 5, 105, 0.15);
}

.dark .card-hover:hover {
    box-shadow: 0 20px 40px rgba(189, 5, 105, 0.2);
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from { box-shadow: 0 0 20px rgba(189, 5, 105, 0.4); }
    to { box-shadow: 0 0 40px rgba(189, 5, 105, 0.8); }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.tech-grid {
    background-image:
            linear-gradient(rgba(189, 5, 105, 0.1) 1px, transparent 1px),
            linear-gradient(90deg, rgba(189, 5, 105, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.illustration {
    background: linear-gradient(145deg, #E6E9EF 0%, #f8fafc 100%);
    border-radius: 50px;
    position: relative;
}

.dark .illustration {
    background: linear-gradient(145deg, #374151 0%, #1f2937 100%);
}

.floating-element {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.bounce-element {
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Dark mode toggle styles */
.dark-mode-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .dark-mode-toggle {
    background: #374151;
}

.dark-mode-toggle::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .dark-mode-toggle::before {
    transform: translateX(30px);
    background: #f9fafb;
}

.sun-icon, .moon-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.dark .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

.dark .border-secondary {
    border-color: #374151;
}

.dark .bg-secondary\/20 {
    background-color: rgba(55, 65, 81, 0.2);
}

.dark .bg-secondary\/10 {
    background-color: rgba(55, 65, 81, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    transform: scale(0.8);
    animation: modalSlideIn 0.3s ease-out forwards;
}

.dark .modal-content {
    background: #1f2937;
    color: white;
}

@keyframes modalSlideIn {
    to { transform: scale(1); }
}

.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, #BD0569 0%, #185B18 100%);
    color: white;
}

.project-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s ease;
}

.project-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}
