@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #00abf0;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: .3s;
}

.header.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* ===== SECTIONS ===== */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* ===== HOME ===== */
.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
}

.home-content {
    max-width: 60rem;
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--text-color);
}

.home-content .text-animate {
    position: relative;
    width: 32.8rem;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: .7px var(--main-color);
    background-image: linear-gradient(var(--main-color), var(--main-color));
    background-repeat: no-repeat;
    background-position: -33rem 0;
}

.home.show-animate .home-content .text-animate h3 {
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

.home-content .text-animate h3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-right: .2px solid var(--main-color);
    z-index: -1;
}

.home.show-animate .home-content .text-animate h3::before {
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 34.5rem;
    height: 5rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box .btn:hover {
    color: var(--main-color);
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
}

/* ===== ABOUT ===== */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    position: relative;
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}

.about-img {
    position: relative;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
}

.about-img img {
    position: absolute;
    top: 5%;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: .2rem solid var(--main-color);
}

.about-img .circle-spin {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid var(--second-bg-color);
    border-bottom: .2rem solid var(--second-bg-color);
    border-left: .2rem solid var(--main-color);
    border-right: .2rem solid var(--main-color);
    animation: aboutSpinner 2s linear infinite;
}

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

.about-content h3 {
    position: relative;
    display: inline-block;
    font-size: 2.6rem;
}

.about-content p {
    position: relative;
    font-size: 1.7rem;
    margin: 2rem 0 3rem;
}

.btn-box.btns {
    display: inline-block;
    width: 15rem;
}

.btn-box.btns a::before {
    background: var(--second-bg-color);
}

/* ===== EDUCATION ===== */
.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-row .education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-column .education-box {
    position: relative;
    border-left: .2rem solid var(--main-color);
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    position: relative;
    padding: 1.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    margin-bottom: 2rem;
    overflow: hidden;
    z-index: 1;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: .5rem;
}

.education-content .content .year i {
    padding-right: .5rem;
}

.education-content .content h3 {
    font-size: 2rem;
}

.education-content .content p {
    font-size: 1.6rem;
    padding-top: .5rem;
}

/* ===== SKILLS ===== */
.skills {
    min-height: auto;
    padding-bottom: 12rem;
    background: var(--second-bg-color);
}

.skills h2 {
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-row .skills-column {
    flex: 1 1 4rem;
}

.skills-column .title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-column .skills-box {
    position: relative;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
}

.skills-box .skills-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}

.skills-box .skills-content:hover::before {
    width: 100%;
}

.skills-content .progress {
    padding: 1rem 0;
}

.skills-content .progress h3 {
    font-size: 1.7rem;
    display: flex;
    justify-content: space-between;
}

.skills-content .progress h3 span {
    color: var(--text-color);
}

.skills-content .progress .bar {
    height: 2.5rem;
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    padding: .5rem;
    margin: 1rem 0;
}

.skills-content .progress .bar span {
    display: block;
    height: 100%;
    border-radius: .3rem;
    background: var(--main-color);
}

/* Skills bar widths */
.skills-column:nth-child(1) .skills-content .progress:nth-child(1) .bar span { width: 90%; }
.skills-column:nth-child(1) .skills-content .progress:nth-child(2) .bar span { width: 70%; }
.skills-column:nth-child(1) .skills-content .progress:nth-child(3) .bar span { width: 70%; }
.skills-column:nth-child(2) .skills-content .progress:nth-child(1) .bar span { width: 60%; }
.skills-column:nth-child(2) .skills-content .progress:nth-child(2) .bar span { width: 30%; }
.skills-column:nth-child(2) .skills-content .progress:nth-child(3) .bar span { width: 10%; }

/* ===== PROJECT (NEW SHOWCASE STYLE) ===== */
.project {
    min-height: auto;
    padding-bottom: 8rem;
}

/* Filter tabs */
.project-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
}

.filter-btn {
    padding: .8rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    background: transparent;
    border: .2rem solid var(--main-color);
    color: var(--main-color);
    border-radius: 5rem;
    cursor: pointer;
    transition: .3s;
}

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

/* Project grid */
.project-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Showcase card */
.project-showcase {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4rem;
    background: var(--second-bg-color);
    border: .2rem solid var(--main-color);
    border-radius: 1.5rem;
    padding: 3rem;
    transition: .3s;
}

.project-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 171, 240, .15);
}

.project-showcase.reverse {
    flex-direction: row-reverse;
}

/* Browser mockup */
.showcase-browser {
    flex: 0 0 50%;
    border-radius: 1rem;
    overflow: hidden;
    border: .2rem solid rgba(0,171,240,.3);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #0d2333;
    border-bottom: .1rem solid rgba(0,171,240,.2);
}

.browser-dots {
    display: flex;
    gap: .6rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-url {
    flex: 1;
    font-size: 1.2rem;
    color: rgba(237,237,237,.5);
    background: rgba(0,0,0,.3);
    padding: .4rem 1rem;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.browser-url i { color: #27c93f; font-size: 1.2rem; }

/* Browser screens */
.browser-screen {
    height: 200px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

/* CV Preview */
.cv-preview {
    background: linear-gradient(135deg, #081b29 0%, #0d2a3e 100%);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: .8rem;
    border-bottom: .1rem solid rgba(0,171,240,.2);
    font-size: 1.1rem;
    color: var(--main-color);
    font-weight: 600;
}

.preview-nav-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--main-color);
}
.preview-nav-dot.blue { background: #4a9eff; }

.preview-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.preview-text-lines {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.pline {
    height: 8px;
    border-radius: 4px;
    background: rgba(237,237,237,.15);
}
.pline.w80 { width: 80px; }
.pline.w70 { width: 70px; }
.pline.w60 { width: 60px; }
.pline.w50 { width: 50px; }
.pline.w40 { width: 40px; }
.pline.accent { background: var(--main-color); }
.pline.blue-accent { background: #4a9eff; }

.preview-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--main-color), #005f85);
    opacity: .7;
}

.preview-skills-mini {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.pbar {
    height: 6px;
    background: rgba(0,171,240,.15);
    border-radius: 3px;
    overflow: hidden;
}

.pbar-fill {
    height: 100%;
    background: var(--main-color);
    border-radius: 3px;
    opacity: .7;
}

/* Company Preview */
.company-preview {
    background: linear-gradient(135deg, #0a1628 0%, #112240 100%);
}

.preview-header.company { border-bottom-color: rgba(74,158,255,.2); }
.preview-header.company span { color: #4a9eff; }

.preview-hero.company-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.preview-building { font-size: 3rem; }

.pbtn {
    margin-top: .5rem;
    font-size: 1rem;
    padding: .3rem .8rem;
    background: #4a9eff;
    color: #0a1628;
    border-radius: .3rem;
    display: inline-block;
    font-weight: 600;
}

.preview-services {
    display: flex;
    gap: .8rem;
}

.psvc {
    flex: 1;
    height: 30px;
    background: rgba(74,158,255,.1);
    border: .1rem solid rgba(74,158,255,.2);
    border-radius: .4rem;
}

/* Wedding Preview */
.wedding-preview {
    background: linear-gradient(135deg, #1a0a1e 0%, #2d1133 100%);
    justify-content: space-between;
}

.wedding-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.wedding-icon { font-size: 2.5rem; }

.wedding-names {
    font-size: 1.2rem;
    color: #f0c060;
    font-weight: 600;
}

.wedding-date {
    font-size: 1rem;
    color: rgba(240,192,96,.6);
}

.preview-rsvp {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    align-items: flex-end;
}

.rsvp-btn {
    font-size: 1rem;
    padding: .3rem .8rem;
    background: #f0c060;
    color: #1a0a1e;
    border-radius: .3rem;
    font-weight: 600;
}

/* Showcase info */
.showcase-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.2rem;
    padding: .3rem 1rem;
    border-radius: 2rem;
    width: fit-content;
}

.showcase-badge.live {
    background: rgba(39,201,63,.1);
    color: #27c93f;
    border: .1rem solid rgba(39,201,63,.3);
}

.showcase-info h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    line-height: 1.3;
}

.showcase-info p {
    font-size: 1.5rem;
    color: rgba(237,237,237,.7);
    line-height: 1.7;
}

.showcase-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 1.3rem;
    color: var(--main-color);
    background: rgba(0,171,240,.08);
    padding: .4rem 1rem;
    border-radius: .4rem;
    border: .1rem solid rgba(0,171,240,.2);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.project-tags span {
    font-size: 1.2rem;
    background: transparent;
    border: .15rem solid var(--main-color);
    color: var(--main-color);
    padding: .3rem 1rem;
    border-radius: 2rem;
}

.project-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: .6rem;
    padding: 1rem 2.5rem;
    height: auto;
    width: fit-content;
    font-size: 1.5rem;
    border-radius: .6rem;
}

/* Hide filtered cards */
.project-showcase.hidden {
    display: none;
}

/* ===== KONSTRUKSI SECTION ===== */
.konstruksi {
    min-height: auto;
    padding-bottom: 8rem;
    background: var(--second-bg-color);
}

.konstruksi-sub {
    position: relative;
    text-align: center;
    font-size: 1.6rem;
    color: rgba(237,237,237,.6);
    max-width: 60rem;
    margin: -2rem auto 5rem;
    line-height: 1.7;
}

.konstruksi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.konstruksi-card {
    position: relative;
    background: var(--bg-color);
    border: .2rem solid rgba(0,171,240,.3);
    border-radius: 1.2rem;
    overflow: hidden;
    transition: .3s;
}

.konstruksi-card:hover {
    transform: translateY(-8px);
    border-color: var(--main-color);
    box-shadow: 0 15px 40px rgba(0,171,240,.15);
}

.konstruksi-card.featured {
    border-color: var(--main-color);
    box-shadow: 0 0 20px rgba(0,171,240,.1);
}


/* Real project images */
.konstruksi-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.konstruksi-card:hover .konstruksi-real-img {
    transform: scale(1.06);
}

/* Maps button */
.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.2rem;
    padding: .5rem 1.2rem;
    background: rgba(0,171,240,.12);
    color: var(--main-color);
    border: .1rem solid rgba(0,171,240,.35);
    border-radius: 2rem;
    font-size: 1.3rem;
    text-decoration: none;
    transition: background .3s, color .3s;
}

.maps-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.konstruksi-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.konstruksi-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.konstruksi-img.gedung {
    background: linear-gradient(135deg, #0d2233 0%, #1a3a52 50%, #0d2233 100%);
}

.konstruksi-img.jalan {
    background: linear-gradient(135deg, #1a2d0d 0%, #2d4a1a 50%, #1a2d0d 100%);
}

.konstruksi-img.renovasi {
    background: linear-gradient(135deg, #2d1a0d 0%, #4a2e1a 50%, #2d1a0d 100%);
}

.konstruksi-img.sistem {
    background: linear-gradient(135deg, #0d1a2d 0%, #1a2d4a 50%, #0d1a2d 100%);
}

.img-overlay {
    font-size: 5rem;
    color: rgba(0,171,240,.4);
    z-index: 1;
}

/* Animated grid pattern */
.konstruksi-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,171,240,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,171,240,.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.konstruksi-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.1rem;
    padding: .3rem 1rem;
    background: rgba(0,171,240,.15);
    color: var(--main-color);
    border: .1rem solid rgba(0,171,240,.3);
    border-radius: 2rem;
    backdrop-filter: blur(5px);
}

.featured-label {
    background: rgba(255,189,46,.1);
    color: #ffbd2e;
    border-color: rgba(255,189,46,.3);
}

.konstruksi-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.konstruksi-meta {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-wrap: wrap;
}

.meta-tag {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.2rem;
    color: rgba(237,237,237,.6);
    background: rgba(237,237,237,.05);
    padding: .3rem .8rem;
    border-radius: .4rem;
}

.meta-tag.status-selesai {
    color: #27c93f;
    background: rgba(39,201,63,.08);
}

.meta-tag.status-proses {
    color: #ffbd2e;
    background: rgba(255,189,46,.08);
}

.konstruksi-body h3 {
    font-size: 1.9rem;
    color: var(--text-color);
    line-height: 1.3;
}

.konstruksi-body p {
    font-size: 1.45rem;
    color: rgba(237,237,237,.65);
    line-height: 1.7;
}

.konstruksi-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: .5rem;
    border-top: .1rem solid rgba(0,171,240,.1);
}

.spec {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: 1.2rem;
    color: var(--main-color);
}

/* CTA */
.konstruksi-cta {
    position: relative;
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(0,171,240,.05);
    border: .2rem solid rgba(0,171,240,.2);
    border-radius: 1.2rem;
}

.konstruksi-cta p {
    font-size: 1.8rem;
    color: rgba(237,237,237,.7);
    margin-bottom: 2rem;
}

.konstruksi-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    height: auto;
    padding: 1.2rem 3rem;
    font-size: 1.6rem;
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text,
.footer-iconTop {
    position: relative;
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border: .2rem solid var(--main-color);
    border-radius: .6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: .5s;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: .5s;
}

.footer-iconTop a:hover i {
    color: var(--text-color);
}

/* ===== ANIMATE ===== */
.animate {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 98;
}

.animate.home-img {
    width: 50%;
    margin-left: 50%;
}

.logo .animate,
.navbar .animate,
#menu-icon .animate,
.home.show-animate .animate {
    animation: showRight 1s ease forwards;
    animation-delay: calc(.1s * var(--i));
}

.animate.scroll {
    transition: 1s ease;
    transition-delay: calc(.1s / var(--i));
    animation: none;
}

section:nth-child(odd) .animate.scroll,
.footer .animate.scroll {
    background: var(--second-bg-color);
}

.about.show-animate .animate.scroll,
.education.show-animate .animate.scroll,
.skills.show-animate .animate.scroll,
.project.show-animate .animate.scroll,
.konstruksi.show-animate .animate.scroll,
.footer.show-animate .animate.scroll {
    transition-delay: calc(.1s * var(--i));
    width: 0;
}

/* ===== BREAKPOINTS ===== */
@media (max-width: 1200px) {
    html { font-size: 55%; }
}

@media (max-width: 991px) {
    .header { padding: 2rem 4%; }
    section { padding: 10rem 4% 2rem; }
    .home { padding: 0 4%; }
    .footer { padding: 2rem 4%; }
    .image { display: none; }
    .project-showcase,
    .project-showcase.reverse {
        flex-direction: column;
    }
    .showcase-browser { flex: none; width: 100%; }
}

@media (max-width: 900px) {
    .skills .skills-row { flex-direction: column; }
    .project-row { flex-direction: column; align-items: center; }
    .project-card { max-width: 100%; }
    .konstruksi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
    .animate.home-img { width: 55%; }
}

@media (max-width: 768px) {
    .header { background: var(--bg-color); }

    #menu-icon { display: block; }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
        z-index: 1;
        transition: .15s ease;
        transition-delay: .15s;
    }

    .navbar.active {
        left: 0;
        transition-delay: 0s;
    }

    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        z-index: -1;
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active .active-nav {
        left: 0;
        transition-delay: .25s;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: .25s ease;
        transition-delay: 0s;
    }

    .navbar.active a {
        transform: translateX(0);
        transition-delay: .25s;
    }

    .image { display: none; }
}

@media (max-width: 520px) {
    html { font-size: 50%; }
    .home-content h1 { display: flex; flex-direction: column; }
    .home-sci { width: 160px; }
    .home-sci a { width: 38px; height: 38px; }
    .image { display: none; }
}

@media (max-width: 462px) {
    .home-content h1 { font-size: 5.2rem; }
    .education { padding: 10rem 4% 5rem 5%; }
    .footer { flex-direction: column-reverse; }
    .footer p { margin-top: 2rem; text-align: center; }
    .image { display: none; }
}

@media (max-width: 371px) {
    .home { justify-content: center; }
    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }
    .home-content h1 { font-size: 4.5rem; }
    .image { display: none; }
}

/* ===== KEYFRAMES ===== */
@keyframes homeBgText {
    0%, 10%, 100% { background-position: -33rem 0; }
    65%, 85% { background-position: 0 0; }
}

@keyframes homeCursorText {
    0%, 10%, 100% { width: 0; }
    65%, 78%, 85% { width: 100%; opacity: 1; }
    75%, 81% { opacity: 0; }
}

@keyframes aboutSpinner {
    100% { transform: translate(-.1%, -.1%) rotate(360deg); }
}

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