/* P6 Technologies Capital - main.css */
/* ==========================================
   CSS Variables & Reset
   ========================================== */
:root {
  --accent: #6c63ff;
  --accent-dark: #5a52d5;
  --bg: #0d0f1a;
  --bg2: #14162a;
  --bg3: #1a1c32;
  --surface: #1e2038;
  --border: rgba(108,99,255,0.15);
  --text: #e8eaf0;
  --text-muted: #8b8fa8;
  --radius: 10px;
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

/* ==========================================
   Dark Theme Application (R-THEME1)
   ========================================== */
body {
  background-color: var(--bg) !important;
  color: var(--text) !important;
  font-family: Roboto, sans-serif;
  font-size: 18px !important;
  line-height: 1.9;
}
html, body { width: 100%; overflow-x: hidden; }

h1 { font-size: 61px !important; line-height: 1.1; font-weight: 700; color: #ffffff; }
h2 { font-size: 43px !important; line-height: 1.2; font-weight: 700; color: #ffffff; }
h3 { font-size: 28px !important; line-height: 1.3; font-weight: 600; color: #ffffff; }
h4 { font-size: 18px !important; line-height: 1.5; font-weight: 600; color: #ffffff; }
p { line-height: 1.85; color: rgba(232,234,240,0.88); }
a { outline: none !important; }

/* ==========================================
   Funding Bar (position:fixed ONLY — R-FUNDING-BAR1)
   ========================================== */
#funding-bar {
  display: none;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 10100;
  background-color: var(--accent-dark) !important;
  color: #ffffff !important;
  padding: 10px 5%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 14px;
  font-weight: 500;
}
#funding-bar a, #funding-bar strong, #funding-bar span { color: #ffffff !important; }
#funding-bar button {
  color: rgba(255,255,255,0.85) !important;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 10px;
  font-size: 13px;
}
#funding-bar a.fb-link { text-decoration: underline; margin-left: 8px; }

/* ==========================================
   Navigation
   ========================================== */
.custom-navbar {
  background: rgba(13,15,26,0.97) !important;
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 10000;
  border-bottom: 1px solid var(--border);
  transition: top 0.3s;
  margin-bottom: 0;
}
.custom-navbar .container { max-width: 1200px; }
.custom-navbar .navbar-brand {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.custom-navbar .navbar-brand img { height: 30px; width: auto; display: inline-block; vertical-align: middle; }
.custom-navbar .nav li a {
  color: rgba(232,234,240,0.85) !important;
  font-size: 15px !important;
  font-weight: 500;
  padding: 26px 14px;
  transition: color 0.2s;
}
.custom-navbar .nav li a:hover { color: var(--accent) !important; background: transparent !important; }
.custom-navbar .nav li.active > a { color: var(--accent) !important; }
.custom-navbar .navbar-toggle { border: none; padding-top: 10px; }
.custom-navbar .navbar-toggle .icon-bar { background: var(--accent); }
.custom-navbar .navbar-collapse { background: rgba(13,15,26,0.99); }

@media(min-width:768px){
  .custom-navbar { padding: 0; }
  .custom-navbar.top-nav-collapse { background: rgba(13,15,26,0.99) !important; }
}

.page-top { padding-top: var(--nav-height, 72px); }

/* ==========================================
   Hero / Home Section
   ========================================== */
#home {
  background-image: linear-gradient(rgba(0,0,0,0.58),rgba(0,0,0,0.58)), url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(10,15,40,0.35);
  background-blend-mode: multiply;
  color: #ffffff;
  display: flex;
  align-items: center;
  min-height: 600px;
  text-align: center;
  position: relative;
}
#home h3 { font-size: 15px !important; letter-spacing: 3px; color: rgba(255,255,255,0.75); text-transform: uppercase; font-weight: 500; }
#home h1 { font-size: 61px !important; color: #ffffff; margin: 16px 0; }
#home hr { width: 240px; border-color: rgba(108,99,255,0.5); }
#home .btn {
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 40px;
  margin-top: 32px;
  margin-right: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}
#home .btn:hover { background: rgba(255,255,255,0.12); }
#home .btn-primary { background: var(--accent) !important; border-color: var(--accent) !important; }
#home .btn-primary:hover { background: var(--accent-dark) !important; border-color: var(--accent-dark) !important; }

/* ==========================================
   Page Hero (inner pages)
   ========================================== */
.page-hero {
  background-image: linear-gradient(rgba(0,0,0,0.62),rgba(0,0,0,0.62)), url('../images/about-hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(10,15,40,0.35);
  background-blend-mode: multiply;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 20px 60px;
}
.page-hero h1 { font-size: 43px !important; color: #ffffff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto; }

/* ==========================================
   Sections
   ========================================== */
section { padding-top: 90px; padding-bottom: 90px; }
.section-title { padding-bottom: 40px; text-align: center; }
.section-title strong { color: var(--accent); font-size: 48px; display: block; line-height: 1; }
.section-title h2 { font-size: 43px !important; color: #ffffff; margin-top: 8px; }
.section-title hr { width: 60px; border-color: var(--accent); border-width: 3px; margin: 16px auto; }
.section-label { display: inline-block; font-size: 13px !important; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-subtitle { color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ==========================================
   What We Do / Services
   ========================================== */
#work { background-color: var(--bg); text-align: center; }
#work .service-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
  background: var(--surface);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}
#work .cards-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
#work .cards-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
#work .service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(108,99,255,0.15); border-color: var(--accent); }
#work .service-card:hover h3 { color: var(--accent) !important; }
#work h3 { font-size: 20px !important; color: #ffffff; margin-top: 16px; }
#work .medium-icon { font-size: 36px !important; color: var(--accent); }
#work p { color: var(--text-muted); }
#work hr { border-color: var(--border); width: 60px; margin: 12px auto; }

/* ==========================================
   About Section
   ========================================== */
#about { background: var(--bg2); color: #ffffff; }
#about h3 { color: var(--accent) !important; }
#about h1 { color: #ffffff; }
#about p { color: rgba(232,234,240,0.88); }
#about img { border-radius: var(--radius); width: 100%; }
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
@media(max-width:768px){ .spotlight-section { grid-template-columns: 1fr; } }
.story-img { width: 100%; overflow: hidden; border-radius: var(--radius); }
.story-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center; border-radius: var(--radius); display: block; }

.nav-tabs { border-bottom: 1px solid var(--border); margin-top: 20px; }
.nav-tabs > li > a { color: var(--text-muted) !important; font-size: 15px; padding: 10px 18px; border: 0; border-radius: 0; }
.nav-tabs > li > a:hover { background: transparent; color: #ffffff !important; }
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus { color: var(--accent) !important; background: transparent; border: none; border-bottom: 2px solid var(--accent); }
.tab-content { padding-top: 20px; }
.tab-content p { color: rgba(232,234,240,0.88); }

.investors-section { margin-top: 48px; padding: 32px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); }
.investors-section h3 { color: var(--accent) !important; font-size: 22px !important; margin-bottom: 12px; }
.investors-section p { color: rgba(232,234,240,0.82); margin: 0; }
.investor-anchor { font-weight: 700; color: #ffffff; }

/* ==========================================
   Stats Bar
   ========================================== */
.stats-bar { background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 48px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; padding: 0 2rem; text-align: center; }
.stat-item h2 { font-size: 43px !important; color: var(--accent) !important; margin: 0 0 8px; }
.stat-item p { color: var(--text-muted); font-size: 14px !important; margin: 0; text-transform: uppercase; letter-spacing: 0.05em; }
@media(max-width:768px){ .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* ==========================================
   Team Section
   ========================================== */
#team { background: var(--bg); text-align: center; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 2rem; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(108,99,255,0.12); }
.team-card img {
  width: 100%;
  max-width: 160px;
  aspect-ratio: 1/1;
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2rem;
}
.team-card h3 { font-size: 22px !important; color: #ffffff; margin-bottom: 6px; }
.team-card .team-role { color: var(--accent); font-size: 14px !important; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.team-card .bio { color: var(--text-muted); font-size: 15px !important; line-height: 1.7; }

/* ==========================================
   Portfolio Section
   ========================================== */
#portfolio { background: var(--bg2); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.portfolio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(108,99,255,0.12); border-color: var(--accent); }
.portfolio-card h3 { font-size: 24px !important; color: #ffffff; margin-bottom: 8px; }
.portfolio-card .portfolio-amount { font-size: 29px !important; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.portfolio-card .portfolio-round { font-size: 13px !important; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 16px; }
.portfolio-card p { color: rgba(232,234,240,0.8); font-size: 15px !important; line-height: 1.7; }
.portfolio-card .sector-tag { display: inline-block; background: rgba(108,99,255,0.15); color: var(--accent); font-size: 12px !important; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-top: 12px; border: 1px solid rgba(108,99,255,0.3); }

/* ==========================================
   Insights Preview
   ========================================== */
.insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 2rem; }
.insight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(108,99,255,0.1); }
.insight-card-thumb { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: var(--bg3); }
.insight-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.insight-card-body { padding: 1.5rem; }
.insight-card-body h3 { font-size: 20px !important; color: #ffffff; margin-bottom: 8px; }
.insight-card-body p { color: var(--text-muted); font-size: 15px !important; line-height: 1.65; }
.insight-card-meta { font-size: 13px !important; color: var(--accent); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.insight-card-link { display: inline-block; color: var(--accent); font-size: 14px !important; font-weight: 600; margin-top: 12px; text-decoration: none; }
.insight-card-link:hover { text-decoration: underline; }

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--accent-dark) 0%, #3b3a8c 100%);
  text-align: center;
  padding: 80px 20px;
}
.cta-section h2 { color: #ffffff !important; font-size: 43px !important; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.88) !important; max-width: 600px; margin: 0 auto 32px; }
.btn-cta { display: inline-block; background: #ffffff; color: var(--accent) !important; font-weight: 700; font-size: 16px !important; padding: 14px 40px; border-radius: 6px; text-decoration: none; transition: all 0.3s; }
.btn-cta:hover { background: rgba(255,255,255,0.9); transform: translateY(-2px); }

/* ==========================================
   Contact Section
   ========================================== */
#contact {
  background-image: linear-gradient(rgba(0,0,0,0.72),rgba(0,0,0,0.72)), url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--bg2);
  color: #ffffff;
}
#contact h2 { color: #ffffff; padding-bottom: 16px; }
#contact h3 { font-size: 18px !important; color: #ffffff; }
#contact p { color: rgba(255,255,255,0.88); }
#contact .medium-icon { color: var(--accent); padding-right: 10px; }
#contact .contact-info div { padding: 12px 0; }
#contact form { padding-top: 20px; }
#contact .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  color: #ffffff;
  box-shadow: none;
  margin-bottom: 12px;
  height: 46px;
}
#contact .form-control::placeholder { color: rgba(255,255,255,0.5); }
#contact textarea.form-control { height: auto; }
#contact input[type="submit"] {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  height: 50px;
  border-radius: 4px;
  width: 100%;
  transition: background 0.2s;
}
#contact input[type="submit"]:hover { background: var(--accent-dark); }

/* ==========================================
   Contact Page Standalone
   ========================================== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}
@media(max-width:768px){ .contact-page-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-info-block h2 { font-size: 28px !important; color: #ffffff; margin-bottom: 16px; }
.contact-info-block p { color: rgba(232,234,240,0.82); }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-detail i { color: var(--accent); font-size: 20px; margin-top: 4px; }
.contact-detail-text h4 { font-size: 14px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 0 0 4px; }
.contact-detail-text p { margin: 0; color: rgba(232,234,240,0.85); font-size: 15px !important; }
.contact-form-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.contact-form-block h2 { font-size: 28px !important; color: #ffffff; margin-bottom: 20px; }
.contact-form-block .form-control {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  box-shadow: none;
  margin-bottom: 14px;
  height: 44px;
  font-size: 15px;
}
.contact-form-block .form-control::placeholder { color: var(--text-muted); }
.contact-form-block textarea.form-control { height: auto; }
.contact-form-block input[type="submit"] {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  height: 48px;
  border-radius: 4px;
  width: 100%;
  transition: background 0.2s;
  cursor: pointer;
}
.contact-form-block input[type="submit"]:hover { background: var(--accent-dark); }

/* ==========================================
   Footer (R-FOOTER1)
   ========================================== */
#footer {
  background-color: #0a0c18;
  border-top: 1px solid var(--border);
  padding: 4em 2em 2em;
  text-align: left;
  width: 100%;
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3em;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4em;
  align-items: start;
  box-sizing: border-box;
}
#footer h2 { font-size: 17px !important; font-weight: 600; color: #ffffff !important; margin: 0 0 1em; letter-spacing: 0.06em; text-transform: uppercase; }
#footer p { color: var(--text-muted); font-size: 16px !important; line-height: 1.7; margin: 0; }
.footer-brand-name { font-size: 17px !important; font-weight: 700; color: var(--accent) !important; text-transform: none !important; letter-spacing: 0 !important; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand-name img { height: 22px; width: auto; }
.footer-nav { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 0.5em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 16px !important; transition: color 0.2s; }
.footer-nav a:hover { color: #ffffff; }
#footer .copyright { color: var(--text-muted); font-size: 15px !important; text-align: center; margin: 2.5em auto 0; padding-top: 1.5em; border-top: 1px solid var(--border); max-width: 1100px; }
@media(max-width:768px){ #footer .inner { grid-template-columns: 1fr 1fr; padding: 0 1.5em; } }
@media(max-width:480px){ #footer .inner { grid-template-columns: 1fr; } }

/* ==========================================
   Cookie Banner
   ========================================== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 20000;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
#cookie-banner p { color: rgba(232,234,240,0.88); font-size: 14px !important; margin: 0; line-height: 1.5; }
#cookie-banner a { color: var(--accent); }
.cookie-btn-wrap { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-accept, .cookie-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-btn.decline, #cookie-decline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.cookie-btn.decline:hover { border-color: #ffffff; color: #ffffff; }
#cookie-accept:hover { background: var(--accent-dark); }

/* ==========================================
   Preloader
   ========================================== */
.preloader {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.sk-spinner-circle .sk-circle:before { background-color: var(--accent); }

/* ==========================================
   Utilities
   ========================================== */
.container { max-width: 1200px; }
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.accent-text { color: var(--accent); }
.text-muted-custom { color: var(--text-muted); }
hr { border-color: var(--border); width: 80px; }
.btn-accent { background: var(--accent) !important; color: #ffffff !important; border: none !important; border-radius: 4px; font-weight: 600; padding: 12px 32px; font-size: 15px; transition: background 0.2s; }
.btn-accent:hover { background: var(--accent-dark) !important; }
.medium-icon { font-size: 36px !important; color: var(--accent); }

/* ==========================================
   Legal pages
   ========================================== */
.legal-page { max-width: 760px; margin: 0 auto; padding: 80px 2rem; }
.legal-page h1 { font-size: 43px !important; color: #ffffff; margin-bottom: 32px; }
.legal-page h2 { font-size: 24px !important; color: var(--accent); margin-top: 40px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: rgba(232,234,240,0.85); line-height: 1.85; }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { color: var(--accent); }
.legal-last-updated { color: var(--text-muted); font-size: 14px !important; margin-bottom: 32px; }

/* ==========================================
   Responsive
   ========================================== */
@media(max-width:768px){
  #home h1 { font-size: 38px !important; }
  h2 { font-size: 30px !important; }
  h3 { font-size: 22px !important; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
}
@media(max-width:480px){
  #home h1 { font-size: 30px !important; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 28px !important; }
}
