/* assets/css/style.css */

/* Custom Styles untuk Landing Page */

/* Smooth scrolling untuk seluruh halaman */
html {
    scroll-behavior: smooth;
}

/* Reset margin dan padding untuk semua elemen */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base body styling */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #F1F1F2; /* overcast */
    color: #333333;
    line-height: 1.6;
}

/* Custom class untuk button primary */
.btn-primary {
    background-color: #1995AD; /* glacier-blue */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #148299; /* darker glacier-blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 149, 173, 0.3);
}

/* Custom class untuk button secondary */
.btn-secondary {
    background-color: transparent;
    color: #1995AD; /* glacier-blue */
    border: 2px solid #1995AD;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(25, 149, 173, 0.1);
    transform: translateY(-2px);
}

/* Navigation styles */
nav {
    transition: all 0.3s ease;
}

/* Active state untuk navigation links */
.nav-link.active {
    color: #1995AD; /* glacier-blue */
    font-weight: 600;
}

.nav-link:hover {
    color: #1995AD;
}

/* Mobile navigation link hover effect */
.mobile-nav-link {
    display: block;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(25, 149, 173, 0.1);
    border-radius: 0.5rem;
    padding-left: 1rem;
}

/* Section padding */
section {
    padding: 5rem 0;
}

/* Home section specific styles */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

/* Timeline styling untuk experience section */
.experience-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #A1D6E2; /* ice */
    border-radius: 3px;
}

@media (min-width: 768px) {
    .experience-item {
        padding-left: 0;
    }
    
    .experience-item::before {
        left: 33.3333%; /* Sesuai dengan md:w-1/3 */
    }
}

/* Social icon hover effect */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Project card animation */
.project-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form input focus effect */
input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(161, 214, 226, 0.3);
    border-color: #A1D6E2; /* ice */
}

/* Skill card hover effect */
.skill-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Skill progress bar */
.skill-progress {
    transition: width 1s ease-in-out;
}

/* Back to top button */
#back-to-top {
    transition: all 0.3s ease;
    opacity: 0;
}

#back-to-top.show {
    opacity: 1;
}

/* Footer styles */
footer {
    background-color: #2D3748; /* gray-800 */
}

/* Divider line */
.divider {
    height: 2px;
    width: 4rem;
    margin: 1rem auto;
    background-color: #A1D6E2; /* ice */
}

/* Avatar/Profile image container */
.profile-img-container {
    position: relative;
    overflow: hidden;
}

.profile-img-container::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 5rem;
    height: 5rem;
    background-color: #1995AD; /* glacier-blue */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #F1F1F2; /* overcast */
}

::-webkit-scrollbar-thumb {
    background: #BCBABE; /* warm-gray */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1995AD; /* glacier-blue */
}

/* Utility classes for custom colors */
.bg-overcast {
    background-color: #F1F1F2;
}

.bg-warm-gray {
    background-color: #BCBABE;
}

.bg-ice {
    background-color: #A1D6E2;
}

.bg-glacier-blue {
    background-color: #1995AD;
}

.text-overcast {
    color: #F1F1F2;
}

.text-warm-gray {
    color: #BCBABE;
}

.text-ice {
    color: #A1D6E2;
}

.text-glacier-blue {
    color: #1995AD;
}

/* Gradient backgrounds */
.gradient-blue {
    background: linear-gradient(135deg, #A1D6E2 0%, #1995AD 100%);
}

.gradient-gray {
    background: linear-gradient(135deg, #BCBABE 0%, #F1F1F2 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    #home {
        padding-top: 100px;
        min-height: auto;
    }
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}