/* ===========================
   Google-Themed Portfolio CSS
   Amal Hidayah | 2025
=========================== */

/* ---- Google Color Palette ---- */
:root {
    --g-blue: #4285F4;
    --g-red: #EA4335;
    --g-yellow: #FBBC05;
    --g-green: #34A853;
    --g-dark: #202124;
    --g-dark-2: #3c4043;
    --g-medium: #5f6368;
    --g-light: #e8eaed;
    --g-surface: #f8f9fa;
    --g-white: #ffffff;
    --g-blue-light: #e8f0fe;
    --g-red-light: #fce8e6;
    --g-yellow-light: #fef9e1;
    --g-green-light: #e6f4ea;

    --font-primary: 'Google Sans', 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(60, 64, 67, .12), 0 1px 2px rgba(60, 64, 67, .08);
    --shadow-md: 0 4px 12px rgba(60, 64, 67, .15), 0 2px 6px rgba(60, 64, 67, .10);
    --shadow-lg: 0 8px 30px rgba(60, 64, 67, .18), 0 4px 12px rgba(60, 64, 67, .12);
    --shadow-hover: 0 12px 40px rgba(66, 133, 244, .25), 0 4px 16px rgba(66, 133, 244, .15);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--g-white);
    color: var(--g-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--g-surface);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--g-blue), var(--g-green));
    border-radius: 3px;
}

/* ============================
   NAVBAR
============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding: 0 24px;
}

.navbar.scrolled {
    border-bottom-color: var(--g-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.google-logo {
    height: 22px;
    width: auto;
}

.nav-brand {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--g-dark);
    letter-spacing: -0.2px;
}

.dot-blue {
    color: var(--g-blue);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--g-medium);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--g-blue);
    background: var(--g-blue-light);
}

.nav-cta {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--g-white);
    background: var(--g-blue);
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 20px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-cta:hover {
    background: #1a73e8;
    box-shadow: 0 2px 8px rgba(66, 133, 244, .4);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--g-dark);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ============================
   HERO SECTION
============================ */
.hero {
    min-height: 100vh;
    padding: 104px 24px 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 40%, #fff8e1 70%, #e8f5e9 100%);
}

/* Google dot ornaments */
.google-dots-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.dot {
    position: absolute;
    border-radius: 50%;
    animation: float-dot 5s ease-in-out infinite;
    opacity: 0.55;
}

.dot-blue {
    background: var(--g-blue);
}

.dot-red {
    background: var(--g-red);
}

.dot-yellow {
    background: var(--g-yellow);
}

.dot-green {
    background: var(--g-green);
}

@keyframes float-dot {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-14px) scale(1.1);
    }
}

/* Hero shapes */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: shape-pulse 7s ease-in-out infinite;
}

.shape1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.09) 0%, transparent 70%);
    top: -100px;
    left: -150px;
}

.shape2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(234, 67, 53, 0.07) 0%, transparent 70%);
    bottom: -80px;
    right: -100px;
    animation-delay: 2s;
}

.shape3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 188, 5, 0.08) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: 4s;
}

@keyframes shape-pulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.08) rotate(5deg);
    }
}

/* Hero Content */
.hero-content {
    max-width: 580px;
    z-index: 2;
    flex: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-white);
    border: 1px solid var(--g-blue-light);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--g-blue);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(42px, 7vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--g-dark);
    margin-bottom: 16px;
}

.hero-space {
    display: inline-block;
    width: 0.3em;
}

/* Google letter colors */
.g-text,
.h-text {
    color: var(--g-blue);
}

.o1-text,
.i-text,
.a-text {
    color: var(--g-red);
}

.o2-text,
.d-text,
.y-text {
    color: var(--g-yellow);
}

.l-text,
.a2-text {
    color: var(--g-green);
}

.h2-text {
    color: var(--g-blue);
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 400;
    color: var(--g-medium);
    margin-bottom: 8px;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--g-medium);
    font-size: 14px;
    margin-bottom: 32px;
}

.hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--g-white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 100px;
    transition: var(--transition);
}

.stat-val {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-num {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    color: var(--g-blue);
}

.stat-suffix {
    font-size: 18px;
    color: var(--g-blue);
    font-weight: 700;
}

.stat-label {
    font-size: 11px;
    color: var(--g-medium);
    text-align: center;
    font-family: var(--font-primary);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-blue);
    color: white;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-full);
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(66, 133, 244, .35);
}

.btn-primary:hover {
    background: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, .4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--g-white);
    color: var(--g-dark);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--g-light);
    border-radius: var(--radius-full);
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--g-blue);
    color: var(--g-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 500px;
    height: 500px;
    z-index: 2;
}

.avatar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
}

.avatar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    animation: ring-spin linear infinite;
    inset: 0;
}

.ring1 {
    border-color: rgba(66, 133, 244, 0.35) rgba(66, 133, 244, 0.35) transparent transparent;
    animation-duration: 8s;
}

.ring2 {
    border-color: transparent rgba(234, 67, 53, 0.35) rgba(234, 67, 53, 0.35) transparent;
    animation-duration: 12s;
    animation-direction: reverse;
    inset: -24px;
}

.ring3 {
    border-color: rgba(251, 188, 5, 0.3) transparent rgba(52, 168, 83, 0.3) transparent;
    animation-duration: 16s;
    inset: -50px;
}

@keyframes ring-spin {
    to {
        transform: rotate(360deg);
    }
}

.avatar-inner {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--g-blue-light), var(--g-green-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--g-blue), 0 0 0 7px rgba(66, 133, 244, 0.2);
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.avatar-initials {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--g-blue), var(--g-red), var(--g-yellow), var(--g-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.avatar-google-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: white;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        box-shadow: var(--shadow-md);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(66, 133, 244, .3);
    }
}

.float-tag {
    position: absolute;
    background: white;
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    color: var(--g-dark);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: float-tag 3.5s ease-in-out infinite;
}

.float-tag:nth-child(odd) {
    animation-direction: reverse;
}

@keyframes float-tag {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.tag-blue {
    border-left: 3px solid var(--g-blue);
    animation-delay: 0s;
}

.tag-red {
    border-left: 3px solid var(--g-red);
    animation-delay: 0.7s;
}

.tag-yellow {
    border-left: 3px solid var(--g-yellow);
    animation-delay: 1.4s;
}

.tag-green {
    border-left: 3px solid var(--g-green);
    animation-delay: 2.1s;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--g-medium);
    font-size: 12px;
    font-family: var(--font-primary);
    animation: bounce-scroll 2s ease-in-out infinite;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--g-blue);
    border-radius: 50%;
}

@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
        opacity: 0.6;
    }
}

/* ============================
   SECTIONS SHARED
============================ */
.section {
    padding: 96px 24px;
    position: relative;
}

.section:nth-child(even) {
    background: var(--g-surface);
}

.section:nth-child(odd) {
    background: var(--g-white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--g-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-sm);
}

.google-colors-icon .material-icons {
    color: var(--g-blue);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--g-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--g-medium);
    max-width: 500px;
    margin: 0 auto;
}

.highlight-blue {
    color: var(--g-blue);
}

.highlight-red {
    color: var(--g-red);
}

.highlight-yellow {
    color: var(--g-yellow);
}

.highlight-green {
    color: var(--g-green);
}

/* Scroll reveal */
.card-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    opacity: 0;
    transform: translateY(24px);
}

.animate-in.visible {
    animation: fade-up 0.7s ease forwards;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   ABOUT SECTION
============================ */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--g-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
    transition: var(--transition);
}

.about-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.about-card h3 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--g-dark);
}

.about-card p {
    font-size: 14px;
    color: var(--g-medium);
    margin-bottom: 2px;
}

.about-note {
    font-size: 13px !important;
    color: var(--g-medium) !important;
    margin-top: 8px !important;
    line-height: 1.5;
}

.summary-block {
    background: linear-gradient(135deg, var(--g-blue-light), #f0f8ff);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(66, 133, 244, 0.2);
    position: relative;
}

.summary-quote-icon {
    margin-bottom: 12px;
}

.summary-text {
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.75;
    color: var(--g-dark-2);
}

/* ============================
   EXPERIENCE / TIMELINE
============================ */
.experience-section {
    background: var(--g-surface) !important;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--g-blue), var(--g-green));
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.dot-blue {
    background: var(--g-blue);
}

.dot-red {
    background: var(--g-red);
}

.dot-yellow {
    background: var(--g-yellow);
}

.dot-green {
    background: var(--g-green);
}

.timeline-card {
    background: var(--g-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
    flex: 1;
    transition: var(--transition);
}

.timeline-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.timeline-org-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--g-medium);
    background: var(--g-surface);
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--g-dark);
    margin-bottom: 4px;
}

.timeline-org {
    font-size: 13px;
    color: var(--g-medium);
    margin-bottom: 16px;
}

.timeline-list {
    padding-left: 16px;
}

.timeline-list li {
    font-size: 14px;
    color: var(--g-dark-2);
    margin-bottom: 8px;
    line-height: 1.55;
    list-style: disc;
}

/* ============================
   PROJECTS
============================ */
.projects-section {
    background: var(--g-white) !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--g-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
    transition: var(--transition);
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.project-card-header {
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.project-icon {
    opacity: 0.9;
}

.project-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.project-card-body {
    padding: 24px 28px;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--g-dark);
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 13px;
    color: var(--g-medium);
    margin-bottom: 12px;
}

.project-desc {
    font-size: 14px;
    color: var(--g-dark-2);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.feature-chip {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.chip-blue {
    background: var(--g-blue-light);
    color: var(--g-blue);
}

.chip-red {
    background: var(--g-red-light);
    color: var(--g-red);
}

.chip-green {
    background: var(--g-green-light);
    color: var(--g-green);
}

.chip-yellow {
    background: var(--g-yellow-light);
    color: #a07000;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    padding: 8px 18px;
    transition: var(--transition);
}

.link-blue {
    background: var(--g-blue-light);
    color: var(--g-blue);
}

.link-blue:hover {
    background: var(--g-blue);
    color: white;
}

.link-red {
    background: var(--g-red-light);
    color: var(--g-red);
}

.link-red:hover {
    background: var(--g-red);
    color: white;
}

.link-green {
    background: var(--g-green-light);
    color: var(--g-green);
}

.link-green:hover {
    background: var(--g-green);
    color: white;
}

/* ============================
   SKILLS
============================ */
.skills-section {
    background: var(--g-surface) !important;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 28px;
    margin-bottom: 64px;
}

.skills-group {
    background: var(--g-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
}

.skills-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.skills-group-header h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-bar-item {}

.skill-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--g-dark);
    margin-bottom: 6px;
}

.skill-pct {
    color: var(--g-medium);
}

.skill-bar-track {
    height: 8px;
    background: var(--g-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fill-blue {
    background: linear-gradient(90deg, var(--g-blue), #8ab4f8);
}

.fill-red {
    background: linear-gradient(90deg, var(--g-red), #f28b82);
}

.fill-green {
    background: linear-gradient(90deg, var(--g-green), #81c995);
}

.fill-yellow {
    background: linear-gradient(90deg, var(--g-yellow), #fdd663);
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.soft-skill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--g-surface);
    border: 1px solid var(--g-light);
    font-size: 13px;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--g-dark);
    transition: var(--transition);
}

.soft-skill:hover {
    background: color-mix(in srgb, var(--clr) 10%, white);
    border-color: color-mix(in srgb, var(--clr) 40%, transparent);
    color: var(--clr);
}

.soft-skill .material-icons {
    font-size: 18px;
    color: var(--clr);
}

/* Achievements */
.achievements-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: var(--g-dark);
    text-align: center;
    margin-bottom: 24px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: var(--g-white);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
    text-align: center;
    transition: var(--transition);
}

.achievement-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.achievement-icon {
    font-size: 36px !important;
    margin-bottom: 12px;
    display: block;
}

.achievement-num {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--g-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 8px;
}

.achievement-num span {
    font-size: 22px;
}

.achievement-sub {
    font-size: 13px;
    color: var(--g-medium);
    font-family: var(--font-primary);
    line-height: 1.4;
}

/* ============================
   CONTACT
============================ */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%) !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--g-white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--g-light);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
    border-color: var(--g-blue);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 12px;
    color: var(--g-medium);
    font-family: var(--font-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: 500;
    color: var(--g-dark);
}

.contact-arrow {
    color: var(--g-medium);
    transition: var(--transition);
}

.contact-card:hover .contact-arrow {
    color: var(--g-blue);
    transform: translateX(4px);
}

/* ============================
   FOOTER
============================ */
.footer {
    background: var(--g-dark);
    padding: 48px 24px;
    text-align: center;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-logo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.footer-glogo {
    height: 28px;
    width: auto;
    filter: brightness(10);
    opacity: 0.9;
}

.footer-tagline {
    font-family: var(--font-primary);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-copy {
    font-family: var(--font-primary);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}

.footer-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.fdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
}

/* ============================
   BACK TO TOP
============================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--g-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1a73e8;
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        padding: 88px 24px 56px;
        gap: 28px;
        text-align: center;
    }

    .hero-location {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    /* foto ke atas konten teks */
    .hero-visual {
        order: -1;
        width: 200px;
        height: 200px;
    }

    /* avatar container lebih kecil */
    .avatar-container {
        width: 130px;
        height: 130px;
    }

    /* logo Google mini ikut mengecil */
    .avatar-google-icon {
        width: 36px;
        height: 36px;
        bottom: 4px;
        right: 4px;
    }

    .float-tag {
        font-size: 10px;
        padding: 4px 10px;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--g-light);
        z-index: 999;
    }

    .nav-cta.open {
        display: block;
        margin: 8px 16px;
    }

    .hero-title {
        font-size: 36px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .soft-skills-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-num {
        font-size: 22px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}