@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
    font-family: 'Poppins', sans-serif;
}

h1,
h2,
h3 {
    font-family: 'Space Grotesk', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container svg {
    display: block;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.25);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(2deg);
    }

    66% {
        transform: translateY(-10px) rotate(-2deg);
    }
}

.animate-pulse-slow {
    animation: pulse-glow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.nav-blur {
    backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.9);
}

.dark .nav-blur {
    background-color: rgba(17, 24, 39, 0.9);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

input:checked+.slider {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

.slider-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: 0.4s;
    color: white;
}

.slider-icon.sun {
    left: 8px;
}

.slider-icon.moon {
    right: 8px;
    opacity: 0.5;
}

input:checked~.slider-icon.sun {
    opacity: 0.5;
}

input:checked~.slider-icon.moon {
    opacity: 1;
}

.perspective-card {
    perspective: 1000px;
}

.perspective-card-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.perspective-card:hover .perspective-card-inner {
    transform: rotateY(5deg) rotateX(5deg);
}

.text-shadow-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.tech-icon {
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.4));
}

.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob-animation 8s ease-in-out infinite;
}

@keyframes blob-animation {

    0%,
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.particle {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.6;
    animation: particle-float 20s infinite;
}

@keyframes particle-float {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translate(100px, -1000px);
        opacity: 0;
    }
}

.testimonial-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    box-shadow: 20px 20px 60px #d9d9d9, -20px -20px 60px #ffffff;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 9999;
    transition: width 0.1s ease;
}

.parallax {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient {
    background-size: 200% 200%;
    animation: gradient-animation 8s ease infinite;
}

.shine {
    position: relative;
    overflow: hidden;
}

.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.shine:hover::before {
    left: 100%;
}

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.float-on-scroll {
    transition: transform 0.6s ease-out;
}

@keyframes border-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

.glow-border {
    animation: border-glow 3s ease-in-out infinite;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.stagger-children>* {
    animation-delay: calc(0.1s * var(--stagger-index, 0));
}

@keyframes progress-fill {

    0%,
    100% {
        width: 85%;
    }

    50% {
        width: 95%;
    }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.portfolio-item img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover img {
    transform: scale(1.15) rotate(2deg);
}

.portfolio-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.portfolio-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.portfolio-player {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.portfolio-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: inherit;
}

.portfolio-item.has-player:hover .portfolio-thumb {
    opacity: 0;
}

.portfolio-item.has-player:hover .portfolio-player {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.85) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: flex-end;
    z-index: 20;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Horizontal scroll animation */
@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

.animate-scroll-horizontal {
    animation: scroll-horizontal 40s linear infinite;
    display: flex;
    width: fit-content;
    will-change: transform;
}

.animate-scroll-horizontal:hover {
    animation-play-state: paused;
}

/* Partner logo fade effect */
.partner-logo-container {
    position: relative;
    transition: opacity 0.8s ease-in-out;
}

/* Scroll container fade masks */
.animate-scroll-horizontal {
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

