/*
 * File: style.css
 * Deskripsi: Styling utama untuk website portfolio NATAKENSHI DEVELOPMENT
 * Tema: Minimalist Tech Elegance
 */

/* ==========================================================================
   1. Import Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700&display=swap');
/* Jika Anda ingin menggunakan Orbitron/Rajdhani untuk judul, bisa di-uncomment: */
/* @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@400;700&display=swap'); */

/* ==========================================================================
   2. Variabel Warna & Properti Umum
   ========================================================================== */
:root {
    /* Warna Utama */
    --primary-color: #008CBA; /* Softer Electric Blue */
    --secondary-color: #3F0055; /* Muted Dark Violet */

    /* Warna Background & Teks (Dark Mode Default) */
    --background-dark: #0A0A0A; /* Darker black */
    --text-light: #E0E0E0;      /* Teks terang untuk background gelap */
    --text-dark-muted: #A0A0A0; /* Teks abu-abu muted */

    /* Frosted Glass & Border */
    --card-bg-opacity: rgba(25, 25, 25, 0.6); /* Background transparan untuk elemen glass */
    --frosted-glass-blur: 15px;               /* Intensitas blur */
    --border-light-alpha: rgba(255, 255, 255, 0.08); /* Border tipis transparan */

    /* Efek Glow */
    --accent-glow-alpha: rgba(0, 140, 186, 0.5); /* Glow dari primary color */

    /* Properti Light Mode */
    --light-mode-bg: #F0F2F5;
    --light-mode-text: #333;
    --light-mode-card-bg: rgba(255, 255, 255, 0.8);
    --light-mode-border: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   3. Base Styles (Global)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Mencegah scroll horizontal */
    position: relative;
    cursor: none !important; /* Sembunyikan kursor default */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color); /* Tetap primary color untuk elegan */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==========================================================================
   4. Reusable Components
   ========================================================================== */

/* --- Judul Section --- */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    padding-bottom: 20px;
    color: #FFF;
    letter-spacing: -1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.highlight {
    color: var(--primary-color);
}

/* --- Tombol Umum --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05em;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    text-align: center;
    position: relative;
    overflow: hidden; /* Untuk efek hover shine */
    z-index: 1;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--background-dark);
    box-shadow: 0 5px 15px var(--accent-glow-alpha);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--accent-glow-alpha);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 140, 186, 0.2);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    box-shadow: 0 8px 20px var(--accent-glow-alpha);
    transform: translateY(-3px);
}

/* --- Efek Hover Shine (dihapus dari button, tapi bisa dihidupkan untuk elemen lain) --- */
/* Blok ini dikosongkan karena permintaan untuk menghapus hover effect dari semua button.
   Jika Anda ingin menggunakannya kembali di masa depan, tambahkan properti di sini. */
/*
.hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.hover-effect:hover::before {
    transform: translateX(100%);
}
*/

/* --- Frosted Glass Effect (Hanya pada elemen tertentu: card, modal, profile-picture) --- */
.frosted-glass {
    background-color: var(--card-bg-opacity);
    backdrop-filter: blur(var(--frosted-glass-blur));
    border: 1px solid var(--border-light-alpha);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ==========================================================================
   5. Custom Cursor
   ========================================================================== */
.custom-cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none; /* Penting agar tidak mengganggu klik */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.custom-cursor {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    mix-blend-mode: difference; /* Untuk kontras di latar belakang apa pun */
    transition: width 0.2s ease, height 0.2s ease;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 140, 186, 0.5);
    box-shadow: 0 0 15px rgba(0, 140, 186, 0.4);
    transition: width 0.3s ease, height 0.3s ease, transform 0.1s ease-out, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 140, 186, 0.05); /* Sedikit warna untuk efek glow */
}

/* Cursor hover states */
body:not(.no-hover) .hover-effect:hover ~ .cursor-follower,
body:not(.no-hover) a:hover ~ .cursor-follower,
body:not(.no-hover) button:hover ~ .cursor-follower,
body:not(.no-hover) .contact-card:hover ~ .cursor-follower { /* Tambahkan contact-card */
    width: 50px; /* Membesar */
    height: 50px;
    background-color: rgba(0, 140, 186, 0.2); /* Lebih terang */
    border-color: rgba(0, 140, 186, 0.7);
    box-shadow: 0 0 25px rgba(0, 140, 186, 0.7);
}
/* Untuk kursor dot yang mengecil saat hover */
body:not(.no-hover) .hover-effect:hover ~ .custom-cursor,
body:not(.no-hover) a:hover ~ .custom-cursor,
body:not(.no-hover) button:hover ~ .custom-cursor,
body:not(.no-hover) .contact-card:hover ~ .custom-cursor { /* Tambahkan contact-card */
    width: 4px;
    height: 4px;
}

/* ==========================================================================
   6. Loading Screen
   ========================================================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
    overflow: hidden;
}

.loading-logo {
    width: 200px; /* Ukuran default untuk loading screen */
    height: auto;
    max-width: 80%; /* Agar tidak terlalu besar di layar mobile kecil */
    filter: drop-shadow(0 0 15px var(--primary-color));
    opacity: 0; /* Dimulai dari 0, dianimasikan dengan JS */
}

.loading-bar {
    width: 0%;
    height: 4px;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    margin-top: 30px;
    border-radius: 2px;
    transition: width 0.8s ease-out;
}

/* ==========================================================================
   7. Header
   ========================================================================== */
.main-header {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 18px 0; /* Padding default untuk desktop */
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease, box-shadow 0.3s ease; /* Transisi untuk shrink effect */
}

.main-header.scrolled {
    padding: 12px 0; /* Padding saat di-scroll */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
}

.main-header .container {
    display: flex;
    justify-content: space-between; /* Pisahkan logo, nav, toggle */
    align-items: center;
    flex-wrap: nowrap; /* Pastikan TIDAK wrap di desktop */
    gap: 20px; /* Jarak antar bagian utama (logo, nav, toggle) */
}

/* Logo (Default untuk Desktop) */
.logo {
    display: flex; /* Default: terlihat di desktop */
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 100px; /* Ukuran default yang ideal untuk header desktop */
    width: auto;
    filter: drop-shadow(0 0 8px var(--primary-color));
    flex-shrink: 0;
    transition: height 0.3s ease;
}

.main-header.scrolled .logo img {
    height: 35px; /* Logo sedikit mengecil saat di-scroll */
}

.main-nav {
    flex-grow: 1; /* Biarkan navigasi mengambil ruang sisa di tengah */
    text-align: center; /* Pusatkan item navigasi di dalam main-nav */
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Pusatkan item navigasi di flex container */
    flex-wrap: nowrap; /* Pastikan TIDAK wrap di desktop */
    gap: 30px; /* Jarak antar item navigasi di desktop */
}

.main-nav ul li {
    padding: 0;
}

.main-nav ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05em; /* Ukuran font link nav desktop */
    font-weight: 500;
    color: var(--text-light);
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 5px;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
    transition: width 0.3s ease-in-out;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: calc(100% - 10px);
}

.dark-mode-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5em; /* Ukuran default untuk desktop */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 8px; /* Padding default untuk desktop */
    border-radius: 5px;
    outline: none;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 140, 186, 0.05) 0%, transparent 70%);
    z-index: -1;
    animation: pulseGradient 8s infinite alternate ease-in-out;
}

@keyframes pulseGradient {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-content {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.profile-area {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-picture {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--accent-glow-alpha);
    margin-bottom: 25px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4em;
    color: #FFF;
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--accent-glow-alpha);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
}

.animated-text {
    display: block;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6em;
    color: var(--text-dark-muted);
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1em;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 50px;
}

.hero-cta {
    display: flex;
    gap: 25px;
}

/* Static Floating Elements (Subtle background particles) */
.static-floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    font-size: 1.5em;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
    animation: floatAndFade 10s infinite ease-in-out;
}

@keyframes floatAndFade {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 0.3; }
    50% { transform: translate(var(--random-x), var(--random-y)); opacity: 0.5; }
    80% { opacity: 0.2; }
    100% { transform: translate(var(--random-x-end), var(--random-y-end)); opacity: 0; }
}

/* ==========================================================================
   9. About Us Section
   ========================================================================== */
.about-section {
    padding: 120px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
    min-width: 320px;
    max-width: 650px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.15em;
    color: var(--text-light);
    line-height: 1.8;
}

.about-visual {
    flex: 1;
    min-width: 320px;
    text-align: center;
}

.illustration-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px var(--accent-glow-alpha));
}

/* ==========================================================================
   10. Portfolio Section
   ========================================================================== */
.portfolio-section {
    padding: 120px 0;
}

.portfolio-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
    gap: 20px;
    flex-wrap: wrap;
}

.tab-button {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.0em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 140, 186, 0.1); /* Glow yang sangat halus, hampir tidak terlihat */
    outline: none;
}

.tab-button:hover {
    background-color: transparent; /* TETAPKAN WARNA YANG SAMA */
    color: var(--primary-color); /* TETAPKAN WARNA YANG SAMA */
    box-shadow: 0 0 5px rgba(0, 140, 186, 0.1); /* TETAPKAN SHADOW YANG SAMA */
    transform: none; /* HILANGKAN EFEK NAIK */
}

.tab-button.active {
    background-color: var(--primary-color); /* Tetap solid saat aktif */
    color: var(--background-dark);
    box-shadow: 0 0 15px var(--primary-color); /* Glow saat aktif */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.portfolio-card {
    padding: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 35px var(--accent-glow-alpha);
}

.card-preview {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-card:hover .project-img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 140, 186, 0.3);
}

.portfolio-card:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-family: 'Montserrat', sans-serif;
    color: #FFF;
    margin-bottom: 15px;
    font-size: 1.6em;
    font-weight: 600;
}

.overlay p {
    color: var(--text-dark-muted);
    margin-bottom: 25px;
    font-size: 1em;
}

/* Animasi untuk overlay content (akan diatur dengan JS/GSAP) */
.animated-overlay-text, .animated-overlay-btn {
    transform: translateY(20px);
    opacity: 0;
}

/* ==========================================================================
   11. Contact Section (Revisi untuk layout kartu)
   ========================================================================== */
.contact-section {
    padding: 120px 0;
    text-align: center;
}

.contact-intro {
    font-size: 1.2em;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Jarak antar kartu */
    margin-bottom: 60px; /* Jarak sebelum hire button */
    justify-content: center; /* Pusatkan grid jika item kurang dari 3 */
    align-items: stretch; /* Memastikan tinggi kartu sama */
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    cursor: pointer; /* Menandakan ini interaktif */
}

.contact-card:hover {
    transform: translateY(-10px); /* Efek naik saat hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 35px var(--accent-glow-alpha); /* Glow saat hover */
}

.contact-card .card-icon {
    font-size: 3.5em; /* Ukuran ikon besar */
    color: var(--primary-color);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary-color));
}

.contact-card .card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: #FFF;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card .card-description {
    font-size: 0.95em;
    color: var(--text-dark-muted);
    margin-bottom: 20px;
    flex-grow: 1; /* Memastikan deskripsi mengisi ruang */
}

.contact-card .card-link {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.contact-card:hover .card-link {
    opacity: 1;
    color: var(--primary-color);
}

.contact-card .card-link i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.contact-card:hover .card-link i {
    transform: translateX(5px);
}

.contact-hire-cta {
    margin-top: 20px; /* Jarak dari grid kontak */
    text-align: center;
}

.contact-hire-cta p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
}
.contact-hire-cta .btn {
    padding: 16px 40px; /* Lebih besar */
    font-size: 1.2em;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.main-footer {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.main-footer p {
    color: var(--text-dark-muted);
    font-size: 0.95em;
}

.social-icons {
    display: flex;
    gap: 25px;
}

.social-icon {
    font-size: 2em;
    color: var(--text-dark-muted);
    transition: color 0.3s ease; /* Hanya perubahan warna teks */
    padding: 8px;
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--text-dark-muted); /* TETAPKAN WARNA YANG SAMA */
    transform: none; /* HILANGKAN EFEK NAIK */
    text-shadow: none; /* HILANGKAN TEXT-SHADOW */
}

.back-to-top {
    background-color: var(--secondary-color);
    color: #FFF;
    border: none;
    border-radius: 50%;
    width: 55px; /* Ukuran default desktop */
    height: 55px;
    font-size: 1.6em;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    bottom: 35px; /* Posisi default desktop */
    right: 35px; /* Posisi default desktop */
    cursor: pointer;
    box-shadow: 0 0 10px rgba(63, 0, 85, 0.4);
    z-index: 990;
    opacity: 0; /* Opacity dikontrol oleh JS */
    visibility: hidden; /* Visibility dikontrol oleh JS */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.back-to-top:hover {
    background-color: var(--secondary-color); /* TETAPKAN WARNA YANG SAMA */
    box-shadow: 0 0 10px rgba(63, 0, 85, 0.4); /* TETAPKAN SHADOW YANG SAMA */
    transform: none; /* HILANGKAN EFEK NAIK */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   13. Project Detail Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    padding-top: 60px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: 3% auto;
    padding: 50px;
    border-radius: 25px;
    position: relative;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 140, 186, 0.5), 0 0 25px rgba(63, 0, 85, 0.5);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.close-button {
    color: var(--text-dark-muted);
    font-size: 3.5em;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 30px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--primary-color);
    transform: scale(1.15);
}

.modal h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
}

#modal-image-gallery {
    margin-bottom: 40px;
}

.swiper-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0, 140, 186, 0.1);
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
    font-size: 1.8em !important;
}

.swiper-pagination-bullet {
    background: var(--text-dark-muted) !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

.modal p {
    font-size: 1.15em;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   14. Responsive Design Adjustments (Media Queries)
   ========================================================================== */

/* Large Desktops / Laptops (Min width 1281px) */
@media (min-width: 1281px) {
    .container {
        padding: 0 50px;
    }
    .section-title {
        font-size: 4em;
    }
    .hero-title {
        font-size: 4.5em;
    }
}

/* Desktops / Laptops (Max width 1280px) */
@media (max-width: 1280px) {
    .hero-title {
        font-size: 3.8em;
    }
    .hero-tagline {
        font-size: 1.5em;
    }
    .modal-content {
        max-width: 850px;
    }
}

/* Tablets Landscape & Smaller Laptops (Max width 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }
    .section-title {
        font-size: 3em;
        margin-bottom: 60px;
    }
    .hero-title {
        font-size: 3.2em;
        letter-spacing: -1px;
    }
    .hero-tagline {
        font-size: 1.3em;
    }
    .hero-description {
        font-size: 1em;
    }
    .main-nav ul li {
        margin-left: 25px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .modal-content {
        padding: 40px;
        max-width: 750px;
    }
    .modal h3 {
        font-size: 2em;
    }
    .swiper-slide img {
        height: 300px;
    }
    .contact-btn {
        padding: 14px 28px;
    }
}

/* Tablets Portrait & Large Smartphones (Max width 768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 0; /* Padding header saat mobile */
    }
    .main-header.scrolled {
        padding: 10px 0;
    }

    .main-header .container {
        flex-direction: row; /* TETAPKAN flex-direction: row */
        justify-content: space-between; /* Pastikan elemen di kiri & kanan */
        align-items: center;
        gap: 10px; /* Jarak antar logo, nav, toggle di mobile */
    }

    /* SEMBUNYIKAN LOGO DI MOBILE */
    .logo {
        display: none;
    }

    .main-nav {
        flex-grow: 1; /* Navigasi mengambil seluruh ruang yang tersedia */
        text-align: left; /* Rata kiri untuk nav */
        margin-top: 0; /* Hapus margin top jika sudah sejajar */
    }
    .main-nav ul {
        justify-content: flex-start; /* Rata kiri untuk item nav */
        flex-wrap: wrap; /* Izinkan wrap untuk link nav di mobile */
        gap: 8px; /* Jarak antar link nav mobile */
    }
    .main-nav ul li a {
        font-size: 0.85em; /* Ukuran font link nav mobile */
        padding: 4px 8px;
    }

    .dark-mode-toggle {
        font-size: 1.3em; /* Ukuran tombol mode di mobile */
        padding: 6px;
        position: static;
        margin-left: 0; /* Hapus margin jika tidak diperlukan */
        flex-shrink: 0; /* Pastikan tidak menyusut */
    }

    .hero-section {
        padding-top: 100px; /* Kurangi padding atas hero, karena header sekarang lebih ringkas */
    }
    .profile-picture {
        width: 140px;
        height: 140px;
    }
    .hero-title {
        font-size: 2.5em;
        line-height: 1.2;
    }
    .hero-tagline {
        font-size: 1.1em;
    }
    .hero-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }
    .hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 80%;
        max-width: 300px;
    }
    .hero-cta .btn {
        width: 100%;
    }

    .about-section, .portfolio-section, .contact-section {
        padding: 80px 0;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .about-visual {
        order: -1;
    }
    .about-text p {
        font-size: 1em;
    }
    .download-cv-btn {
        margin-top: 20px;
    }

    .section-title {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .portfolio-card {
        padding: 15px;
    }
    .project-img {
        height: 200px;
    }
    .overlay h3 {
        font-size: 1.4em;
    }
    .overlay p {
        font-size: 0.9em;
    }
    .overlay .detail-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .contact-card {
        padding: 25px;
    }
    .contact-card .card-icon {
        font-size: 3em;
    }
    .contact-card .card-title {
        font-size: 1.6em;
    }
    .contact-hire-cta p {
        font-size: 1.1em;
    }
    .contact-hire-cta .btn {
        padding: 14px 30px;
        font-size: 1.1em;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        font-size: 1.4em;
        bottom: 25px;
        right: 25px;
    }

    .modal-content {
        padding: 30px;
        width: 95%;
        margin: 5% auto;
    }
    .modal h3 {
        font-size: 1.8em;
    }
    .swiper-slide img {
        height: 220px;
    }
    .modal p {
        font-size: 1em;
    }
    .modal-links {
        flex-direction: column;
        gap: 15px;
    }
    .modal-links .btn {
        width: 100%;
    }
}

/* Small Smartphones (Max width 480px) */
@media (max-width: 480px) {
    .main-header {
        padding: 10px 0;
    }
    .main-header.scrolled {
        padding: 8px 0;
    }
    .dark-mode-toggle {
        font-size: 1.1em;
        padding: 4px;
    }
    .main-nav ul {
        gap: 5px;
    }
    .main-nav ul li a {
        font-size: 0.75em;
        padding: 3px 6px;
    }
    .hero-section {
        padding-top: 130px;
    }
    .profile-picture {
        width: 120px;
        height: 120px;
    }
    .hero-title {
        font-size: 2em;
        letter-spacing: 0px;
    }
    .hero-tagline {
        font-size: 0.9em;
    }
    .hero-description {
        font-size: 0.85em;
        margin-bottom: 30px;
    }
    .hero-cta {
        width: 95%;
    }

    .about-text p {
        font-size: 0.9em;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .tab-button {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    .portfolio-card {
        padding: 10px;
    }
    .project-img {
        height: 160px;
    }
    .overlay h3 {
        font-size: 1.2em;
    }
    .overlay p {
        font-size: 0.8em;
    }
    .contact-intro {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .contact-card {
        padding: 20px;
    }
    .contact-card .card-icon {
        font-size: 2.5em;
    }
    .contact-card .card-title {
        font-size: 1.4em;
    }
    .contact-card .card-description {
        font-size: 0.85em;
    }
    .contact-hire-cta p {
        font-size: 1em;
    }
    .contact-hire-cta .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .social-icons {
        gap: 15px;
    }
    .social-icon {
        font-size: 1.5em;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
        bottom: 15px;
        right: 15px;
    }
    .modal-content {
        padding: 20px;
    }
    .modal h3 {
        font-size: 1.5em;
    }
    .swiper-slide img {
        height: 180px;
    }
    .modal p {
        font-size: 0.9em;
    }
}


/* ==========================================================================
   15. Light Mode Styles
   ========================================================================== */
body.light-mode {
    background-color: var(--light-mode-bg);
    color: var(--light-mode-text);
}

body.light-mode .main-header {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .main-nav ul li a {
    color: var(--light-mode-text);
}
body.light-mode .main-nav ul li a::after {
    background-color: var(--primary-color); /* Tetap glow */
    box-shadow: 0 0 8px var(--primary-color);
}

body.light-mode .profile-card,
body.light-mode .portfolio-card,
body.light-mode .contact-card, /* Tambahkan contact-card */
body.light-mode .modal-content {
    background-color: var(--light-mode-card-bg);
    border-color: var(--light-mode-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

body.light-mode .section-title,
body.light-mode .hero-title,
body.light-mode .overlay h3,
body.light-mode .contact-card .card-title { /* Tambahkan contact-card title */
    color: var(--light-mode-text);
    text-shadow: none; /* Hilangkan text-shadow di light mode */
}
body.light-mode .section-title::after {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Glow lebih redup */
}

body.light-mode .hero-tagline,
body.light-mode .hero-description,
body.light-mode .contact-intro,
body.light-mode .modal p,
body.light-mode .contact-card .card-description, /* Tambahkan */
body.light-mode .contact-hire-cta p { /* Tambahkan */
    color: var(--light-mode-text);
}

body.light-mode .tab-button {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 140, 186, 0.1);
}

body.light-mode .tab-button:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 140, 186, 0.1);
}


body.light-mode .primary-btn { /* Untuk tombol Hire Us di light mode */
    background-color: var(--primary-color);
    color: var(--light-mode-bg);
    box-shadow: 0 5px 15px rgba(0, 140, 186, 0.3);
}

body.light-mode .primary-btn:hover {
    background-color: var(--secondary-color);
    color: #FFF;
    box-shadow: 0 8px 20px var(--secondary-color);
}

body.light-mode .contact-card .card-icon, /* Tambahkan */
body.light-mode .contact-card .card-link { /* Tambahkan */
    color: var(--primary-color);
}


body.light-mode .main-footer {
    background-color: rgba(255, 255, 255, 0.6);
    border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .main-footer p {
    color: var(--light-mode-text);
}

body.light-mode .social-icon {
    color: var(--light-mode-text);
}

body.light-mode .social-icon:hover {
    color: var(--light-mode-text); /* TETAPKAN WARNA YANG SAMA */
    text-shadow: none;
}

body.light-mode .back-to-top {
    background-color: var(--primary-color); /* Warna solid primary di light mode */
    color: var(--light-mode-bg);
    box-shadow: 0 0 10px rgba(0, 140, 186, 0.4);
}

body.light-mode .back-to-top:hover {
    background-color: var(--primary-color); /* TETAPKAN WARNA YANG SAMA */
    box-shadow: 0 0 10px rgba(0, 140, 186, 0.4);
}

body.light-mode .modal {
    background-color: rgba(255, 255, 255, 0.9);
}
body.light-mode .modal-content {
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 0, 0, 0.1);
}

body.light-mode .close-button {
    color: var(--light-mode-text);
}

body.light-mode .custom-cursor {
    background-color: var(--primary-color);
    mix-blend-mode: normal; /* Normal di light mode */
}
body.light-mode .cursor-follower {
    border-color: rgba(0, 140, 186, 0.3);
    box-shadow: 0 0 10px rgba(0, 140, 186, 0.2);
    background-color: rgba(0, 140, 186, 0.05);
}
body.light-mode .hover-effect:hover ~ .cursor-follower,
body.light-mode a:hover ~ .cursor-follower,
body.light-mode button:hover ~ .cursor-follower,
body.light-mode .contact-card:hover ~ .cursor-follower { /* Tambahkan */
    background-color: rgba(0, 140, 186, 0.15);
    border-color: rgba(0, 140, 186, 0.5);
    box-shadow: 0 0 20px rgba(0, 140, 186, 0.5);
}