/* Core theme styles for BlockBridge Labs */

/* --------------------------------------------------
   Base / Reset
-------------------------------------------------- */
:root {
    --primary: #4361ee;
    --primary-dark: #3647c3;
    --gradient-start: #5e60ce;
    --gradient-end: #4361ee;
    --dark: #0d1b2a;
    --light-bg: #f2f6ff;
    --card-bg: #ffffff;
    --accent: #00b8d9;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--light-bg);
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* --------------------------------------------------
   Header / Nav
-------------------------------------------------- */
header {
    background: var(--dark);
    color: #fff;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .brand {
    font-weight: 700; font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 42px;
    width: auto;
}

nav a {
    color: #fff;
    margin-left: 25px;
    font-weight: 600;
    position: relative;
}
nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .25s;
}
nav a:hover::after { width: 100%; }

/* --------------------------------------------------
   Buttons (Global + Variants)
-------------------------------------------------- */
button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s;
}
button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67,97,238,0.25);
}
button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.secondary-btn { background: var(--accent); }
.secondary-btn:hover { background: #009dc0; box-shadow: 0 4px 12px rgba(0,184,217,0.25); }
.success-btn { background: #28a745; }
.success-btn:hover { background: #1e7e34; }
.danger-btn { background: #dc3545; }
.danger-btn:hover { background: #b02a37; }

/* Wallet status */
#wallet-status { margin-top: 10px; font-style: italic; color: #555; }
#wallet-error { color: #dc3545; font-weight: 600; margin-top: 6px; }

/* Wallet section spacing */
#wallet-section {
    margin: 25px 0 40px 0;
}
#wallet-section button {
    margin-bottom: 16px;
}
#wallet-status {
    margin-top: 12px;
    margin-bottom: 6px;
}

/* --------------------------------------------------
   Hero
-------------------------------------------------- */
.hero {
    padding: 110px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    transform: rotate(45deg);
    border-radius: 16px;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.hero p {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto 35px;
    opacity: 0.9;
}

/* Extra splash for Hero -------------------------------------------------- */
.hero::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    filter: blur(1px);
    animation: heroFloat 10s ease-in-out infinite;
}

@keyframes heroFloat {
    0%,100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(20px) translateX(-15px); }
}

@keyframes drift {
    0%   { transform: translate(0,0) rotate(0deg) scale(1); }
    25%  { transform: translate(40px,-30px) rotate(10deg) scale(1.15); }
    50%  { transform: translate(-25px,-50px) rotate(35deg) scale(0.9); }
    75%  { transform: translate(-50px,25px) rotate(10deg) scale(1.1); }
    100% { transform: translate(0,0) rotate(-5deg) scale(1); }
}

.hero-shape {
    position: absolute;
    background: rgba(255,255,255,0.06);
    filter: blur(0.6px);
    animation: drift var(--dur, 18s) ease-in-out infinite alternate;
    will-change: transform;
}

.hero-shape.circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    top: 20%;
    left: 8%;
}
.hero-shape.small-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    top: 75%;
    left: 78%;
    animation-delay: 3s;
}
.hero-shape.square {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    top: 45%;
    left: 90%;
    animation-delay: 6s;
}
.hero-shape.diamond {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.04);
    transform: rotate(45deg);
    top: 65%;
    left: -40px;
    animation-delay: 1.5s;
}

/* New shapes */
.hero-shape.ring {
    width: 160px;
    height: 160px;
    border: 3px solid rgba(255,255,255,0.05);
    background: transparent;
    border-radius: 50%;
    top: 30%;
    left: 48%;
    --dur: 26s;
    animation-delay: 8s;
}

.hero-shape.tiny-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 12%;
    right: 38%;
    --dur: 14s;
    background: rgba(255,255,255,0.08);
    animation-delay: 12s;
}

/* Per-shape custom durations */
.circle        { --dur: 24s; }
.small-circle  { --dur: 16s; }
.square        { --dur: 20s; }
.diamond       { --dur: 22s; }

/* Jobs disclaimer text */
.jobs-disclaimer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1rem;
    color: #555;
}

/* Centered footer */
footer {
    text-align: center;
    padding: 25px 0;
    background: #fff;
}

/* --------------------------------------------------
   Partners
-------------------------------------------------- */
.partners { padding: 60px 20px; text-align: center; }
.partners h2 { color: var(--dark); margin-bottom: 35px; }
.partner-logos {
    display: flex;
    gap: 45px;
    flex-wrap: wrap;
    justify-content: center;
}
.partner-logos .logo {
    background: #fff;
    padding: 20px 20px 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    min-width: 160px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .3s, box-shadow .3s;
}
.partner-logos .logo:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.partner-logos .logo img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 8px;
}
.partner-logos .logo-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
    line-height: 1.2;
}

/* --------------------------------------------------
   Services / Cards / Generic Card Hover
-------------------------------------------------- */
.services { background: #fff; padding: 60px 20px; }
.services h2 { text-align: center; color: var(--dark); margin-bottom: 40px; }
.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}
.service-card {
    background: var(--card-bg);
    flex: 1 1 280px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* --------------------------------------------------
   Jobs
-------------------------------------------------- */
#jobs { padding: 60px 20px; background: var(--light-bg); }
#jobs h2 { text-align: center; color: var(--dark); margin-bottom: 40px; }
.job-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    justify-content: center;
}
.job-card {
    background: var(--card-bg);
    flex: 1 1 280px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .3s, box-shadow .3s;
}
.job-card:hover { transform: translateY(-6px); box-shadow: 0 8px 26px rgba(0,0,0,0.12); }
.job-card h3 { color: var(--dark); margin-bottom: 8px; }
.job-meta { font-size: .9rem; margin-bottom: 18px; color: #555; }

/* --------------------------------------------------
   About
-------------------------------------------------- */
.about { padding: 60px 20px 30px; background: #fff; }
.about h2 { text-align: center; color: var(--dark); margin-bottom: 35px; }
.about p { max-width: 900px; margin: 0 auto 18px; line-height: 1.7; }

/* --------------------------------------------------
   Team
-------------------------------------------------- */
.team { padding: 30px 20px 60px; background: #fff; }
.team h2 { text-align: center; color: var(--dark); margin-bottom: 40px; }
.team-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}
.team-card {
    background: var(--card-bg);
    flex: 1 1 240px;
    padding: 30px 25px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.team-card img { width: 160px; height: 160px; object-fit: cover; border-radius: 50%; margin-bottom: 15px; }
.team-card h3 { margin-bottom: 5px; color: var(--dark); }
.team-card p { font-size: 0.9rem; line-height: 1.5; }

/* --------------------------------------------------
   Contact / Find Talent
-------------------------------------------------- */
.contact { padding: 60px 20px; background: var(--light-bg); }
.contact h2 { text-align: center; color: var(--dark); margin-bottom: 35px; }
.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact input, .contact textarea {
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
.contact textarea { resize: vertical; min-height: 120px; }
.contact button { align-self: flex-start; }

/* --------------------------------------------------
   Modal
-------------------------------------------------- */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); display:none; align-items:center; justify-content:center; z-index:3000; padding:20px; }
.modal { background:#fff; max-width:700px; width:90%; border-radius:8px; padding:30px; position:relative; max-height:90vh; overflow-y:auto; }
.modal h3 { color: var(--dark); margin-bottom: 15px; }
.modal p { margin-bottom: 15px; }
.modal h4 {
    margin: 22px 0 10px;
    font-size: 1.05rem;
    color: var(--primary);
}
.modal .lead {
    font-size: 1.1rem;
    margin-bottom: 18px;
}
.modal ul {
    margin: 0 0 18px 22px; /* left-indent & bottom spacing */
}
.modal ul li { margin-bottom: 6px; line-height: 1.5; }
.modal .close-btn { position:absolute; top:15px; right:20px; background:none; border:none; font-size:1.5rem; cursor:pointer; color:#333; }

/* --------------------------------------------------
   Form Page (application form)
-------------------------------------------------- */
.container { max-width: 800px; margin: 20px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.container h1 { text-align:center; color: var(--dark); }
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; margin-bottom: 5px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
input:focus { border-color: var(--primary); outline: none; }

.button-group button { margin-right: 10px; }
/* Align button groups and ensure consistent spacing */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 20px 0;
    align-items: center;
    justify-content: center;
}

/* Center presentation video elements and related UI */
#video-preview,
#playback-video {
    display: block;
    margin: 0 auto 15px;
    max-width: 100%;
}
#recording-timer {
    text-align: center;
    margin-bottom: 10px;
    font-family: monospace;
}
#presentation-thankyou {
    display: block;
    text-align: center;
    margin: 20px 0;
}

/* Form textarea styling */
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 120px;
}

/* Presentation video blocks remain styled inline if needed */ 

/* --------------------------------------------------
   Gate Overlay (Form Password Protection)
-------------------------------------------------- */
#gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}
#gate-overlay .gate-content {
    background: #fff;
    color: #000;
    padding: 40px 32px;
    border-radius: 12px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
#gate-content h2 { margin-bottom: 16px; color: var(--dark); }
#gate-password {
    width: 100%;
    padding: 12px;
    margin: 20px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
}
#gate-continue-btn {
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background .3s;
}
#gate-continue-btn:hover { background: var(--primary-dark); } 

.cta-btn {
    padding: 15px 34px; /* larger default cta */
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(67,97,238,0.3);
}
.cta-btn:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(67,97,238,0.4);
}
.view-btn { background: var(--accent); box-shadow: none; }
.view-btn:hover:not(:disabled) { background:#009dc0; box-shadow: 0 4px 12px rgba(0,184,217,0.25); } 