@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    --width: calc(100vw - 250px);
    font-family: "Montserrat", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif;
    color: white;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: #a640f5;
}

p, a, h1, h2, h3, h4, h5, h6, article {
    user-select: none;
}

a {
    color: white;
}

::-webkit-scrollbar{
    width: 10px;
    z-index: 1000;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #9900ba;
    border-radius: 44px;
    z-index: 1000;
}

.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background: #0d1117;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    overflow-y: auto;
    box-shadow: 5px 0 5px #00000063, 10px 0 10px #0000004d,
        20px 0 20px #0000004d;
    z-index: 999;
    transition: .5s ease-in-out;
    padding: 20px 0 10px;
}

.navigation::-webkit-scrollbar {
    width: 0;
}

.navigation.active {
    width: 250px;
}

/* ─── Profile Section ─── */
.nav-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    flex-shrink: 0;
    padding-top: 30px;
}

.navigation h1 {
    position: relative;
    font-size: 22px;
    text-transform: none;
    padding: 10px 15px 16px;
    margin: 0;
    cursor: pointer;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
    animation: glitch 4s infinite;
}

@keyframes glitch {
    0%, 92%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
        transform: translate(0);
    }
    93% {
        text-shadow:
            2px 0 #a640f5,
            -2px 0 #64a0ff;
        transform: translate(-2px, 1px);
    }
    94% {
        text-shadow:
            -2px 0 #a640f5,
            2px 0 #64a0ff;
        transform: translate(2px, -1px);
    }
    95% {
        text-shadow:
            2px 0 #64a0ff,
            -2px 0 #a640f5;
        transform: translate(-1px, 2px);
    }
    96% {
        text-shadow:
            -1px 0 #a640f5,
            1px 0 #64a0ff;
        transform: translate(1px, -1px);
    }
    97% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
        transform: translate(0);
    }
}

.navigation h1::before {
    content: 'Probe Orbiter';
    position: absolute;
    top: 10px;
    left: 15px;
    width: 100%;
    overflow: hidden;
    clip-path: inset(0 0 65% 0);
    color: white;
    animation: glitchTop 4s infinite;
}

@keyframes glitchTop {
    0%, 92%, 97%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    93% {
        transform: translate(3px, -1px);
        opacity: 0.8;
    }
    94% {
        transform: translate(-3px, 1px);
        opacity: 0.8;
    }
    95%, 96% {
        transform: translate(2px, 0);
        opacity: 0.6;
    }
}

.navigation h1::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a640f5, #64a0ff, transparent);
    background-size: 200% 100%;
    animation: shimmerLine 3s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes shimmerLine {
    0%, 100% { background-position: -200% 0; }
    50% { background-position: 200% 0; }
}

.navigation h1 div {
    display: none;
}

/* ─── Status Indicator ─── */
.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 6px rgba(63, 185, 80, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(63, 185, 80, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 12px rgba(63, 185, 80, 0.9); }
}

/* ─── Navigation Links ─── */
.navigation ul {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    margin-top: auto;
    padding: 10px;
    flex-shrink: 0;
}

.navigation ul li {
    position: relative;
    list-style: none;
    width: 200px;
    margin: 5px 0;
}

/* ─── Active Indicator Bar ─── */
.navigation ul li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 3px;
    background: linear-gradient(180deg, #a640f5, #64a0ff);
    border-radius: 0 3px 3px 0;
    z-index: 2;
    box-shadow: 0 0 8px rgba(166, 64, 245, 0.5);
}

.nav-icon {
    margin-right: 10px;
    font-size: 14px;
    opacity: 0.5;
    transition: 0.3s;
}

.navigation ul li a.active .nav-icon,
.navigation ul li a:hover .nav-icon {
    opacity: 1;
    color: #a640f5;
}

.navigation ul li a {
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #161b22;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 3px 3px 5px black, -3px -3px 5px #ffffff25;
    transition: 0.3s ease;
    border-left: 3px solid transparent;
}

.navigation ul li a.active {
    background: rgba(166, 64, 245, 0.08);
    border-left-color: transparent;
}

.navigation ul li a:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* ─── Quick Stats ─── */
.nav-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 90%;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #a640f5, #64a0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

/* ─── Clock + Timezone ─── */
.nav-clock {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px 0;
    flex-shrink: 0;
}

.nav-clock i {
    font-size: 12px;
    color: rgba(166, 64, 245, 0.6);
}

#nav-time {
    font-weight: 600;
    font-family: 'Montserrat', monospace;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 1px;
}

.nav-timezone {
    font-size: 10px;
    padding: 1px 5px;
    background: rgba(166, 64, 245, 0.15);
    border-radius: 3px;
    color: rgba(166, 64, 245, 0.8);
    letter-spacing: 0.5px;
}

/* ─── Contact Button ─── */
.nav-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 85%;
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(166, 64, 245, 0.2), rgba(100, 160, 255, 0.15));
    border: 1px solid rgba(166, 64, 245, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    flex-shrink: 0;
}

.nav-contact-btn i {
    font-size: 12px;
    transition: 0.3s;
}

.nav-contact-btn:hover {
    background: linear-gradient(135deg, rgba(166, 64, 245, 0.35), rgba(100, 160, 255, 0.25));
    border-color: rgba(166, 64, 245, 0.5);
    color: white;
    box-shadow: 0 0 15px rgba(166, 64, 245, 0.2);
    transform: translateY(-1px);
}

.nav-contact-btn:hover i {
    transform: translateX(2px);
}

/* ─── Copyright ─── */
.navigation > p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
    margin-top: auto;
    padding-bottom: 5px;
    flex-shrink: 0;
}

.container {
    position: relative;
    width: var(--width);
    margin-left: 250px;
    min-height: 100vh;
    background: #161b22;
    overflow-x: hidden;
    overflow-y: hidden;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.layer {
    position: absolute;
    width: var(--width);
    height: 100vh;
    margin-left: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    transition: .5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    box-shadow: 0 0 5px rgba(0, 0, 0, .5),
        0 0 10px rgba(0, 0, 0, .5),
        0 0 20px rgba(0, 0, 0, .5);
}

.layer.layer2 {
    background: transparent;
}

.layer .main {
    width: var(--width);
    min-height: 100vh;
}

.layer.active {
    margin-left: 0;
    transition-delay: .7s;
}

/* ─── Tablet (max-width: 768px) ─── */
@media (max-width: 768px) {
    .navigation {
        width: 0;
        padding: 15px 0 10px;
    }

    .navigation ul,
    .nav-profile,
    .nav-stats,
    .nav-contact-btn,
    .navigation > p {
        opacity: 0;
        transition: opacity 0.3s 0s;
        pointer-events: none;
    }

    .navigation.active ul,
    .navigation.active .nav-profile,
    .navigation.active .nav-stats,
    .navigation.active .nav-contact-btn,
    .navigation.active > p {
        opacity: 1;
        transition: opacity 0.3s 0.3s;
        pointer-events: auto;
    }

    .container {
        width: 100%;
        margin-left: 0;
    }

    .layer {
        width: 100%;
    }

    .layer.active {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active ~ .container .layer.active {
        margin-left: 250px;
    }

    .layer .main {
        width: 100vw;
        min-height: 100vh;
    }

    .about_container {
        position: relative;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        min-height: 50vh;
        width: 300vw;
        margin-left: 0;
        transition: 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .about_container.one {
        margin-left: 0;
    }

    .about_container.two {
        margin-left: -100vw;
    }

    .about_container.three {
        margin-left: -200vw;
    }

    .tip {
        margin-left: 0;
    }

    /* Modal responsive */
    .modal {
        width: 90%;
        min-height: auto;
        padding: 1rem;
    }
}

/* ─── Mobile (max-width: 480px) ─── */
@media (max-width: 480px) {
    .modal {
        width: 95%;
        padding: 0.8rem;
    }

    .modal .flex img {
        width: 40px;
        height: 40px;
    }

    .modal h3 {
        font-size: 0.95em;
    }

    .modal p {
        font-size: 0.8rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85em;
    }
}

/* Modal Styles moved from index.html */
.modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    width: 450px;
    padding: 1.3rem;
    min-height: 250px;
    position: fixed;
    z-index: 2000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(16, 16, 20, 0.95); /* Dark semi-transparent background */
    backdrop-filter: blur(12px);         /* Glass effect */
    border: 1px solid rgba(166, 64, 245, 0.3); /* Subtle purple border */
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(166, 64, 245, 0.15), 0 10px 40px rgba(0,0,0,0.5); /* Purple glow + shadow */
    color: white;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; /* Pop animation */
    opacity: 0; /* Start invisible for animation */
    max-width: 90%; /* Mobile responsive */
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal .flex img {
    border-radius: 50%; /* Circular logo */
}

.modal input {
    padding: 0.7rem 1rem;
    border: 1px solid #444;
    background: #222;
    color: white;
    border-radius: 5px;
    font-size: 0.9em;
}

.modal p {
    font-size: 0.9rem;
    color: #ccc; /* Lighter text for dark mode */
    margin: 0.4rem 0 0.2rem;
}

button {
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.4rem;
    font-weight: 700;
    background-color: #a640f5; /* Updated to match theme color */
    color: white;
    border-radius: 5px;
    text-align: center;
    font-size: 1em;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: #be71fa;
}

.btn-close {
    transform: translate(10px, -20px);
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translate(10px, -20px) scale(1.1);
}


.text-heading{
    color: white;
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
}

.text-black{
    color: white;
}

.hidden {
    display: none;
}
