html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    height: 100%;
    margin: 0;
}

body {
    margin-bottom: 60px;
    background-color: black;
    background-size: cover;
}

.fullscreen-center {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* or any background you like */
    padding: 20px;
}

body::-webkit-scrollbar {
    display: none;
}

.space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    color: white;
}



.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
}

.space-mono-regular.green {
    color: #00FFCC;
}

.space-mono-regular-italic {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
}

.dm-sans-bold {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    /* Responsive text scaling */
    font-size: clamp(2rem, 20vw, 15rem);
    line-height: 1;
    margin: 0;
}

.dm-sans {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: white;
    text-align: center;
}

.navbar {
    position: fixed;
    top: 2%;
    left: 50%;
    transform: translate(-50%, -100%);
    width: 80%;
    z-index: 5;
    background: none; /* semi-transparent */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .navbar.visible {
        transform: translate(-50%, 0); /* drop into view */
        opacity: 1;
        pointer-events: auto;
    }

    .navbar.hide {
        transform: translate(-50%, -120%); /* slide up and hide */
        opacity: 0;
        pointer-events: none;
    }

.navbar-nav {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

    .navbar-nav .nav-link.space-mono-regular {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        border-radius: 10px;
        padding: 2px 16px;
        margin: 0 10px;
        letter-spacing: 2px;
        font-size: 1.25rem;
        color: #00FFCC !important;
        transition: background 0.3s ease;
        display: inline-block;
    }

        .navbar-nav .nav-link.space-mono-regular:hover {
            background: rgba(255, 255, 255, 0.25);
            color: #C5172E !important;
        }

.navbar .container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.intro-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    color: white;
    font-size: 5rem;
    transition: none;
    opacity: 1;
    pointer-events: none;
    letter-spacing: 2px;
}

.intro-section {
    height: 100vh;
    background: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-content {
    min-height: 120vh;
    color: white;
    padding: 100px 40px;
    position: relative;
    z-index: 1;
    background: url('../Assets/home page.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
}

.Ntext {
    margin-top: 36vh;
    font-size: 8vh;
    font-family: Cambria;
}

.frosted-box {
    background: rgba(255, 255, 255, 0.1); /* semi-transparent */
    backdrop-filter: blur(10px); /* blur behind the element */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border-radius: 15px; /* rounded corners */
    padding: 20px; /* space inside the box */
    color: white; /* ensure text is visible */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    max-height: 80vh;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;
}

    .frosted-box::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .glass-card:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }

.connect-button {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .connect-button:hover {
        background: rgba(255, 255, 255, 0.25);
        color: #C5172E;
        transform: translateY(-2px);
    }

.invisible {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.background-anim-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: 5px solid rgba(255, 255, 255, 0.196);
    background: none;
    opacity: 1;
    animation: floatShape linear infinite;
    pointer-events: none;
}

    .shape.circle {
        border-radius: 50%;
    }

    .shape.square {
        border-radius: 10px;
    }

    .shape.triangle {
        width: 100px;
        height: 100px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        background: none;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    }

    .shape.pentagon {
        width: 100px;
        height: 100px;
        background: none;
        border: 2px solid rgba(255, 255, 255, 0.1);
        clip-path: polygon( 50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38% );
    }

    .shape.code-snippet {
        border: none;
        background: none;
        color: rgba(255, 255, 255, 0.29);
        font-family: monospace;
        white-space: pre;
        font-size: 1.2rem;
    }

@keyframes floatShape {
    from {
        transform: translateY(0) rotate(0deg);
    }

    to {
        transform: translateY(-120vh) rotate(360deg);
    }
}

.timeline-section {
    position: relative;
    padding: 100px 0;
    background: transparent;
    color: white;
}

.timeline {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    border-left: 4px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

    .timeline-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-item::before {
        content: '';
        position: absolute;
        left: -14px;
        top: 0;
        width: 20px;
        height: 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 2px solid white;
        border-radius: 50%;
    }

.timeline-content {
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    width: 100%;
}

.timeline-item.left .timeline-content {
    margin-left: 30px;
    text-align: left;
}

.timeline-item.right .timeline-content {
    margin-left: 30px;
    text-align: left;
}

button.frosted-box {
    padding: 4px;
    color: white;
    transition: 0.3s ease;
}

    button.frosted-box:hover {
        color: #C5172E;
    }

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(to right, #4ade80, #22d3ee);
    width: 0%;
    z-index: 1000;
}

.btn.visible {
    opacity: 1;
}

.btn.invisible {
    opacity: 0;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

    .modal[style*="display: block"] {
        opacity: 1;
        pointer-events: auto;
    }

.modal-dialog {
    margin: 10% auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s ease-in-out;
}

    /* Zoom on hover */
    .modal-content:hover {
        transform: scale(1.02);
    }

/* Full-page blur overlay */
.blur-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1049;
    display: none;
}

    .blur-bg.active {
        display: block;
    }

input.form-control,
textarea.form-control {
    background: rgba(255, 255, 255, 0.05); /* semi-transparent */
    backdrop-filter: blur(4px); /* frosted effect */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    input.form-control::placeholder,
    textarea.form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    input.form-control:focus,
    textarea.form-control:focus {
        background: rgba(255, 255, 255, 0.1);
        border-color: #00ff99;
        box-shadow: 0 0 5px rgba(0, 255, 153, 0.3);
        color: #fff;
    }

.scrollable-table {
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
}

    /* Custom Scrollbar (Webkit based browsers) */
    .scrollable-table::-webkit-scrollbar {
        width: 8px;
    }

    .scrollable-table::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    .scrollable-table::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 153, 0.6);
        border-radius: 10px;
    }

        .scrollable-table::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 255, 153, 0.9);
        }

html {
    scroll-behavior: smooth;
}

.scrollable-wrapper {
    position: relative;
    max-width: 200px;
    max-height: 60px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.scrollable-description {
    max-height: 60px;
    overflow-y: auto;
    padding-right: 10px; /* space for scroll */
    white-space: pre-wrap;
    word-break: break-word;
    padding: 0 !important;
    margin: 0 !important;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

    /* Hide scrollbar - Chrome, Safari */
    .scrollable-description::-webkit-scrollbar {
        display: none;
    }


.scrollable-description {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease-in-out;
}

    .scrollable-description:hover {
        overflow-y: auto;
    }

.frosted-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .frosted-box:hover {
        transform: translateY(-5px);
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.3);
    }

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d0d0d;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    margin: 20px auto 0;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top: 4px solid #27ae60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}







@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .intro-text {
        font-size: 2rem;
        padding: 1rem 0;
        text-align: center;
    }

    .main-content {
        background: none;
        padding: 2rem 1rem;
    }

    .Ntext {
        font-size: 2rem;
        text-align: center;
        word-break: break-word;
        background: none;
        color: #00FFCC;
    }

    .frosted-box {
        padding: 1rem !important;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .glass-card {
        margin: 1rem auto !important;
    }

    .timeline-item.left,
    .timeline-item.right {
        float: none !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }

    .timeline-content {
        margin: 1rem auto;
    }

    .navbar {
        width: 100%;
    }

    .col-md-6.text-center.px-4.fade-in.d-none.d-md-block {
        display: none !important;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: black;
    background-size: cover;
}

.fullscreen-center {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

body::-webkit-scrollbar {
    display: none;
}

.space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
    color: white;
}

.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
}

.space-mono-regular.green {
    color: #00FFCC;
}

.space-mono-regular-italic {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
}

.dm-sans-bold {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50vh;
    font-size: clamp(2rem, 20vw, 15rem);
    line-height: 1;
    margin: 0;
}

.dm-sans {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: white;
    text-align: center;
}


/* --- Navbar Styling --- */
.navbar {
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(6px);
}

    .navbar .nav-link {
        font-size: 1rem;
        letter-spacing: 0.5px;
        transition: color 0.3s ease, transform 0.2s ease;
    }

        .navbar .nav-link:hover {
            color: #42A5F5 !important;
            transform: translateY(-2px);
        }

/* Mobile navbar adjustments */
@media (max-width: 991px) {
    .navbar-collapse {
        border-top: 1px solid #1F2933;
        padding: 15px 0;
    }

    .navbar .nav-item {
        margin: 8px 0;
    }
}




/* On mobile – darker background for readability */
@media (max-width: 991px) {
    .glass-nav {
        background: rgba(15, 15, 20, 0.65);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        border-top: 1px solid #1F2933;
        padding: 15px 0;
    }
}

/* Navbar link hover animation */
.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

    .navbar-nav .nav-link:hover {
        color: #42A5F5 !important;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0%;
        height: 2px;
        background-color: #42A5F5;
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }

@media (min-width: 992px) {
    .navbar {
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        box-shadow: none !important;
    }
}




/* --- Custom Navbar Toggler --- */
.custom-toggler {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 23px;
    height: 17px;
    background: transparent;
    padding: 0;
    transition: all 0.4s ease;
}

.toggler-bar {
    height: 1px;
    width: 100%;
    background-color: #00FFCC; /* Green when closed */
    border-radius: 0px;
    transition: all 0.4s ease;
}

/* When the navbar is expanded */
.custom-toggler[aria-expanded="true"] .toggler-bar {
    background-color: transparent; /* Red when open */
    border: solid #6a41b1 2px;
    transform: scale(1.2);
}

/* Shape transformation — turns into a square */
.custom-toggler[aria-expanded="true"] {
    width: 24px;
    height: 24px;
    border: solid #258cfb 2px;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
}

    .custom-toggler[aria-expanded="true"] .toggler-bar:nth-child(1),
    .custom-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
        opacity: 0;
    }

    .custom-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
        width: 60%;
        height: 60%;
        border-radius: 3px;
    }

.navbar-toggler:focus {
    outline: 2px solid transparent;
    box-shadow: none;
}



.footer {
    text-align: center;
    padding: 1rem;
    margin-top: auto; /* this keeps it stuck at the bottom */
    background: rgb(28, 95, 82, 0.70);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-top: 1px solid #1F2933;
}