/* 🎨 Custom styles for AuraLink Landing Page */

/* 🌊 Base styles */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

body {
    letter-spacing: -0.02em;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    position: relative;
    z-index: 1; /* Base z-index for body */
}

/* 🖼️ Hero section */
/* 📱 Header styling */
header {
    position: relative;
    background: transparent;
    min-height: 100vh; /* 📏 Minimum height instead of fixed */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Ensure header appears above animation */
}

#hero-animation {
    background: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Background layer */
    pointer-events: none;
}

/* 📱 Mobile-specific canvas settings */
@media (max-width: 768px) {
    #hero-animation {
        touch-action: none !important;
        -webkit-touch-callout: none !important;
    }
}

/* 🖱️ Desktop-specific canvas settings */
@media (min-width: 769px) {
    #hero-animation {
        pointer-events: auto;
        cursor: none;
    }
}

/* Fix for cursor layer */
#cursor-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50;
    pointer-events: none;
}

/* Main content wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    background-color: inherit;
}

/* 📱 Mobile optimization */
/* 📱 Mobile optimizations */
@media (max-width: 768px) {
    #hero-animation {
        height: 100vh;
    }
    
    /* 📱 Smaller text on mobile */
    header .text-4xl {
        font-size: 2.5rem;
    }
    
    header .text-lg {
        font-size: 1rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* 🔄 Enable scrolling */
    body {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: auto;
        position: relative;
    }
    
    header {
        min-height: 100vh;
        height: auto;
        position: relative;
        overflow: visible;
    }

    /* 🔊 CTA Buttons mobile optimization */
    .space-x-4 {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .space-x-4 > a {
        margin: 0 !important;
        width: 100%;
        text-align: center;
        display: block;
    }
}



/* ✨ Interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
}

a:hover, button:hover {
    transform: translateY(-2px);
}

a::before, button::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

a:hover::before, button:hover::before {
    transform: scaleX(1);
}

/* 🎯 Form elements */
input, textarea {
    font-family: 'Space Mono', monospace;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #1436F5;
    background: rgba(20, 54, 245, 0.03);
}

input::placeholder, textarea::placeholder {
    color: rgba(0,0,0,0.4);
    transition: color 0.3s ease;
}

input:focus::placeholder, textarea:focus::placeholder {
    color: rgba(20, 54, 245, 0.4);
}

/* 🎨 Section styling */
section {
    position: relative;
    overflow: hidden;
    z-index: 2; /* Ensure sections appear above animation */
    background-color: inherit; /* Ensure background is visible */
}

section::before {
    content: attr(id);
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.5;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.2em;
}

/* 📱 Grid system */
.container {
    position: relative;
}



/* 🎯 Custom animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 🎨 Custom cursors */
a, button, input[type="submit"] {
    cursor: pointer;
}

/* 📱 Responsive adjustments */
@media (max-width: 768px) {
    section::before {
        left: 1rem;
        top: 1rem;
        font-size: 0.625rem;
    }
    
    .container::before {
        opacity: 0.3;
    }
}

/* 📝 Join Section Styles */
.join-card {
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.join-card-header {
    position: relative;
    transition: background-color 0.3s ease;
}

.join-card-header::after {
    content: '↓';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.join-card.expanded .join-card-header::after {
    transform: translateY(-50%) rotate(180deg);
}

.join-card.expanded {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.join-card-content {
    background: white;
    transition: max-height 0.5s ease;
}
