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

:root {
    --primary: #8a2be2;
    --secondary: #ff1493;
    --tertiary: #00bfff;
    --background: #0a0a0f;
    --text: #ffffff;
    --gray: #333340;
    --light-gray: #4d4d5c;
    --card-bg: rgba(30, 30, 40, 0.6);
    --gradient: linear-gradient(to right, var(--primary), var(--secondary));
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 4px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-logo img {
    height: 35px;
    width: auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 18px;
    letter-spacing: 2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

#app-container {
    opacity: 0;
    transition: opacity 1s ease-in;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--tertiary);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background-color: rgba(10, 10, 15, 0.85);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
}

header.scrolled {
    padding: 1rem 5%;
    background-color: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    transform: translateY(-2px);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    font-weight: 600;
    position: relative;
    font-size: 1.1rem;
    opacity: 0.9;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    opacity: 1;
    background-color: rgba(138, 43, 226, 0.1);
}

nav ul li a:hover::after {
    width: 100%;
}

.cta-button-small a {
    background: var(--gradient);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    background-size: 200% auto;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button-small a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button-small a:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
    background-position: right center;
}

.cta-button-small a:hover::before {
    opacity: 1;
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        left: -50%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    position: relative;
    padding-left: 1rem;
}

.hero-content p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

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

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

/* Apply consistent size to both store badges */
.app-store-button,
.play-store-button {
    display: inline-block;
    width: 180px; /* Increased and standardized width */
    height: 53px; /* Standardized height */
    text-align: center;
    margin: 0 10px;
    padding: 0;
    background-color: transparent; /* Transparent background */
    border-radius: 8px;
    overflow: hidden;
    position: relative; /* For positioning */
    transition: transform 0.3s ease;
}

.app-store-button:hover,
.play-store-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.app-store-button img,
.play-store-button img {
    object-fit: contain;
    object-position: center;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    max-width: 100%; /* Ensure image doesn't exceed container width */
    max-height: 100%; /* Ensure image doesn't exceed container height */
}

/* Ensure the buttons container is centered */
.cta-buttons, .download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Consistent spacing */
}

.app-store-button, .play-store-button {
    margin: 0 0.75rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.app-store-button:hover, .play-store-button:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(138, 43, 226, 0.3));
}

.app-store-button:hover img, .play-store-button:hover img {
    transform: scale(1.05);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.screenshots-container {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
    /* Ensure proper positioning of the screenshots container */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.screenshot-display {
    position: relative;
    width: 280px;
    height: 580px;
    transform: rotateY(-20deg) rotateX(5deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.2);
    border-radius: 30px;
    overflow: hidden;
    /* Ensure proper positioning */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.screenshot-display:hover {
    transform: rotateY(-15deg) rotateX(3deg) scale(1.05);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(138, 43, 226, 0.4);
}

.app-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to preserve aspect ratio */
    opacity: 0;
    transition: opacity 1s ease;
    border-radius: 30px;
}

.app-screenshot.active {
    opacity: 1;
}

/* About Section */
#about {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 1), rgba(10, 10, 15, 0.9));
    position: relative;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto;
    align-items: flex-start;
}

.about-content {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(138, 43, 226, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(138, 43, 226, 0.2);
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Token Card */
.token-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(138, 43, 226, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.token-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.token-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(138, 43, 226, 0.2);
}

.token-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.token-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

#dexscreener-embed {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1rem;
}

/* Media query for mobile layout */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .token-card {
        max-width: 100%;
    }
}

/* Features Section */
#features {
    padding: 8rem 5%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 1));
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(255, 20, 147, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(138, 43, 226, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-icon {
    margin-bottom: 1.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.5);
}

.feature-icon img {
    width: 35px;
    height: 35px;
}

.feature-card h3, .feature-card p {
    position: relative;
    z-index: 1;
}

.feature-card p {
    margin-top: auto;
}

/* App Preview Section */
#app-preview {
    padding: 8rem 5%;
    background-color: var(--background);
    position: relative;
}

/* 3D Preview Container */
/* Enhanced Three.js Gallery Container */
.three-gallery-container {
    width: 100%;
    height: 700px;
    margin: 3rem auto;
    max-width: 1200px;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.7) 0%, rgba(30, 10, 40, 0.7) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.3);
    transition: all 0.5s ease;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

/* Canvas styling */
.three-gallery-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 30px;
}

/* Gallery container hover effect */
.three-gallery-container:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(138, 43, 226, 0.4);
    transform: translateY(-5px);
}

/* Gallery loading indicator */
.three-gallery-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    border: 3px solid transparent;
    border-top-color: rgba(138, 43, 226, 0.8);
    border-radius: 50%;
    animation: gallery-loader 1s linear infinite;
    z-index: 0;
}

@keyframes gallery-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallback gallery for browsers without WebGL */
.fallback-gallery {
    display: none; /* Hidden by default, shown if WebGL not available */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 2rem auto;
    max-width: 1200px;
    overflow-x: auto;
    padding: 2rem 1rem;
    background: rgba(10, 10, 15, 0.3);
    border-radius: 20px;
}

/* App Image Styling */
.app-image {
    width: 220px;
    height: 476px; /* Set fixed height to maintain aspect ratio */
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain; /* Ensure image maintains aspect ratio */
}

/* Hover effect */
.app-image:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(138, 43, 226, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Make sure the section has enough space */
#app-preview {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    height: 600px;
    max-width: 100%;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.prev-btn, .next-btn {
    background: var(--card-bg);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    margin: 0 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.prev-btn::before, .next-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.prev-btn:hover, .next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(138, 43, 226, 0.3);
}

.prev-btn:hover::before, .next-btn:hover::before {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    margin: 0 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: var(--gray);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.dot:hover::after {
    opacity: 0.5;
}

.dot.active {
    width: 30px;
    border-radius: 6px;
    background: transparent;
}

.dot.active::after {
    opacity: 1;
}



/* Download Section */
#download {
    padding: 10rem 5%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), rgba(10, 10, 15, 1));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.download-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.download-buttons {
    display: flex;
    align-items: center; /* Reverted back to center */
    margin-top: 2.5rem;
}

.floating-phone {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.floating-screen {
    height: 650px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.3);
    animation: float-rotate 6s ease-in-out infinite;
    transform-style: preserve-3d;
    border: 1px solid rgba(138, 43, 226, 0.3);
    position: relative;
    /* Ensure proper aspect ratio is maintained */
    max-height: 650px;
    width: auto;
}

.floating-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 36px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.1), rgba(255, 20, 147, 0.1));
    z-index: 1;
    pointer-events: none;
}

@keyframes float-rotate {
    0% { transform: translateY(0px) rotate(-5deg); }
    25% { transform: translateY(-15px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    75% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-5deg); }
}

/* Community Section */
#community {
    padding: 8rem 5%;
    background-color: var(--background);
}

/* Legal Pages Styles */
.legal-section {
    padding: 8rem 5%;
    background-color: var(--background);
    min-height: 100vh;
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-content .jurisdiction {
    text-align: center;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.legal-section-content {
    line-height: 1.8;
}

.legal-section-content h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    color: var(--tertiary);
}

.legal-section-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
    color: var(--secondary);
}

.legal-section-content p {
    margin-bottom: 1rem;
}

.legal-section-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.legal-section-content ul li {
    margin-bottom: 0.5rem;
}

.policy-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: var(--light-gray);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.community-card {
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.6), rgba(20, 20, 30, 0.8));
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.3);
}

.community-card:hover::before {
    transform: scaleX(1);
}

.community-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.user-info {
    padding: 1.8rem;
}

.user-info h4 {
    color: var(--tertiary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.user-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.community-card:hover .user-info h4::after {
    width: 100%;
}

.user-info p {
    font-size: 1rem;
    margin-bottom: 0;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(138, 43, 226, 0.3);
    transition: border-left-color 0.3s ease;
}

.community-card:hover .user-info p {
    border-left-color: rgba(138, 43, 226, 0.8);
}

/* Footer */
footer {
    background-color: rgba(20, 20, 30, 0.9);
    padding: 5rem 5% 2rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(138, 43, 226, 0.1), transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 25px;
    width: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-column h5 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-column h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--tertiary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.3);
    color: white;
}

.social-icon:hover::before {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.8rem;
    }

    #hero {
        flex-direction: column;
        height: auto;
        padding-top: 10rem;
        padding-bottom: 5rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 4rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .phone {
        transform: rotateY(0) rotateX(0);
    }

    #download {
        flex-direction: column;
        text-align: center;
    }

    .download-content {
        max-width: 100%;
        margin-bottom: 4rem;
    }

    .download-buttons {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 2rem;
    }

    .footer-links {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .footer-column h5::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .app-store-button, .play-store-button {
        margin: 0.75rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Legal pages responsive styles */
    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 2.2rem;
    }

    .legal-section-content h2 {
        font-size: 1.5rem;
    }

    .legal-section-content h3 {
        font-size: 1.2rem;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: rgba(20, 20, 30, 0.95);
        backdrop-filter: blur(10px);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul li {
        margin: 1.2rem 0;
        width: 100%;
    }

    nav ul li a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }

    .cta-button-small {
        margin-right: 50px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1.1rem;
    }

    .features-grid,
    .community-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        gap: 2.5rem;
        flex-direction: column;
    }

    .app-carousel {
        height: 450px;
    }

    .carousel-item img,
    .floating-screen {
        height: auto;
        max-height: 500px;
    }
}
