/* PALET WARNA & VARIABEL MODERN */
:root {
    --primary: #4f46e5;
    --primary-light: #818cf8;
    --primary-gradient: linear-gradient(135deg, #4f46e5, #06b6d4);
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(226, 232, 240, 0.8);
    --text-color: #0f172a;
    --text-muted: #475569;
    --shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.1);
    --glass-blur: blur(12px);
}

[data-theme="dark"] {
    --primary: #6366f1;
    --primary-light: #a5b4fc;
    --primary-gradient: linear-gradient(135deg, #6366f1, #22d3ee);
    --bg-main: #0b0f19;
    --bg-alt: #111827;
    --card-bg: rgba(17, 24, 39, 0.7);
    --card-border: rgba(37, 99, 235, 0.15);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    transition: background 0.4s, color 0.4s;
    overflow-x: hidden;
}

/* GLASSMORPHISM GLOBAL */
.glass {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}

/* PREMIUM NAVBAR */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    padding: 0.2rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 7%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.logo span { color: var(--primary); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-btns { display: flex; align-items: center; gap: 1.2rem; }

.theme-btn, .hamburger {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.theme-btn:hover { transform: scale(1.1); color: var(--primary); }
.hamburger { display: none; }

/* HERO DESIGN (UI MODERN) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 7% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-light);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0 0.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dynamic-box {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.typing-text {
    color: var(--primary);
    border-right: 3px solid var(--primary);
    padding-right: 5px;
    animation: blink 0.75s step-end infinite;
}

.hero-meta {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons { display: flex; gap: 1.5rem; }

/* GRADIENT GLOW IMAGE */
.profile-img-box { position: relative; display: flex; justify-content: center; }

.img-glow-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--primary-gradient);
    animation: morphing 8s infinite alternate;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 95%;
    height: 95%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 8s infinite alternate;
}

/* SECTIONS BRUSH */
.section { padding: 100px 7%; max-width: 1400px; margin: 0 auto; }
.bg-alt { background-color: var(--bg-alt); }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.section-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ABOUT & HOBBY CARTESIAN */
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }

.about-card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-card:hover { transform: translateY(-8px); }
.card-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.about-card h3 { margin-bottom: 1rem; font-size: 1.4rem; }

.hobby-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }

.hobby-tag {
    background: var(--bg-main);
    border: 1px solid var(--card-border);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* TIMELINE MODERATION */
.timeline { position: relative; max-width: 900px; margin: 0 auto; border-left: 3px solid var(--primary); padding-left: 2rem; }
.timeline-item { position: relative; margin-bottom: 3rem; }
.timeline-dot { position: absolute; left: -2.6rem; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary-gradient); box-shadow: 0 0 10px var(--primary); }
.timeline-content { padding: 2rem; border-radius: 14px; }
.timeline-content .date { font-weight: 800; color: var(--primary); font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.edu-spec { font-weight: 600; color: var(--text-color); margin-bottom: 0.5rem; }

/* SKILL GRID CARDS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.skill-card { padding: 2rem; border-radius: 14px; transition: 0.3s; }
.skill-card:hover { transform: scale(1.03); }
.skill-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.skill-header i { font-size: 2.2rem; }

.html-icon { color: #e34c26; }
.js-icon { color: #f0db4f; }
.python-icon { color: #306998; }
.db-icon { color: #00758f; }

.progress-bar { width: 100%; height: 10px; background: var(--bg-alt); border-radius: 20px; overflow: hidden; }
.progress { height: 100%; background: var(--primary-gradient); border-radius: 20px; transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1); }

/* FILTER & PROJECTS */
.filter-container { display: flex; justify-content: center; gap: 1rem; margin-bottom: 30px; }

.filter-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

.project-card {
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.project-card.hide { display: none; }

.project-card:hover { transform: translateY(-10px); }

.project-banner {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=600&auto=format&fit=crop');
}
.project-1 { background-image: url('img/Screenshot\ 2026-07-26\ 210945.png'); }
.project-2 { background-image: url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSRkDWism7E7COP19XiJRjJeHBYm3BSexocbu7-ArObUQ&s=10'); }
.project-3 { background-image: url('https://images.unsplash.com/photo-1507238691740-187a5b1d37b8?q=80&w=600&auto=format&fit=crop'); }

.project-info { padding: 1.5rem; }
.project-tag { display: inline-block; background: rgba(6, 182, 212, 0.1); color: #06b6d4; font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 6px; margin-bottom: 0.5rem; }

/* BUTTON SYSTEMS */
.btn { padding: 0.8rem 1.8rem; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: 0.3s; cursor: pointer; }
.btn-primary { background: var(--primary-gradient); color: white; border: none; box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6); }
.btn-outline { border: 2px solid var(--primary); color: var(--text-color); }
.btn-outline:hover { background: rgba(79, 70, 229, 0.1); }

/* INPUT GROUP STYLING */
.contact-container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; }
.contact-info, .contact-form { padding: 2.5rem; border-radius: 16px; }

.input-group { position: relative; margin-bottom: 1.8rem; }

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--border-color, rgba(0,0,0,0.15));
    border-radius: 8px;
    outline: none;
    color: var(--text-color);
    font-size: 1rem;
    transition: 0.3s;
}

[data-theme="dark"] .input-group input, [data-theme="dark"] .input-group textarea {
    border-color: rgba(255, 255, 255, 0.15);
}

.input-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    letter-spacing: 0.5px;
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.input-group textarea ~ label { top: 1.5rem; }

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-main);
    padding: 0 0.4rem;
    color: var(--primary);
    font-weight: 700;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.info-item { display: flex; align-items: center; gap: 1.2rem; margin: 2rem 0; }
.info-item i { font-size: 2rem; color: var(--primary); }
.social-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-links a { color: var(--text-muted); font-size: 1.5rem; transition: 0.3s; }
.social-links a:hover { color: var(--primary); transform: translateY(-3px); }

/* FOOTER */
footer { text-align: center; padding: 2.5rem; border-top: 1px solid var(--card-border); color: var(--text-muted); font-weight: 600; }
.text-danger { color: #ef4444; }

/* ANIMATIONS */
@keyframes blink { 50% { border-color: transparent; } }
@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 50% 50% 40%; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; justify-content: center; }
    .hero-buttons { justify-content: center; }
    .profile-img-box { order: -1; }
    .about-container, .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        backdrop-filter: var(--glass-blur);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--card-border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        pointer-events: none;
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
}