/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --accent: #6c63ff;
    --accent2: #ff6584;
    --accent3: #43e97b;
    --dark: #0d0d14;
    --dark2: #13131f;
    --card-bg: rgba(255,255,255,0.05);
    --card-border: rgba(255,255,255,0.1);
    --text: #e8e8f0;
    --text-muted: #8888aa;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Animated Background Particles ===== */
.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0;
}

.bg-particles span:nth-child(1)  { width: 6px;  height: 6px;  left: 10%; background: var(--accent);  animation-duration: 12s; animation-delay: 0s; }
.bg-particles span:nth-child(2)  { width: 10px; height: 10px; left: 25%; background: var(--accent2); animation-duration: 18s; animation-delay: 2s; }
.bg-particles span:nth-child(3)  { width: 4px;  height: 4px;  left: 40%; background: var(--accent3); animation-duration: 14s; animation-delay: 4s; }
.bg-particles span:nth-child(4)  { width: 8px;  height: 8px;  left: 55%; background: var(--accent);  animation-duration: 16s; animation-delay: 1s; }
.bg-particles span:nth-child(5)  { width: 5px;  height: 5px;  left: 70%; background: var(--accent2); animation-duration: 20s; animation-delay: 3s; }
.bg-particles span:nth-child(6)  { width: 12px; height: 12px; left: 80%; background: var(--accent3); animation-duration: 13s; animation-delay: 5s; }
.bg-particles span:nth-child(7)  { width: 7px;  height: 7px;  left: 90%; background: var(--accent);  animation-duration: 17s; animation-delay: 2s; }
.bg-particles span:nth-child(8)  { width: 9px;  height: 9px;  left: 15%; background: var(--accent2); animation-duration: 15s; animation-delay: 6s; }
.bg-particles span:nth-child(9)  { width: 5px;  height: 5px;  left: 60%; background: var(--accent3); animation-duration: 11s; animation-delay: 1s; }
.bg-particles span:nth-child(10) { width: 8px;  height: 8px;  left: 35%; background: var(--accent);  animation-duration: 19s; animation-delay: 4s; }

@keyframes float-up {
    0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh)  rotate(720deg); opacity: 0; }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13,13,20,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    padding: 12px 0;
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.nav-logo .dot { color: var(--accent); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(108,99,255,0.15);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 120px 32px 80px;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 1;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(108,99,255,0.15);
    border: 1px solid rgba(108,99,255,0.3);
    color: #a9a4ff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 60%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 36px;
    font-weight: 400;
    letter-spacing: 0.06em;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #9c95ff);
    color: #fff;
    box-shadow: 0 4px 24px rgba(108,99,255,0.45);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108,99,255,0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--card-border);
}

.btn-ghost:hover {
    background: var(--card-bg);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* ===== Hero Avatar ===== */
.hero-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-ring {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--accent), var(--accent2), var(--accent3));
    animation: spin-ring 8s linear infinite;
}

@keyframes spin-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    animation: counter-spin 8s linear infinite;
}

@keyframes counter-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

.avatar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108,99,255,0.25) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%       { transform: scale(1.1); opacity: 0.6; }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: bounce-dot 1.8s ease-in-out infinite;
}

@keyframes bounce-dot {
    0%, 100% { transform: translateY(0);   opacity: 1; }
    50%       { transform: translateY(12px); opacity: 0.3; }
}

/* ===== Sections ===== */
.section {
    padding: 100px 32px;
    position: relative;
    z-index: 1;
}

.section-dark { background: var(--dark2); }

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ===== Glass Cards ===== */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.glass-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card:hover {
    box-shadow: 0 12px 40px rgba(108,99,255,0.2);
    border-color: rgba(108,99,255,0.3);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    padding: 36px 32px;
    transition-delay: calc(var(--i, 0) * 0.1s);
}

.about-card:nth-child(1) { --i: 0; }
.about-card:nth-child(2) { --i: 1; }
.about-card:nth-child(3) { --i: 2; }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.about-card p { color: var(--text-muted); font-size: 0.95rem; }

.about-quote {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
}

.about-quote.visible {
    opacity: 1;
    transform: translateY(0);
}

blockquote {
    background: linear-gradient(135deg, rgba(108,99,255,0.1), rgba(255,101,132,0.1));
    border: 1px solid rgba(108,99,255,0.2);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 32px 40px;
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    font-weight: 300;
    color: #ccc;
}

blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
    font-weight: 500;
}

/* ===== Skills ===== */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 700px;
    margin: 0 auto;
}

.skill-item { animation: none; }

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name { font-weight: 500; font-size: 0.95rem; }
.skill-pct  { color: var(--accent); font-weight: 700; font-size: 0.9rem; }

.skill-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 100px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(108,99,255,0.5);
}

/* ===== Stats ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 40px 24px;
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Contact ===== */
.contact-wrapper { max-width: 680px; margin: 0 auto; }

.contact-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-form {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    resize: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(108,99,255,0.5);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--card-border);
    padding: 60px 32px 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 48px;
        padding-top: 100px;
    }

    .hero-cta { justify-content: center; }

    .avatar-ring { width: 200px; height: 200px; }
    .avatar-inner { font-size: 5rem; }

    .nav-links { display: none; }

    .form-row { grid-template-columns: 1fr; }

    .contact-form { padding: 28px 24px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
