/* Custom Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

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

/* Custom animations */
@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

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

.delay-700 {
    animation-delay: 700ms;
}

/* Gradient text effect */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Details element styling */
details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 1rem;
}

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

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #ec4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #a855f7, #f472b6);
}

/* Mobile menu transitions */
@media (max-width: 768px) {
    .nav-menu {
        transition: transform 0.3s ease-in-out;
    }
}

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Background patterns */
.bg-pattern {
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(147, 51, 234, 0.05) 2%, transparent 0%),
        radial-gradient(circle at 75px 75px, rgba(236, 72, 153, 0.05) 2%, transparent 0%);
    background-size: 100px 100px;
}

/* Testimonial slider on mobile */
@media (max-width: 768px) {
    .testimonial-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .testimonial-grid > * {
        scroll-snap-align: start;
    }
    
    .testimonial-grid::-webkit-scrollbar {
        display: none;
    }
}

/* Loading animation for buttons */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.btn-shimmer {
    background: linear-gradient(
        90deg,
        #9333ea 0%,
        #a855f7 50%,
        #9333ea 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 3s infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Grid background effect */
.grid-bg {
    background-image: 
        linear-gradient(rgba(147, 51, 234, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Portfolio hover effects */
#portfolio .group:hover img {
    filter: brightness(1.1);
}

#portfolio .group {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

#portfolio .group:hover {
    transform: translateY(-8px);
}

/* Image loading effect */
img {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Responsive text sizes */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .text-8xl {
        font-size: 3rem;
    }
    
    .text-7xl {
        font-size: 2.5rem;
    }
}

/* Portfolio grid responsive */
@media (max-width: 768px) {
    #portfolio .grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

