/* Base CSS & Vibrant Modern Theme */
:root {
    --bg-dark: #07060f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    
    --color-cyan: #22d3ee;
    --color-violet: #8b5cf6;
    --color-pink: #ec4899;
    
    --font-outfit: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: #cbd5e1; /* slate-300 */
    font-family: var(--font-outfit);
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: rgba(139, 92, 246, 0.4);
    color: white;
}

/* Background Animated Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.3) 0%, transparent 70%);
    top: -100px; left: -100px;
}

.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(34,211,238,0.25) 0%, transparent 70%);
    top: 40%; right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 70%);
    bottom: -100px; left: 20%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Tailwind Utilities Recreation (Subset) */
.container { width: 100%; margin: 0 auto; }
@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }

.flex { display: flex; } .grid { display: grid; } .hidden { display: none; }
.inline-flex { display: inline-flex; } .inline-block { display: inline-block; }
.flex-col { flex-direction: column; } .flex-row { flex-direction: row; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .items-end { align-items: flex-end; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.shrink-0 { flex-shrink: 0; } .flex-grow { flex-grow: 1; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-4 { padding-top: 1rem; } .pt-6 { padding-top: 1.5rem; } .pt-20 { padding-top: 5rem; }
.p-2 { padding: 0.5rem; } .p-4 { padding: 1rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.pl-4 { padding-left: 1rem; } .pl-8 { padding-left: 2rem; }

.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }

.gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; } .gap-16 { gap: 4rem; }

.w-full { width: 100%; } .h-full { height: 100%; }
.w-2 { width: 0.5rem; } .h-2 { height: 0.5rem; }
.w-3 { width: 0.75rem; } .h-3 { height: 0.75rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; } .h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; } .h-7 { height: 1.75rem; }
.w-8 { width: 2rem; } .h-8 { height: 2rem; }
.w-12 { width: 3rem; } .h-12 { height: 3rem; }
.w-14 { width: 3.5rem; } .h-14 { height: 3.5rem; }
.w-16 { width: 4rem; } .h-16 { height: 4rem; }
.h-10 { height: 2.5rem; } .h-48 { height: 12rem; }
.w-fit { width: fit-content; } .max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; } .max-w-5xl { max-width: 64rem; } .min-h-screen { min-height: 100vh; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Responsive Grids */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:flex { display: flex; } .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:w-1\/4 { width: 25%; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .md\:p-8 { padding: 2rem; } .md\:p-16 { padding: 4rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:text-8xl { font-size: 6rem; line-height: 1; }
}

/* Typography & Colors */
.font-outfit { font-family: var(--font-outfit); }
.font-fira { font-family: var(--font-mono); }
.font-medium { font-weight: 500; } .font-bold { font-weight: 700; }
.text-center { text-align: center; } .tracking-tight { letter-spacing: -0.025em; } .tracking-wide { letter-spacing: 0.025em; }
.leading-relaxed { line-height: 1.625; }

.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; } .text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; } .text-5xl { font-size: 3rem; }

.text-white { color: #ffffff; }
.text-slate-200 { color: #e2e8f0; } .text-slate-300 { color: #cbd5e1; } .text-slate-400 { color: #94a3b8; } .text-slate-500 { color: #64748b; }
.text-cyan-300 { color: #67e8f9; } .text-cyan-400 { color: #22d3ee; }
.text-violet-400 { color: #a78bfa; }
.text-pink-400 { color: #f472b6; }
.text-emerald-300 { color: #6ee7b7; } .text-emerald-400 { color: #34d399; }
.text-orange-400 { color: #fb923c; } .text-yellow-400 { color: #facc15; }
.text-blue-400 { color: #60a5fa; }

.text-gradient-vibrant {
    background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-violet) 50%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-space-dark { background-color: var(--bg-dark); }
.bg-space-dark\/60 { background-color: rgba(7, 6, 15, 0.6); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); } .bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); } .bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }
.bg-black\/20 { background-color: rgba(0, 0, 0, 0.2); } .bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); } .bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }
.bg-transparent { background-color: transparent; }

.bg-violet-500\/20 { background-color: rgba(139, 92, 246, 0.2); }
.bg-cyan-500\/20 { background-color: rgba(34, 211, 238, 0.2); }
.bg-pink-500\/20 { background-color: rgba(236, 72, 153, 0.2); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-tr { background-image: linear-gradient(to top right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-violet-500 { --tw-gradient-from: #8b5cf6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.from-violet-600 { --tw-gradient-from: #7c3aed; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-cyan-400 { --tw-gradient-to: #22d3ee; } .to-cyan-500 { --tw-gradient-to: #06b6d4; }
.from-violet-600\/20 { --tw-gradient-from: rgba(124, 58, 237, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-pink-600\/20 { --tw-gradient-to: rgba(219, 39, 119, 0.2); }
.from-cyan-600\/20 { --tw-gradient-from: rgba(8, 145, 178, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-emerald-600\/20 { --tw-gradient-to: rgba(5, 150, 105, 0.2); }
.from-orange-500\/20 { --tw-gradient-from: rgba(249, 115, 22, 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, transparent); }
.to-pink-500\/20 { --tw-gradient-to: rgba(236, 72, 153, 0.2); }

/* Borders & Positioning */
.border { border-width: 1px; } .border-t { border-top-width: 1px; } .border-b { border-bottom-width: 1px; }
.border-transparent { border-color: transparent; }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); } .border-white\/10 { border-color: rgba(255, 255, 255, 0.1); } .border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }

.relative { position: relative; } .absolute { position: absolute; } .fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-4 { top: 1rem; } .top-8 { top: 2rem; } .-top-1 { top: -0.25rem; }
.bottom-10 { bottom: 2.5rem; } .-bottom-1 { bottom: -0.25rem; }
.left-0 { left: 0; } .left-1\/2 { left: 50%; }
.right-4 { right: 1rem; } .right-8 { right: 2rem; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.z-0 { z-index: 0; } .z-10 { z-index: 10; } .z-40 { z-index: 40; } .z-50 { z-index: 50; }

.rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 0.75rem; } .rounded-2xl { border-radius: 1rem; } .rounded-3xl { border-radius: 1.5rem; } .rounded-\[2rem\] { border-radius: 2rem; } .rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; } .overflow-x-hidden { overflow-x: hidden; } .overflow-x-auto { overflow-x: auto; }
.pointer-events-none { pointer-events: none; }
.opacity-0 { opacity: 0; } .backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.shadow-glass { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); }
.cursor-default { cursor: default; } .resize-none { resize: none; } .outline-none { outline: none; }

/* Transitions & Hover */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-colors { transition-property: color, background-color, border-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; } .duration-500 { transition-duration: 500ms; }

.hover\:text-white:hover { color: #ffffff; } .hover\:text-cyan-400:hover { color: #22d3ee; }
.hover\:bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); } .hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }

.group:hover .group-hover\:w-full { width: 100%; }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:-translate-y-1 { transform: translateY(-0.25rem); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }
.group:hover .group-hover\:text-cyan-400 { color: #22d3ee; }
.group:hover .group-hover\:text-white { color: #ffffff; }
.group:hover .group-hover\:bg-transparent { background-color: transparent; }
.group:hover .group-hover\:border-transparent { border-color: transparent; }

.focus\:border-cyan-400:focus { border-color: #22d3ee; } .focus\:bg-white\/10:focus { background-color: rgba(255, 255, 255, 0.1); }
.placeholder-slate-500::placeholder { color: #64748b; }

/* Components */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
}

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

.hover-glow:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
}

.btn-vibrant {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-violet), var(--color-cyan));
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: none;
    cursor: pointer;
}

.btn-vibrant:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.5);
}

.btn-glass {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #22d3ee;
    transform: translateY(-3px) scale(1.1);
    border-color: rgba(34, 211, 238, 0.3);
}

.skill-pill {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.glass-card:hover .skill-pill {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.9) translateY(30px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-bounce-in { animation: bounceIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

@keyframes pulseGlow { 0%, 100% { opacity: 1; box-shadow: 0 0 10px #34d399; } 50% { opacity: 0.5; box-shadow: 0 0 2px #34d399; } }
.animate-pulse-glow { animation: pulseGlow 2s infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0) translateX(-50%); } 50% { transform: translateY(-10px) translateX(-50%); } }
.animate-bounce { animation: bounce 2s infinite; }

@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.typing-cursor { animation: blinkCursor 0.8s infinite; }

/* Scroll Reveals */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* Nav */
.nav-scrolled { background-color: rgba(7, 6, 15, 0.9); border-bottom-color: rgba(255, 255, 255, 0.1); padding-top: 1rem; padding-bottom: 1rem; box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

/* Spacing Utilities */
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
