/*
Theme Name: Parallax Accelerator
Theme URI: https://parallax.mbc.ee
Author: Parallax Team
Author URI: https://parallax.mbc.ee
Description: A custom WordPress theme for the Parallax Accelerator program
Version: 1.7.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: parallax
Domain Path: /languages
*/

/* Consolidated stylesheet
   Merged from inline <style> blocks in index.html, about.html, and Apply.html
*/


/* ---------- UI / UTILITIES ---------- */
:root {
    --font-sans: 'SF Pro Display', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --radius: 18px; /* global corner radius */
    --brand-primary: #1952ff; /* primary brand blue */
}

/* Who section — creative hover for the three left-bordered cards */
#who .glass-panel {
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease, border-color .25s ease;
    z-index: 0;
}

#who .glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08) translateY(8%);
    transition: opacity .36s ease, transform .6s cubic-bezier(.2,.9,.2,1);
    pointer-events: none;
    z-index: -1;
    filter: blur(18px);
}

#who .glass-panel:hover {
    transform: translateY(-6px);
}

#who .glass-panel:hover::before {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Variant tints matched to the left border classes */
#who .glass-panel.border-l-brand-primary::before {
    background: linear-gradient(120deg, rgba(25,82,255,0.12) 0%, rgba(25,82,255,0.06) 40%, rgba(255,255,255,0) 100%);
    box-shadow: 0 10px 40px rgba(25,82,255,0.08);
}
#who .glass-panel.border-l-brand-primary:hover { border-color: rgba(25,82,255,0.9); }

#who .glass-panel.border-l-brand-purple::before {
    background: linear-gradient(120deg, rgba(139,92,246,0.12) 0%, rgba(139,92,246,0.06) 40%, rgba(255,255,255,0) 100%);
    box-shadow: 0 10px 40px rgba(139,92,246,0.08);
}
#who .glass-panel.border-l-brand-purple:hover { border-color: rgba(139,92,246,0.9); }

#who .glass-panel.border-l-brand-accent::before {
    background: linear-gradient(120deg, rgba(45,212,191,0.12) 0%, rgba(45,212,191,0.06) 40%, rgba(255,255,255,0) 100%);
    box-shadow: 0 10px 40px rgba(45,212,191,0.08);
}
#who .glass-panel.border-l-brand-accent:hover { border-color: rgba(45,212,191,0.95); }

/* Lift and accent the small icon/graphic inside the card */
#who .glass-panel .mb-6 { transition: transform .35s ease, color .25s ease, opacity .25s ease; }
#who .glass-panel:hover .mb-6 { transform: translateY(-4px) scale(1.06); opacity: 1; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px; /* Account for fixed navbar (h-20) */
}
/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #030304; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* Noise Texture */
.noise-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Perspective Grid */
.perspective-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-move 20s linear infinite;
    top: -50%;
    left: -50%;
    pointer-events: none;
    z-index: 0;
}
@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* Glass Panel */
.glass-panel {
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.glass-panel-hover:hover {
    border-color: rgba(25, 82, 255, 0.4);
    box-shadow: 0 0 30px rgba(25, 82, 255, 0.15);
}
/* Hero stats: center icon and content inside the glass panels (only for hero grid) */
#hero-stats-layer .glass-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
}
#hero-stats-layer .glass-panel p {
    margin-top: 0.5rem;
}

/* Apply section glass-panel: subtle, lower-opacity gradient background */
#apply .glass-panel {
    background: linear-gradient(90deg, rgba(25,82,255,0.12) 0%, rgba(140,0,255,0.12) 100%) !important;
    border: 1px solid rgba(255,255,255,0.06);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    color: #fff;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #fff 30%, #1952ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 404 Page Reveal */
.reveal[style*="transform: translateY(20px)"] {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}
.reveal[style*="transform: translateY(20px)"].active {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- FORMS (Apply page) ---------- */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    background: rgba(25, 82, 255, 0.05);
    box-shadow: 0 0 0 1px var(--brand-primary);
}

/* ---------- GLOBAL RADIUS & CTA STYLES ---------- */

/* Override utility that removed rounding so all boxes remain curved */
.rounded-none { border-radius: var(--radius) !important; }

/* Ensure common panels/cards use the global radius */
.glass-panel,
.faq-item,
.form-input,
.card,
.panel { border-radius: var(--radius); }

/* Generic CTA utility — apply `.cta` to anchors/buttons you want unified */
.cta {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: 0 6px 20px rgba(25, 82, 255, 0.16);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.cta:hover,
.cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(25, 82, 255, 0.18);
    background: #154be6 !important;
}

/* Small helpers for inline buttons */
button, .inline-flex, .inline-block { border-radius: var(--radius); }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 0.5rem;
} 
.section-header {
    font-family: 'SF Pro Display', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Checkbox/Radio Custom Styling */
input[type="checkbox"], input[type="radio"] {
    accent-color: #1952ff;
    width: 1.25em;
    height: 1.25em;
    margin-right: 0.5em;
    cursor: pointer;
}

#hero-section {
    margin-top: 50px;
    margin-bottom: 100px;
}

/* Ensure all sections are visible */
section {
    position: relative;
    z-index: 10;
    background-color: transparent;
}

section#about {
    background-color: rgba(3, 3, 4, 0.5);
}

section#program {
    background-color: transparent;
}

section#faq {
    background-color: rgba(10, 10, 12, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

/* Header-specific CTA tweaks */
/* Reduce rounding for the top navigation "Apply Now" button */
#navbar .cta {
    border-radius: 10px !important;
}

/* Newsletter Section */
.group.active #parallax-newsletter-message {
    animation: fadeIn 0.5s ease-out;
}

#parallax-newsletter-message.error {
    color: #fca5a5;
}

#parallax-newsletter-message.success {
    color: #a7f3d0;
}

/* Glass panel for inputs */
#parallax-newsletter-form input::placeholder {
    color: #9ca3af;
}
