/* Liquid Glass Background - Darker for contrast */
.liquid-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 0% 0%, #1c1c1e 0%, #050505 100%);
    overflow: hidden;
}

.liquid-bg-global {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: #050505;
    /* Blacker background for better contrast */
    overflow: hidden;
}

.liquid-blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(120px);
    animation: liquidMove 20s infinite alternate;
}

.liquid-blob:nth-child(2) {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    right: -10vw;
    top: -10vw;
    animation-duration: 25s;
    animation-delay: -5s;
}

/* Logo Styles */
.logo-container {
    padding: 12px 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@keyframes liquidMove {
    from {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    to {
        transform: translate(20%, 20%) rotate(180deg);
    }
}

/* Global Refinements */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #050505;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.page-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Premium Components - Higher opacity for readability */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

/* Improved Typography Contrast */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffffff;
    font-weight: 800;
}

.text-gray-400 {
    color: #a1a1a6 !important;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #d2d2d7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.glass-btn-primary {
    background: #0071e3;
    border: none;
    color: white;
}

/* Split Screen Home */
.split-container {
    height: 100vh;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

@media (max-width: 768px) {
    .split-container {
        flex-direction: column;
    }

    .split-side .content-box h2 {
        font-size: 3rem;
    }

    .split-side .desc-box p {
        font-size: 1rem;
        max-width: 80vw;
    }
}

.split-side {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    cursor: pointer;
}

.split-side .content-box {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 4vw;
    z-index: 10;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    text-align: center;
}

.split-side .desc-box {
    position: absolute;
    top: 55%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 11;
    padding: 0 4vw;
    text-align: center;
}

.split-side:hover .content-box {
    transform: translateY(-40px);
}

.split-side:hover .desc-box {
    opacity: 1;
    transform: translateY(0);
}

.split-side .bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.split-side:hover .bg-img {
    transform: scale(1.05);
}

/* Dock Menu - Refined & Smooth */
.ios-dock-wrapper {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    max-width: 95vw;
    perspective: 1000px;
}

.ios-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.dock-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    min-width: 48px;
    background: transparent;
    border-radius: 14px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0;
    overflow: visible;
}

.dock-item .label {
    position: absolute;
    bottom: 100%;
    margin-bottom: 20px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    pointer-events: none;
    white-space: nowrap;
}

.dock-item .label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.7);
}

.dock-item i {
    font-size: 20px;
    transition: all 0.3s ease;
}

@media (hover: hover) {
    .dock-item:hover {
        transform: translateY(-10px) scale(1.25);
        color: #fff;
    }

    .dock-item:hover .label {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .ios-dock-wrapper {
        bottom: 20px;
    }

    .ios-dock {
        background: rgba(255, 255, 255, 0.12);
        padding: 6px;
        gap: 6px;
    }

    .dock-item {
        height: 42px;
        min-width: 42px;
    }
}

/* Footer & Final Polish Utilities */
.footer-minimal {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 140px 0;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1a6;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    text-decoration: none;
}

.social-link:hover {
    background: #0071e3;
    color: white;
    transform: translateY(-5px);
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #a1a1a6;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.back-link:hover {
    color: #0071e3;
    transform: translateX(-5px);
}

/* Custom Scrollbar Premium */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #1c1c1e;
    border: 3px solid #050505;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2c2c2e;
}