:root {
    --bg-color: #f5eedc;
    --primary-color: #ebe2cc;
    --accent-color: #b86b43;
    --text-color: #261f1a;
    --secondary-text-color: #63564b;
    --card-bg: rgba(255, 255, 255, 0.45);
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --glow-shadow: 0 0 15px rgba(184, 107, 67, 0.15), 0 0 25px rgba(184, 107, 67, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden; 
    background: radial-gradient(circle at top right, #eddcb9, #f5eedc 50%),
                radial-gradient(circle at bottom left, #e3d2aa, #f5eedc 50%);
    background-attachment: fixed;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

.section {
    padding: 100px 5%;
    text-align: center;
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 25%;
}

/* NAVIGASI BAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(99, 86, 75, 0.08);
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition-speed), border-bottom var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed); 
}

.nav-links a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--accent-color); 
    border-bottom: 2px solid var(--accent-color); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(184, 107, 67, 0.15); 
}

/* BUTTON */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform var(--transition-speed), background-color var(--transition-speed);
}

.button-group {
    display: flex;
    margin-top: 50px !important;
    gap: 20px;
    clear: both;
}

.primary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary-btn {
    background: linear-gradient(45deg, var(--accent-color), #c97e55);
    color: #fff;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(184, 107, 67, 0.25);
    border: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 107, 67, 0.25); 
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(184, 107, 67, 0.35); 
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    background-color: var(--primary-color);
    padding: 0 10%;
    margin: 0 auto;
    text-align: left;
}

.hero-content {
    max-width: 650px;
    flex: 1;
}

.hero-content h1 {
    font-size: 4em;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 25px;
    line-height: 1.6;
    max-width: 90%;
    color: var(--secondary-text-color);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--accent-color); 
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(99, 86, 75, 0.15);
    margin-left: 50px;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.avatar-silhouette {
    width: 300px;
    height: 300px;
    background-color: #d6caa8;
    border-radius: 50%;
    position: relative;
    box-shadow: var(--glow-shadow), 0 0 50px rgba(184, 107, 67, 0.15);
    animation: pulseGlow 4s infinite alternate ease-in-out;
}

.tags-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.tag-full {
    grid-column: span 2;
    justify-self: center;
    width: 50%;
    max-width: 50%;
}

.tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(184, 107, 67, 0.15);
    transition: 0.3s ease;
}

.tag i{
    font-size: 18px;
    color: var(--accent-color);
}

.tag-text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tag-title{
    font-size: 12px;
    text-align: left;
    color: var(--secondary-text-color);
}

.tag-value{
    font-size: 14px;
    text-align: left;
    font-weight: 600;
}

.tag:hover {
    background-color: #fff;
    border-color: var(--accent-color);
    color: var(--text-color);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    from { box-shadow: var(--glow-shadow), 0 0 50px rgba(184, 107, 67, 0.1); }
    to { box-shadow: var(--glow-shadow), 0 0 70px rgba(184, 107, 67, 0.2); }
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--bg-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--secondary-text-color);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(99, 86, 75, 0.08);
}

.stats span {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
}

/* SKILLS SECTION */
.skills-section {
    background-color: var(--primary-color);
    padding: 90px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px)); 
    gap: 30px;
    justify-content: center; 
    margin-top: 40px;
}

.skill-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(99, 86, 75, 0.12);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(99, 86, 75, 0.05);
    transition: all 0.35s ease;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 15px 40px rgba(99, 86, 75, 0.1);
}

.skill-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-items span {
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--secondary-text-color);
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(99, 86, 75, 0.12);
    transition: all 0.3s ease;
    cursor: default;
}

/* PROJECTS SECTION */
.projects-section {
    background-color: var(--bg-color);
    padding: 80px 5%;
}

.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.project-card {
    flex: 0 0 380px;
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(99, 86, 75, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(99, 86, 75, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(184, 107, 67, 0.15);
    border-color: var(--accent-color);
    background: #fff;
}

.project-image {
    width: 100%;
    height: 200px;
    background-color: #dbcfb4;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-img-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.project-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: var(--text-color);
}

.project-card p {
    font-size: 0.95rem;
    color: var(--secondary-text-color);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.project-link:hover {
    text-shadow: 0 0 10px rgba(184, 107, 67, 0.3);
    letter-spacing: 0.5px;
}

/* CONTACT SECTION */
.contact-section {
    background: radial-gradient(circle at bottom right, rgba(184, 107, 67, 0.1), transparent 40%),
                var(--primary-color);
    padding: 100px 5%;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card Styling */
.contact-form, .contact-details {
    flex: 1;
    background: rgba(255, 255, 255, 0.45); 
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(99, 86, 75, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(99, 86, 75, 0.04);
    transition: transform 0.3s ease;
}

.contact-form:hover, .contact-details:hover {
    border-color: rgba(184, 107, 67, 0.4);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(99, 86, 75, 0.15);
    border-radius: 12px;
    background-color: #fff;
    color: var(--text-color);
    font-size: 0.95em;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    background-color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(184, 107, 67, 0.15);
}

.contact-details ul {
    list-style: none;
    margin-top: 30px;
}

.contact-details ul li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.contact-details ul li:hover {
    background: rgba(184, 107, 67, 0.05);
    border-color: rgba(184, 107, 67, 0.2);
    transform: translateX(10px);
}

.send-btn {
    background: var(--accent-color);
    color: #fff;

    padding: 15px;

    border: none;
    border-radius: 12px;

    font-weight: 600;
    letter-spacing: 0.5px;

    cursor: pointer;

    transition: all 0.3s ease;
}

.send-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* MEDIA                */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding-bottom: 10px;
    }
    .nav-links {
        margin-top: 10px;
    }
    .nav-links li {
        margin: 0 8px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 50px;
    }

    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* FOOTER */
.footer {
    background-color: var(--primary-color);
    padding: 40px 5%;
    text-align: left;
    border-top: 1px solid rgba(99, 86, 75, 0.12);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    color: var(--secondary-text-color);
}