/* Custom Fonts */
* {
    font-family: 'Space Grotesk', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
}

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

body {
    overflow-x: hidden;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.text-gradient:hover {
    transform: scale(1.05);
}

/* Animated Gradient */
.text-gradient-animated {
    background: linear-gradient(135deg, #818cf8, #c084fc, #60a5fa, #818cf8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating Icons Animation */
.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Pulse Animation */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* Menu Slide */
.menu-slide {
    height: calc(100vh - 5rem);
}

/* Hover Effects */
.hover-lift:hover {
    transform: scale(1.05);
}

.hover-rotate:hover {
    transform: rotate(90deg);
}

.hover-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hover-3d:hover {
    transform: scale(1.05) rotateY(5deg) rotateX(5deg);
}

.hover-slide {
    transition: all 0.3s ease;
}

.hover-slide:hover {
    transform: translateX(8px);
    color: #c7d2fe;
}

/* Experience Cards */
.experience-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience-card:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.5);
}

/* Navigation Link Active State */
.nav-link.active {
    background-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-gradient-animated {
        font-size: 2.5rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #818cf8, #a78bfa);
}

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

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Grid System Enhancement */
@media (min-width: 1024px) {
    .lg\:col-span-5 {
        grid-column: span 5 / span 5;
    }
    .lg\:col-span-7 {
        grid-column: span 7 / span 7;
    }
}

/* Backdrop Blur Support */
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .backdrop-blur-md {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
    .backdrop-blur-lg {
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
    }
    .backdrop-blur-sm {
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}