/* ==========================================
   WEBSITE PROFIL - STYLESHEET
   ========================================== */

/* RESET & GENERAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f5f5f5;
}

/* CONTAINER */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   HEADER STYLES
   ========================================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

header .logo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
}

/* ==========================================
   NAVBAR STYLES
   ========================================== */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 40px 0;
}

h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2rem;
    border-bottom: 3px solid var(--secondary-color);
    padding-bottom: 10px;
}

h3 {
    color: var(--primary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* ==========================================
   CONTENT BOXES
   ========================================== */
.content-box {
    background-color: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ==========================================
   PROFILE SECTION (BERANDA)
   ========================================== */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
}

.profile-image {
    text-align: center;
}

.profile-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.profile-info h3 {
    font-size: 1.8rem;
    margin-top: 0;
}

.profile-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

.bio-highlight {
    background-color: var(--light-bg);
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    margin: 20px 0;
}

/* ==========================================
   EDUCATION TIMELINE
   ========================================== */
.education-item {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-bg);
}

.education-item:last-child {
    border-bottom: none;
}

.education-year {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    min-width: 80px;
    text-align: center;
    margin-right: 20px;
    font-weight: bold;
    height: fit-content;
}

.education-content h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.education-content p {
    margin-bottom: 5px;
    color: #666;
}

/* ==========================================
   HOBI/SKILLS SECTION
   ========================================== */
.hobby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.hobby-card {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.hobby-card:hover {
    transform: scale(1.05);
}

.hobby-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.hobby-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================================
   PROJECT SECTION
   ========================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.project-content {
    padding: 20px;
}

.project-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.tech-badge {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.project-link:hover {
    background-color: #c0392b;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-bg);
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: #f9f9f9;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* ==========================================
   CONTACT INFO
   ========================================== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-item h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-color);
    word-break: break-word;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

footer p {
    margin: 5px 0;
    font-size: 0.95rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
    header .logo h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.95rem;
    }

    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-image img {
        width: 180px;
        height: 180px;
    }

    .education-item {
        flex-direction: column;
    }

    .education-year {
        margin-bottom: 10px;
        margin-right: 0;
        min-width: auto;
    }

    .hobby-grid {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header .logo h1 {
        font-size: 1.5rem;
    }

    header .tagline {
        font-size: 0.9rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    .content-box {
        padding: 20px;
    }
}