/* ========================================
   CSS Variables & Base Styles
======================================== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --text-color: #334155;
    --text-light: #64748b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --container-padding: 80px;
    --container-padding-left: 80px;
    --container-padding-right: 80px;
    --container-padding-tablet: 40px;
    --container-padding-mobile: 20px;
    /* Light theme specific */
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --hero-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --shape-1-bg: rgba(37, 99, 235, 0.1);
    --shape-2-bg: rgba(6, 182, 212, 0.15);
    --project-image-bg: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    --skill-icon-bg: #f8fafc;
    --footer-bg: #0f172a;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --secondary-color: #f1f5f9;
    --accent-color: #22d3ee;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    /* Dark theme specific */
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --card-bg: #1e293b;
    --border-color: #334155;
    --input-bg: #1e293b;
    --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --shape-1-bg: rgba(37, 99, 235, 0.2);
    --shape-2-bg: rgba(6, 182, 212, 0.25);
    --project-image-bg: linear-gradient(135deg, #334155 0%, #475569 100%);
    --skill-icon-bg: #1e293b;
    --footer-bg: #020617;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Theme Toggle Button
======================================== */
.theme-toggle {
    background: var(--card-bg);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    margin-right: 16px;
    color: var(--text-color);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

.nav-actions {
    display: flex;
    align-items: center;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 80px;
    padding-right: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

/* ========================================
   Navigation Actions (Theme Toggle & Menu)
======================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-color);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--bg-light);
    transform: rotate(15deg);
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 80px 80px;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--shape-1-bg) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

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

.greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.2;
    margin-bottom: 8px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
    text-align: justify;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease forwards;
}

.image-wrapper {
    position: relative;
    width: 420px;
    height: 480px;
}

.profile-placeholder {
    width: 340px;
    height: 420px;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: none;
    overflow: visible;
}

.profile-placeholder i {
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 0;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.35));
}

.shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 350px;
    height: 350px;
    background: var(--shape-1-bg);
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--shape-2-bg);
    bottom: -30px;
    left: -30px;
    animation-delay: 2s;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--primary-color);
    animation: bounce 2s infinite;
    transition: var(--transition);
}

.scroll-down:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   About Section
======================================== */
.about {
    background: var(--bg-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-box {
    width: 320px;
    height: 380px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.image-box::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.image-box i {
    font-size: 6rem;
    color: white;
    opacity: 0.9;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: justify;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ========================================
   Skills Section
======================================== */
.skills {
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skill-category {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--skill-icon-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
}

.skill-item > span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ========================================
   Projects Section
======================================== */
.projects {
    background: var(--bg-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 200px;
    background: var(--project-image-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.project-content h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.25rem * 1.4 * 2);
    flex-shrink: 0;
}

.project-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: justify;
    height: 5.6rem;
    overflow-y: auto;
    flex-shrink: 0;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.project-content p::-webkit-scrollbar {
    width: 4px;
}

.project-content p::-webkit-scrollbar-track {
    background: transparent;
}

.project-content p::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.project-tags span {
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

/* ========================================
   Experience Section
======================================== */
.experience {
    background: var(--bg-light);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.experience-card {
    display: flex;
    gap: 24px;
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.experience-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.experience-logo {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.experience-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.experience-content {
    flex: 1;
}

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

.experience-header h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.experience-period {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.experience-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.experience-location {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.experience-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
    text-align: justify;
}

.experience-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.07);
}

.experience-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
    text-decoration: none;
}

.experience-doc-link:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.experience-doc-link--disabled {
    color: var(--text-light);
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.experience-tasks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-tasks li {
    color: var(--text-color);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.experience-tasks li i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 0.8rem;
}

/* ========================================
   Certifications Section
======================================== */
.certifications {
    background: var(--bg-color);
}

.certification-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Thumbnail landscape 16:9 */
.cert-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--gradient);
    overflow: hidden;
    flex-shrink: 0;
}

.cert-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.certification-card:hover .cert-thumb-img {
    transform: scale(1.04);
}

/* Fallback icon shown when image missing or fails to load */
.cert-thumb-icon {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.cert-thumb--fallback .cert-thumb-icon {
    display: flex;
}

.cert-thumb--fallback .cert-thumb-img {
    display: none;
}

/* Card body */
.cert-content {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    min-height: 0;
}

.cert-content h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 4px;
    font-weight: 600;
    line-height: 1.4;
    /* Judul maks 2 baris, selebihnya ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1rem * 1.4 * 2);
}

.cert-issuer {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* Deskripsi: tinggi tetap, scroll jika teks melebihi */
.cert-description {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: justify;
    height: 5.6rem;        /* ~4 baris teks */
    overflow-y: auto;
    margin-bottom: 12px;
    padding-right: 4px;
    flex-shrink: 0;
    /* Scrollbar tipis agar rapi */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.cert-description::-webkit-scrollbar {
    width: 4px;
}

.cert-description::-webkit-scrollbar-track {
    background: transparent;
}

.cert-description::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.cert-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
}

.cert-verify:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

/* ========================================
   Contact Section
======================================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.75rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text span:first-child {
    font-size: 0.85rem;
    color: var(--text-light);
}

.contact-text a,
.contact-text span:last-child {
    font-weight: 500;
    color: var(--secondary-color);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--input-bg);
    transition: var(--transition);
    outline: none;
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: var(--card-bg);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 4px;
}

.form-group textarea + label {
    top: 20px;
    transform: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: var(--card-bg);
}

.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -8px;
}

.form-group button {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--footer-bg);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

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

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .hero {
        padding: 120px 48px 80px;
    }
    
    .navbar .container {
        padding-left: 48px;
        padding-right: 48px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        width: 300px;
        height: 360px;
    }

    .profile-placeholder {
        width: 260px;
        height: 320px;
    }

    .profile-placeholder i {
        font-size: 5rem;
    }

    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 70px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        box-shadow: var(--shadow-xl);
        transition: var(--transition);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* ── HERO ── */
    .hero {
        padding: 100px 20px 60px;
        overflow-x: hidden;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-image {
        order: -1;
        justify-content: center;
    }

    .image-wrapper {
        width: 240px;
        height: 300px;
    }

    .profile-placeholder {
        width: 220px;
        height: 280px;
    }

    .profile-placeholder i {
        font-size: 5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        word-break: break-word;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 0.95rem;
        text-align: justify;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .shape-1 {
        width: 220px;
        height: 220px;
    }

    .shape-2 {
        width: 140px;
        height: 140px;
    }

    /* ── TENTANG SAYA ── */
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .about-text p {
        text-align: justify;
    }

    .image-box {
        width: 240px;
        height: 280px;
        overflow: hidden;
    }

    .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .about-stats {
        justify-content: center;
    }

    /* ── KEAHLIAN ── */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        max-width: 100%;
        padding: 0 8px;
        word-break: break-word;
    }

    /* ── PENGALAMAN ── */
    .experience-card {
        flex-direction: column;
        padding: 20px;
    }

    .experience-icon {
        width: 56px;
        height: 56px;
    }

    .experience-header {
        flex-direction: column;
        gap: 6px;
    }

    .experience-period {
        align-self: flex-start;
    }

    /* ── SERTIFIKASI ── */
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    /* ── PROYEK ── */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* ── KONTAK ── */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: flex-start;
    }

    .contact-item {
        width: 100%;
        min-width: 0;
    }

    .contact-text {
        min-width: 0;
        overflow: hidden;
    }

    .contact-text span:last-child {
        font-size: 0.9rem;
        word-break: break-all;
        white-space: normal;
    }

    /* ── UMUM ── */
    .section-title {
        font-size: 2rem;
    }

    .nav-actions {
        position: absolute;
        right: 70px;
    }

    * {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 50px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero h2 {
        font-size: 1rem;
    }

    .image-wrapper {
        width: 200px;
        height: 250px;
    }

    .profile-placeholder {
        width: 185px;
        height: 240px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

    .contact-text span:last-child {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cert-description {
        height: auto;
        max-height: 5.6rem;
    }

    .project-content p {
        height: auto;
        max-height: 5.6rem;
    }
}