:root {
    --background: #020617;
    --background-secondary: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --bento-bg: rgba(30, 41, 59, 0.3);
    --bento-border: rgba(255, 255, 255, 0.05);
    --bento-hover-bg: rgba(30, 41, 59, 0.6);
    --bento-hover-border: rgba(255, 255, 255, 0.15);
    --gradient-start: #ff7700;
    --gradient-end: #ff6f00;
    --input-bg: #1e293b;
}
* {
  text-shadow: none !important;
}
html {
    max-width: 100%;
    overflow-x: clip;
}
html.light {
    --background: #ffffff; /* Changed to pure white for hero match */
    --background-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --bento-bg: rgba(241, 245, 249, 0.6);
    --bento-border: rgba(0, 0, 0, 0.05);
    --bento-hover-bg: rgba(241, 245, 249, 1);
    --bento-hover-border: rgba(0, 0, 0, 0.1);
    --input-bg: #e2e8f0;
}
/* 'Plus Jakarta Sans' */
body {
    max-width: 100%;
    font-family: 'Google Sans Flex', sans-serif;
    background-color: var(--background);
    /* color: var(--text-primary); */
    color: var(--text-primary);;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased; /* Standard smoothing */
    -moz-osx-font-smoothing: grayscale;
   
}
.skill-badge {
    @apply px-3 py-1.5 bg-black/5 dark:bg-white/5 border border-[var(--bento-border)] rounded-lg text-[10px] font-black text-[var(--text-primary)] transition-all duration-300;
}
.social-link {
    @apply text-lg text-[var(--text-secondary)] hover:text-white transition-colors duration-300;
}
/* Minimalist Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.5);
    border-radius: 10px;
}

/* Animated Hamburger Transformation */
#mobile-menu-btn.active #line1 {
    transform: translateY(6px) rotate(45deg);
}
#mobile-menu-btn.active #line2 {
    opacity: 0;
    transform: translateX(-10px);
}
#mobile-menu-btn.active #line3 {
    transform: translateY(-6px) rotate(-45deg);
}
/* Floating Label Logic */
.floating-label {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    padding: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Adjust top for Textarea */
textarea + .floating-label {
    top: 1.5rem;
    transform: none;
}

/* The Magic: When focused or not empty, move label to border */
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: 0;
    font-size: 0.65rem;
    color: #f97316; /* Orange-500 */
    background-color: var(--bento-bg); /* Matches card bg to 'cut' the border */
    font-weight: 900;
}

/* Ensure background color is opaque enough to hide the border line */
.dark .floating-label {
    background-color: #0a0a0a; /* Replace with your exact Dark UI background color */
}
.light .floating-label {
    background-color: #ffffff; /* Replace with your exact Light UI background color */
}
.glass {
    background-color: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, border 0.3s ease;
}

.bento-card {
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: var(--bento-bg);
    border: 1px solid var(--bento-border);
}

.bento-card:hover {
    transform: translateY(-8px);
    background-color: var(--bento-hover-bg);
    border-color: var(--bento-hover-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Specific Styles for the "Blob" shape */
.hero-blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: blob 10s infinite alternate;
}

/* Dark mode specific override for hero blob */
html.dark .hero-blob-bg {
    opacity: 0.25;
    background: linear-gradient(135deg, #4c1d95 0%, #701a75 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background-color: var(--background-secondary); }
::-webkit-scrollbar-thumb { background-color: var(--text-secondary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--gradient-start); }

/* Theme Toggle */
#theme-toggle {
    background-color: var(--bento-bg);
    border: 1px solid var(--bento-border);
}
#theme-toggle .fa-sun { display: none; }
#theme-toggle .fa-moon { display: block; }
html.light #theme-toggle .fa-sun { display: block; }
html.light #theme-toggle .fa-moon { display: none; }

/* Beautiful Buttons */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-orange {
    background-color: #f97316; /* Orange-500 */
    color: white;
    border-radius: 9999px;
    transition: all 0.3s ease;
}
.btn-orange:hover {
    background-color: #ea580c; /* Orange-600 */
    transform: translateY(-2px);
}

.form-input {
    background-color: var(--input-bg);
    border: 1px solid var(--bento-border);
    color: var(--text-primary);
}
.form-input:focus {
    outline: none;
    border-color: var(--gradient-start);
    box-shadow: 0 0 0 2px rgba(79, 140, 255, 0.2);
}
@keyframes morph {
    0% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
    33% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    66% { border-radius: 30% 70% 70% 30% / 50% 60% 30% 40%; }
    100% { border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%; }
}
.animate-liquid {
    animation: morph 8s ease-in-out infinite;
}
/* Custom High-End Timing Functions */
@keyframes scroll-pill {
    0% { transform: translateY(-18px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(18px); opacity: 0; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-scroll-pill {
    animation: scroll-pill 2.2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

@keyframes ping-slow {
    75%, 100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.animate-ping-slow {
    animation: ping-slow 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}