/* =====================================================================
   style.css - Portofolio Developer & IoT Showcase
   Pengembang : Tegar Muhamad Ikhsan
   ===================================================================== */

:root {
    --bg-dark: #090d16;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #38bdf8;
    --accent: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(56, 189, 248, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* KUNCI SPASI PARAGRAF: MEMBERIKAN JARAK VERTIKAL TEGAS & RAPI */
p {
    margin-bottom: 1.5rem !important;
    line-height: 1.85 !important;
}

p:last-child {
    margin-bottom: 0 !important;
}

code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* NAVBAR */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.82);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.01em;
}

.brand-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 0 14px var(--primary-glow);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-btn-github {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #ffffff !important;
}

.nav-btn-github:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* HERO SECTION */
.hero {
    padding: 85px 0 65px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-size: 0.82rem;
    color: #34d399;
    font-weight: 600;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.9); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 22px;
    letter-spacing: -0.025em;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 25%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 34px !important;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 0.93rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #ffffff;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.45);
    filter: brightness(1.05);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* SECTION TITLE */
section {
    padding: 55px 0;
}

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

.section-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* PROJECT CARD */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 38px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45);
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.015em;
    margin-bottom: 6px;
}

.project-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 18px !important;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 4px 11px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--secondary);
    font-weight: 500;
}

.project-desc-block {
    margin-bottom: 28px;
}

.project-desc-block p {
    color: #cbd5e1;
    font-size: 1rem;
}

.project-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 30px;
}

.spec-item h4 {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 5px;
}

.spec-item p {
    font-size: 0.92rem;
    color: #f1f5f9;
    font-weight: 700;
    margin-bottom: 0 !important;
}

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

/* SKILLS GRID */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    transition: var(--transition);
}

.skill-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-icon {
    font-size: 1.85rem;
    margin-bottom: 14px;
    display: inline-block;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 14px;
    color: #f8fafc;
    font-weight: 700;
}

.skill-card ul {
    list-style: none;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.skill-card li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.skill-card li:last-child {
    margin-bottom: 0;
}

.skill-card li::before {
    content: "▹";
    color: var(--primary);
    font-weight: 700;
}

/* FOOTER */
footer {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-meta {
    margin-top: 8px !important;
    font-size: 0.82rem;
}

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

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 680px) {
    .hero { padding: 55px 0 35px; }
    .project-card { padding: 24px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .nav-links { display: none; }
}
