/* Tailwind CSS */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

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

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

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

/* Gradient text */
.gradient-text {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Code block styling */
.code-block {
    font-family: 'JetBrains Mono', monospace;
    background-color: #1e293b;
    border-radius: 0.5rem;
    padding: 1.5rem;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.code-block pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .code-block {
        padding: 1rem;
    }

    .code-block pre {
        font-size: 0.75rem;
    }
}

/* Project card hover effect */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Skill badge animation */
.skill-badge {
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

/* Modal animation */
.modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* Carousel styling */
.carousel-item {
    transition: opacity 0.5s ease;
}

#carousel-items {
    min-height: 12rem; /* Smaller for mobile */
}

@media (min-width: 640px) {
    #carousel-items {
        min-height: 20rem; /* Medium for tablets */
    }
}

@media (min-width: 1024px) {
    #carousel-items {
        min-height: 28rem; /* Larger for desktop */
    }
}
