@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700;900&display=swap');
:root {
    /* Base Colors */
    --primary-color: #000000;
    --secondary-color: #a1a1a1;
    --background-color: #ffffff;
    --text-color: #111111;

    /* Navbar & Footer (Fixed Black Theme) */
    --accent-bg: #000000; 
    --accent-text: #ffffff;
    --accent-hover: #cccccc;

    --font-family: 'Inter', sans-serif;
    --transition-speed: 0.3s ease;
}

body {
    font-family: var(--font-family) !important;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-toggler {
    border-color: #ffffff;
}

.logo {
    width: 200px;   
    height: auto;   
    transition: transform 0.3s ease;
}

.navbar-brand:hover .logo {
    transform: scale(1.05);
}


/* --- Navbar Styling --- */
.custom-navbar {
    background-color: var(--accent-bg) !important;
    padding: 1rem 30px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 9999; 
}
.custom-navbar .nav-link, 
.navbar-brand {
    color: var(--accent-text) !important;
    font-weight: 500;
    margin: 0 15px;
    transition: color var(--transition-speed), opacity 0.2s;
    text-decoration: none;
}
.custom-navbar .nav-link:hover,
.navbar-brand:hover {
    color: var(--accent-hover) !important;
    opacity: 1;
}
.custom-navbar .nav-link.active {
    font-weight: 700;
    border-bottom: 2px solid var(--accent-text);
}
/* --- Social Media Icons --- */
.d-flex a {
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    color: #ffffff; 
}
.d-flex a:hover {
    transform: translateY(-3px) scale(1.1);
}
.bi-github:hover {
    color: #909090;
}
.bi-linkedin:hover {
    color: #0A66C2;
}
.bi-facebook:hover {
    color: #1877F2;
}
.bi-instagram:hover {
    color: #E4405F;
}
.bi-threads:hover {
    color: #464646;
}
.bi-youtube:hover {
    color: #ff0000;
}
.bi-spotify:hover {
    color: #1DB954;
}
.social-icon-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #dee2e6; /* Light border */
    background-color: #f8f9fa;
}
.social-icon-btn:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* --- Layout & Footer --- */
main{
    min-height: 80vh !important;
    padding: 0 50px 0 !important;
}
        /* Section 1: Profile Styling */
        #section1 {
            padding: 50px 20px; 
        }
        .profile-container {
            display: flex;
            align-items: center;
            gap: 30px; 
            padding: 100 px;
            border-radius: 10px;
        }
        .profile-img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 20px; 
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        .details {
            flex: 3; 
        }
        .details h3 {
            margin: 0 0 10px 0;
            color: #333;
        }
        .details a {
            color: #000000;
            text-decoration: none;
        }
        .details a:hover {
            color: #494949;
            text-decoration: none;
        }
        .details p {
            margin: 5px 0;
            line-height: 1.5;
        }
        @media (max-width: 600px) {
            .profile-container {
                flex-direction: column;
                text-align: center;
            }
        }
/* Container Utama Section 2 */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
}

/* Card Styling */
.card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Butang "See more" sentiasa di bawah */
    transition: 0.3s;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card h3 {
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* List Styling */
.card-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.card-list li {
    margin-bottom: 8px;
    color: #444;
}

/* Button See More (Sama macam dalam gambar) */
.btn-see-more {
    display: inline-block;
    padding: 6px 20px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    width: fit-content;
}

.btn-see-more:hover {
    background: #000;
    color: #fff;
}

/* Tech Stack Slider */
.slider-container {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.slider-track {
    display: flex;
    width: calc(100px * 12); /* Lebar mengikut jumlah ikon */
    animation: scroll 20s linear infinite;
}

.slide-item {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.slide-item i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.slide-item span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100px * 6)); } /* Pusing balik selepas 6 ikon */
}


/* Gaya Header & Container */
.project-header {
    padding: 60px 0 40px;
    text-align: center;
}

.project-header h1 {
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Nav Pills Styling (Penapis) */
#pills-tab {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 50px;
    width: fit-content;
    margin: 0 auto 40px;
}

.nav-pills .nav-link {
    color: #333;
    border-radius: 20px;
    font-weight: 600;
    margin: 0 5px;
    transition: 0.3s;
}

.nav-pills .nav-link.active {
    background-color: #000 !important; /* Tukar mengikut primary-color anda */
    color: #fff !important;
}

/* --- Badge Status (Pill Style) --- */
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.status-completed {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.status-ongoing {
    background-color: #fff8e1;
    color: #f57f17;
    border: 1px solid #ffecb3;
}

/* --- Badge Tech --- */
.badge-tech {
    background-color: #f1f1f1;
    color: #666;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 5px;
    margin-right: 5px;
    text-transform: uppercase;
    display: inline-block;
}

/* Card Styling */
.card {
    border: 1px solid #eee;
    transition: 0.3s;
    padding: 20px;
}

/* --- Butang GitHub Styling --- */
.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background-color: #24292e; /* Warna rasmi GitHub */
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #24292e;
}

.btn-github:hover {
    background-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Memastikan footer butang tersusun rapat */
.project-card-footer {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.status-badge {
            font-size: 0.8rem;
            padding: 5px 10px;
            border-radius: 20px;
        }

        .status-ongoing {
            background-color: #fff3cd;
            color: #856404;
        }

        .status-completed {
            background-color: #d4edda;
            color: #155724;
        }

        .status-prototype {
            background-color: #d1ecf1;
            color: #0c5460;
        }

        .research-card {
            transition: transform 0.2s ease;
        }

        .research-card:hover {
            transform: translateY(-5px);
        }

/* Container untuk PDF */
.resume-viewer {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 15px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Butang Muat Turun (Gaya Premium) */
.btn-download-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: #000;
    color: #fff !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    margin-bottom: 20px;
}

.btn-download-resume:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsif untuk Mobile */
@media (max-width: 768px) {
    iframe {
        height: 500px; /* Pendekkan sikit di phone */
    }
}

/* Contact Grid Styling */
.contact-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-icon {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.contact-card h5 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #000;
}

.contact-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.contact-link:hover {
    color: #000;
}

/* Full-screen container */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff; /* Background color of the loader */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Ensures it stays on top of everything */
  transition: opacity 0.5s ease;
}

/* The animated spinner */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db; /* Spinner color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Smooth fade-out effect */
.fade-out {
  opacity: 0;
  pointer-events: none;
}

#preloader.show {
  opacity: 1;
  pointer-events: all;
}


/* Footer */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.9rem;
}