/* Reset dan Base Styles */
:root {
    --primary-color: #AA60C8;
    --secondary-color: #D69ADE;
    --accent-color: #EABDE6;
    --light-color: #FFDFEF;
    --dark-color: #663388;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --gray-bg: #f8f9fa;
    --shadow: rgba(170, 96, 200, 0.1);
    --shadow-hover: rgba(170, 96, 200, 0.2);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gray-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px; /* Space for footer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

/* Sidebar Styles */
.sidebar {
    flex: 1;
    max-width: 350px;
}

.profile-section {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px var(--shadow);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid var(--light-color);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 4rem;
    overflow: hidden;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-section h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.profile-section .title {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Card Styles */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Kontak Styles */
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.contact-item i {
    width: 20px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Skill Bar Styles */
.skill-item {
    margin-bottom: 18px;
}

.skill-name {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background-color: var(--light-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Main Content Styles */
.main-content {
    flex: 2;
}

.about-me p {
    line-height: 1.8;
    color: var(--light-text);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--accent-color);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.timeline-content h3 {
    color: var(--dark-color);
    margin-bottom: 5px;
}

.company {
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.timeline-content p {
    color: var(--light-text);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.project-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-card h3 {
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-card p {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.project-tech {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--dark-color);
    border: none;
    padding: 0;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Form Styles */
form {
    padding: 25px;
}

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

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow);
}

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

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--dark-color);
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
}

/* Floating Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(170, 96, 200, 0.3);
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    background-color: var(--dark-color);
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

footer p {
    margin-bottom: 8px;
}

footer p:last-child {
    margin-bottom: 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        max-width: 100%;
    }
    
    .profile-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}