/* Global Styles */
:root {
    --primary-color: #1a6c98;
    --secondary-color: #4A6FA5;
    --dark-color: #2A3F54;
    --light-color: #DBE9EE;
    --accent-color: #4FC3A1;
    --text-color: #333;
    --light-text: #777;
    --bg-color:linear-gradient(to bottom right, #ffd96fa0, #7f7fd58c);
    /* --bg-color: linear-gradient(135deg, #ece38797 0%, #fad0c4 50%, #a1c4fd 100%); */
    /* --bg-color:linear-gradient(to bottom right, #ffd96fa0, #7f7ffddb); */
    --code-bg: #f5f5f5;
}

* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header project================================ */
.header-project{
    display: flex;              /* aktifkan flexbox */
    justify-content: space-between; /* pisahkan kiri-kanan */
    align-items: center;        /* sejajarkan vertikal */
    padding: 0px 5%;
    background-color: #ffffff00; 
}
@media (max-width: 600px) {
    .header-project {
        padding: 0 16px;
    }
    header nav ul {
        gap: 10px;
        /* opacity: 0; */
        flex-wrap: wrap;
    }
}
/* HEADER SETELAH SCROLL */
.logo img {
    height: 60px;
    width: auto;
}

.header-project.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.8s ease, backdrop-filter 0.8s ease;
    opacity: 0.9;
}
/* Optional: style supaya tetap terlihat rapi */
header nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

header nav a {
    text-decoration: none;
    color: #333;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background: var(--bg-color);     /* gunakan yang benar */
    background-size: cover;          /* penting untuk responsif */
    background-attachment: fixed;    /* opsional (bisa menyebabkan bug di mobile) */
    background-repeat: no-repeat;
    line-height: 1.6;
}


h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--light-text);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
@media (max-width: 480px) {
    .container {
        padding: 20px;
        width: 100%;
    }
}


.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.highlight {
    color: var(--primary-color);
}

/* Header Styles */
header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 500;
}

.code-symbol {
    color: var(--primary-color);
}

.initials {
    margin: 0 5px;
    color: var(--dark-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    font-weight: 500;
    position: relative;
}

nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero Section - New Design */
.hero {
    padding: 180px 0 120px;
    /* background-color: var(--bg-color); */
    /* background: var(--bg-color); */
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Fira Code', monospace;
    font-weight: 400;
}

.hero-name {
    /* font-size: clamp(2.5rem, 5vw, 4.5rem); */
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
}

.hero-tagline {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 25px;
    line-height: 1.1;
    font-family: 'Roboto', sans-serif;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 40px;
    max-width: 550px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
}
/* ======================== */
.code-window {
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.code-window pre {
    margin: 0;
    padding: 20px;
    background-color: var(--code-bg);
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Projects Section */
.featured-projects {
    padding: 80px 0;
}

.featured-projects h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    position: relative;
}

.featured-projects h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
    opacity: 0.8;
}
.projects-grid:hover {
    opacity: 1; 
}
/* Modifikasi ke-3 Project card| 3rd ------------------------------------------------------------------------------- */
/* .project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    background-color: #eee;
}

.project-card h3 {
    padding: 20px 20px 0;
}

.project-card p {
    padding: 0 20px;
    margin-bottom: 15px;
} */

/* Ganti style project-card yang ada dengan ini */
.project-card {
    background-color: rgb(255, 255, 255);
    border-radius: 1px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
/* Tambahkan style untuk judul proyek */
.project-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Style untuk deskripsi proyek */
.project-card p {
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

/* Style untuk tech tags */
.tech-tag {
    /* display: inline-block; */
    /* background-color: var(--light-color); */
    color: var(--primary-color);
    padding: 4px 2px;
    /* border-radius: 20px; */
    font-size: 0.8rem;
    margin: 5px 5px 0 0;
    font-family: 'Fira Code', monospace;
}

.project-card .project-link {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: var(--primary-color);
}

.project-card .project-link svg {
    margin-left: 5px;
    width: 16px;
    height: 16px;
}


/* end of 3rd modification project card-------------------------------------------------------------------------------- */
/* .tech-tag {
    display: inline-block;
    background-color: var(--light-color);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0 10px 15px 10px; 
} */

.project-links {
    padding: 0 20px 20px;
}

.project-links a {
    margin-right: 15px;
    font-weight: 500;
}

.center-btn {
    text-align: center;
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0;
}

.social-links a {
    margin-left: 20px;
    color: white;
}

/* Responsive Styles (update hero responsif)
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    nav ul li {
        margin: 0 10px;
    }
} */

/* modifikasi ke-2 | 2nd--------------------------------------------------------------------------------------------------------------*/

/* Social Media Sidebar */
.social-sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.vertical-line {
    height: 100px;
    width: 1px;
    background-color: var(--light-text);
    opacity: 0.3;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-sidebar {
        left: 15px;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .social-sidebar {
        flex-direction: row;
        position: static;
        transform: none;
        justify-content: center;
        margin: 30px 0;
        left: auto;
        top: auto;
    }
    .social-icon {
        width: 30px;
        height: 30px;
    }
    
    .vertical-line {
        display: none;
    }
}
/* modifikasi ke-2 | end of 2nd--------------------------------------------------------------------------------------------------------------*/

/* modifikasi ke-4 | 4th--------------------------------------------------------------------------------------------------------------*/
.project-links {
    color: var(--light-text);
    font-size: 1rem;
    margin-left: 90%;
    transition: all 0.3s ease;
}

.project-links:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Untuk membuat latar belakang bulat saat hover */
.project-links {
    display: inline-flex;
    align-items:center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.project-links:hover {
    background-color: rgba(22, 96, 136, 0.1);
}


/* modifikasi ke-4 | end of 4th--------------------------------------------------------------------------------------------------------------*/

/* modifikasi ke-5 | 5th--------------------------------------------------------------------------------------------------------------*/

/* Section Umum */
section {
    padding: 80px 0;
}

/* Container sempit untuk bagian tengah */
.narrow-container {
    width: 80%;
    max-width: 800px; /* Lebar maksimal lebih sempit */
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid layout untuk about section */
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr; /* Kolom kiri untuk header, kanan untuk konten */
    gap: 40px;
    align-items: flex-start;
}

/* .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
} */
/* Penyesuaian section header */

.section-header {
    text-align: left;
    margin-bottom: 0;
    position: sticky;
    top: 120px; /* Tetap terlihat saat scroll */
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.divider {
    /* width: 80px; */
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* Tentang Section */
/* .about-section {
    /* background-color: var(--bg-color); */
    /* background: var(--bg-color); */ */


.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--dark-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: justify;
}

.about-image {
    flex: 1;
    text-align: center;
}

.profile-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Keahlian Section */
/* .skills-section { */
    /* background-color: var(--bg-color); */
    /* background: var(--bg-color); */


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Kontak Section */
/* .contact-section { */
    /* background-color: white; */


.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    width: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: var(--dark-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header {
        position: static;
        text-align: center;
    }
    
    .divider {
        width: 80px;
        margin: 0 auto;
    }
}
@media (max-width: 600px) {
    .narrow-container {
        width: 90%;
    }
}

/* end modifikasi ke-5 | end 5th--------------------------------------------------------------------------------------------------------------*/
/* Js social sidebar css -=========================================================================*/

/* Tombol info titik tiga */
.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.info-btn:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-color);
}

.modal-content h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
    text-align: center;
}

/* Konten informasi kontak */
.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 2px;
    width: 20px;
    text-align: center;
}

.contact-item .label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 5px;
}

.contact-item .value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

/* Tombol salin email */
.copy-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.copy-btn.copied {
    background-color: var(--accent-color);
}

/* Animasi */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 85%;
    }
}