/* ===== BASE STYLES & VARIABLES ===== */
:root {
    --bg-main: #f9f9f9;
    --bg-secondary: #ffffff;

    --accent-primary: #0f172a;
    --accent-secondary: #6b7280;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --accent-glow: rgba(17, 24, 39, 0.08);

    --text-primary: #0f172a;
    --text-secondary: #4b5563;
    --text-highlight: #6b7280;

    --glass-bg: rgba(255, 255, 255, 0.88);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    --glass-blur: blur(20px);

    --font-primary: 'Inter', sans-serif;

    --nav-height: 84px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Shapes for Minimal Elegance */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.18;
    animation: float 24s infinite alternate ease-in-out;
}

.shape-1 {
    top: -15%;
    left: -10%;
    width: 420px;
    height: 420px;
    background: rgba(17, 24, 39, 0.05);
    animation-delay: 0s;
}

.shape-2 {
    bottom: -18%;
    right: -10%;
    width: 520px;
    height: 520px;
    background: rgba(107, 114, 128, 0.08);
    animation-delay: -6s;
}

.shape-3 {
    top: 40%;
    left: 62%;
    width: 320px;
    height: 320px;
    background: rgba(156, 163, 175, 0.08);
    animation-delay: -12s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -20px) scale(0.9);
    }
}

/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5%;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-secondary);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.w-100 {
    width: 100%;
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.hero-container {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--nav-height));
    position: relative;
    z-index: 1;
}

.hero-left {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.2rem;
    width: 50%;
    padding-left: 0;
    z-index: 2;
}

.hero-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: -1;
    pointer-events: none;
}

.gap-4 {
    gap: 4rem;
}

/* The Highlight Text Gradient */
.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.4);
}

/* Button System */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: var(--text-primary);
    color: white;
    box-shadow: 0 12px 25px rgba(17, 24, 39, 0.12);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.15);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(17, 24, 39, 0.05);
}


/* ===== SPECIFIC SECTIONS ===== */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    gap: 4rem; /* Jarak antara logo Noven dan menu navigasi */
}
.nav-links {
    display: flex;
    gap: 2.5rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

/* Nav Link Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--nav-height);
    padding-bottom: 0;
    display: block;
    overflow: hidden;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8rem; /* Memberikan jarak jauh ke kanan dari teks vertikal Programmer */
    padding-right: 0;
}

.hero-side-label {
    position: absolute;
    left: 0;
    top: 50%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    transform: rotate(-90deg) translateY(-50%);
    transform-origin: left;
}

.hero-side-label .label-text {
    font-size: 1.1rem;
    letter-spacing: 0.35em;
    color: var(--text-primary);
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 500;
}

.hero-side-label .side-divider {
    width: 1px;
    height: 3rem;
    background: var(--text-secondary);
    opacity: 0.35;
}

.hero-side-label .side-year {
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    white-space: nowrap;
    font-weight: 500;
}

.hero-stat-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 140px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.name {
    font-size: clamp(4.5rem, 11vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    margin-bottom: 0.8rem;
    line-height: 0.85;
}

.profession {
    font-size: 1rem;
    opacity: 0.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 520px;
}

.summary {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 2.5rem;
    text-align: left;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Hero Image Focus */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-glass {
    position: relative;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    transition: transform 0.45s ease;
    box-shadow: none;
    width: 100%;
    height: 100%;
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.image-glass:hover {
    transform: translateY(-8px);
}

.profile-img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom right;
    border-radius: 0;
    filter: grayscale(100%);
    transform: scale(1.15) translateX(6%);
    transform-origin: bottom right;
}

.hero-footer-note {
    position: absolute;
    left: 2rem;
    bottom: 2rem;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
}

/* Section Titles */
.section-title {
    margin-bottom: 4rem;
}

.subtitle {
    display: block;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
}

/* About Section */
.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
    text-indent: 2rem;
}

.personal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.personal-info .info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 calc(50% - 1.5rem);
    min-width: 220px;
    margin-bottom: 0;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.info-item>div {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.1rem;
}

.info-item .value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

/* Timeline (Experience & Education) */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem;
}

.timeline-dot {
    position: absolute;
    left: -36px;
    top: 30px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inst-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-headings {
    display: flex;
    flex-direction: column;
}

.timeline-title {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0;
}

.timeline-list {
    color: var(--text-secondary);
    padding-left: 1rem;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: -1rem;
    color: var(--accent-primary);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(0, 0, 0, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-social {
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Animations Triggered by JS */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .name {
        font-size: 3.5rem;
    }

    .profession {
        font-size: 2rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}

/* Hero Container Override */
.hero .container {
    max-width: 1200px;
    padding: 0 2rem;
}

/* Hero Layout Fixes */
.hero-container {
    gap: 3rem;
}

.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
}

.image-glass {
    width: 100%;
    max-width: none;
}

/* Profile Image Final */
.profile-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 0;
    filter: grayscale(100%);
}

@media screen and (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        right: -100%;
        flex-direction: column;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(16px);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        text-align: center;
        padding-top: 2rem;
        transition: 0.4s ease;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .grid-2 {
        gap: 2rem;
    }

    .gap-4 {
        gap: 2rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 1rem);
        min-height: auto;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .hero-left {
        width: 100%;
        padding-left: 0;
        align-items: center;
    }

    .hero-content {
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        align-items: center;
    }

    .hero-side-label {
        display: none;
    }

    .hero-stat-row {
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .name {
        font-size: 2.8rem;
    }

    .profession {
        font-size: 1.25rem;
        margin-left: auto;
        margin-right: auto;
    }

    .summary {
        margin: 0 auto 2rem auto;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .hero-right {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }

    .image-glass {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        box-shadow: none;
        border-radius: 0;
    }

    .profile-img {
        max-height: 400px;
        transform: none;
        object-position: bottom center;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: -21px;
    }

    .glass-card {
        padding: 1.5rem;
    }
}