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

:root {
    --primary-blue: #0066ff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-white: #ffffff;
    --border-color: #e5e5e5;
}

html {
    background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 50%, #ffffff 100%);
    background-attachment: fixed;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(180deg, #ffffff 0%, #f0f8ff 50%, #ffffff 100%);
    background-attachment: fixed;
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    backdrop-filter: none !important;
    z-index: 1000;
    border-bottom: none;
    box-shadow: none !important;
}

.nav {
    background: transparent !important;
}

.nav-logo,
.nav-menu {
    background: transparent !important;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    flex: 0 0 auto;
}

.nav-logo a {
    font-size: 22px;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    position: relative;
    display: inline-block;
}

.nav-logo .logo-accent {
    position: absolute;
    top: -6px;
    left: 0.35em;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.nav-link:hover {
    color: #0066ff;
}

.nav-link.disabled {
    color: #94a3b8;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-link.disabled:hover {
    color: #94a3b8;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.btn-signin {
    padding: 6px 14px;
    background-color: rgb(219, 234, 254) !important;
    color: rgb(29, 78, 216);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    display: inline-block;
}

.btn-signin:hover {
    background-color: rgb(191, 219, 254) !important;
    color: rgb(30, 64, 175);
}

.btn-demo {
    padding: 6px 16px;
    background-color: #0066ff !important;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    display: inline-block;
}

.btn-demo:hover {
    background-color: #0052cc !important;
}

.btn-demo.disabled {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-demo.disabled:hover {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px 60px;
    margin-top: 80px;
    overflow: hidden;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    max-width: 100vw;
    max-height: 100vh;
    background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, rgba(191, 219, 254, 0.4) 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 2;
    pointer-events: none;
    min-height: 600px;
}

.music-note {
    position: absolute;
    font-size: 36px;
    color: rgba(219, 234, 254, 1);
    opacity: 0.6;
    animation: fallAndFade 8s linear forwards;
    user-select: none;
    font-family: Arial, sans-serif;
    will-change: transform, opacity;
    line-height: 1;
    top: -50px;
    display: block !important;
    visibility: visible !important;
}

.music-note::before {
    content: '♪';
    display: block;
}


.hero-container {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1200px;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    color: rgb(30, 41, 59);
    margin-bottom: 40px;
    letter-spacing: -2px;
}


.btn-hero {
    padding: 16px 32px;
    font-size: 16px;
    display: inline-block;
}

.btn-hero.disabled {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-hero.disabled:hover {
    background-color: #cbd5e1 !important;
    color: #64748b !important;
}

/* Content Grid */
.content-grid {
    padding: 20px 40px 100px;
    background: transparent;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .content-grid {
        padding: 60px 20px;
    }
}

.grid-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 20px;
    row-gap: 25px;
    perspective: 1200px;
    width: 100%;
}

.grid-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    padding-bottom: 133.33%;
    height: 0;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: all 0.3s ease-out;
    filter: blur(0px);
    opacity: 1;
    will-change: transform, filter, opacity;
}

.grid-item.loading {
    filter: blur(0px);
    opacity: 1;
}

.grid-item.loaded {
    opacity: 1;
    filter: blur(0px);
}

/* Float animations for each column maintaining staggered positions */
.grid-item.loaded:nth-child(5n+1) {
    animation: float1 4s ease-in-out infinite;
}

.grid-item.loaded:nth-child(5n+2) {
    animation: float2 4s ease-in-out infinite;
}

.grid-item.loaded:nth-child(5n+3) {
    animation: float3 4s ease-in-out infinite;
}

.grid-item.loaded:nth-child(5n+4) {
    animation: float4 4s ease-in-out infinite;
}

/* Third row items for columns 2 and 4 - using grid positioning */
.grid-item[style*="grid-column: 2"][style*="grid-row: 3"] {
    transform: translateY(-100px) scale(1.05) translateZ(25px);
}

.grid-item[style*="grid-column: 2"][style*="grid-row: 3"].loaded {
    transform: translateY(-100px) scale(1.05) translateZ(25px);
    animation: float2 4s ease-in-out infinite;
}

.grid-item[style*="grid-column: 4"][style*="grid-row: 3"] {
    transform: translateY(-95px) scale(1.04) translateZ(20px);
}

.grid-item[style*="grid-column: 4"][style*="grid-row: 3"].loaded {
    transform: translateY(-95px) scale(1.04) translateZ(20px);
    animation: float4 4s ease-in-out infinite;
}

.grid-item.loaded:nth-child(5n+5) {
    animation: float5 4s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(15px) scale(1.03) translateZ(20px); }
    50% { transform: translateY(9px) scale(1.03) translateZ(20px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(-100px) scale(1.05) translateZ(25px); }
    50% { transform: translateY(-106px) scale(1.05) translateZ(25px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(12px) scale(1.02) translateZ(15px); }
    50% { transform: translateY(6px) scale(1.02) translateZ(15px); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(-95px) scale(1.04) translateZ(20px); }
    50% { transform: translateY(-101px) scale(1.04) translateZ(20px); }
}

@keyframes float5 {
    0%, 100% { transform: translateY(14px) scale(1.03) translateZ(18px); }
    50% { transform: translateY(8px) scale(1.03) translateZ(18px); }
}

/* Staggered effect - columns pattern: odd columns down, even columns up */
/* Column 1 (odd) - items 1, 6 */
.grid-item:nth-child(5n+1) { 
    transform: translateY(15px) scale(1.03) translateZ(20px);
}

/* Column 2 (even) - items 2, 7, 12 */
.grid-item:nth-child(5n+2) { 
    transform: translateY(-100px) scale(1.05) translateZ(25px);
}

/* Column 3 (odd) - items 3, 8 */
.grid-item:nth-child(5n+3) { 
    transform: translateY(12px) scale(1.02) translateZ(15px);
}

/* Column 4 (even) - items 4, 9, 13 */
.grid-item:nth-child(5n+4) { 
    transform: translateY(-95px) scale(1.04) translateZ(20px);
}

/* Column 5 (odd) - items 5, 10 */
.grid-item:nth-child(5n+5) { 
    transform: translateY(14px) scale(1.03) translateZ(18px);
}


.grid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item:hover .grid-image {
    transform: scale(1.1);
}

.social-icon {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.social-icon.instagram::after {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.204-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.social-icon.tiktok::after {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M19.59 6.69a4.83 4.83 0 0 1-3.77-4.25V2h-3.45v13.67a2.89 2.89 0 0 1-5.2 1.74 2.89 2.89 0 0 1 2.31-4.64 2.93 2.93 0 0 1 .88.13V9.4a6.84 6.84 0 0 0-1-.05A6.33 6.33 0 0 0 5 20.1a6.34 6.34 0 0 0 10.86-4.43v-7.41a4.85 4.85 0 0 0 3.77 1.52V6.69z'/%3E%3C/svg%3E");
    background-size: 14px 14px;
    background-repeat: no-repeat;
    background-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    color: var(--bg-white);
    z-index: 5;
}

.overlay-text {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }
    
    .grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 15px 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero {
        min-height: 60vh;
        padding: 100px 20px 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 100%;
    }
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 40px;
    position: relative;
    overflow: hidden;
}

.login-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 380px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    min-height: 450px;
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.login-logo .logo-accent {
    position: absolute;
    top: -6px;
    left: 0.35em;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    color: #000000;
}

.login-welcome {
    font-size: 32px;
    font-weight: 700;
    color: rgb(30, 41, 59);
    margin-bottom: 6px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.login-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.login-signup {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.login-signup a {
    color: #0066ff;
    text-decoration: none;
    font-weight: 500;
}

.login-signup a:hover {
    text-decoration: underline;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    max-width: 100vw;
    max-height: 100vh;
    background: radial-gradient(circle, rgba(219, 234, 254, 0.6) 0%, rgba(191, 219, 254, 0.4) 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        max-width: 100%;
    }
    
    .login-card {
        padding: 32px 24px;
    }
}
