/* Font Face Declarations */
@font-face {
    font-family: 'KMF Damryl';
    src: url('fonts/KNFDAMRYLRegular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    overflow-x: hidden;
    background: #000;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeOut 0.8s ease-out 3s forwards;
}

.splash-title {
    font-family: 'KMF Damryl', serif;
    font-size: 4rem;
    color: #fff;
    letter-spacing: 0.05em;
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000;
    position: relative;
}

.main-content.hidden {
    display: none;
}

/* Header and Navigation */
header {
    padding: 2rem 0;
    background: #000;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
}

/* Ensure desktop view shows nav-right and hides hamburger */
@media (min-width: 769px) {
    .nav-right {
        display: flex;
    }
    
    .hamburger-menu {
        display: none;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

.nav-left {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: auto;
}

.nav-center {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-family: 'KMF Damryl', serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: #fff;
    margin: 0;
    letter-spacing: 0.05em;
    line-height: 40px;
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
    overflow-y: auto;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: opacity 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    opacity: 0.7;
}

.mobile-nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s;
    text-align: center;
}

.mobile-nav-link:hover {
    opacity: 0.7;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Landing Section */
.landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    min-height: calc(100vh - 200px);
}

.main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

.subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: #999;
    margin-bottom: 3rem;
}

.enter-app-button {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 3rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.enter-app-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.enter-app-button:active {
    transform: translateY(0);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    background: #000;
    margin-top: auto;
}

.footer-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}


/* Dialog Overlay */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in;
}

.dialog-overlay.hidden {
    display: none;
}

.dialog-content {
    background: #fff;
    padding: 3rem 4rem;
    border-radius: 8px;
    position: relative;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

.dialog-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.dialog-content a {
    color: #000;
    text-decoration: underline;
    font-weight: 500;
}

.dialog-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.dialog-close:hover {
    color: #000;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Team Page */
.team-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-in;
}

.team-page.hidden {
    display: none;
}

.team-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 2001;
    transition: opacity 0.3s;
}

.team-close:hover {
    opacity: 0.7;
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.team-image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-description {
    text-align: center;
    max-width: 600px;
}

.team-description h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.linkedin-icon-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.linkedin-icon-link:hover {
    opacity: 0.7;
}

.linkedin-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.team-description p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #999;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2.5rem;
    }

    header {
        padding: 1.5rem 0;
    }

    nav {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
        padding: 0 1rem;
        align-items: center;
    }

    .nav-left {
        justify-content: flex-start;
    }

    .header-logo {
        height: 32px;
    }

    .nav-center {
        text-align: center;
    }

    .header-title {
        font-size: 1.1rem;
        line-height: 32px;
    }

    .nav-right {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    /* Ensure footer stays at bottom in mobile */
    .main-content {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    footer {
        margin-top: auto;
    }

    main {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .landing {
        padding: 3rem 1.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .main-title {
        font-size: 2rem;
        line-height: 1.3;
        text-align: center !important;
        margin: 0 auto 1.5rem auto;
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        display: block;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .enter-app-button {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    .footer-text {
        font-size: 0.75rem;
    }

    .dialog-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .dialog-content p {
        font-size: 1rem;
    }

    .team-content {
        padding: 4rem 1.5rem 3rem;
        gap: 2rem;
    }

    .team-image-container {
        width: 220px;
        height: 220px;
    }

    .team-description {
        max-width: 100%;
    }

    .team-description h2 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .linkedin-icon {
        width: 20px;
        height: 20px;
    }

    .team-description p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .team-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.75rem;
        text-align: center !important;
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1.5rem auto;
        padding: 0;
        display: block;
        box-sizing: border-box;
    }

    .subtitle {
        font-size: 0.95rem;
        text-align: center;
        width: 100%;
    }

    .header-title {
        font-size: 1rem;
    }

    .team-image-container {
        width: 200px;
        height: 200px;
    }

    .enter-app-button {
        margin: 0 auto;
    }
}
