/* ==========================================================================
   STYLE SHEET: Portofolio Personal - Bagas Adrian Saputra
   Tema Warna: Industrial Meter (Cobalt Blue, Crimson Red, Cream, White)
   Font: Poppins (Google Fonts)
   Aturan: Pure CSS3, Flexbox & Grid, Tanpa Framework
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & DASAR (BASE STYLES)
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    color: #1A1A1A;
    background-color: #F7F5EE;
}

body {
    line-height: 1.6;
    background-color: #F7F5EE;
    color: #1A1A1A;
}

/* Container pembungkus umum */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Tipografi Judul Bagian */
.section-header {
    text-align: center;
    margin-bottom: 45px;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #D91E18;
    background-color: #FFECEB;
    padding: 4px 14px;
    border-radius: 4px;
    border-left: 3px solid #D91E18;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2rem;
    color: #002B9B;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.section-desc {
    color: #6B7280;
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. HEADER & NAVIGASI
   -------------------------------------------------------------------------- */
header {
    background-color: #FFFFFF;
    border-bottom: 2px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #002B9B;
}

.brand-indicator {
    width: 14px;
    height: 14px;
    background-color: #D91E18;
    border-radius: 2px;
    display: inline-block;
}

.brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    color: #002B9B;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 22px;
}

.nav-menu a {
    text-decoration: none;
    color: #1A1A1A;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-menu a:hover {
    color: #002B9B;
    background-color: #EEF2FF;
}

.nav-menu a.nav-cta {
    background-color: #002B9B;
    color: #FFFFFF;
    font-weight: 600;
}

.nav-menu a.nav-cta:hover {
    background-color: #D91E18;
    color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   3. HERO SECTION (#home)
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 70px 0;
    background-color: #F7F5EE;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #002B9B;
    margin-bottom: 12px;
    font-weight: 800;
}

.hero-role {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    color: #D91E18;
    margin-bottom: 18px;
    background-color: #FFF;
    border: 1px solid #FFD4D2;
    padding: 6px 14px;
    border-radius: 4px;
}

.hero-summary {
    color: #4B5563;
    font-size: 1.05rem;
    margin-bottom: 30px;
    text-align: justify;
}

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

/* Tombol CTA Reusable */
.btn {
    display: inline-block;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #002B9B;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 43, 155, 0.2);
}

.btn-primary:hover {
    background-color: #001f70;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #D91E18;
    border: 2px solid #D91E18;
}

.btn-secondary:hover {
    background-color: #D91E18;
    color: #FFFFFF;
    transform: translateY(-2px);
}

/* Hero Typography / Gauge Badge Card (Pengganti Foto Wajah) */
.hero-visual-card {
    background-color: #FFFFFF;
    border: 2px solid #002B9B;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 43, 155, 0.08);
    position: relative;
}

.hero-visual-card::before {
    content: "SPEC // ID CARD";
    position: absolute;
    top: -12px;
    left: 20px;
    background-color: #D91E18;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 2px 10px;
    border-radius: 3px;
}

.meter-header {
    border-bottom: 1px dashed #D1D5DB;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.meter-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #002B9B;
}

.meter-subtitle {
    font-size: 0.85rem;
    color: #6B7280;
}

.meter-stats-list {
    list-style: none;
    margin-bottom: 20px;
}

.meter-stats-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F3F4F6;
    font-size: 0.9rem;
}

.meter-label {
    color: #6B7280;
    font-weight: 500;
}

.meter-val {
    font-weight: 700;
    color: #1A1A1A;
}

.meter-val.highlight-blue {
    color: #002B9B;
}

.meter-val.highlight-red {
    color: #D91E18;
}

.meter-status-bar {
    background-color: #F7F5EE;
    border-left: 4px solid #002B9B;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4B5563;
}

/* --------------------------------------------------------------------------
   4. ABOUT ME SECTION (#about)
   -------------------------------------------------------------------------- */
.about-section {
    padding: 70px 0;
    background-color: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.about-narrative {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
}

.about-narrative p {
    margin-bottom: 16px;
    text-align: justify;
}

.badges-container {
    margin-top: 25px;
}

.badges-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #002B9B;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-item {
    background-color: #F7F5EE;
    color: #1A1A1A;
    border: 1px solid #D1D5DB;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
}

.badge-item.active {
    background-color: #002B9B;
    color: #FFFFFF;
    border-color: #002B9B;
}

/* Card Edukasi */
.education-box {
    background-color: #F7F5EE;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 25px;
}

.box-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #002B9B;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #002B9B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-timeline {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.edu-timeline::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: #002B9B;
}

.edu-item {
    position: relative;
    margin-bottom: 22px;
}

.edu-item:last-child {
    margin-bottom: 0;
}

.edu-dot {
    position: absolute;
    left: -20px;
    top: 6px;
    width: 10px;
    height: 10px;
    background-color: #D91E18;
    border-radius: 50%;
    border: 2px solid #FFF;
}

.edu-period {
    font-size: 0.78rem;
    font-weight: 700;
    color: #D91E18;
    text-transform: uppercase;
}

.edu-degree {
    font-size: 0.98rem;
    font-weight: 700;
    color: #1A1A1A;
}

.edu-institution {
    font-size: 0.88rem;
    color: #4B5563;
}

.edu-desc {
    font-size: 0.82rem;
    color: #6B7280;
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   5. PROJECTS SECTION (#projects)
   -------------------------------------------------------------------------- */
.projects-section {
    padding: 70px 0;
    background-color: #F7F5EE;
}

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

.project-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 43, 155, 0.08);
}

.project-image-box {
    width: 100%;
    height: 200px;
    background-color: #1F2937;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #002B9B;
}

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image-box img {
    transform: scale(1.05);
}

/* Fallback visual banner jika gambar belum ada */
.project-placeholder-banner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002B9B 0%, #001752 100%);
    color: #FFFFFF;
    padding: 20px;
    text-align: center;
}

.project-placeholder-banner.red-variant {
    background: linear-gradient(135deg, #D91E18 0%, #7A0C08 100%);
}

.project-placeholder-banner.dark-variant {
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%);
}

.placeholder-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #F7F5EE;
    text-transform: uppercase;
}

.placeholder-icon {
    font-size: 1.5rem;
    margin: 8px 0;
    font-weight: 800;
}

.project-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    font-size: 0.78rem;
    font-weight: 700;
    color: #D91E18;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.25rem;
    color: #002B9B;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-text {
    font-size: 0.92rem;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.project-features {
    list-style: none;
    margin-bottom: 18px;
    background-color: #F9FAFB;
    padding: 12px 14px;
    border-radius: 6px;
    border-left: 3px solid #002B9B;
}

.project-features li {
    font-size: 0.84rem;
    color: #374151;
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.project-features li:last-child {
    margin-bottom: 0;
}

.bullet-red {
    color: #D91E18;
    font-weight: 800;
}

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

.project-tag {
    font-size: 0.74rem;
    background-color: #EEF2FF;
    color: #002B9B;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   6. HIGHLIGHT EKSPLORASI MANDIRI (#interests)
   -------------------------------------------------------------------------- */
.interests-section {
    padding: 70px 0;
    background-color: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.interest-card {
    background-color: #FFFFFF;
    border: 2px solid #D91E18;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(217, 30, 24, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
}

.interest-card-topbar {
    background-color: #D91E18;
    color: #FFFFFF;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.interest-topbar-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.interest-topbar-badge {
    background-color: #FFFFFF;
    color: #D91E18;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
}

.interest-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.interest-title {
    font-size: 1.4rem;
    color: #002B9B;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.3;
}

.interest-desc {
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 20px;
    text-align: justify;
}

.specs-container {
    background-color: #F7F5EE;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-top: auto;
}

.specs-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #D91E18;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.specs-list {
    list-style: none;
}

.specs-list li {
    font-size: 0.85rem;
    color: #1A1A1A;
    padding: 6px 0;
    border-bottom: 1px dashed #D1D5DB;
    display: flex;
    justify-content: space-between;
}

.specs-list li:last-child {
    border-bottom: none;
}

.spec-key {
    color: #6B7280;
    font-weight: 500;
}

.spec-val {
    font-weight: 700;
    color: #002B9B;
    text-align: right;
}

/* --------------------------------------------------------------------------
   7. SKILLS & TOOLS SECTION (#skills)
   -------------------------------------------------------------------------- */
.skills-section {
    padding: 70px 0;
    background-color: #F7F5EE;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-top: 4px solid #002B9B;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.skill-card.accent-red {
    border-top-color: #D91E18;
}

.skill-card-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F3F4F6;
}

.skill-category-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #002B9B;
}

.skill-category-subtitle {
    font-size: 0.82rem;
    color: #6B7280;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 10px 12px;
    margin-bottom: 8px;
    background-color: #F9FAFB;
    border-radius: 6px;
    border-left: 3px solid #002B9B;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A1A1A;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-card.accent-red .skill-list li {
    border-left-color: #D91E18;
}

.skill-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: #E5E7EB;
    color: #4B5563;
}

/* --------------------------------------------------------------------------
   8. EXPERIENCE SECTION (#experience)
   -------------------------------------------------------------------------- */
.experience-section {
    padding: 70px 0;
    background-color: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
}

.table-responsive {
    overflow-x: auto;
    background-color: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.experience-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.experience-table thead {
    background-color: #002B9B;
    color: #FFFFFF;
}

.experience-table th {
    padding: 16px 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 0.88rem;
    text-transform: uppercase;
}

.experience-table tbody tr {
    border-bottom: 1px solid #E5E7EB;
    transition: background-color 0.2s ease;
}

.experience-table tbody tr:last-child {
    border-bottom: none;
}

.experience-table tbody tr:hover {
    background-color: #F7F5EE;
}

.experience-table td {
    padding: 16px 18px;
    color: #374151;
    vertical-align: middle;
}

.role-title {
    font-weight: 700;
    color: #002B9B;
    display: block;
}

.org-name {
    font-weight: 600;
    color: #1A1A1A;
}

.badge-tag-exp {
    display: inline-block;
    padding: 3px 8px;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 4px;
    background-color: #EEF2FF;
    color: #002B9B;
    border: 1px solid #C7D2FE;
}

.badge-tag-exp.intern {
    background-color: #FFECEB;
    color: #D91E18;
    border-color: #FECACA;
}

/* --------------------------------------------------------------------------
   9. CONTACT SECTION (#contact)
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 70px 0;
    background-color: #F7F5EE;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
}

.contact-info-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.contact-info-card h3 {
    font-size: 1.3rem;
    color: #002B9B;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-info-card p {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.contact-details-list {
    list-style: none;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #E5E7EB;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #D91E18;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1A1A;
}

/* Form Kontak Sederhana */
.contact-form-card {
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: #1A1A1A;
    background-color: #FAFAFA;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #002B9B;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(0, 43, 155, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    background-color: #002B9B;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.form-submit-btn:hover {
    background-color: #D91E18;
}

.form-note {
    margin-top: 12px;
    font-size: 0.82rem;
    color: #6B7280;
    text-align: center;
}

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
footer {
    background-color: #001A5E;
    color: #E5E7EB;
    padding: 40px 0 25px;
    border-top: 4px solid #D91E18;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h4 {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-brand p {
    font-size: 0.85rem;
    color: #9CA3AF;
}

.footer-nav {
    display: flex;
    gap: 18px;
    list-style: none;
}

.footer-nav a {
    color: #D1D5DB;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #9CA3AF;
}

/* --------------------------------------------------------------------------
   11. MEDIA QUERIES (RESPONSIVE)
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-grid,
    .about-grid,
    .interests-grid,
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual-card {
        order: 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .footer-grid {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}
