/* Premium UI/UX Improvements for Portfolio Homepage */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-dark-premium: #09090b;
  --bg-card-premium: rgba(20, 20, 25, 0.6);
  --border-premium: rgba(255, 255, 255, 0.08);
  --odoo-purple-premium: #714B67;
  --odoo-light-premium: #a16b93;
  --accent-indigo-premium: #6366f1;
  --text-muted-premium: #a1a1aa;
}

/* Base Body Styles */
body.theme-slate {
  background-color: var(--bg-dark-premium) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  color: #f4f4f5 !important;
  position: relative;
  overflow-x: hidden;
}

/* Background Grid Pattern */
body.theme-slate::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  z-index: -2;
  pointer-events: none;
}

/* Float Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.14;
  z-index: -1;
  pointer-events: none;
  width: 450px;
  height: 450px;
}

.orb-1 {
  top: 5%;
  left: 10%;
  background: var(--odoo-purple-premium);
}

.orb-2 {
  top: 35%;
  right: 5%;
  background: var(--accent-indigo-premium);
}

.orb-3 {
  top: 75%;
  left: 15%;
  background: #3b82f6;
  width: 500px;
  height: 500px;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--odoo-purple-premium);
}

/* Typography Resets */
h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Space Grotesk', sans-serif !important;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}

p, span, li, small, .text-muted {
  color: var(--text-muted-premium) !important;
}

.fg-theme {
  color: var(--odoo-light-premium) !important;
}

/* Overriding light section backgrounds to dark theme */
.vg-page:not(.page-home), 
.page-about, 
.page-service, 
#platzi, 
#service, 
#qr,
.vg-footer {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
}

/* Hero Section adjustments */
.vg-page.page-home {
  position: relative;
  background-color: transparent !important;
}

.caption-header .badge {
  background-color: rgba(113, 75, 103, 0.2) !important;
  color: var(--odoo-light-premium) !important;
  border: 1px solid rgba(113, 75, 103, 0.3) !important;
  padding: 8px 20px !important;
  font-size: 1rem !important;
  border-radius: 9999px !important;
}

.floating-button {
  color: var(--odoo-light-premium) !important;
  border-color: rgba(113, 75, 103, 0.4) !important;
}

/* Profile Image layout styling */
.img-place.wow {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-premium);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background-color: rgba(255,255,255,0.02);
}

.img-place img {
  filter: brightness(0.9) contrast(1.05);
  transition: transform 0.5s ease;
}

.img-place:hover img {
  transform: scale(1.03);
}

/* Navbar Improvement overrides */
.navbar.sticky {
  background: rgba(9, 9, 11, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--border-premium) !important;
}

.navbar-nav .nav-link {
  font-weight: 600 !important;
  letter-spacing: 0.2px;
  color: var(--text-muted-premium) !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--odoo-light-premium) !important;
}

/* Dropdown styling */
.dropdown-menu {
  background-color: #121118 !important;
  border: 1px solid var(--border-premium) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
  padding: 8px !important;
}

.dropdown-item {
  color: var(--text-muted-premium) !important;
  font-weight: 500 !important;
  padding: 10px 16px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(113, 75, 103, 0.15) !important;
  color: #fff !important;
}

/* Cards (Glassmorphism & animations) */
.card-service {
  background-color: var(--bg-card-premium) !important;
  border: 1px solid var(--border-premium) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  height: 100%;
}

.card-service:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(113, 75, 103, 0.4) !important;
  box-shadow: 0 10px 30px rgba(113, 75, 103, 0.15) !important;
}

.card-service .icon {
  background-color: rgba(113, 75, 103, 0.12) !important;
  color: var(--odoo-light-premium) !important;
  border-radius: 12px !important;
}

/* Experience & Education timelines */
.timeline li::after {
  background-color: var(--odoo-purple-premium) !important;
  border-color: var(--odoo-purple-premium) !important;
}

.timeline li .title {
  background-color: rgba(113, 75, 103, 0.15) !important;
  color: var(--odoo-light-premium) !important;
  border: 1px solid rgba(113, 75, 103, 0.3) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  width: auto !important;
  display: inline-block !important;
  padding: 6px 20px !important;
  border-radius: 30px 0 60px 30px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Override first child slate-theme timeline title to match */
.theme-slate .timeline li:first-child .title {
  background-color: rgba(113, 75, 103, 0.15) !important;
  color: var(--odoo-light-premium) !important;
  border: 1px solid rgba(113, 75, 103, 0.3) !important;
}

.theme-slate .timeline li:first-child::before {
  background-color: var(--odoo-purple-premium) !important;
  box-shadow: 0 0 0 2px var(--odoo-purple-premium) !important;
}

.timeline .details {
  background-color: var(--bg-card-premium) !important;
  border: 1px solid var(--border-premium) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 25px rgba(0,0,0,0.2) !important;
  margin-bottom: 20px;
}

.timeline .details h5 {
  color: #fff !important;
  font-size: 1.1rem !important;
  font-weight: 600;
}

/* Buttons styling overrides */
.btn-theme {
  background: var(--odoo-purple-premium) !important;
  background: linear-gradient(135deg, var(--odoo-purple-premium) 0%, #4d3346 100%) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(113, 75, 103, 0.3) !important;
  transition: all 0.25s ease !important;
}

.btn-theme:hover {
  background: #855779 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(113, 75, 103, 0.5) !important;
}

.btn-theme-outline {
  border: 2px solid var(--odoo-purple-premium) !important;
  color: var(--odoo-light-premium) !important;
  border-radius: 8px !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transition: all 0.25s ease !important;
}

.btn-theme-outline:hover {
  background-color: var(--odoo-purple-premium) !important;
  color: white !important;
  transform: translateY(-2px);
}

/* Nice-Select custom styling to fit dark theme */
.nice-select {
  background-color: rgba(20, 20, 25, 0.8) !important;
  border-color: var(--border-premium) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

.nice-select .list {
  background-color: #121118 !important;
  border: 1px solid var(--border-premium) !important;
  border-radius: 8px !important;
}

.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus {
  background-color: rgba(113, 75, 103, 0.2) !important;
  color: #fff !important;
}

/* Platzi Achievements Carousel adjustments */
#platzi {
  background: radial-gradient(circle at center, rgba(113, 75, 103, 0.05) 0%, transparent 70%);
}

#platzi .carousel-inner {
  background-color: rgba(20, 20, 25, 0.4);
  border: 1px solid var(--border-premium);
  border-radius: 20px;
  padding: 40px 20px;
  backdrop-filter: blur(8px);
}

#platzi .carousel-item img {
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 1px solid var(--border-premium);
  transition: transform 0.4s ease;
}

#platzi .carousel-item img:hover {
  transform: scale(1.02);
}

/* QR Code Section tweaks */
#qr .container.py-5 {
  background-color: rgba(20, 20, 25, 0.4);
  border: 1px solid var(--border-premium);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  max-width: 600px;
  margin: 0 auto;
}

#qrcode img {
  border: 8px solid white;
  border-radius: 8px;
  display: inline-block;
}

/* Inputs and Forms styling */
.form-control {
  background-color: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--border-premium) !important;
  color: #fff !important;
  border-radius: 8px !important;
  transition: all 0.25s ease;
}

.form-control:focus {
  border-color: var(--odoo-light-premium) !important;
  box-shadow: 0 0 10px rgba(113, 75, 103, 0.25) !important;
  background-color: rgba(255,255,255,0.05) !important;
}

/* Modal CV Style */
.modal-content {
  background-color: #121118 !important;
  border: 1px solid var(--border-premium) !important;
  border-radius: 16px !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.6) !important;
  color: #f4f4f5 !important;
  padding: 20px;
}

.modal-content h2 {
  color: #fff !important;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

.modal-content .close {
  color: var(--text-muted-premium) !important;
  opacity: 0.8;
  transition: color 0.2s ease;
}

.modal-content .close:hover {
  color: #fff !important;
  opacity: 1;
}

/* Footer elements styling */
.vg-footer {
  border-top: 1px solid var(--border-premium) !important;
  background-color: #050507 !important;
  margin-top: 80px;
}

.footer-info, .footer-section-header, .social-link, .username-item {
  color: var(--text-muted-premium);
}

.social-link i {
  color: var(--odoo-light-premium) !important;
}
.social-link:hover i {
  color: white !important;
}

/* Override all old theme-slate colors with premium Odoo purple/indigo scheme */
.theme-slate .bg-theme {
  background-color: var(--odoo-purple-premium) !important;
}

.theme-slate .fg-theme {
  color: var(--odoo-light-premium) !important;
}

.theme-slate .btn-theme {
  background-color: var(--odoo-purple-premium) !important;
  border-color: var(--odoo-purple-premium) !important;
  color: #fff !important;
}

.theme-slate .btn-theme:hover {
  background-color: #855779 !important;
}

.theme-slate .btn-theme:focus {
  box-shadow: 0 0 0 3px #09090b, 0 0 0 5px var(--odoo-purple-premium) !important;
}

.theme-slate .btn-theme-outline {
  color: var(--odoo-light-premium) !important;
  box-shadow: 0 0 0 2px var(--odoo-purple-premium) !important;
}

.theme-slate .btn-theme-outline:hover {
  background-color: var(--odoo-purple-premium) !important;
  color: #fff !important;
}

.theme-slate .btn-fab {
  background-color: var(--odoo-purple-premium) !important;
  color: #fff !important;
}

.theme-slate .btn-fab:hover {
  background-color: #855779 !important;
}

.theme-slate .progress {
  box-shadow: 0 0 0 2px var(--odoo-purple-premium) !important;
  background-color: rgba(255,255,255,0.05) !important;
}

.theme-slate .progress-bar {
  background-color: var(--odoo-purple-premium) !important;
}

.theme-slate .theme-list li::before {
  border-color: var(--odoo-light-premium) !important;
  background-color: #17151d !important;
}

/* Tron Light Cycle Beams */
.tron-light-circuit {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.tron-beam {
  position: absolute;
  opacity: 0.8;
}

/* Horizontal Beam Styling */
.tron-beam[class*="beam-h-"] {
  height: 2px;
  width: 150px;
  background: linear-gradient(90deg, transparent, var(--odoo-light-premium), #ffffff);
  box-shadow: 0 0 8px var(--odoo-light-premium), 0 0 16px var(--odoo-light-premium);
}

/* Vertical Beam Styling */
.tron-beam[class*="beam-v-"] {
  width: 2px;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--accent-indigo-premium), #ffffff);
  box-shadow: 0 0 8px var(--accent-indigo-premium), 0 0 16px var(--accent-indigo-premium);
}

/* Specific Beam Positions (Aligned with 60px grid lines of main page) */
.beam-h-1 {
  top: 180px;
  left: -150px;
  animation: tron-horizontal 8s infinite linear;
}

.beam-h-2 {
  top: 480px;
  left: -150px;
  animation: tron-horizontal 12s infinite linear;
  animation-delay: 3s;
  background: linear-gradient(90deg, transparent, #06b6d4, #ffffff) !important;
  box-shadow: 0 0 8px #06b6d4, 0 0 16px #06b6d4 !important;
}

.beam-h-3 {
  top: 780px;
  left: -150px;
  animation: tron-horizontal-reverse 10s infinite linear;
  animation-delay: 1s;
  background: linear-gradient(-90deg, transparent, #f97316, #ffffff) !important;
  box-shadow: 0 0 8px #f97316, 0 0 16px #f97316 !important;
}

.beam-v-1 {
  left: 240px;
  top: -150px;
  animation: tron-vertical 9s infinite linear;
  animation-delay: 2s;
}

.beam-v-2 {
  left: 720px;
  top: -150px;
  animation: tron-vertical 15s infinite linear;
  animation-delay: 5s;
  background: linear-gradient(180deg, transparent, #10b981, #ffffff) !important;
  box-shadow: 0 0 8px #10b981, 0 0 16px #10b981 !important;
}

.beam-v-3 {
  right: 300px;
  top: -150px;
  animation: tron-vertical-reverse 11s infinite linear;
  animation-delay: 0.5s;
}

/* Keyframes for Light Cycle animations */
@keyframes tron-horizontal {
  0% {
    left: -150px;
  }
  100% {
    left: 100vw;
  }
}

@keyframes tron-horizontal-reverse {
  0% {
    left: 100vw;
  }
  100% {
    left: -150px;
  }
}

@keyframes tron-vertical {
  0% {
    top: -150px;
  }
  100% {
    top: 100vh;
  }
}

@keyframes tron-vertical-reverse {
  0% {
    top: 100vh;
  }
  100% {
    top: -150px;
  }
}
