/* Modern Reset & Variables */
:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --primary-color: #3b82f6;
    --accent-color: #f97316;
    --card-bg: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-hero: linear-gradient(135deg, #FF6B6B 0%, #556270 100%);
    /* Placeholder for more complex one */
    --transition-speed: 0.3s;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    /* Ensure logo works on dark mode */
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

/* Animated Background Blobs */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    animation: float 10s infinite alternate;
}

.hero::before {
    top: -50px;
    left: -50px;
    background: var(--accent-color);
}

.hero::after {
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 50px) scale(1.1);
    }
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text h1 span {
    color: var(--accent-color);
    background: linear-gradient(to right, var(--accent-color), #fcd34d);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #94a3b8;
}

.store-buttons {
    display: flex;
    gap: 1rem;
}

.btn-store {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-store:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    border-color: transparent;
}

.btn-store i {
    font-size: 1.8rem;
}

/* 3D Phone Mockup Container */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    /* Enable 3D space */
}

.phone-card-wrapper {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 12px solid #1e293b;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 3;
}

.screen-content {
    width: 100%;
    height: 100%;
    background-image: url('ponto.png');
    background-size: cover;
    background-position: center;
    opacity: 0.9;
}

/* Floating Elements around phone */
.floating-badge {
    position: absolute;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transform: translateZ(30px);
    /* Lift off the plane */
}

.badge-1 {
    top: 100px;
    left: -60px;
    animation: float-badge 6s infinite ease-in-out;
}

.badge-2 {
    bottom: 100px;
    right: -60px;
    animation: float-badge 8s infinite ease-in-out reverse;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateZ(30px) translateY(0);
    }

    50% {
        transform: translateZ(30px) translateY(-10px);
    }
}

/* Features Section */
.features {
    padding: 100px 5%;
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    padding: 15px;
    border-radius: 16px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #94a3b8;
}

/* Footer */
footer {
    padding: 60px 5% 30px;
    border-top: 1px solid var(--glass-border);
    background: #0b1120;
    text-align: center;
}

.footer-links {
    margin: 2rem 0;
}

.footer-links a {
    margin: 0 15px;
    color: #94a3b8;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: #475569;
    margin-top: 20px;
}

/* Scroll Animations Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .store-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        margin-top: 60px;
    }

    .badge-1,
    .badge-2 {
        display: none;
        /* Hide floating badges on mobile */
    }
}