/* ==============================
   Obed Castillejos Portfolio
   Custom styles
   ============================== */

:root {
  --dark-bg: #111827;
  --dark-bg-soft: #1f2937;
  --text-main: #111827;
  --text-muted: #6b7280;
  --soft-bg: #f8fafc;
  --soft-border: #e5e7eb;

  --primary-accent: #2563eb;
  --success-accent: #16a34a;
  --danger-accent: #dc2626;
  --bible-accent: #7c3aed;
  --bible-accent-dark: #6d28d9;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--soft-bg);
  color: var(--text-main);
}

/* Navbar */

.site-navbar {
  background-color: var(--dark-bg) !important;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.navbar-logo {
  height: 32px !important;
  width: auto !important;
  max-height: 32px;
  margin-right: 10px;
  object-fit: contain;
  display: inline-block;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #ffffff;
}

/* Hero */

.hero-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  padding: 6rem 2rem;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(124, 58, 237, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.hero-title {
  max-width: 850px;
  margin: 0 auto 1rem;
  color: var(--text-main);
  font-size: clamp(2.3rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-muted) !important;
}

.hero-subtitle {
  max-width: 650px;
  margin: 1rem auto 1.5rem;
  color: #374151;
  font-weight: 500;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
}

.btn-hero {
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.email-box {
  display: none;
  max-width: 520px;
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--soft-border);
  border-radius: 14px;
  background-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.email-box a {
  color: var(--primary-accent);
  font-weight: 700;
}

/* Demo section */

.demo-section {
  padding: 5rem 0;
  background-color: var(--soft-bg);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  color: var(--text-main);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.demo-card {
  width: 100%;
  min-height: 100%;
  margin-bottom: 2rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.13);
}

.demo-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.4rem;
}

.demo-card .card-text {
  flex-grow: 1;
  color: var(--text-muted);
}

.demo-card .card-title {
  font-weight: 800;
}

.demo-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  font-size: 1.7rem;
}

.badge-soft {
  margin: 0.15rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--soft-border);
  border-radius: 999px;
  background-color: #f9fafb;
  color: #4b5563;
  font-weight: 700;
}

/* Accent lines for each card */

.demo-card::before {
  content: "";
  display: block;
  height: 5px;
  border-radius: 20px 20px 0 0;
}

.accent-primary::before {
  background-color: var(--primary-accent);
}

.accent-success::before {
  background-color: var(--success-accent);
}

.accent-danger::before {
  background-color: var(--danger-accent);
}

.accent-bible::before {
  background-color: var(--bible-accent);
}

/* Bible custom color */

.text-bible {
  color: var(--bible-accent);
}

.btn-bible {
  color: #ffffff;
  background-color: var(--bible-accent);
  border-color: var(--bible-accent);
  box-shadow: 0 10px 22px rgba(124, 58, 237, 0.22);
}

.btn-bible:hover,
.btn-bible:focus {
  color: #ffffff;
  background-color: var(--bible-accent-dark);
  border-color: var(--bible-accent-dark);
}


/* Hero skill pills */

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 780px;
  margin: 1.5rem auto 1.75rem;
}

.hero-skills span {
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.72);
  color: #1f2937;
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

/* Skills overview */

.skills-section {
  padding: 5rem 0 3rem;
  background-color: #ffffff;
}

.skill-card {
  width: 100%;
  margin-bottom: 2rem;
  padding: 2rem;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 20px;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.11);
}

.skill-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.14));
  font-size: 1.7rem;
}

.skill-card h5 {
  color: var(--text-main);
  font-weight: 800;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

@media (max-width: 767.98px) {
  .hero-skills {
    gap: 0.5rem;
  }

  .hero-skills span {
    font-size: 0.86rem;
  }

  .skills-section {
    padding: 3.5rem 0 2rem;
  }
}

/* Footer */

.site-footer {
  padding: 2rem 0;
  background-color: var(--dark-bg);
  color: #9ca3af;
}

.site-footer a {
  color: #ffffff;
  font-weight: 700;
}

.site-footer a:hover {
  color: #e5e7eb;
  text-decoration: none;
}

/* Responsive adjustments */

@media (max-width: 767.98px) {
  .hero-section {
    padding: 4.5rem 1.25rem;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .demo-section {
    padding: 3.5rem 0;
  }

  .demo-card .card-body {
    padding: 1.75rem 1.25rem;
  }
}

.footer-tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.95rem;
}

.footer-tech span {
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(156, 163, 175, 0.25);
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.04);
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  border: 1px solid #3A2F18;
  border-radius: 14px;
  background: #171717;
  color: #F5F5F5;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.cookie-banner p {
  margin: 0 0 0.8rem;
  line-height: 1.45;
}

.cookie-banner a {
  color: #E7C766;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-actions button {
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-weight: 700;
}

.cookie-accept {
  background: #D4AF37;
  color: #171717;
}

.cookie-reject {
  background: transparent;
  color: #F5F5F5;
  border: 1px solid #777 !important;
}