/* ==========================================================================
   PORTFOLIO WEBSITE STYLESHEET - ANDI ARSYI
   Implementasi Konsep CSS Modul 3, Modul 4, Modul 5, dan Modul 6
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & DASAR TYPOGRAPHY (Modul 3: HTML Tag Selector)
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    /* Modul 4: CSS Background (Shorthand, Image & Color) */
    background-color: #f0f4f8;
    background-image: radial-gradient(#d1dbe5 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    background-position: top center;
}

/* Modul 3: Grouping Selector */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Century Gothic', 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    margin-bottom: 12px;
    font-weight: 700;
}

h1 {
    font-size: 24pt;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 16pt;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 6px;
    margin-bottom: 18px;
    color: #1e3a8a;
}

h3 {
    font-size: 13pt;
    color: #2563eb;
}

p {
    margin-bottom: 14px;
    font-size: 10.5pt;
    color: #475569;
}

a {
    color: #2563eb;
    text-decoration: none;
    -webkit-transition: color 0.25s ease;
    -moz-transition: color 0.25s ease;
    transition: color 0.25s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

/* --------------------------------------------------------------------------
   2. CONTAINER & WRAPPER (Modul 3: ID Selector & Class Selector)
   -------------------------------------------------------------------------- */
#wrapper {
    width: 92%;
    max-width: 1200px;
    margin: 20px auto 40px auto;
    background-color: #ffffff;
    /* Modul 6: Border Radius & Box Shadow */
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.container {
    padding: 24px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* --------------------------------------------------------------------------
   3. HEADER & HERO BANNER (Modul 4 & Modul 6: Gradient, Shorthand BG, Box Shadow)
   -------------------------------------------------------------------------- */
#header {
    /* Modul 6: Linear Gradient Multi-vendor */
    background: #1e3c72;
    background: -webkit-linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background: -moz-linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background: -o-linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #ffffff;
    padding: 28px 35px;
    border-bottom: 4px solid #38bdf8;
    position: relative;
}

#header .brand-title {
    font-size: 22pt;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

#header .brand-subtitle {
    font-size: 11pt;
    color: #bae6fd;
    margin-top: 4px;
    font-weight: 300;
}

/* Modul 4: Text di Box Transparan & Background */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)), url('../images/profile.jpg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    padding: 60px 30px;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.box-transparan {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    max-width: 780px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.box-transparan h1 {
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.6);
}

.box-transparan p {
    color: #f1f5f9;
    font-size: 12pt;
    margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   4. NAVIGASI BAR & DROPDOWN (Modul 5 & Modul 6)
   -------------------------------------------------------------------------- */
#nav-container {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Modul 6: Dropdown Menu Structure */
#menu {
    list-style: none;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 1200px;
    position: relative;
    height: 48px;
}

#menu > li {
    float: left;
    position: relative;
    list-style: none;
}

#menu > li > a {
    display: block;
    padding: 0 20px;
    line-height: 48px;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 10pt;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-transition: all 0.25s ease-in-out;
    -moz-transition: all 0.25s ease-in-out;
    transition: all 0.25s ease-in-out;
    border-top: 3px solid transparent;
}

#menu > li > a:hover,
#menu > li.active > a {
    color: #38bdf8;
    background-color: #1e293b;
    border-top: 3px solid #38bdf8;
    text-decoration: none;
}

/* Submenu Dropdown (Modul 6) */
#menu ul.dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    background-color: #1e293b;
    min-width: 220px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    -webkit-transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    -moz-transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1000;
    border-top: 2px solid #38bdf8;
}

#menu li:hover > ul.dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#menu ul.dropdown li {
    float: none;
    display: block;
}

#menu ul.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: #cbd5e1;
    font-size: 9.5pt;
    text-transform: none;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #334155;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

#menu ul.dropdown li:last-child a {
    border-bottom: none;
}

#menu ul.dropdown li a:hover {
    background-color: #0284c7;
    color: #ffffff;
    padding-left: 25px;
    text-decoration: none;
}

/* Dropdown Alignment (Modul 6: Aligned Dropdown) */
#menu .dropdown-right {
    right: 0;
    left: auto;
}

/* --------------------------------------------------------------------------
   5. NAVIGASI VERTIKAL (Modul 5: Navigasi Vertikal)
   -------------------------------------------------------------------------- */
.nav-vertical {
    list-style-type: none;
    margin: 0 0 20px 0;
    padding: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.nav-vertical li a {
    display: block;
    font-weight: 600;
    color: #334155;
    padding: 12px 18px;
    text-decoration: none;
    border-bottom: 1px solid #e2e8f0;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.nav-vertical li:last-child a {
    border-bottom: none;
}

.nav-vertical li a:hover,
.nav-vertical li.active a {
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
    padding-left: 22px;
}

/* --------------------------------------------------------------------------
   6. CSS GAMBAR & PAS FOTO (Modul 4: Image Dimensions, Borders, Opacity & Hover)
   -------------------------------------------------------------------------- */
.img-container {
    text-align: center;
    margin-bottom: 18px;
}

/* Pas Foto Ukuran 3x4 (Modul 4: Tugas Mandiri) */
.foto-3x4 {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border: 3px solid #2563eb;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Pas Foto Ukuran 4x6 (Modul 4: Tugas Mandiri) */
.foto-4x6 {
    width: 160px;
    height: 240px;
    object-fit: cover;
    border: 4px solid #1e3a8a;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Pas Foto Lingkaran / Avatar */
.foto-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #38bdf8;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
    -webkit-transition: transform 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.foto-avatar:hover,
.foto-3x4:hover,
.foto-4x6:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

/* Modul 4: Efek Transparansi Image (:hover) */
.img-transparan {
    opacity: 0.85;
    filter: alpha(opacity=85);
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.img-transparan:hover {
    opacity: 1.0;
    filter: alpha(opacity=100);
}

/* Galeri Hobi, Organisasi, Prestasi & Foto (Modul 4: Box Model, Border, Shadow, Opacity, Hover) */
.futsal-gallery, .org-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 14px 0;
}

.prestasi-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.futsal-img, .org-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.prestasi-img {
    width: 100%;
    height: 95px;
    object-fit: cover;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    -webkit-transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

.futsal-img:hover, .org-img:hover, .prestasi-img:hover {
    transform: scale(1.04);
    border-color: #0284c7;
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.3);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   7. LAYOUT MULTI-KOLOM (Modul 5: Layout 2-Kolom dan 3-Kolom)
   -------------------------------------------------------------------------- */

/* Layout 2 Kolom (Modul 5: #leftcolumn, #rightcolumn) */
.layout-2-kolom {
    width: 100%;
}

#leftcolumn {
    float: left;
    width: 32%;
    padding: 10px;
}

#rightcolumn {
    float: right;
    width: 66%;
    padding: 10px;
}

/* Layout 3 Kolom (Modul 5: #sidebar-kiri, #sidebar-tengah, #sidebar-kanan) */
.layout-3-kolom {
    width: 100%;
}

#sidebar-kiri {
    float: left;
    width: 26%;
    padding: 10px;
}

#sidebar-tengah-atau-badan {
    float: left;
    width: 48%;
    margin-left: 1%;
    margin-right: 1%;
    padding: 10px;
}

#sidebar-kanan {
    float: right;
    width: 24%;
    padding: 10px;
}

/* --------------------------------------------------------------------------
   8. CARD & BOX STYLING (Modul 3, 4, 6: Box Model, Shadow, Gradient)
   -------------------------------------------------------------------------- */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.card:hover {
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.card-header {
    font-size: 12.5pt;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e7ff;
}

/* Modul 3: Selector ID untuk Kartu Identitas Mahasiswa */
#ktp-card {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
    position: relative;
    overflow: hidden;
}

#ktp-card h3 {
    color: #ffffff;
    font-size: 11pt;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
    margin-bottom: 12px;
}

#ktp-card table {
    width: 100%;
    color: #ffffff;
    font-size: 9pt;
}

#ktp-card td {
    padding: 4px 2px;
    vertical-align: top;
}

#ktp-card .label {
    width: 38%;
    font-weight: 600;
    color: #e0f2fe;
}

/* Badges & Tags */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 8.5pt;
    font-weight: 600;
    border-radius: 20px;
    background: #e0f2fe;
    color: #0369a1;
    margin: 2px 4px 4px 0;
}

.badge-primary {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
    color: #ffffff;
}

.badge-success {
    background: #dcfce7;
    color: #15803d;
}

/* Modul 6: Tombol dengan Linear Gradient & Border Radius */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 9.5pt;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.btn-primary {
    background: #2563eb;
    background: -webkit-linear-gradient(top, #3b82f6 0%, #1d4ed8 100%);
    background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1d4ed8;
    background: -webkit-linear-gradient(top, #2563eb 0%, #1e40af 100%);
    background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    margin-left: 8px;
}

.btn-outline:hover {
    background: #ffffff;
    color: #0f172a;
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   9. TABEL & DAFTAR (Modul 3: Selector HTML & Grouping)
   -------------------------------------------------------------------------- */
table.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 9.5pt;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

table.styled-table thead tr {
    background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    text-align: left;
    font-weight: bold;
}

table.styled-table th,
table.styled-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
}

table.styled-table tbody tr:nth-of-type(even) {
    background-color: #f8fafc;
}

table.styled-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* --------------------------------------------------------------------------
   10. FORM STYLING (Modul 3: Form Element Styling & Grouping)
   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 9.5pt;
    color: #1e293b;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    font-size: 9.5pt;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    color: #334155;
    -webkit-transition: border-color 0.2s ease, box-shadow 0.2s ease;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

/* --------------------------------------------------------------------------
   11. TIMELINE & ROADMAP (Target 2-3 Tahun Ke Depan)
   -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 3px solid #3b82f6;
    margin: 16px 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: #2563eb;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #3b82f6;
}

.timeline-year {
    font-size: 9pt;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.timeline-title {
    font-size: 10.5pt;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   12. PROJECT GRID & CARDS
   -------------------------------------------------------------------------- */
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.project-card {
    flex: 1 1 calc(50% - 20px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -4px rgba(0,0,0,0.12);
    border-color: #38bdf8;
}

.project-card h3 {
    margin-bottom: 8px;
    color: #1e3a8a;
}

/* --------------------------------------------------------------------------
   13. FOOTER (Modul 5: Footer Styling)
   -------------------------------------------------------------------------- */
#footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 26px 20px;
    text-align: center;
    font-size: 9pt;
    border-top: 3px solid #1e3a8a;
    clear: both;
}

#footer p {
    color: #94a3b8;
    margin-bottom: 6px;
}

#footer a {
    color: #38bdf8;
}

#footer a:hover {
    color: #7dd3fc;
}

/* --------------------------------------------------------------------------
   14. RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media screen and (max-width: 900px) {
    #leftcolumn, #rightcolumn,
    #sidebar-kiri, #sidebar-tengah-atau-badan, #sidebar-kanan {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .project-card {
        flex: 1 1 100%;
    }

    #menu {
        height: auto;
    }

    #menu > li {
        float: none;
        width: 100%;
    }

    #menu ul.dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 15px;
    }
}
