/* ==========================================
   GOOGLE FONT
========================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ==========================================
   RESET
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;

    background:
        radial-gradient(circle at top right, rgba(220,38,38,.08), transparent 30%),
        #080B14;

    color: #fff;
    overflow-x: hidden;
}


/* ==========================================
   GLOBAL
========================================== */
.container {
    position: relative;
    z-index: 2;
}

.section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: #EF4444;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: .85rem;
}

.section-title h2 {
    margin-top: 15px;
    font-size: 3rem;
    font-weight: 700;
}

.section-title p {
    color: #94A3B8;
    margin-top: 15px;
}


/* ==========================================
   NAVBAR V2
========================================== */

.navbar-custom {
    margin-top: 15px;
}

.navbar-custom .container {
    background: rgba(10,15,28,.65);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 12px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.brand-sub {
    color: #EF4444;
    font-size: .75rem;
    letter-spacing: 4px;
}

/* NAV LINK BASE */
.nav-link {
    color: #CBD5E1 !important;
    margin-left: 20px;
    font-size: .95rem;
    transition: .3s;
    position: relative; /* penting untuk underline */
}

.nav-link:hover {
    color: #fff !important;
}

.btn-navbar {
    padding: 10px 22px;
}

/* ==========================================
   NAVBAR SCROLL EFFECT (A1)
========================================== */

.navbar-custom {
    transition: all .3s ease;
}

/* STATE DEFAULT (atas halaman) */
.navbar-custom .container {
    transition: all .3s ease;
}

/* STATE SAAT SCROLL */
.navbar-custom.scrolled .container {
    background: rgba(10,15,28,.88);
    backdrop-filter: blur(22px);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 15px 45px rgba(0,0,0,.55);
    transform: translateY(-2px);
}

/* optional: shrink margin saat scroll */
.navbar-custom.scrolled {
    margin-top: 8px;
}

/* ==========================================
   NAVBAR A1 - PHOTOFOLIO VERSION
========================================== */

.navbar-custom {
    transition: all .35s ease;
}

/* default (atas) */
.navbar-custom .container {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 18px;
    padding: 12px 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

/* saat scroll */
.navbar-custom.scrolled .container {
    background: rgba(15,15,20,.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

/* sedikit “float feeling” */
.navbar-custom.scrolled {
    margin-top: 8px;
}

/* ==========================================
   ACTIVE + UNDERLINE EFFECT
========================================== */

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
    transition: 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #fff !important;
}

.nav-link.active::after {
    width: 100%;
}

/* ==========================================
   HERO
========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;

    background: url('../img/hero-bg.jpg') center center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(8,11,20,.55),
        rgba(8,11,20,.75)
    );
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;

    animation: fadeUp 1.2s ease;
}

.hero-tag {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50px;
    margin-bottom: 25px;
    color: #CBD5E1;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;

    background: linear-gradient(180deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.5rem;
    color: #EF4444;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.1rem;
    color: #CBD5E1;
    max-width: 650px;
    line-height: 1.8;
}

.hero-signature {
    margin-top: 25px;
    color: #94A3B8;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .85rem;
}

.hero-buttons {
    margin-top: 40px;
}


/* ==========================================
   BUTTON
========================================== */
.btn-red {
    background: #DC2626;
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    transition: .3s;
}

.btn-red:hover {
    background: #B91C1C;
    transform: translateY(-2px);
    color: #fff;
}


/* ==========================================
   ABOUT
========================================== */
.about-box {
    max-width: 900px;
    margin: auto;
    text-align: center;
}

.about-avatar{

    display:block;
    width:180px;
    max-width:100%;
    height:auto;
    margin:0 auto 30px;
    object-fit:contain;
    transition:.35s ease;
    filter:drop-shadow(0 12px 25px rgba(0,0,0,.35));

}

.about-box p {
    color: #CBD5E1;
    line-height: 1.9;
    margin-bottom: 20px;
}


/* ==========================================
   CARDS
========================================== */
.card-custom,
.project-card,
.story-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 20px;
    padding: 35px;
    height: 100%;
    transition: .4s;
}

.card-custom:hover,
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(220,38,38,.5);
}


/* ==========================================
   PROJECTS
========================================== */
.project-badge {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(220,38,38,.12);
    color: #EF4444;
    font-size: .8rem;
    margin-bottom: 20px;
}

.project-body h4 {
    margin-bottom: 15px;
}

.project-body p,
.card-custom p,
.story-card p {
    color: #94A3B8;
    line-height: 1.8;
}

.project-link {
    display: inline-block;
    margin-top: 20px;
    color: #EF4444;
    text-decoration: none;
}


/* ==========================================
   CTA / QUOTE
========================================== */
.quote-section {
    text-align: center;
    padding: 120px 0;
}

.quote-section h3 {
    max-width: 800px;
    margin: auto;
    font-size: 2rem;
    line-height: 1.6;
}


/* ==========================================
   FOOTER
========================================== */
footer {
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 60px 0;
    text-align: center;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-text {
    color: #94A3B8;
    margin-bottom: 20px;
}

.footer-quote {
    color: #64748B;
    font-style: italic;
}


/* ==========================================
   SCROLL INDICATOR
========================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    width: 2px;
    height: 40px;
    background: #fff;
    display: block;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(20px); }
}


/* ==========================================
   ANIMATION
========================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .section-title h2 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-desc { font-size: 1.2rem; }

    .section { padding: 80px 0; }

    .section-title h2 { font-size: 2rem; }

    .about-avatar {
        width: 140px;
        height: 140px;
    }
}
@media (max-width: 768px) {

    .navbar-custom .container {
        padding: 12px 15px;
    }

    .nav-link {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}
@media (max-width: 768px) {

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-desc {
        font-size: 1.1rem;
    }

    .hero-text {
        font-size: 1rem;
    }
}
@media (max-width: 768px) {

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-red {
        width: 100%;
        text-align: center;
    }
}
@media (max-width: 768px) {

    .card-custom,
    .project-card,
    .story-card {
        padding: 25px;
    }
}
@media (max-width: 480px) {

    .hero-title {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .navbar-custom .container {
        border-radius: 12px;
    }
}