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

:root {
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #f97316;
    --bg: #fefefe;
    --bg-alt: #f8f5ff;
    --text: #1e1b4b;
    --text-muted: #6b7280;
    --border: #e9e5f5;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
    --gradient: linear-gradient(135deg, var(--purple), var(--pink), var(--orange));
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========== BLOBS ========== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    top: -100px;
    right: -100px;
    animation: blobFloat 10s ease-in-out infinite;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--pink);
    bottom: 20%;
    left: -100px;
    animation: blobFloat 12s ease-in-out infinite reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    bottom: -50px;
    right: 20%;
    animation: blobFloat 8s ease-in-out infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.05); }
}

/* ========== GRADIENT TEXT ========== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 254, 254, 0.85);
    backdrop-filter: blur(16px);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-icon {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-gradient {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-full { width: 100%; }

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

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

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

/* Hero Shape */
.hero-shape {
    flex: 0 0 auto;
    position: relative;
}

.shape-blob {
    width: 280px;
    height: 280px;
    background: var(--gradient);
    border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
    animation: morph 8s ease-in-out infinite;
    opacity: 0.9;
}

.shape-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-emoji {
    font-size: 5rem;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%; }
    25% { border-radius: 40% 60% 30% 70% / 60% 40% 60% 40%; }
    50% { border-radius: 50% 50% 60% 40% / 40% 50% 50% 60%; }
    75% { border-radius: 30% 70% 50% 50% / 50% 30% 70% 50%; }
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.about-card {
    padding: 20px 16px;
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
}

.card-purple { background: linear-gradient(135deg, var(--purple), #a78bfa); }
.card-pink { background: linear-gradient(135deg, var(--pink), #f472b6); }
.card-orange { background: linear-gradient(135deg, var(--orange), #fb923c); }

.card-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.card-label {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ========== TIMELINE ========== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:first-child { border-top: 1px solid var(--border); }

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.dot-purple { background: var(--purple); }
.dot-pink { background: var(--pink); }
.dot-orange { background: var(--orange); }

.timeline-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.timeline-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ========== PROJECTS ========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.project-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.1);
    border-color: var(--purple);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.project-icon {
    font-size: 2rem;
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.project-link:hover { color: var(--purple); }

.project-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.project-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 500;
}

.tag-purple { background: #ede9fe; color: var(--purple); }
.tag-pink { background: #fce7f3; color: var(--pink); }
.tag-orange { background: #ffedd5; color: var(--orange); }

/* ========== SKILLS ========== */
.skills-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.skill-pill {
    padding: 10px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.skill-pill:hover {
    border-color: var(--purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.skills-detail {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.skill-row {
    display: flex;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}

.skill-row:last-child { border-bottom: none; }

.skill-label {
    width: 120px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--purple);
    flex-shrink: 0;
}

.skill-value {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
    outline: none;
    background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-form textarea {
    resize: vertical;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    color: #fff;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-card span:first-child {
    font-size: 1.5rem;
}

.contact-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-value {
    font-size: 0.88rem;
    font-weight: 500;
}

/* ========== FOOTER ========== */
.footer {
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(254, 254, 254, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .hamburger { display: flex; }

    .hamburger.active span:first-child {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .hamburger.active span:last-child {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

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

    .shape-blob {
        width: 200px;
        height: 200px;
    }

    .shape-emoji { font-size: 3.5rem; }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .skill-row {
        flex-direction: column;
        gap: 4px;
    }

    .skill-label { width: auto; }
}
