:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-hover: #1e1e1e;
    --primary-color: #00ff9d;
    --primary-glow: rgba(0, 255, 157, 0.4);
    --secondary-color: #00b8ff;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 255, 157, 0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo i {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Ticker Section */
/* Ticker Section */
.updates-ticker-section {
    padding-top: calc(var(--nav-height) + 10px);
    padding-bottom: 20px;
    /* Restored bottom padding */
    /* Removed negative margin causing overlap */
    background: var(--bg-color);
    position: relative;
    z-index: 5;
}

.ticker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ticker-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0 15px;
    /* Padding adjusted for height alignment */
    display: flex;
    align-items: center;
    gap: 15px;
    height: 60px;
    /* Fixed height for the cube */
    overflow: hidden;
    position: relative;
}

.ticker-header {
    flex-shrink: 0;
    z-index: 10;
    /* Keep on top */
}

.ticker-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-block;
}

.ticker-badge.new {
    background: rgba(0, 255, 157, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 157, 0.3);
}

.ticker-badge.planned {
    background: rgba(0, 184, 255, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 184, 255, 0.3);
}

.ticker-viewport {
    flex-grow: 1;
    height: 30px;
    /* Text height */
    position: relative;
    perspective: 1000px;
    /* 3D Perspective */
}

.ticker-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.ticker-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    /* Slightly smaller font for better fit */
    color: var(--text-secondary);
    white-space: normal;
    /* Allow text wrapping */
    line-height: 1.2;
    overflow: hidden;
    /* Removed text-overflow: ellipsis to show full text */

    /* 3D Setup */
    backface-visibility: hidden;
    transform-origin: center center -15px;
    /* Half of height (30px/2) */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;

    /* Default State: Bottom Face */
    transform: rotateX(-90deg) translateZ(15px);
    opacity: 0;
}

/* ... (skipping unchanged parts) ... */

@media (max-width: 768px) {
    .ticker-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 15px;
        /* Increased gap by 5px */
    }

    .ticker-box {
        height: 70px;
        /* Increase height for wrapped text on mobile */
    }

    .ticker-viewport {
        height: 40px;
        /* Increase viewport for wrapped text */
    }

    .ticker-item {
        font-size: 0.8rem;
        transform-origin: center center -20px;
        /* Adjust origin for new height */
    }

    /* Adjust initial transform for new origin */
    .ticker-item:not(.active):not(.exit) {
        transform: rotateX(-90deg) translateZ(20px);
    }

    .ticker-item.active {
        transform: rotateX(0deg) translateZ(20px);
    }

    .ticker-item.exit {
        transform: rotateX(90deg) translateZ(20px);
    }
}

.ticker-item.active {
    /* Front Face */
    transform: rotateX(0deg) translateZ(15px);
    opacity: 1;
}

.ticker-item.exit {
    /* Top Face */
    transform: rotateX(90deg) translateZ(15px);
    opacity: 0;
}

/* Adjust Hero padding since we added ticker */
.hero-section {
    padding-top: 35px;
    /* Restored padding to prevent overlap */
    padding-bottom: 100px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.store-btn i {
    font-size: 1.8rem;
}

.store-btn .btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn .btn-text span {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.store-btn .btn-text strong {
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    gap: 25px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item i {
    color: var(--primary-color);
}

/* Hero Image & Animation */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    animation: float 6s ease-in-out infinite;
}

.phone-mockup img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 8px solid #222;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 157, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: var(--surface-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 157, 0.3);
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 157, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-color);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 80px 0 60px 0;
    /* Increased top margin from 60px to 80px */
}

.carousel-wrapper {
    flex: 1;
    max-width: 900px;
    height: 450px;
    /* Reduced from 600px */
    position: relative;
    perspective: 2000px;
    overflow: visible;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    /* Reduced from 300px */
    height: auto;
    transform-origin: center center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    opacity: 0.4;
    filter: blur(2px);
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

/* Center item (active) */
.carousel-item.active {
    transform: translate(-50%, -50%) scale(1.2) translateZ(80px);
    /* Reduced scale from 1.3 */
    opacity: 1;
    filter: blur(0);
    z-index: 10;
}

.carousel-item.active img {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(0, 255, 157, 0.3);
}

/* Left items */
.carousel-item.left-1 {
    transform: translate(-150%, -50%) scale(0.9) translateZ(-50px) rotateY(25deg);
}

.carousel-item.left-2 {
    transform: translate(-250%, -50%) scale(0.7) translateZ(-100px) rotateY(35deg);
}

/* Right items */
.carousel-item.right-1 {
    transform: translate(50%, -50%) scale(0.9) translateZ(-50px) rotateY(-25deg);
}

.carousel-item.right-2 {
    transform: translate(150%, -50%) scale(0.7) translateZ(-100px) rotateY(-35deg);
}

/* Navigation Buttons */
.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.carousel-btn:hover {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Dots Navigation */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 5px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 968px) {
    .carousel-wrapper {
        height: 500px;
    }

    .carousel-item {
        width: 250px;
    }

    .carousel-item.active {
        transform: translate(-50%, -50%) scale(1.2) translateZ(50px);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        gap: 15px;
    }

    .carousel-wrapper {
        height: 400px;
    }

    .carousel-item {
        width: 200px;
    }

    .carousel-item.active {
        transform: translate(-50%, -50%) scale(1.1) translateZ(30px);
    }

    .carousel-item.left-1,
    .carousel-item.right-1 {
        transform: translate(-50%, -50%) scale(0.7) translateZ(-30px);
        opacity: 0.2;
    }

    .carousel-item.left-2,
    .carousel-item.right-2 {
        display: none;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.store-buttons.centered {
    justify-content: center;
}

/* Footer */
footer {
    background: #000;
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: block;
}

.footer-brand span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.link-group h4 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-group a i {
    margin-right: 8px;
    color: var(--primary-color);
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .store-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
        /* Mobile menu could be added with JS */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .store-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
