/* ===========================
   GLOBAL STYLES & VARIABLES
   =========================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --secondary: #7c3aed;
    --accent: #ec4899;
    --bg-dark: #0a0e27;
    --bg-darker: #050812;
    --text-light: #e4e4e7;
    --text-muted: #9ca3af;
    --border-color: #1e293b;
    --success: #10b981;
    --error: #ef4444;
    
    --transition: 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   ANIMATIONS
   =========================== */

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes letterPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* ===========================
   LOADING SCREEN
   =========================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOutUp 0.8s ease-out 2s forwards;
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loader-content {
    text-align: center;
}

.loader-text {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 8px;
}

.loader-text .letter {
    display: inline-block;
    color: var(--primary);
    animation: letterPulse 0.8s ease-in-out infinite;
}

.loader-text .letter:nth-child(1) { animation-delay: 0s; }
.loader-text .letter:nth-child(2) { animation-delay: 0.1s; }
.loader-text .letter:nth-child(3) { animation-delay: 0.2s; }
.loader-text .letter:nth-child(4) { animation-delay: 0.3s; }
.loader-text .letter:nth-child(5) { animation-delay: 0.4s; }
.loader-text .letter:nth-child(6) { animation-delay: 0.5s; }
.loader-text .letter:nth-child(7) { animation-delay: 0.6s; }

.loader-subtext {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    animation: progress 2s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    z-index: 1000;
    animation: slideInDown 0.5s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 14px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 2rem 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .word-1 {
    display: block;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title .word-2 {
    display: block;
    animation: slideInRight 0.8s ease-out 0.1s backwards;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.2s backwards;
}

.profile-card {
    background: rgba(17, 24, 39, 0.7); 
    border-radius: 24px;
    padding: 30px;
    
    /* Bahagian ni paling penting untuk center-kan semua benda */
    display: flex;
    flex-direction: column; /* Susun dari atas ke bawah (gambar atas, teks bawah) */
    align-items: center;    /* Center-kan kiri ke kanan */
    justify-content: center;
    
    width: 100%;
    max-width: 340px; 
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 195, 255, 0.15);
    backdrop-filter: blur(10px);
}

.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 220px; 
    height: 250px;    
    margin: 0 auto; /* Center-kan container ni dalam kad */
}

/* 3. Gambar Segi Empat */
.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Fokus pada bahagian muka/atas gambar */
    border-radius: 16px; /* Mesti sama dengan container */
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(124, 58, 237, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: var(--primary);
    animation: bounce 3s ease-in-out infinite;
}

.profile-placeholder svg {
    width: 100%;
    height: 100%;
}

.profile-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 195, 255, 0.5), rgba(0, 102, 255, 0.3));
    z-index: 1;
    border-radius: 16px;
    filter: blur(20px); /* Efek cahaya di belakang gambar */
    transform: scale(1.05); /* Bagi glow tu terkeluar sikit dari bucu gambar */
}

.profile-info {
    text-align: center; /* Teks center */
    width: 100%;
    margin-top: 15px; /* Jarak sikit teks dari gambar */
    display: flex;
    flex-direction: column;
    align-items: center; /* Paksa badge 'Available' tu duduk tengah juga */
}

.profile-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.scroll-indicator span {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 24px;
    animation: bounce 2s ease-in-out infinite;
}

/* ===========================
   BUTTONS
   =========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

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

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* ===========================
   SECTIONS
   =========================== */

section {
    padding: 80px 2rem;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Section */
.stats-section {
    background: rgba(30, 41, 59, 0.3);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.5);
    background: rgba(30, 41, 59, 0.7);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-description {
    font-size: 14px;
    color: var(--text-muted);
}

/* Highlight Section */
.highlight-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.highlight-container {
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.highlight-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.highlight-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.highlight-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

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

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-light);
}

.cta-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Page Header */
.page-header {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    margin-top: 80px;
}

.header-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.header-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-content p {
    font-size: 18px;
    color: var(--text-muted);
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects-filter {
    background: rgba(30, 41, 59, 0.3);
    padding: 40px 2rem;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.5);
    color: var(--text-muted);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.projects-section {
    background: rgba(30, 41, 59, 0.1);
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

.project-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.project-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image-placeholder {
    font-size: 80px;
    text-align: center;
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.project-badge.award {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
}

.project-type {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.project-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 13px;
    color: var(--text-muted);
}

.detail-item {
    display: flex;
    justify-content: space-between;
}

.detail-item strong {
    color: var(--text-light);
}

.status-ongoing {
    color: var(--success);
    font-weight: 600;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ===========================
   EXPERIENCE SECTION
   =========================== */

.experience-section,
.education-section {
    background: rgba(30, 41, 59, 0.1);
}

.experience-container,
.education-container {
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0) 100%);
}

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

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 48%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    width: 48%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 3px solid var(--bg-dark);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-label {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.experience-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    font-size: 22px;
    color: var(--text-light);
}

.company {
    font-size: 16px;
    color: var(--primary);
    font-weight: 600;
}

.duration {
    font-size: 13px;
    color: var(--text-muted);
}

.role-badge {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.experience-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.experience-highlights {
    background: rgba(0, 212, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.experience-highlights h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.experience-highlights ul {
    list-style: none;
    padding-left: 0;
}

.experience-highlights li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.experience-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Education */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.education-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.education-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.degree-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.education-card h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.major {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.institution {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.education-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-name {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
}

.highlight-stat .stat-value {
    font-size: 48px;
    margin-bottom: 10px;
}

.achievements-list {
    background: rgba(0, 212, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.achievements-list h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.achievements-list ul {
    list-style: none;
}

.achievements-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.achievements-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Leadership */
.leadership-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.leadership-container {
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.leadership-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.leadership-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.leadership-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.leadership-card .role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.leadership-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Awards */
.awards-section {
    background: rgba(30, 41, 59, 0.1);
}

.awards-container {
    max-width: 1200px;
    margin: 0 auto;
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.award-card {
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.award-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.2);
}

.award-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.award-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.award-category {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.award-year {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===========================
   SKILLS SECTION
   =========================== */

.skills-section {
    background: rgba(30, 41, 59, 0.1);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-header h3 {
    font-size: 18px;
    color: var(--text-light);
}

.proficiency-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.proficiency-badge.expert {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.proficiency-badge.advanced {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
}

.proficiency-badge.intermediate {
    background: rgba(124, 58, 237, 0.2);
    color: var(--secondary);
}

.skill-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.proficiency-bar {
    height: 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.proficiency-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    animation: widthAnimation 1.5s ease-out;
}

@keyframes widthAnimation {
    from {
        width: 0 !important;
    }
}

.proficiency-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* Soft Skills */
.soft-skills-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.soft-skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.soft-skill-item {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.soft-skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.soft-skill-item h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.soft-skill-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Languages */
.languages-section {
    background: rgba(30, 41, 59, 0.1);
}

.languages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.language-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.language-card h3 {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.proficiency-level {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    background: rgba(30, 41, 59, 0.1);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form-wrapper,
.contact-info-wrapper {
    animation: fadeInUp 0.8s ease-out;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 28px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

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

.form-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-message {
    font-size: 14px;
    padding: 15px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.info-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.info-content p {
    font-size: 13px;
    color: var(--text-muted);
}

.info-content a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.info-content a:hover {
    text-decoration: underline;
}

.info-content small {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 5px;
}

.response-box,
.about-box {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.response-box h3,
.about-box h3 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.response-box p,
.about-box p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Expertise */
.expertise-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

.expertise-container {
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.expertise-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.expertise-card h3 {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.expertise-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Social */
.social-section {
    background: rgba(30, 41, 59, 0.1);
}

.social-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.social-link:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: linear-gradient(135deg, rgba(5, 8, 18, 0.9) 0%, rgba(10, 14, 39, 0.9) 100%);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    padding: 50px 2rem 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 700;
}

.footer-section p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    font-size: 13px;
    color: var(--text-muted);
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    :root {
        --margin-edge: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    }

    .nav-link::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-image {
        order: -1;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        width: 100%;
        margin-left: 30px;
        margin-right: 0;
    }

    .timeline-marker {
        left: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 50px 1.5rem;
    }

    .stat-card {
        min-width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .soft-skills-grid,
    .languages-grid,
    .expertise-grid,
    .highlight-grid,
    .education-grid,
    .leadership-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        gap: 10px;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }

    .page-header {
        min-height: 200px;
        padding: 40px 2rem;
    }

    .header-content h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
    }

    .stat-number {
        font-size: 36px;
    }

    .profile-card {
        padding: 20px;
    }

    .profile-placeholder {
        font-size: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        gap: 15px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .filter-container {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* --- RESPONSIVE UNTUK MOBILE (Bawah 768px) --- */
@media (max-width: 768px) {
    /* 1. Panjangkan sikit hero section & bagi ruang kat bawah */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 100px; /* Jarak dari navbar */
        padding-bottom: 100px; /* Ruang khas supaya tak langgar scroll indicator */
    }

    /* 2. Susun butang supaya tak rapat sangat */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 16px; /* Jarak antara butang Explore & Get in Touch */
        width: 100%;
        margin-bottom: 40px; /* Tolak scroll indicator jauh sikit ke bawah */
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 3. Betulkan kedudukan scroll indicator */
    .scroll-indicator {
        position: relative; /* Tukar dari absolute ke relative untuk mobile */
        margin-top: 30px;
        bottom: auto;
    }
}

/* ===========================
   PRINT STYLES
   =========================== */

@media print {
    .navbar,
    .scroll-indicator,
    .cta-section,
    .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
