/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg: #fcf4f9;
    --bg-card: #fff5fa;
    --pink: #ff8fab;
    --purple: #c9a7eb;
    --yellow: #f9e79f;
    --blue: #a8d8ea;
    --text: #3d2c3d;
    --text-dim: #7a5a7a;
    --border: #f0dce8;
    --radius: 24px;
    --glow: 0 8px 32px rgba(255, 143, 171, 0.15);
    --shadow: 0 4px 20px rgba(0,0,0,0.04);
}

html { font-size: 16px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', 'Poppins', system-ui, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--pink);
    text-decoration: none;
    transition: 0.25s;
    font-weight: 500;
}
a:hover { color: var(--purple); }

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

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 40px;
    letter-spacing: -0.3px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ' ✧';
    color: var(--pink);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
}
#preloader.hide { opacity: 0; pointer-events: none; }
.loader { font-size: 4rem; animation: bounce 1s infinite; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
#preloader p {
    margin-top: 16px;
    color: var(--text-dim);
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 300;
}

/* ===== BUBBLES BACKGROUND ===== */
#bubbles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(252, 244, 249, 0.78);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 2px solid rgba(255, 143, 171, 0.1);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}
.nav-brand .bracket { color: var(--pink); }
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--pink);
    border-radius: 50%;
    margin-left: 10px;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.25s;
    position: relative;
}
.nav-links a:hover { color: var(--pink); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--pink);
    transition: 0.3s;
    border-radius: 4px;
}
.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text);
    border-radius: 4px;
    transition: 0.3s;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 80px;
    position: relative;
    z-index: 1;
    gap: 50px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1 1 500px;
    max-width: 600px;
}
.hero-graphic {
    flex: 1 1 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 300px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 2px solid var(--pink);
    color: var(--pink);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.hero-badge .icon-outline { font-size: 1.2rem; }

.hero-title {
    font-size: clamp(2.6rem, 8vw, 4.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
}
.hero-title .line { display: block; }
.hero-title .highlight {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title .small {
    font-size: 0.5em;
    font-weight: 400;
    color: var(--text-dim);
    -webkit-text-fill-color: var(--text-dim);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 460px;
    margin: 12px 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.btn {
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: 0.25s;
    display: inline-block;
    text-align: center;
}
.btn.primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 143, 171, 0.3);
}
.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 143, 171, 0.4);
}
.btn.outline {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(61, 44, 61, 0.15);
}
.btn.outline:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.fun-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 36px;
    font-size: 0.95rem;
    color: var(--text-dim);
    padding-top: 20px;
    border-top: 2px dashed rgba(255, 143, 171, 0.2);
}
.fun-stats span { display: flex; align-items: center; gap: 6px; }
.mood { color: var(--pink); font-weight: 600; }

/* Floating Emoji */
.floating-emoji {
    position: absolute;
    font-size: 2.6rem;
    animation: float-emoji 6s ease-in-out infinite;
}
.floating-emoji:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-emoji:nth-child(2) { bottom: 20%; right: 15%; animation-delay: 2s; }
.floating-emoji:nth-child(3) { top: 60%; left: 5%; animation-delay: 4s; }
@keyframes float-emoji {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,143,171,0.12) 0%, transparent 70%);
    border-radius: 50%;
    position: absolute;
    animation: float-orb 8s ease-in-out infinite;
}
.orb2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201,167,235,0.1) 0%, transparent 70%);
    border-radius: 50%;
    position: absolute;
    animation: float-orb 10s ease-in-out infinite reverse;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(15px, -20px) scale(1.05); }
}

/* ===== ABOUT ===== */
.about {
    padding: 70px 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.about-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.avatar-frame {
    position: relative;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: var(--glow);
    transition: 0.4s;
    flex-shrink: 0;
}
.avatar-frame:hover { transform: scale(1.04); }
.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    display: block;
}
.avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,143,171,0.12), transparent 70%);
    z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}
.avatar-badge {
    background: var(--bg);
    padding: 6px 18px;
    border-radius: 40px;
    border: 2px solid var(--pink);
    font-size: 0.8rem;
    color: var(--pink);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.about-text p {
    font-size: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
}
.about-text strong { color: var(--text); }

.about-stats {
    display: flex;
    gap: 28px;
    margin-top: 20px;
}
.about-stats div {
    text-align: center;
    background: var(--bg);
    padding: 10px 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-dim);
}
.about-stats span { display: block; font-size: 1.8rem; }

.fun-fact {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}
.fun-fact-box {
    background: var(--bg);
    padding: 24px 30px;
    border-radius: var(--radius);
    border: 2px dashed var(--pink);
    text-align: center;
    box-shadow: var(--shadow);
}
.big-emoji { font-size: 2.6rem; display: block; margin-bottom: 6px; }
.fun-fact-box h4 {
    color: var(--text);
    font-size: 1rem;
    margin-bottom: 4px;
}
.fun-fact-box p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ===== SKILLS ===== */
.skills { padding: 70px 0; }
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.skill-card {
    background: var(--bg-card);
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: 0.3s;
    box-shadow: var(--shadow);
}
.skill-card:hover {
    border-color: var(--pink);
    transform: translateY(-6px);
    box-shadow: var(--glow);
}
.skill-icon { font-size: 2.4rem; margin-bottom: 10px; }
.skill-card h3 { color: var(--text); margin-bottom: 4px; }
.skill-card p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.skill-bar div {
    height: 100%;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    border-radius: 8px;
    width: 0%;
    transition: width 1s ease;
}

/* ===== PROJECTS ===== */
.projects {
    padding: 70px 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.project-card {
    background: var(--bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: 0.3s;
    box-shadow: var(--shadow);
}
.project-card:hover {
    border-color: var(--purple);
    transform: translateY(-6px);
    box-shadow: var(--glow);
}
.project-thumb {
    height: 170px;
    overflow: hidden;
    background: var(--border);
}
.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-body { padding: 20px; }
.project-body h3 { color: var(--text); font-size: 1.15rem; }
.project-body p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 6px 0 14px;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.project-tags span {
    background: rgba(255, 143, 171, 0.08);
    color: var(--pink);
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(255,143,171,0.08);
}
.project-link {
    color: var(--pink);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CERTIFICATES ===== */
.certificates { padding: 70px 0; }
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}
.cert-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    transition: 0.3s;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    box-shadow: var(--shadow);
}
.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: 0.4s;
}
.cert-card:hover {
    border-color: var(--purple);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}
.cert-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.6);
}
.cert-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: 0.3s;
    padding: 16px;
    text-align: center;
}
.cert-card:hover .cert-overlay { opacity: 1; }
.cert-overlay span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.cert-overlay p {
    color: var(--pink);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    border: 4px solid var(--pink);
    box-shadow: 0 0 60px rgba(255,143,171,0.15);
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: 0.25s;
}
.lightbox-close:hover {
    color: var(--pink);
    transform: rotate(90deg);
}

/* ===== CONTACT ===== */
.contact {
    padding: 70px 0;
    background: var(--bg-card);
    border-top: 2px solid var(--border);
}
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
}
.contact-info p {
    font-size: 1.05rem;
    margin: 12px 0;
}
.contact-info a {
    color: var(--text);
    border-bottom: 2px solid transparent;
}
.contact-info a:hover {
    color: var(--pink);
    border-bottom-color: var(--pink);
}
.social-bubbles {
    margin-top: 20px;
    font-size: 2rem;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.social-bubbles span {
    animation: float-emoji 4s ease-in-out infinite;
    display: inline-block;
}
.social-bubbles span:nth-child(2) { animation-delay: 0.5s; }
.social-bubbles span:nth-child(3) { animation-delay: 1s; }
.social-bubbles span:nth-child(4) { animation-delay: 1.5s; }
.social-bubbles span:nth-child(5) { animation-delay: 2s; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.contact-form input,
.contact-form textarea {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: 0.25s;
    resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--pink);
    box-shadow: 0 0 20px rgba(255,143,171,0.06);
}
.contact-form button { align-self: flex-start; }

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 28px 24px;
    border-top: 2px solid var(--border);
    color: var(--text-dim);
    font-size: 0.9rem;
}
footer .pink { color: var(--pink); }

/* ===== OUTLINE ICON ===== */
.icon-outline {
    display: inline-block;
    font-family: 'Segoe UI', 'Arial Unicode MS', sans-serif;
    font-weight: 100;
    color: transparent;
    -webkit-text-stroke: 1.8px var(--pink);
    text-stroke: 1.8px var(--pink);
    text-shadow: 0 0 14px rgba(255, 143, 171, 0.3);
    transition: 0.3s;
    line-height: 1;
    font-size: 1.2em;
}
.icon-outline:hover {
    text-shadow: 0 0 22px rgba(255, 143, 171, 0.7);
    transform: scale(1.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .about-avatar { grid-row: 1; }
    .about-text { grid-row: 2; }
    .fun-fact { grid-row: 3; }
    .about-stats { justify-content: center; flex-wrap: wrap; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .hero { flex-direction: column; text-align: center; padding-top: 130px; }
    .hero-desc { margin: 12px auto 28px; }
    .hero-actions { justify-content: center; }
    .fun-stats { justify-content: center; }
    .orb, .orb2 { display: none; }
    .floating-emoji { display: none; }
    .section-title::after { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 280px;
        height: 100vh;
        background: var(--bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: 0.4s ease;
        border-left: 2px solid var(--border);
        padding: 40px 0;
        box-shadow: -8px 0 30px rgba(0,0,0,0.04);
    }
    .nav-links.open { right: 0; }
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.open span:nth-child(2) { opacity: 0; }
    .hamburger.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .hero-title { font-size: clamp(1.8rem, 10vw, 2.8rem); }
    .skills-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr 1fr; }
    .avatar-frame { width: 140px; height: 140px; }
}

@media (max-width: 480px) {
    .navbar { padding: 12px 16px; }
    .nav-brand { font-size: 1.1rem; }
    .hero { padding: 110px 16px 60px; }
    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .about-stats { flex-direction: column; gap: 12px; }
    .fun-stats { flex-direction: column; align-items: center; gap: 8px; }
    .section-title { font-size: 1.6rem; }
    .cert-grid { grid-template-columns: 1fr; }
    .lightbox-content { max-width: 98%; max-height: 80%; }
    .lightbox-close { top: 16px; right: 24px; font-size: 2.4rem; }
    .social-bubbles { justify-content: center; }
}