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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

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

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #fca311;
    border-radius: 4px;
}

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

/* Fixed 3D canvas with better z-index and positioning */
#three-canvas {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Particles container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

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

.glass-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #fca311 0%, #e89200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow effect */
.glow {
    box-shadow: 0 0 20px rgba(252, 163, 17, 0.3);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(252, 163, 17, 0.5);
}

/* Swiper custom styles */
.swiper {
    width: 100%;
    padding-bottom: 50px !important;
}

.swiper-pagination-bullet {
    background: #fca311 !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #fca311 0%, transparent 100%);
}

/* Animated border */
@keyframes borderAnimation {

    0%,
    100% {
        border-color: rgba(252, 163, 17, 0.3);
    }

    50% {
        border-color: rgba(252, 163, 17, 0.8);
    }
}

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

/* Enhanced skill card with better 3D transform */
.skill-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    will-change: transform;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* 3D perspective for sections */
.perspective-section {
    perspective: 2000px;
    perspective-origin: center;
}

/* 3D transform for cards */
.transform-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cursor trail effect */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #fca311;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Reveal animation - elements visible by default, animation enhances */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

.reveal.will-animate {
    opacity: 0;
    transform: translateY(50px);
}

/* Loading screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(252, 163, 17, 0.3);
    border-top-color: #fca311;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Floating animation for 3D elements */
@keyframes float {

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

    50% {
        transform: translateY(-20px) rotateX(10deg);
    }
}

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

/* Enhanced styles for skills section with better visibility */
.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(252, 163, 17, 0.15);
    border: 2px solid rgba(252, 163, 17, 0.4);
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fca311;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-badge:hover {
    background: rgba(252, 163, 17, 0.25);
    border-color: rgba(252, 163, 17, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 16px rgba(252, 163, 17, 0.3);
}

.skill-category {
    margin-bottom: 3rem;
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fca311 0%, #e89200 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.3);
}

.skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* Ensure all content has proper z-index layering */
section {
    position: relative;
    z-index: 10;
}

nav {
    z-index: 50;
}