html {
    scroll-behavior: smooth;
}

body {
    font-family: "Oxanium", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    margin: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 100%, #00ff9d26 0%, transparent 50%),
        radial-gradient(circle at 80% 100%, #b700ff26 0%, transparent 50%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    z-index: -10;
    pointer-events: none;
}

@keyframes aurora {
    0% {
        opacity: 0.5;
        transform: translate(4rem 0);
    }
    50% {
        opacity: 0.7;
        transform: translate(-4rem 4rem);
    }
    100% {
        opacity: 0.5;
        transform: translate(4rem 0);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 100%, #00ff9d1a 0%, transparent 60%),
        radial-gradient(circle at 70% 100%, #b700ff1a 0%, transparent 60%);
    z-index: -10;
    pointer-events: none;
    animation: aurora 10s ease-in-out infinite;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 11rem;
    padding: 2.5rem 5rem 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-sections a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-sections a:hover {
    opacity: 1;
}

.logo-corner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-corner img {
    width: 3rem;
    height: auto;
    border-radius: 100%;
}

.font-toggle {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.font-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-placeholder {
    height: 12rem;
}

/* Card Section */

.card {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.business-card {
    width: 100%;
    max-width: 40rem;
    background: rgba(35, 35, 35, 0.3);
    padding: 3rem 1.5rem 3rem 3rem;
    margin-top: 8rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.1s ease;
    will-change: transform;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 255, 157, 0.1),
        inset 0 0 30px rgba(0, 255, 157, 0.05);

    backdrop-filter: blur(10px);
}

.business-card-content {
    transform-style: preserve-3d;
}

.card-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-name {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, #8b8b8b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-name > span {
    font-size: 1.5rem;
    padding-left: 0.5rem;
    font-weight: 500;
}

.card-title {
    font-size: 1.25rem;
    color: #00ff9d;
    margin-top: 0.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, #00ff9d 0%, #b700ff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #f3f3f3;
}

.info-item .additional {
    font-size: 0.875rem;
    color: #a3a3a3;
}

.card-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%);
    margin: 1rem 0;
}


/* Portals Section */

.portal-placeholder {
    height: 10rem;
}

.portals {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    overflow: hidden;
}


/* Portal Cards */
.portal-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.portal-card-container {
    border-radius: 1rem;
    padding: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 20rem;
    height: 28rem;
}

.portal-card-container:hover {
    transform: translateY(-0.5rem);
}

.portal-card-container:hover .portal-card-image::after {
    transform: scale(2);
}

.portal-card-image {
    width: 100%;
    height: 100%;
    padding: 0.5rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.portal-card-image::after {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    background: radial-gradient(circle at bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.9) 40%);
    transform: scale(1);
    transform-origin: bottom;
    transition: transform 0.5s ease-out;
    border-radius: 0.875rem;
    overflow: hidden;
}

.portal-card-image img {
    height: 100%;
    border-radius: 0.875rem;
    object-fit: cover;
}

.portal-card {
    background: rgba(35, 35, 35, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    background-size: cover;
    background-position: center;
}

.portal-card h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.portal-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.portal-card p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    gap: 0.5rem;
    background: rgba(40, 40, 40, 0.9);
    border: none;
    color: #ffffffc8;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.portal-button:hover {
    background: rgba(22, 22, 22, 0.9);
}


/* Bottom Navigation */

.link-placeholder {
    height: 10rem;
}

.bottom-nav {
    min-height: 40vh;
    padding: 8rem 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.bottom-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
    width: fit-content;
    height: 6rem;
    padding: 2rem 4rem;
    border: 1px solid rgba(139, 139, 139, 0.7);
    border-radius: 4rem;
}

.bottom-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
    position: relative;
}

.bottom-nav a:hover {
    opacity: 1;
}

.bottom-nav a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ff9d;
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 5px #00ff9d,
        0 0 10px #00ff9d,
        0 0 20px #00ff9d;
}

.bottom-nav a:hover::after,
.bottom-nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    color: #8d8d8d;
    margin: 1rem 0;
    font-weight: 600;
}

footer p {
    margin: 0;
}

/* Mobile Support */

@media (max-width: 900px) {
    .bottom-nav-container {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .business-card {
        padding: 2rem;
        margin: 2rem;
        margin-top: 4rem;
    }

    .card-name {
        font-size: 2rem;
    }

    .card-name > span {
        font-size: 1.25rem;
        display: block;
        padding-left: 0;
        margin-top: 0.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-info {
        margin-top: 1.5rem;
        font-size: 0.9rem;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-item .additional {
        font-size: 0.8rem;
    }

    .bottom-nav-container {
        flex-direction: column;
        gap: 2rem;
        height: auto;
        padding: 2rem;
        margin-bottom: 4rem;
        text-align: center;
        border: none;
    }

    .bottom-nav a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .business-card {
        margin: 1rem;
        padding: 1.5rem;
    }

    .card-name {
        font-size: 1.75rem;
    }

    .bottom-nav-container {
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 0 1rem;
        margin-bottom: 4rem;
    }
}