/* General Setup */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #2c3e50;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ecf0f1;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

#theme-toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Dark Mode for Header */
body.dark-mode header {
    background-color: #2c3e50;
}

body.dark-mode nav ul li a {
    color: #ecf0f1;
}

body.dark-mode nav ul li a:hover {
    color: #f1c40f;
}

/* Header and Navigation */
header {
    background-color: #3498db;
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    position: relative;
}

nav ul li a:hover {
    color: #ecf0f1;
    transform: translateY(-3px);
    background-color: rgba(255,255,255,0.1);
}

/* Main Content Sections */
main {
    padding-top: 80px;
}

section {
    padding: 6rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(236, 240, 241, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* Dark Mode for Sections */
body.dark-mode section {
    background-color: rgba(30, 30, 46, 0.85);
    border-bottom: 1px solid rgba(70, 70, 90, 0.5);
    color: #ecf0f1;
}

body.dark-mode .education-content h3,
body.dark-mode .timeline-content h3,
body.dark-mode .project-item h3 {
    color: #3498db;
}

body.dark-mode .education-content p,
body.dark-mode .timeline-content p,
body.dark-mode .project-item p {
    color: #bdc3c7;
}

body.dark-mode .education-year,
body.dark-mode .project-year {
    color: #f1c40f;
}

body.dark-mode .profile-text strong,
body.dark-mode .profile-text span {
    color: #3498db;
}

body.dark-mode .profile-item {
    border-bottom: 1px solid rgba(100, 100, 120, 0.5);
}

body.dark-mode .skill-item {
    background: #2d3748;
}

body.dark-mode .skill-item span {
    color: #ecf0f1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: width 0.3s ease, left 0.3s ease;
}

nav ul li a:hover::after {
    width: 70%;
    left: 15%;
}

/* Main Content Sections */
main {
    padding-top: 80px;
}

section {
    padding: 6rem 2rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 1px solid rgba(236, 240, 241, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: #2980b9;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    bottom: -10px;
    left: 20%;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    border-radius: 2px;
}

/* Home Section */
#home {
    min-height: 100vh;
    justify-content: center;
    background: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    color: #ffffff;
    text-align: center;
}

.profile-container {
    margin-bottom: 2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#welcome-text {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.5rem;
    color: #ecf0f1;
    margin-bottom: 2rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    color: #ffffff;
    font-size: 1.8rem;
    margin: 0 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    color: #f1c40f;
    transform: translateY(-5px);
}

.social-links img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-top: -4px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7471%) hue-rotate(298deg) brightness(119%) contrast(101%);
}

/* About Section */
#about {
    text-align: center;
}

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

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.quote-box {
    background: linear-gradient(135deg, #3498db, #9b59b6);
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
}

.quote-box::before {
    content: """;
    position: absolute;
    top: -30px;
    left: 20px;
    font-size: 6rem;
    color: rgba(255,255,255,0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-box p {
    font-style: italic;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Education Section - Rapi dan Minimalis */
.education-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.education-item {
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.education-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.education-icon {
    width: 70px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.education-content {
    padding: 1.5rem;
    flex: 1;
}

.education-item h3 {
    margin: 0 0 0.5rem 0;
    color: #2980b9;
    font-size: 1.2rem;
    font-weight: 600;
}

.education-year {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0.3rem 0;
    display: block;
    font-weight: 500;
}

.education-content p {
    margin: 0.3rem 0;
    color: #34495e;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Profile Section */
.profile-details {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
}

.profile-item {
    display: flex;
    align-items: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.profile-item:hover {
    transform: translateX(10px);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-item i {
    font-size: 1.8rem;
    color: #3498db;
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.profile-text {
    flex: 1;
    text-align: left;
}

.profile-text strong {
    color: #2980b9;
    display: block;
    margin-bottom: 0.3rem;
}

.profile-text span {
    color: #34495e;
}

/* Skills Section */
.skills-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 1.8rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-width: 120px;
    min-height: 130px;
}

.skill-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.skill-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

/* Specific icon colors */
.fa-unity { color: #222222; }
.fa-palette { color: #00c4cc; }
.fa-cube { color: #ff8b70; }
.fa-html5 { color: #e34f26; }
.fa-js { color: #f7df1e; }
.fa-microsoft { color: #5e5e5e; }

.skill-item span {
    font-weight: 600;
    color: #2c3e50;
}

/* Experience Section */
.experience-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.project-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.project-item h3 {
    margin-top: 0;
    color: #2980b9;
    font-size: 1.4rem;
}

.project-year {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    display: block;
}

.project-item p {
    margin-bottom: 0.8rem;
}

.project-item strong {
    color: #2980b9;
}

/* Projects Section */
#projects {
    padding: 4rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 250px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-description {
    text-align: center;
    color: white;
    padding: 1rem;
}

.project-description h3 {
    margin: 0 0 0.5rem 0;
    color: #f1c40f;
    font-size: 1.4rem;
}

.project-description p {
    margin: 0;
    font-size: 0.9rem;
}

.project-image.placeholder {
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.7);
}

.placeholder-content p {
    font-size: 1.2rem;
    margin: 0;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    text-align: center;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.email-link {
    font-size: 1.2rem;
    color: #3498db;
    text-decoration: none;
    padding: 15px 30px;
    border: 2px solid #3498db;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.email-link:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.contact-social {
    margin-top: 2rem;
}

.contact-social a {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    margin: 0 1rem;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: #3498db;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-social i {
    margin-right: 0.5rem;
}

/* Social Icons */
.social-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7471%) hue-rotate(298deg) brightness(119%) contrast(101%);
}

.social-icon-small {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    margin-right: 8px;
    filter: brightness(0) saturate(100%) invert(28%) sepia(44%) saturate(574%) hue-rotate(197deg) brightness(94%) contrast(88%);
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    font-size: 1rem;
    color: #ecf0f1;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

footer p {
    margin: 0;
}

/* Dark Mode for Footer */
body.dark-mode footer {
    background: linear-gradient(135deg, #0f0f23, #16213e);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .skills-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    #welcome-text { 
        font-size: 2.2rem; 
    }
    
    .home-content p { 
        font-size: 1.2rem; 
    }
    
    section h2 { 
        font-size: 2rem; 
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 70px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Dark Mode for Projects */
body.dark-mode .project-card {
    background: #2d3748;
}

body.dark-mode .project-description h3 {
    color: #f1c40f;
}

body.dark-mode .project-description p {
    color: #ecf0f1;
}

body.dark-mode .education-item {
    background: #2d3748;
}

body.dark-mode .education-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
}
