* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #05070a;
    color: #e6e6e6;
    line-height: 1.6;
}


/* =========================
   HEADER
   ========================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 140px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;

    background: rgba(5, 7, 10, 0.9);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 1000;
}


/* =========================
   NETMOSK LOGO
   ========================= */

.logo {
    display: flex;
    align-items: center;

    text-decoration: none;

    height: 110px;
}

.logo img {
    width: 110px;
    height: 110px;

    object-fit: contain;

    filter:
        blur(0.35px)
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.20));

    opacity: 0.92;

    transition: 0.3s;
}

.logo img:hover {
    filter:
        blur(0.2px)
        drop-shadow(0 0 12px rgba(255, 255, 255, 0.32));

    opacity: 1;
}


/* =========================
   NAVIGATION
   ========================= */

nav {
    display: flex;
    gap: 35px;
}

nav a {
    color: #bfc3c8;

    text-decoration: none;

    font-size: 26px;

    letter-spacing: 2px;

    transition: 0.3s;
}

nav a:hover {
    color: #ffffff;
}


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

.hero {
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;

    position: relative;

    overflow: hidden;

    margin-bottom: -10vh;

    background:
        linear-gradient(
            rgba(5, 7, 10, 0.45),
            rgba(5, 7, 10, 0.85)
        ),
        url("images/netmosk-hero.png")
        center center / cover no-repeat;
}

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at center,
            transparent 0%,
            rgba(5, 7, 10, 0.55) 75%,
            rgba(5, 7, 10, 0.95) 100%
        );

    pointer-events: none;
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 1000px;

    padding: 30px;
}


/* =========================
   INITIALIZING
   ========================= */

.boot-line {
    font-family: monospace;

    font-size: 20px;

    letter-spacing: 3px;

    color: #8f969e;

    margin-bottom: 15px;

    opacity: 0;

    white-space: nowrap;

    animation:
        boot 1.5s ease forwards;
}


/* SINGLE BLINKING CURSOR */

.boot-line::after {
    content: "";

    display: inline-block;

    width: 11px;

    height: 22px;

    margin-left: 7px;

    vertical-align: -3px;

    background: #8f969e;

    animation:
        cursorBlink 1s steps(1) infinite;
}

@keyframes boot {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cursorBlink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}


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

.hero h1 {
    font-size: clamp(70px, 12vw, 160px);

    font-weight: 700;

    letter-spacing: 18px;

    margin-right: -18px;

    text-shadow:
        0 0 30px rgba(255, 255, 255, 0.15);

    opacity: 0;

    animation:
        titleIn 1.5s ease 1.2s forwards;
}

@keyframes titleIn {

    from {
        opacity: 0;

        transform:
            translateY(15px)
            scale(0.96);

        letter-spacing: 30px;
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);

        letter-spacing: 18px;
    }
}


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

.hero p {
    margin-top: 8px;

    font-size: 18px;

    letter-spacing: 5px;

    text-transform: uppercase;

    color: #aeb4bb;

    opacity: 0;

    animation:
        subtitleIn 1s ease 2.2s forwards;
}

@keyframes subtitleIn {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


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

.button {
    display: inline-block;

    margin-top: 25px;

    padding: 14px 38px;

    border:
        1px solid rgba(255, 255, 255, 0.4);

    color: #ffffff;

    text-decoration: none;

    font-size: 12px;

    letter-spacing: 3px;

    transition: 0.3s;

    opacity: 0;

    animation:
        buttonIn 1s ease 2.8s forwards;
}

.button:hover {
    background: #ffffff;

    color: #05070a;
}

@keyframes buttonIn {

    from {
        opacity: 0;

        transform: translateY(10px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================
   SECTIONS
   ========================= */

.section {
    min-height: 70vh;

    padding: 120px 8%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;
}

.section h2 {
    font-size: 48px;

    letter-spacing: 8px;

    margin-bottom: 60px;

    text-align: center;
}


/* =========================
   PROJECT GRID
   ========================= */

.projects-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

    max-width: 1100px;

    width: 100%;

    margin: 0 auto;
}


/* =========================
   PROJECT CARD
   ========================= */

.project {
    position: relative;

    height: 260px;

    overflow: hidden;

    background: #080b0f;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;

    cursor: pointer;
}


/* PROJECT IMAGE */

.project > img {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.7s ease,
        filter 0.7s ease;
}


/* =========================
   SKYDIVE IMAGE POSITION
   ========================= */

.project:nth-child(6) > img {
    object-position: center top;
}


/* =========================
   DARK OVERLAY
   ========================= */

.project::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(5, 7, 10, 0.95),
            rgba(5, 7, 10, 0.35),
            rgba(5, 7, 10, 0.10)
        );

    z-index: 1;

    transition:
        background 0.4s ease;
}


/* =========================
   PROJECT TEXT
   ========================= */

.project-overlay {
    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    padding: 35px;

    z-index: 2;
}

.project h3 {
    font-size: 25px;

    letter-spacing: 5px;

    margin-bottom: 10px;

    color: #ffffff;

    text-shadow:
        0 0 15px rgba(0, 0, 0, 0.8);
}

.project p {
    color: #c0c5ca;

    font-size: 15px;

    line-height: 1.6;

    max-width: 600px;

    text-shadow:
        0 0 10px rgba(0, 0, 0, 0.9);
}


/* =========================
   PROJECT HOVER
   ========================= */

.project:hover {
    transform: translateY(-7px);

    border-color:
        rgba(255, 255, 255, 0.30);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45);
}

.project:hover > img {
    transform: scale(1.06);

    filter:
        brightness(0.72)
        contrast(1.08);
}

.project:hover::after {
    background:
        linear-gradient(
            to top,
            rgba(5, 7, 10, 0.92),
            rgba(5, 7, 10, 0.25),
            rgba(5, 7, 10, 0.05)
        );
}


/* =========================
   GALLERY
   ========================= */

.gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    max-width: 1200px;

    width: 100%;

    margin: 0 auto;
}


/* =========================
   GALLERY ITEM
   ========================= */

.gallery-item {
    position: relative;

    overflow: hidden;

    background: #080b0f;

    border:
        1px solid rgba(255, 255, 255, 0.10);

    min-height: 280px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


/* GALLERY IMAGE */

.gallery-item img {
    display: block;

    width: 100%;

    height: 100%;

    max-height: 420px;

    object-fit: contain;

    background: #080b0f;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}


/* =========================
   GALLERY HOVER
   ========================= */

.gallery-item:hover {
    transform: translateY(-6px);

    border-color:
        rgba(255, 255, 255, 0.30);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45);
}

.gallery-item:hover img {
    transform: scale(1.04);

    filter:
        brightness(0.82)
        contrast(1.05);
}


/* =========================
   GALLERY DESCRIPTION
   ========================= */

.section > p {
    max-width: 850px;

    margin-top: -30px;

    margin-bottom: 50px;

    text-align: center;

    color: #aeb4bb;

    font-size: 17px;

    letter-spacing: 0.5px;
}


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

.back-button {
    margin-top: 55px;

    text-align: center;
}

.back-button .button {
    opacity: 1;

    animation: none;

    margin-top: 0;
}


/* =========================
   ABOUT
   ========================= */

#about {
    text-align: center;

    background:
        rgba(255, 255, 255, 0.015);
}

#about p {
    max-width: 900px;

    margin: 0 auto 18px;

    color: #aeb4bb;

    font-family:
        "Trebuchet MS",
        Arial,
        Helvetica,
        sans-serif;

    font-size: 18px;

    line-height: 1.8;

    letter-spacing: 0.3px;
}

#about p:last-child {
    margin-bottom: 0;
}


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

#contact {
    min-height: 55vh;

    text-align: center;

    align-items: center;
}

#contact p {
    width: 100%;

    text-align: center;

    color: #8f969e;

    font-size: 16px;

    letter-spacing: 1px;
}

#contact a {
    display: inline-block;

    color: #c7ccd1;

    text-decoration: none;

    font-size: 18px;

    letter-spacing: 2px;

    transition: 0.3s;
}

#contact a:hover {
    color: #ffffff;
}


/* =========================
   VISITOR COUNTER
   ========================= */

.visitor-section {
    min-height: 35vh;

    padding: 80px 8%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    background:
        rgba(255, 255, 255, 0.008);
}


.visitor-counter {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 8px;
}


.visitor-label {
    font-family:
        "Courier New",
        monospace;

    font-size: 13px;

    letter-spacing: 5px;

    color: #777e86;

    text-transform: uppercase;
}


.visitor-number {
    font-family:
        "Courier New",
        monospace;

    font-size: 27px;

    font-weight: bold;

    letter-spacing: 6px;

    color: #b8bec5;

    padding: 8px 14px;

    min-width: 220px;

    text-align: center;

    background:
        rgba(0, 0, 0, 0.35);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.18);

    box-shadow:
        inset 0 0 15px rgba(0, 0, 0, 0.35);
}


/* =========================
   FOOTER
   ========================= */

footer {
    padding: 30px;

    text-align: center;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    color: #666d75;

    font-size: 11px;

    letter-spacing: 2px;
}


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

@media (max-width: 800px) {

    header {
        height: 80px;

        padding: 0 25px;
    }

    .logo {
        height: 70px;
    }

    .logo img {
        width: 70px;
        height: 70px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 16px;

        letter-spacing: 1px;
    }

    .hero {
        margin-bottom: -5vh;
    }

    .hero h1 {
        font-size:
            clamp(50px, 15vw, 95px);

        letter-spacing: 8px;

        margin-right: -8px;
    }

    .hero p {
        font-size: 12px;

        letter-spacing: 3px;
    }

    .boot-line {
        font-size: 15px;

        letter-spacing: 2px;
    }

    .boot-line::after {
        width: 8px;

        height: 17px;
    }

    .section {
        padding: 100px 25px;
    }

    .section h2 {
        font-size: 34px;

        letter-spacing: 5px;

        margin-bottom: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project {
        height: 240px;
    }

    .project-overlay {
        padding: 28px;
    }

    .project h3 {
        font-size: 21px;

        letter-spacing: 4px;
    }

    .project p {
        font-size: 14px;
    }

    #about p {
        font-size: 16px;

        line-height: 1.8;
    }

    #contact a {
        font-size: 16px;
    }


    /* =========================
       MOBILE GALLERY
       ========================= */

    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .gallery-item {
        min-height: 240px;
    }

    .gallery-item img {
        max-height: 500px;
    }

    .section > p {
        margin-top: -20px;

        margin-bottom: 35px;

        font-size: 15px;
    }

    .back-button {
        margin-top: 40px;
    }


    /* =========================
       MOBILE VISITOR COUNTER
       ========================= */

    .visitor-section {
        min-height: 28vh;

        padding: 60px 25px;
    }

    .visitor-label {
        font-size: 11px;

        letter-spacing: 4px;
    }

    .visitor-number {
        font-size: 21px;

        letter-spacing: 4px;

        min-width: 185px;

        padding: 7px 10px;
    }

}

/* =========================
   PI EASTER EGG
   ========================= */
.pi-easter-egg {
    display: inline-block;
    margin-left: 10px;
    width: 40px;
    height: 40px;
    opacity: 0.30;
    text-decoration: none;
    vertical-align: middle;
    transition: opacity 0.25s ease;
}

.pi-easter-egg img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pi-easter-egg:hover {
    opacity: 0.55;
}
