/* --- New Modern Color Palette --- */
:root {
    --bg-dark: #111827;
    /* Tailwind gray-900 */
    --bg-card: #1F2937;
    /* Tailwind gray-800 */
    --text-primary: #F9FAFB;
    /* Tailwind gray-50 */
    --text-secondary: #9CA3AF;
    /* Tailwind gray-400 */
    --accent-start: #22D3EE;
    /* Tailwind cyan-400 */
    --accent-end: #06B6D4;
    /* Tailwind cyan-500 */
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: 'Prompt', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    position: relative;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NEW Button Styles --- */
.primary-btn {
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    color: var(--bg-dark);
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.25);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--accent-start);
    color: var(--accent-start);
    transition: all 0.2s ease-in-out;
}

.secondary-btn:hover {
    background-color: var(--accent-start);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.service-card {
    background: var(--bg-card);
    border: 1px solid #374151;
    /* gray-700 */
    border-radius: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-start);
}

.service-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nav-scrolled {
    background-color: rgba(17, 24, 39, 0.8);
    /* bg-dark with opacity */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- Animations --- */
@keyframes slide-in-from-bottom {
    from {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
}

@keyframes slide-in-from-top {
    from {
        transform: translateY(-100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-slide-from-bottom {
    opacity: 0;
    animation: slide-in-from-bottom 1.5s ease-out forwards;
}

.animate-slide-from-top {
    opacity: 0;
    animation: slide-in-from-top 1.5s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.slide-fade {
    animation: fade-in 0.5s ease-in-out;
}

/* Draggable Slider Cursor */
.slider-container {
    cursor: grab;
}

.slider-container:active {
    cursor: grabbing;
}

/* Mobile Menu Slide-out */
#mobile-menu:not(.translate-x-full) {
    transform: translateX(0);
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
}

.portfolio-swiper .swiper-slide {
    height: auto;
    /* Allow slides to have their own height */
}

.portfolio-swiper .swiper-pagination-bullet-active {
    background-color: var(--accent-start);
}

.portfolio-swiper .swiper-button-next,
.portfolio-swiper .swiper-button-prev {
    color: var(--text-primary);
}

.text-white {
    color: white;
}

.secondary-btn:hover {
    color: white;
}