/* Reset & Base */
:root {
    --cursor-size: 20px;
    --cursor-outline-size: 40px;
}

html {
    scroll-behavior: smooth;
}

/* Global Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body {
    font-family: 'Manrope', sans-serif;
    cursor: none; /* Hide default cursor for custom one */
}

/* Custom Scrollbar - Hidden but functional */
html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Custom Cursor Styles */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 99999; /* Ensure it's above everything including modals */
    pointer-events: none;
}

.cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: white;
}

.cursor-outline {
    width: var(--cursor-outline-size);
    height: var(--cursor-outline-size);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover states for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998; /* Below cursor, above content */
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3D Tilt & Glow Effects - REMOVED */
/*
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.tilt-content {
    transform: translateZ(20px);
}
*/

/* Shimmer Animation for Text/Badges */
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.animate-shimmer {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.3) 30%,
        rgba(255, 255, 255, 0.1) 40%
    );
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Skill Tags */
.skill-tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    color: #d1d5db;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        cursor: auto; /* Restore default cursor on touch devices */
    }
    .cursor-dot, .cursor-outline {
        display: none;
    }
}

/* Intro Animation Classes */
.intro-fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.text-visible {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
}

/* Marquee Animation */
.marquee-container {
    display: flex;
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    padding: 1rem 0;
}

.animate-scroll-right {
    animation: scrollRight 40s linear infinite;
}

.animate-scroll-left {
    animation: scrollLeft 40s linear infinite;
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@keyframes scrollLeft {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}
/* Hide Scrollbar Utility */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 3D Model Animation */
.model-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.planet {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotatePlanet 20s infinite linear;
}

.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.ring-1 { width: 100%; height: 100%; transform: translate(-50%, -50%) rotateX(70deg); }
.ring-2 { width: 80%; height: 80%; transform: translate(-50%, -50%) rotateX(70deg) rotateY(60deg); }
.ring-3 { width: 60%; height: 60%; transform: translate(-50%, -50%) rotateX(70deg) rotateY(-60deg); }

.planet-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5);
}

@keyframes rotatePlanet {
    0% { transform: rotateY(0deg) rotateX(10deg); }
    100% { transform: rotateY(360deg) rotateX(10deg); }
}

/* Elegant Background System */
.bg-elegant-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: #030014; /* Deep space blue/black */
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 25s infinite ease-in-out alternate;
}

.bg-orb-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #4f46e5 0%, transparent 70%); /* Indigo */
    animation-delay: 0s;
}

.bg-orb-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%); /* Violet */
    animation-delay: -5s;
}

.bg-orb-3 {
    top: 40%;
    left: 30%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #2563eb 0%, transparent 70%); /* Blue */
    opacity: 0.2;
    animation-delay: -10s;
}

/* Subtle Grid Overlay */
.bg-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100px 100px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
    100% { transform: translate(-20px, -30px) scale(0.95); }
}

/* Floating Shapes Animation */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.02);
    animation: floatShape 20s infinite linear;
    z-index: 0;
}

@keyframes floatShape {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.1; }
    80% { opacity: 0.1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}
