:root {
    --bg-color: #ffffff; /* Latar belakang putih bersih */
    --surface-color: #fcf9fa; /* Warna permukaan yang sangat soft untuk variasi */
    --text-color: #2b2d42; /* Abu-abu gelap, lebih profesional dari hitam pekat */
    --text-light: #6c757d; /* Abu-abu untuk paragraf */
    --accent-color: #ff477e; /* Pink vibrant yang ceria dan girly */
    --accent-hover: #ff7096;
    --card-bg: #ffffff;
    --border-color: #f4e9ec; /* Garis batas pink sangat pudar */
    --shadow: 0 12px 30px rgba(255, 71, 126, 0.08); /* Bayangan lembut bernuansa pink */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body {
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95); /* Putih transparan */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.logo::after {
    content: '.';
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-color);
}

/* Mobile Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    position: relative;
    background-color: var(--surface-color); /* Latar soft agar lebih hangat */
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 2;
    margin-top: 50px;
}

.greeting {
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -2px;
}

.hero-title span {
    color: var(--accent-color);
}

.role {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px; /* Bentuk kapsul yang lebih ramah & girly */
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.2);
}

.btn.primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 71, 126, 0.3);
}

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

.btn.secondary:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Sections Global */
section {
    padding: 120px 5%;
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -1px;
}

.section-title .line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 4px;
}

/* About */
.about {
    background-color: var(--bg-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.skill-tag {
    padding: 0.7rem 1.8rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Portfolio */
.portfolio {
    background-color: var(--surface-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-img {
    height: 240px;
    background-size: cover;
    background-position: center;
}

/* Gambar hasil generate AI untuk Placeholder */
.placeholder-1 { background-image: url('assets/pkl.jpg'); }
.placeholder-2 { background-image: url('assets/tkj.jpg'); }
.placeholder-3 { background-image: url('assets/prestasi.jpg'); }

.project-info {
    padding: 2.5rem 2rem;
    text-align: center;
}

.project-info h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
}

/* Contact */
.contact {
    background-color: var(--bg-color);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 4rem 2rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.contact-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* Modern Footer */
.modern-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 5rem 5% 2rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-tagline {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-location .heart {
    color: var(--accent-color);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Floating AI Logo */
.floating-ai {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-color), #ff9a9e);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(255, 71, 126, 0.4), inset 0 0 15px rgba(255,255,255,0.4);
    animation: floatAI 3.5s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-ai:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 71, 126, 0.6), inset 0 0 20px rgba(255,255,255,0.6);
}

.floating-ai svg {
    color: white;
    animation: spinGlow 6s linear infinite;
}

/* Tooltip Keren */
.floating-ai::before {
    content: "Tanya Syifa AI ✨";
    position: absolute;
    right: 85px;
    background: var(--card-bg);
    color: var(--accent-color);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(15px) scale(0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    white-space: nowrap;
    border: 2px solid var(--border-color);
}

.floating-ai:hover::before {
    opacity: 1;
    transform: translateX(0) scale(1);
}

@keyframes floatAI {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes spinGlow {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ================= AI PLAYGROUND ================= */
.ai-generator-box {
    max-width: 750px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border: 1px solid rgba(255, 71, 126, 0.1);
}

.ai-input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-input-wrapper input {
    flex: 1;
    padding: 16px 22px;
    border: 2px solid #eee;
    border-radius: 14px;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    background: #fbfbfb;
}

.ai-input-wrapper input:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 71, 126, 0.1);
}

.ai-input-wrapper button {
    background: linear-gradient(135deg, var(--accent-color), #ff9a9e);
    color: white;
    border: none;
    padding: 0 35px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.ai-input-wrapper button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 71, 126, 0.35);
}

.ai-quota {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 25px;
}

.ai-quota strong {
    color: var(--accent-color);
}

.ai-result {
    width: 100%;
    min-height: 350px;
    background: #fafafa;
    border: 2px dashed #ddd;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.ai-placeholder {
    text-align: center;
    color: #bbb;
}

.ai-placeholder p {
    margin: 0;
    font-weight: 500;
    font-size: 1.05rem;
}

.ai-image-output {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: fadeUp 0.5s ease forwards;
}

.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--accent-color);
    font-weight: 700;
}

.ai-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 71, 126, 0.15);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* ================= CHAT WINDOW ================= */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 380px;
    height: 550px;
    max-height: calc(100vh - 120px);
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 0 30px rgba(255, 71, 126, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 71, 126, 0.1);
}

.chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: linear-gradient(135deg, var(--accent-color), #ff9a9e);
    color: white;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: white;
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chat-header-info h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.chat-header-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.95;
    font-weight: 500;
}

.close-chat {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.close-chat:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.chat-body {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fafafa;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 10px;
}

.chat-message {
    display: flex;
    max-width: 85%;
    animation: fadeUp 0.3s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.ai-message .message-content {
    background: white;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
    border: 1px solid #f0f0f0;
}

.user-message .message-content {
    background: var(--accent-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 18px 24px;
    background: white;
    border-top: 1px solid #f5f5f5;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 14px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fdfdfd;
}

.chat-input-area input:focus {
    border-color: var(--accent-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 71, 126, 0.1);
}

.chat-input-area button {
    background: var(--accent-color);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 71, 126, 0.3);
}

.chat-input-area button:hover {
    transform: scale(1.08) rotate(-10deg);
    background: #e6396c;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-color);
    }
    
    .nav-links a:hover {
        color: var(--accent-color);
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }

    .floating-ai {
        width: 55px;
        height: 55px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-ai::before {
        display: none; /* Sembunyikan tooltip di layar sentuh */
    }

    .chat-window {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .ai-input-wrapper {
        flex-direction: column;
    }
    .ai-input-wrapper button {
        padding: 16px;
    }
    .ai-result {
        min-height: 250px;
    }
}

/* ================= AI STUDIO ADVANCED ================= */
.ai-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    overflow-x: auto;
}
.ai-tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s;
    white-space: nowrap;
}
.ai-tab:hover { background: #f5f5f5; }
.ai-tab.active {
    background: rgba(255, 71, 126, 0.1);
    color: var(--accent-color);
}

.ai-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.preset {
    font-size: 0.85rem;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    background: #fff;
    font-weight: 600;
}
.preset:hover { border-color: var(--accent-color); color: var(--accent-color); }
.preset.active { background: var(--accent-color); color: white; border-color: var(--accent-color); }

.file-upload-box {
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 35px;
    text-align: center;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
    background: #fdfdfd;
}
.file-upload-box:hover { border-color: var(--accent-color); background: rgba(255, 71, 126, 0.02); }

.comic-textarea {
    width: 100%;
    padding: 18px;
    border: 2px solid #eee;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.3s;
    background: #fbfbfb;
}
.comic-textarea:focus { border-color: var(--accent-color); background: #fff; }

.comic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 15px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
}
.comic-panel-box {
    background: white;
    border: 3px solid #111;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 2px 2px 0px #111;
}
.comic-panel-img { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 2px; }
.comic-caption {
    background: white;
    border-top: 2px solid #111;
    padding: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    font-family: "Comic Sans MS", cursive, sans-serif;
    color: #111;
    text-align: center;
}
@media (max-width: 600px) {
    .comic-grid { grid-template-columns: 1fr; }
    .comic-panel-img { height: auto; }
}

/* Animation Keyframes for Mock Video */
@keyframes pulseScale {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
@keyframes slideProgress {
    0% { left: -50%; }
    100% { left: 100%; }
}
