/* style.css - EventFlux */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;800&display=swap');

:root {
    --bg-dark: #07090f;
    --bg-card: rgba(12, 16, 28, 0.92); /* Darker and highly opaque for high contrast */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.4);
    
    --shadow-card: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.08);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background & Flow Ribbon */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.1), transparent 25%);
}

.stream-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

.stream-canvas.fg {
    z-index: 99; /* Flow over standard elements but below the main header (header is z-index 100) */
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(7, 9, 15, 0); /* Explicitly zero-opacity black to avoid white-flashes on webkit */
    transition: background-color 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem; /* Increased for better readability */
    transition: color 0.3s ease;
}

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

.lang-selector {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem; /* Increased font size */
    font-weight: 600;
    transition: all 0.3s;
}

.lang-btn:hover, .lang-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Reusable Overlay Class for High Contrast Blocks */
.overlay-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

/* Common Section */
section {
    padding: 150px 5%; /* Increased from 100px for more breathable spacing */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(7, 9, 15, 0.7), rgba(7, 9, 15, 0.9)), url('../images/bg-hero.png') center/cover no-repeat fixed;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 20px var(--accent-glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

/* Platform Section */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.platform-text-block {
    padding: 50px 40px;
}

.platform-image-block {
    padding: 0;
    display: flex;
    height: 100%;
    min-height: 400px;
}

.platform-dashboard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.platform-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 30px;
    text-align: center;
}

.platform-content {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.platform-content p {
    margin-bottom: 20px;
}

.highlight-box {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    margin-top: 40px;
    display: inline-block;
    border-left: 4px solid var(--accent-primary);
}

.hardware-tag {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-top: 30px;
    font-weight: bold;
}

/* Node Selection Section */
.nodes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.node-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08); /* Slightly stronger border */
    border-radius: 20px;
    padding: 0; /* Changed to 0 so the image touches edges */
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.node-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.node-content {
    padding: 30px;
}

.node-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.node-card:hover {
    transform: translateY(-10px);
    background: rgba(20, 24, 39, 0.8);
    border-color: rgba(255,255,255,0.1);
}

.node-card:hover::before {
    opacity: 1;
}

.node-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.node-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.node-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    color: var(--accent-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255,255,255,0.05);
}

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

.submit-btn {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Architecture */
@media (max-width: 1024px) {
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-image-block {
        min-height: 350px;
        order: -1; /* Display image above the text on mobile for better flow */
    }

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

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .nodes-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .nav-links {
        display: none; /* Simplifies nav for mobile footprint */
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    section {
        padding: 100px 5%; /* Increased from 80px */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
    
    .platform-subtitle {
        font-size: 1.1rem;
    }

    .platform-text-block {
        padding: 30px 20px;
    }
    
    .platform-image-block {
        min-height: 250px;
    }

    .node-content {
        padding: 20px;
    }
    
    .node-image {
        height: auto;
    }

    .contact-info {
        padding: 25px 20px;
    }

    .form-control {
        padding: 12px;
    }

    .main-header {
        padding: 15px 5%;
    }
    
    .highlight-box {
        padding: 20px;
    }
}
