/* 
 * Asmora - Custom styles beyond Tailwind
 * Contains base styles, animations, custom components, and responsive adjustments
 */

/* ==============================
   Base Styles & Variables
   ============================== */

:root {
    --primary-color: #FF7FEA;
    --background-color: #010101;
    --text-color: #FFFFFF;
    --secondary-color: #E151FF;
    --accent-color: #714DFF;
    --border-color: #1a1a1a;
    --gray-color: #707070;
    --transition-normal: 0.3s ease;
    --border-radius-large: 3rem;
}

html {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.font-inter-tight {
    font-family: 'Inter', sans-serif;
}

/* ==============================
   Custom Backgrounds
   ============================== */

.bg-hero-pattern {
    /* Background is now set via JS to use the frame animation */
    background-size: 80%;
    background-repeat: no-repeat;
    position: relative;
}

/* Logo movie animation container */
#logo-movie-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#logo-movie-frame {
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    opacity: 0.8;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.functionality-bg {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    background-image: url('images/cta-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: var(--border-radius-large);
    overflow: hidden;
}

.cta-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
                rgba(0,0,0,0.7) 0%, 
                rgba(25,0,25,0.4) 50%, 
                rgba(93,0,93,0.3) 80%, 
                rgba(166,0,166,0.1) 100%);
    pointer-events: none;
}

.cta-bg > div {
    position: relative;
    z-index: 2;
}

/* ==============================
   Custom Gradients
   ============================== */

.gradient-text-purple {
    background: linear-gradient(91deg, #FFF 13.42%, #EE9DFF 50.96%, #FFF 88.5%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-mixed {
    background: linear-gradient(to bottom right, #714DFF, #9C83FF, #E151FF, #FFF759);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-text-cta {
    background: linear-gradient(135deg, #FFFFFF, #D170FF, #EE9DFF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==============================
   Components
   ============================== */

/* CTA section styles */
.cta-bg .rounded-full {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    transition: all var(--transition-normal);
    word-break: keep-all;
    overflow: visible;
}

/* Data visualization styling */
.data-visualization {
    position: relative;
    overflow: hidden;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-visualization img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 100%;
}

.data-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(2, 2, 19, 0.3) 0%, rgba(1, 1, 1, 0) 70%);
    z-index: 2;
}

/* Server card styles */
.server-card {
    border: 1px solid var(--border-color) !important;
    transition: border-color 0.6s ease-in-out, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.server-card:hover {
    border: 1px solid var(--primary-color) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 127, 234, 0.1);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    max-width: 300px;
    background-color: #121212;
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
    transform: translateX(0);
    display: block;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
}

.modal-content {
    background-color: #121212;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #DC26DC;
    border-radius: 14px;
    width: 80%;
    max-width: 600px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: white;
    text-decoration: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #DC26DC;
}

/* Image slider */
.logo-slide {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

/* ==============================
   Animations
   ============================== */

/* Element Appearance Animations */
.animate-on-scroll {
    will-change: transform, opacity;
}

/* Specific animation for community section */
.w-full.mt-12 .animate-on-scroll {
    transition: transform 1s ease-out, opacity 1s ease-out, box-shadow 1s ease-out !important;
    box-shadow: 0 0 0 rgba(255, 127, 234, 0);
}

.w-full.mt-12 .animate-on-scroll.opacity-100 {
    box-shadow: 0 4px 20px rgba(255, 127, 234, 0.2);
}

.translate-y-20 {
    transform: translateY(80px);
}

.translate-y-0 {
    transform: translateY(0);
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Existing animations... */

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.6; }
}

.animate-pulse-slow {
    animation: pulse 4s infinite ease-in-out;
}

/* Slider animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes zoomIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

@keyframes zoomOut {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* ==============================
   Responsive Adjustments
   ============================== */

/* Extra Large screens */
@media (min-width: 2400px) {
    .bg-hero-pattern {
        background-size: 60%;
    }
    
    .container {
        max-width: 1800px;
    }
}

/* Large Desktop */
@media (max-width: 1536px) {
    .hero-section h1 {
        font-size: 3.5rem;
    }
    
    #logo-movie-frame {
        width: 75%;
    }
}

/* Medium Desktop */
@media (max-width: 1280px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    #logo-movie-frame {
        width: 80%;
    }
    
    .grid-cols-10 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .col-span-6, .col-span-4 {
        grid-column: span 1 / span 1;
        margin-bottom: 1rem;
    }
}

/* Small Desktop / Laptop */
@media (max-width: 1024px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .data-visualization {
        height: 220px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        letter-spacing: 2%;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .data-visualization {
        height: 180px;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .py-24 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .rounded-\[3rem\] {
        border-radius: 2rem;
    }
    
    .server-card {
        height: 300px;
    }
    
    .cta-bg {
        height: auto;
        padding-top: 120px;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    .md\:grid-cols-3, .md\:grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .server-card {
        height: auto;
        min-height: 240px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .rounded-\[3rem\] {
        border-radius: 1.5rem;
    }
    
    .p-8, .p-10 {
        padding: 1.5rem;
    }
    
    .mb-16 {
        margin-bottom: 2rem;
    }
    
    .text-\[54px\] {
        font-size: 36px;
    }
    
    #logo-movie-frame {
        width: 100%;
    }
    
    /* Markdown Content */
    .markdown-content {
        padding: 1rem;
    }
    
    .markdown-content h1 {
        font-size: 1.75rem;
    }
    
    .markdown-content h2 {
        font-size: 1.5rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .hero-section p {
        font-size: 0.875rem;
    }
    
    .custom-badge, .border.border-white.rounded-full {
        padding: 0.25rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .grid-cols-1.md\:grid-cols-3 {
        gap: 1rem;
    }
    
    .rounded-\[3rem\] {
        border-radius: 1.25rem;
    }
    
    .p-8, .p-10 {
        padding: 1rem;
    }
    
    .text-\[54px\] {
        font-size: 32px;
    }
    
    .mb-10 {
        margin-bottom: 1.5rem;
    }
    
    .data-visualization {
        height: 150px;
    }
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #010101;
    z-index: 9999;
    transition: opacity 0.7s ease, transform 0.5s ease;
}

.loading-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    animation: logoReveal 1.2s ease forwards;
}

.loading-logo img {
    height: 48px;
    filter: drop-shadow(0 0 8px rgba(255, 127, 234, 0.5));
}

.loading-text {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

#loading-percentage {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(91deg, #FFF 13.42%, #EE9DFF 50.96%, #FFF 88.5%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.1) translateY(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced entrance animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-left {
    animation: fadeInLeft 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.7s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-scale {
    animation: fadeInScale 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* Enhanced Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; filter: blur(80px); }
    50% { transform: scale(1.2); opacity: 0.8; filter: blur(90px); }
    100% { transform: scale(1); opacity: 0.6; filter: blur(80px); }
}

.animate-pulse-slow {
    animation: pulse 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toast notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 14px;
} 