@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

body {
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #000000, #1a0033, #003366);
    color: white;
}

.gradient-text {
    background: linear-gradient(90deg, #7f00ff, #00b4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, #000000, #1a0033, #003366);
}

.service-card,
.vendor-card,
.news-card,
.stat-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover,
.vendor-card:hover,
.news-card:hover,
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button {
    background: linear-gradient(90deg, #7f00ff, #00b4ff);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 180, 255, 0.4);
}

#threejs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000, #1a0033, #003366);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    position: relative;
}

.loader-logo img {
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    position: relative;
}

/* Track */
.pacman-track {
    width: 300px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Pacman */
.pacman {
    position: absolute;
    top: 20px;
    left: -60px;
    width: 50px;
    height: 50px;
    z-index: 10;
    animation: pacman-move 2s ease-in-out forwards;
}

.pacman-body {
    width: 60px;
    height: 60px;
    background: white;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    position: absolute;
}

.pacman-mouth {
    width: 55px;
    height: 60px;
    background: linear-gradient(135deg, #000000, #1a0033);
    clip-path: polygon(50% 50%, 100% 25%, 100% 75%);
    position: absolute;
    left: 5px;
    animation: pacman-chew 0.3s infinite;
}

/* Dots */
.dots {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 10px;
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
}

.dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dot-disappear 1s linear forwards;
    opacity: 1;
}

.dot:nth-child(1) {
    animation-delay: 0.45s;
}
.dot:nth-child(2) {
    animation-delay: 0.75s;
}
.dot:nth-child(3) {
    animation-delay: 0.95s;
}
.dot:nth-child(4) {
    animation-delay: 1.15s;
}

.loader-logo::after {
    content: "";
    position: absolute;
    width: 54.5px;
    height: 53px;
    background: white;
    clip-path: polygon(
        50% 0%,
        95% 25%,
        95% 75%,
        50% 100%,
        5% 75%,
        5% 25%,
        50% 50%
    );

    bottom: 47.5%;
    left: 50%;
    transform: translate(-50%, 50%) scale(0);
    z-index: 2;
    animation: pacman-land 0.6s 2s ease-out forwards;
}

/* Animations */
@keyframes pacman-move {
    0% {
        transform: translateX(0);
    }
    70% {
        transform: translateX(300px);
    }
    80% {
        transform: translateX(300px) scaleY(0.8);
    }
    90% {
        transform: translateX(300px) translateY(-30px) scaleY(1);
    }
    100% {
        transform: translateX(300px) translateY(-60px) scale(0);
        opacity: 1;
        z-index: 5;
    }
}

@keyframes pacman-chew {
    0%,
    100% {
        clip-path: polygon(50% 50%, 100% 25%, 100% 75%);
    }
    50% {
        clip-path: polygon(50% 50%, 100% 40%, 100% 60%);
    }
}

@keyframes dot-disappear {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    5% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

@keyframes pacman-land {
    0% {
        transform: translate(-50%, 50%) scale(0);
        opacity: 1;
    }
    60% {
        transform: translate(-50%, 50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 50%) scale(1);
        opacity: 1;
        background: linear-gradient(135deg, #000000, #1a0033, #003366);
    }
}

.logo-letters {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out 1.5s; /* Delay after pacman lands */
    display: flex;
    justify-content: center;
}

.logo-letters p {
    font-size: 3.5rem; /* Make the text big */
    font-weight: 900; /* Extra bold */
    color: #fff; /* White or your brand color */
    margin: 0;
    text-align: center;
    font-family: "Montserrat", "Arial Black", Arial, sans-serif; /* Use a bold, modern font */
    width: 450px;
    height: 60px;
    margin-top: 10px;
}


/* Medium screens */
@media (min-width: 480px) {
    .logo-letters p {
        font-size: 2.8rem;
    }
}

/* Large screens */
@media (min-width: 768px) {
    .logo-letters p {
        font-size: 3rem;
    }
}

/* Extra large screens */
@media (min-width: 1200px) {
    .logo-letters p {
        font-size: 4.5rem;
    }
}

.nav-links a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    padding: 0.5rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 50;
    left: 0;
    top: 100%;
}

.dropdown.active .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

.hamburger {
    display: none;
}


.burger-line {
    transition: all 0.3s;
    position: absolute;
    left: 0.5rem;
    width: 1.5rem;
    height: 0.25rem;
    background: #fff;
    border-radius: 2px;
}

.burger-top {
    top: 0.4rem;
}
.burger-mid {
    top: 1rem;
}
.burger-bot {
    top: 1.6rem;
}

.hamburger.active .burger-top {
transform: rotate(45deg) translatey(13px);
}
.hamburger.active .burger-mid {
    opacity: 0;
}
.hamburger.active .burger-bot {
transform: rotate(-45deg) translateY(-13px)
}

@media (max-width: 767px) {
    .hamburger {
        display: block;
        z-index: 101;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.95);
        flex-direction: column;
        /* align-items: flex-start; */
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s;
        display: flex;
        z-index: 200;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .dropdown-menu {
        position: static !important;
        left: 0 !important;
        top: auto !important;
        min-width: 100%;
        width: 100%;
        box-shadow: none;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(31, 41, 55, 0.98);
        margin-bottom: 1rem;
        display: none;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

@media (min-width: 768px) {
    .nav-links {
        display: flex !important;
        position: static;
        background: transparent;
        height: auto;
        width: auto;
        flex-direction: row;
        padding: 0;
        transform: none !important;
    }
}
.dropdown-menu {
    display: none;
}
.dropdown.active .dropdown-menu {
    display: block;
}
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.vendor-card {
    background-color: transparent;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vendor-logo img {
    max-height: 80px;
    max-width: 120px;
    object-fit: contain;
}

.cursor {
    display: inline-block;
    width: 2px;
    background: white;
    animation: blink 0.7s steps(1) infinite;
    vertical-align: bottom;
}

@keyframes blink {
    50% {
        background: transparent;
    }
}


.word {
    transition: color 0.2s;
    cursor: pointer;
}
.word.active {
    color: #b794f4; /* Tailwind's purple-400 */
}

