/*
 * Forbes Dealmaker Landing Page
 * Based on TemplateMo 596 Electric Xtra
 * https://templatemo.com/tm-596-electric-xtra
 *
 * Brand Colors:
 * Red: #BA3E4D, #E65F6F
 * Blue: #0064A2, #1C8FD6
 * Dark: #02070D
 * Light: #FFFFFF
 */

@charset "utf-8";

/* Font Faces */
@font-face {
    font-family: 'Graphik';
    src: url('../assets/fonts/Graphik XXCond-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid';
    src: url('../assets/fonts/Euclid Circular B Regular-27df.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid';
    src: url('../assets/fonts/EuclidCircularA-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Euclid';
    src: url('../assets/fonts/EuclidCircularB-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* CSS Variables for Brand Colors */
:root {
    --color-red-primary: #BA3E4D;
    --color-red-secondary: #E65F6F;
    --color-blue-primary: #0064A2;
    --color-blue-secondary: #1C8FD6;
    --color-dark: #02070D;
    --color-light: #FFFFFF;
}

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

body {
    font-family: 'Euclid', 'Rajdhani', sans-serif;
    background: var(--color-dark);
    color: var(--color-light);
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
}

/* Animated background with pattern */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, transparent 2%, rgba(186, 62, 77, 0.03) 2%, rgba(186, 62, 77, 0.03) 3%, transparent 3%),
        radial-gradient(circle at 75% 75%, transparent 2%, rgba(0, 100, 162, 0.03) 2%, rgba(0, 100, 162, 0.03) 3%, transparent 3%);
    background-size: 80px 80px;
    animation: grid-move 30s linear infinite;
    z-index: -2;
}

/* Animated shapes */
.shapes-container {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    opacity: 0.1;
}

.shape-circle {
    width: 300px;
    height: 300px;
    border: 2px solid var(--color-red-primary);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: float-rotate 20s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid rgba(0, 100, 162, 0.2);
    top: 60%;
    right: 15%;
    animation: float-rotate 25s ease-in-out infinite reverse;
}

.shape-square {
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-blue-secondary);
    transform: rotate(45deg);
    bottom: 20%;
    left: 20%;
    animation: float-rotate 22s ease-in-out infinite;
}

@keyframes float-rotate {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(20px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-10px) rotate(270deg) scale(1.05);
    }
}

/* Gradient overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(186, 62, 77, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 100, 162, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: -1;
    animation: gradient-shift 10s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 80px); }
}

/* Floating particles */
.particle {
    position: fixed;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
}

.particle::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-red-primary);
    box-shadow: 0 0 10px var(--color-red-primary), 0 0 20px var(--color-red-primary);
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Header (No Navigation Menu - Only Logo + CTA) */
header#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

header#navbar.scrolled {
    padding: 15px 50px;
    background: rgba(2, 7, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(186, 62, 77, 0.1);
    box-shadow: 0 5px 30px rgba(186, 62, 77, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px 20px;
}

.hero-bg-image {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: url('../assets/images/adam_dolnik.webp') top center no-repeat;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    animation: fade-in-up 1s ease-out;
    z-index: 10;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 220px;
}

/* Text Rotator Styles */
.text-rotator {
    position: relative;
    min-height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.text-set {
    position: absolute;
    width: 100%;
    opacity: 0;
    display: none;
}

.text-set.active {
    opacity: 1;
    display: block;
}

.glitch-text {
    font-family: 'Graphik', 'Orbitron', monospace;
    font-size: clamp(3rem, 12vw, 6rem);
    font-weight: 700;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(186, 62, 77, 0.5);
    overflow: hidden;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: charFlyIn 0.5s ease-out forwards;
}

@keyframes charFlyIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.char.out {
    animation: charFlyOut 0.3s ease-in forwards;
}

@keyframes charFlyOut {
    to {
        opacity: 0;
        transform: translateY(-30px) rotateX(90deg);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-weight: 300;
    animation: fade-in 1s ease-out 0.5s both;
}

.subtitle.visible {
    animation: subtitleFade 0.8s ease-out 0.5s forwards;
}

@keyframes subtitleFade {
    to {
        opacity: 0.6;
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: var(--color-red-primary);
    z-index: -1;
    text-shadow: -2px 0 var(--color-red-primary);
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: var(--color-blue-secondary);
    z-index: -1;
    text-shadow: 2px 0 var(--color-blue-secondary);
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(33% 0 33% 0); transform: translate(-2px); }
    40% { clip-path: inset(66% 0 0 0); transform: translate(2px); }
    60% { clip-path: inset(0 0 66% 0); transform: translate(1px); }
    80% { clip-path: inset(25% 0 50% 0); transform: translate(-1px); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(50% 0 25% 0); transform: translate(2px); }
    40% { clip-path: inset(0 0 75% 0); transform: translate(-2px); }
    60% { clip-path: inset(75% 0 0 0); transform: translate(-1px); }
    80% { clip-path: inset(40% 0 40% 0); transform: translate(1px); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

.hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 1.2rem;
    opacity: 0.8;
}

.hero-separator {
    color: var(--color-red-primary);
}

.cta-container {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 100;
}

.cta-button {
    padding: 15px 40px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Graphik', 'Orbitron', monospace;
    font-weight: 700;
}

.cta-primary {
    background: linear-gradient(45deg, var(--color-red-primary), var(--color-blue-secondary));
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 0 30px rgba(186, 62, 77, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(186, 62, 77, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(186, 62, 77, 0.8);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(186, 62, 77, 0.6);
}

.cta-large {
    padding: 20px 60px;
    font-size: 1.2rem;
}

/* Lead Section */
.lead-section {
    padding: 100px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lead-container {
    animation: fadeIn 0.8s ease-out;
}

.lead-text {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--color-light), var(--color-red-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead-description {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 40px;
}

.lead-quote {
    border-left: 3px solid var(--color-red-primary);
    padding-left: 30px;
    margin: 40px 0;
    text-align: left;
}

.lead-quote p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--color-light);
}

.lead-quote cite {
    font-size: 1.1rem;
    color: var(--color-red-secondary);
    font-style: normal;
}

/* Benefits Section */
.benefits {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Graphik', 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(45deg, var(--color-red-primary), var(--color-blue-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(186, 62, 77, 0.2);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    padding: 15px 0;
    padding-left: 30px;
    position: relative;
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(186, 62, 77, 0.1);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-red-primary);
    font-size: 1.2rem;
}

.benefits-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-graphic {
    width: 300px;
    height: 300px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.benefits-graphic::before,
.benefits-graphic::after {
    content: '';
    position: absolute;
    border: 2px solid var(--color-red-primary);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(186, 62, 77, 0.5);
}

.benefits-graphic::before {
    width: 100%;
    height: 100%;
    animation: rotate 20s linear infinite;
}

.benefits-graphic::after {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-color: var(--color-blue-secondary);
    animation: rotate 15s linear infinite reverse;
    box-shadow: 0 0 30px rgba(28, 143, 214, 0.5);
}

/* Speaker Section */
.speaker {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.speaker-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.speaker-visual {
    display: flex;
    justify-content: center;
}

.speaker-image-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(186, 62, 77, 0.3);
    box-shadow: 0 0 40px rgba(186, 62, 77, 0.3);
}

.speaker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.speaker-text {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(186, 62, 77, 0.2);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.speaker-name {
    font-family: 'Graphik', 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--color-light), var(--color-red-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.speaker-text p {
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Program Section */
.program {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.program-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.program-block {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(186, 62, 77, 0.2);
    border-radius: 10px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

.program-block-title {
    font-family: 'Graphik', 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--color-red-secondary);
    text-transform: uppercase;
}

.program-list {
    list-style: none;
}

.program-list li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    opacity: 0.85;
    font-size: 1.05rem;
    line-height: 1.5;
}

.program-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-blue-secondary);
}

.program-description {
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Partners Section */
.partners {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.partner-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(186, 62, 77, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.partner-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-red-secondary);
    margin-bottom: 20px;
}

.partner-logo-placeholder {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

.partner-logos-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.partner-logos-row .partner-logo-placeholder {
    flex: 1;
}

/* Final CTA Section */
.final-cta {
    padding: 120px 20px;
    text-align: center;
    position: relative;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(186, 62, 77, 0.1), transparent);
    z-index: -1;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-title {
    font-family: 'Graphik', 'Orbitron', monospace;
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(45deg, var(--color-light), var(--color-red-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(186, 62, 77, 0.2);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    opacity: 0.6;
    font-size: 0.9rem;
}

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

.copyright a:hover {
    color: var(--color-blue-secondary);
    text-shadow: 0 0 10px currentColor;
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        transparent 50%,
        rgba(186, 62, 77, 0.01) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 30px rgba(186, 62, 77, 0.5);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 10px 40px rgba(186, 62, 77, 0.7);
    }
}

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

/* Responsive */
@media (max-width: 992px) {
    .benefits-content,
    .speaker-content,
    .program-container {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .speaker-visual {
        order: -1;
    }

    .benefits-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    header#navbar {
        padding: 15px 20px;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 0 20px;
    }

    .glitch-text {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .text-rotator {
        min-height: 150px;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-separator {
        display: none;
    }

    .cta-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .lead-text {
        font-size: 1.4rem;
    }

    .partners-grid {
        grid-template-columns: 1fr;
    }

    .final-cta-title {
        font-size: 1.8rem;
    }

    .benefits-graphic {
        width: 200px;
        height: 200px;
    }

    .speaker-image-container {
        width: 280px;
        height: 280px;
    }

    .shape-circle,
    .shape-triangle,
    .shape-square {
        transform: scale(0.6);
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 24px;
    }

    .header-cta {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .cta-large {
        padding: 15px 40px;
        font-size: 1rem;
    }
}
