:root {
    --bg-dark: #0a0a0c;
    --bg-card: #141417;
    --brand-primary: #6366f1;
    --brand-secondary: #a855f7;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    /* Container handles scroll */
}

/* SNAP CONTAINER */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

/* HERO SECTION */
.hero {
    background: url('assets/r3investing-cabecera.png') no-repeat center center/cover;
    background-color: #111;
    image-rendering: -webkit-optimize-contrast;
    /* Enhance clarity */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(10, 10, 12, 0.7) 0%,
            rgba(10, 10, 12, 0.4) 50%,
            rgba(10, 10, 12, 0.8) 100%);
    pointer-events: none;
}

/* NAVBAR */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    height: 40px;
}


.logo img {
    height: 150%;
    /* width: 200px; */
    display: block;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--brand-primary);
}

.btn-nav {
    background: var(--brand-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
}

/* CONTENT */
.content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    background: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.max-w-px {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 20px -10px var(--brand-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -10px var(--brand-primary);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    margin-left: 1rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: var(--glass);
}

.social-link i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.social-link.tv:hover {
    border-color: #2962ff;
    color: #2962ff;
}

.social-link.x:hover {
    border-color: #ffffff;
    color: #ffffff;
}

/* Fix for buttons in About section to be responsive */
@media (max-width: 768px) {
    .content .actions .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* DEMO SECTIONS */
.demo-section {
    background-color: var(--bg-dark);
}

.alt-bg {
    background-color: #0f172a;
}

h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

h2 span {
    color: var(--brand-primary);
}

.grid-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
}

.card-demo {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: left;
    transition: border-color 0.3s;
}

.card-demo:hover {
    border-color: var(--brand-primary);
}

.card-demo h3 {
    font-family: 'Outfit', sans-serif;
    margin-bottom: 1rem;
    color: var(--white);
}

/* IDEAS SECTION */
.ideas-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.tradingview-preview {
    width: 100%;
    display: block;
    transition: transform 0.8s ease;
}

.ideas-image-wrapper:hover .tradingview-preview {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ideas-image-wrapper:hover .image-overlay {
    opacity: 1;
}

.w-full {
    width: 100%;
}

.max-w-5xl {
    max-width: 1100px;
}

/* FOOTER SECTION */
.footer-section {
    background: linear-gradient(to bottom, var(--bg-dark), #000);
}

.footer-minimal {
    position: absolute;
    bottom: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* SCROLL INDICATOR */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--brand-primary);
    position: absolute;
    left: 50%;
    margin-left: -2px;
    top: 6px;
    border-radius: 2px;
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

/* ANIMATIONS */
.fade-up {
    animation: fadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .navbar nav {
        display: none;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }
}