:root {
    --primary-color: #6c63ff;
    --secondary-color: #ff69b4;
    --accent-color: #00bfff;
    --bg-color: #0a0a0a;
    --white: #ffffff;
}

/* Global Animations */
@keyframes gradientFlow {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

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

@keyframes pulse {
    0% { transform: scale(1) }
    50% { transform: scale(1.05) }
    100% { transform: scale(1) }
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    transform: scaleY(1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Header Styles */
header {
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.contact-btn {
    background: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
}

/* Hero Section */
#hero {
    padding: 8rem 5% 4rem;
    text-align: center;
    height: -webkit-fill-available;
}

.hero-content {
    padding: 8rem 5% 4rem;
    text-align: center;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    padding: 0 20px;
}

.video-placeholder {
    width: 80%;
    max-width: 1200px;
    height: 400px;
    margin: 3rem auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(108, 99, 255, 0.1);
    height: -webkit-fill-available;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(108, 99, 255, 0.1), rgba(255, 105, 180, 0.1));
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradientFlow 8s ease infinite;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.typing-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    min-height: 2em;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #8A84FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-container {
    margin-top: 3rem;
    width: 100%;
    height: 400px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.3);
}

.cta-button:hover::before {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}

/* Video Container Styles */
.video-container {
    width: 100%;
    max-width: 848px;
    margin: 2rem auto;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

#demo-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.video-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: background-color 0.3s ease;
}

.video-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pause-icon,
.mute-icon {
    display: none;
}

@media screen and (max-width: 768px) {
    .video-container {
        margin: 1rem auto;
    }
    
    .video-controls {
        padding: 0.8rem;
    }
    
    .video-btn {
        width: 36px;
        height: 36px;
    }
    
    .video-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Vanta Background */
#vanta-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #000000, #0a0a0a);
}

/* Discover Section */
#discover {
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
}

.discover-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
}

.story-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.story-text {
    color: var(--white);
    line-height: 1.8;
}

.story-text p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.story-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.story-image img {
    max-width: 40%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.3));
}

@media screen and (max-width: 768px) {
    .story-image img {
        max-width: 50%;
    }
}

/* Features Section */
#features {
    padding: 4rem 5%;
    margin-bottom: 8rem;
    position: relative;
    z-index: 2;
}

#features h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    padding: 0 20px;
}

.feature-card {
    background: rgba(108, 99, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(108, 99, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.2);
}

.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Blogs Section */
#blogs {
    margin-top: 8rem;
    padding-top: 4rem;
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
}

#blogs h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

#blogs .subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    opacity: 0.8;
}

.blog-grid {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    padding: 0 20px;
}

.blog-main {
    flex: 2;
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
}

.blog-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-image {
    width: 100%;
    background: rgba(108, 99, 255, 0.1);
}

.blog-main .blog-image {
    height: 300px;
}

.blog-card .blog-image {
    height: 150px;
}

.blog-content {
    padding: 1.5rem;
}

.blog-main .blog-content {
    background: var(--bg-color);
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
}

.blog-card .blog-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.blog-text {
    flex: 1;
}

.tag {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.blog-main .tag {
    margin-bottom: 1rem;
}

.blog-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.blog-content p {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 1rem;
}

/* Newsletter Section */
#newsletter {
    padding: 4rem 0;
    background: transparent;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    transition: transform 0.3s ease;
}

.newsletter-content:hover {
    transform: scale(1.02);
}

#newsletter h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

#newsletter p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 5px;
    background: transparent;
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 0.75rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

/* Support Section */
#support {
    padding: 2rem 5%;
    margin-top: 2rem;
}

.support-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(108, 99, 255, 0.05);
    max-width: 1200px;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.15);
}

.support-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.support-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #333;
}

.support-info h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.support-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: pulse 2s infinite;
}

.status-text {
    color: var(--white);
    font-size: 0.875rem;
    opacity: 0.7;
}

.support-info p {
    color: var(--white);
    opacity: 0.8;
    font-size: 0.9rem;
}

.chat-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.chat-btn:hover {
    transform: translateY(-2px);
    background: #5046E4;
}

/* Contact Section */
#contact {
    padding: 4rem 5%;
    position: relative;
    z-index: 1;
    margin-top: 4rem;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 0 20px;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    padding: 2rem 5%;
    background: rgba(108, 99, 255, 0.1);
    text-align: center;
}

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

/* Responsive Design */
@media screen and (min-width: 1400px) {
    .gradient-text {
        font-size: 4rem;
    }
    
    .typing-text {
        font-size: 1.8rem;
    }
    
    .video-placeholder {
        height: 500px;
    }
}

@media screen and (max-width: 1200px) {
    .gradient-text {
        font-size: 3.2rem;
    }
    
    .typing-text {
        font-size: 1.4rem;
    }
    
    .video-placeholder {
        height: 400px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        padding: 1rem;
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        margin: 0;
    }
    
    .gradient-text {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.2rem;
    }
    
    .video-placeholder {
        height: 300px;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        order: -1;
    }
    
    .story-image img {
        max-width: 60%;
    }
    
    .discover-container,
    .contact-container {
        padding: 2rem;
    }
    
    .blog-grid {
        flex-direction: column;
    }
    
    .blog-main {
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .gradient-text {
        font-size: 2rem;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .video-placeholder {
        height: 250px;
    }
    
    .nav-links {
        padding: 0.8rem;
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .story-image img {
        max-width: 80%;
    }
    
    .discover-container,
    .contact-container {
        padding: 1.5rem;
    }
    
    .cta-button,
    .more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }
}

/* Fix for iOS Safari viewport height issue */
@supports (-webkit-touch-callout: none) {
    .video-placeholder,
    #hero {
        height: -webkit-fill-available;
    }
}

/* Ensure proper scaling for high-density displays */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for responsive changes */
* {
    transition: padding 0.3s ease, margin 0.3s ease, font-size 0.3s ease;
}

/* Fix for content shifting during transitions */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Base responsive container */
.hero-content,
.discover-container,
.features-grid,
.blog-grid,
.contact-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* More Button Styles */
.more-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

.more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(108, 99, 255, 0.3);
}

.more-btn:hover::before {
    transform: translateX(100%);
    transition: transform 0.6s ease;
}

.more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.2);
}
