:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --accent: #8b5cf6;
    --accent-light: #c4b5fd;
    --accent-glow: rgba(139, 92, 246, 0.12);
    --text-primary: #fff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(139, 92, 246, 0.3);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 55%);
    pointer-events: none;
    animation: orbit 15s ease-in-out infinite;
    filter: blur(80px);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, transparent 55%);
    pointer-events: none;
    animation: orbit-reverse 18s ease-in-out infinite;
    filter: blur(60px);
    z-index: -1;
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes orbit {
    0% { top: -20%; left: 50%; transform: translateX(-50%); }
    25% { top: 30%; left: 90%; transform: translateX(-50%); }
    50% { top: 80%; left: 50%; transform: translateX(-50%); }
    75% { top: 30%; left: 10%; transform: translateX(-50%); }
    100% { top: -20%; left: 50%; transform: translateX(-50%); }
}

@keyframes orbit-reverse {
    0% { bottom: -20%; right: 10%; }
    25% { bottom: 30%; right: 80%; }
    50% { bottom: 70%; right: 50%; }
    75% { bottom: 30%; right: 20%; }
    100% { bottom: -20%; right: 10%; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Navbar Customization */
.navbar {
    background: rgba(10, 10, 10, 0.7) !important;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95) !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--accent), #ec4899, var(--accent-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 50%;
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link i {
    transition: var(--transition);
}

.nav-link:hover i {
    transform: translateY(-3px) scale(1.1);
    color: var(--accent);
}

/* Hero Text */
.hero h1 {
    font-weight: 800;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), #ec4899, var(--accent-light));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Badge */
.badge-status {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.badge-status .dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: dot-pulse 2s ease-in-out infinite;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border: none;
    color: #fff;
    padding: 16px 36px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(139, 92, 246, 0.35);
}

.btn-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn-accent:hover::before {
    left: 100%;
}

.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5);
    color: #fff;
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 16px 36px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent);
    transform: translateY(-4px);
    color: var(--text-primary);
}

/* Cards */
.card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.card-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #ec4899);
    transform: scaleX(0);
    transition: var(--transition);
}

.card-dark:hover::before {
    transform: scaleX(1);
}

.card-dark:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.card-dark:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
    animation: pulse-glow 2s ease infinite;
}

/* Progress */
.progress {
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--accent), #ec4899);
    border-radius: 10px;
    transition: width 1.5s ease-out;
}

/* Sections */
.section-subtitle {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-light);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.project-tag {
    background: rgba(139, 92, 246, 0.12);
    color: var(--accent-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.15);
    transition: var(--transition);
}

.project-tag:hover {
    background: var(--accent);
    color: #fff;
}

/* Footer & Form */
footer {
    background: #050505;
    border-top: 1px solid var(--border);
}

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

.form-control {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text-primary) !important;
    padding: 14px 18px !important;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-glow) !important;
    transform: translateY(-2px);
}

a.text-secondary {
    position: relative;
    transition: var(--transition);
}

a.text-secondary::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

a.text-secondary:hover::after {
    width: 100%;
}

a.text-secondary:hover {
    color: var(--accent-light) !important;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.3rem;
    }
    .btn-accent, .btn-outline-light {
        padding: 14px 28px;
    }
    .skill-icon {
        width: 48px;
        height: 48px;
    }
}

::selection {
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
}
