/* ==========================
   NAVBAR
========================== */

.navbar {
    padding: 20px 0;
    transition: .3s;
    background: transparent;
}

.navbar-brand {
    font-size: 25px;
    letter-spacing: 1px;
}

.nav-link {
    color: #ffffff !important;
    margin-left: 25px;
    font-size: 16px;
    transition: .3s;

}

.nav-link:hover {
    color: #ffc107 !important;
}

/* saat scroll */

.navbar-scroll {
    background:
        rgba(15, 15, 15, .85);
    backdrop-filter:
        blur(10px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .4);

}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .3);
}

.navbar-toggler:focus {
    box-shadow: none;
}


/* ==========================
   GLOBAL
========================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif !important;
    background: #0f0f0f;
    color: #ffffff;
}


h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
}

p {
    color: #a1a1aa;
    line-height: 1.8;
}

/* ==========================
   HERO
========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right,
            rgba(255, 193, 7, .18),
            transparent 40%),
        linear-gradient(135deg,
            #090909,
            #111827);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 50px;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, .1);
    color: white;
}

.hero-section h1 {
    letter-spacing: -2px;
}

.typing-text {
    color: #ffc107;
    min-height: 40px;
}

.hero-description {
    max-width: 550px;
    font-size: 18px;
}

.hero-image {
    width: 430px;
    height: 430px;
    object-fit: cover;
    border-radius: 50%;
    border:
        8px solid #ffc107;
    box-shadow:

        0 0 60px rgba(255, 193, 7, .35);
    animation:
        floating 4s ease-in-out infinite;

}

@keyframes floating {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }

}

/* ==========================
 SOCIAL
========================== */

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #181818;
    color: white;
    transition: .3s;
}

.social-icon:hover {
    background: #ffc107;
    color: #000;
    transform:
        translateY(-5px);

}

/* ==========================
 SECTION
========================== */

.section-dark {
    background: #121212;
    padding: 100px 0;
}

.tech-section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

/* ==========================
 SKILL CARD
========================== */

.skill-card {
    background: #181818;
    border:
        1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 30px 10px;
    text-align: center;
    transition: .35s;

}

.skill-card i {
    font-size: 40px;
    color: #ffc107;
    margin-bottom: 15px;
}

.skill-card:hover {
    transform:
        translateY(-10px);
    border-color: #ffc107;
    box-shadow:
        0 15px 40px rgba(255, 193, 7, .15);
}


/* ==========================
 TECH STACK
========================== */
.tech-card {
    position: relative;
    background: #181818;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: .3s;
    overflow: hidden;
}

/* ==========================
   SERVER LED STATUS
   DEFAULT = RUNNING (GREEN)
========================== */
.tech-card::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow:
        0 0 8px #00ff66,
        0 0 20px rgba(0, 255, 102, .8);
    animation: serverRunning 1.5s infinite;
    transition: .3s;
}

@keyframes serverRunning {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 1;
    }
}

/* ==========================
   HOVER = WARNING (YELLOW)
========================== */
.tech-card:hover {
    background: #202020;
    color: #ffc107;
    transform: translateY(-8px);
    border-color: #ffc107;
    box-shadow:
        0 15px 40px rgba(255, 193, 7, .25);
}

.tech-card:hover::before {
    background: #ffc107;
    box-shadow:
        0 0 8px #ffc107,
        0 0 25px rgba(255, 193, 7, .9);
}

/* ==========================
   FOOTER LINE
========================== */
.tech-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #ffc107;
    opacity: .6;
}

/* ==========================
   CLICK = ERROR (RED)
========================== */
.tech-card.error {
    border-color: #ff0000;
    box-shadow:
        0 0 30px rgba(255, 0, 0, .35);
}

.tech-card.error::before {
    background: #ff0000;
    box-shadow:
        0 0 8px #ff0000,
        0 0 25px rgba(255, 0, 0, .9);
    animation: errorLed .5s infinite;
}

@keyframes errorLed {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }

    100% {
        opacity: 1;
    }
}

/* ==========================
 TIMELINE
========================== */

.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

.timeline:before {
    display: none;
}

.timeline-item {
    background: #181818;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    transition: .3s;
}

.timeline-item:nth-child(odd) {
    border-left: 4px solid #ffc107;
}

.timeline-item:nth-child(even) {
    border-right: 4px solid #ffc107;
}

.timeline-item span {
    color: #ffc107;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

/* ==========================
 CONTACT
========================== */

.contact-section {
    padding: 100px 0;
    background:
        linear-gradient(135deg,
            #111827,
            #090909);
}

.contact-section h2 {
    font-size: 45px;
}

/* ==========================
 BUTTON
========================== */

.btn-warning {
    background: #ffc107;
    border: none;
    color: #000;
    border-radius: 50px;
    padding:
        14px 35px;
    font-weight: 700;
}

.btn-warning:hover {
    background: #ffd54f;
    transform:
        translateY(-3px);
    box-shadow:
        0 0 30px rgba(255, 193, 7, .5);
}

.btn-outline-light {
    border-radius: 50px;
    padding:
        14px 35px;
}

#backTop {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #ffc107;
    color: #000;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* ===================================
   TABLET & MOBILE
=================================== */

@media(max-width:992px) {

    /* NAVBAR */

    .navbar-collapse {
        margin-top: 10px;
        background: #181818;
        padding: 15px;
        border-radius: 15px;
    }

    .nav-link {
        margin-left: 0;
        padding: 12px;
    }

    /* GLOBAL */

    body {
        letter-spacing: 0;
    }

    p {
        letter-spacing: .3px;
    }

    /* HERO */

    .hero-section {
        text-align: center;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-section h1 {
        font-size: 42px;
        line-height: 1.15;
        letter-spacing: -1px;
    }

    .typing-text {
        font-size: 24px;
        min-height: 35px;
        overflow: hidden;
    }

    .hero-description {
        margin: auto;
        font-size: 16px;
        line-height: 1.8;
        padding: 0 15px;
    }

    .hero-image {
        width: 300px;
        height: 300px;
        margin-top: 50px;
    }

    .hero-section .btn {
        margin-bottom: 15px;
    }

    .hero-section .btn-outline-light {
        margin-left: 0 !important;
    }

    .social-links {
        justify-content: center;
        margin-top: 35px;
    }

    /* SECTION */

    .section-dark {
        padding: 60px 0;
    }

    .tech-section {
        padding: 60px 0;
    }

    .contact-section {
        padding: 60px 0;
    }

    /* TIMELINE */

    .timeline:before {
        left: 10px;
    }

    .min-vh-100 {
        min-height: 0 !important;
    }
}

/* ===================================
   MOBILE SMALL
=================================== */


@media(max-width:576px) {

    /* HERO */
    .hero-section {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero-section h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .typing-text {
        font-size: 22px;
    }

    .hero-description {
        font-size: 15px;
        padding: 0 10px;
    }

    .hero-image {
        width: 260px;
        height: 260px;
        margin-top: 40px;
    }

    /* BUTTON */

    .hero-section .btn {
        width: 55%;
    }

    /* SECTION TITLE */

    .section-title h2 {
        font-size: 32px;
    }

    /* CARD */

    .skill-card {
        padding: 25px 10px;
    }

    .skill-card i {
        font-size: 35px;
    }

    .tech-card {
        padding: 20px 10px;
        font-size: 15px;
    }
}