/* ==========================================================================
   Design System & Tokens
   ========================================================================== */
:root {
  /* Colors - Caribe Byte Theme */
  --bg-deep: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --primary-cyan: #D32F2F;
  --primary-cyan-dim: rgba(211, 47, 47, 0.2);
  --secondary-violet: #FF5252;
  --secondary-violet-dim: rgba(255, 82, 82, 0.2);
  
  --text-main: #E6F1FF;
  --text-muted: #B3B9C5;
  --text-dark: #FFFFFF;

  /* Glassmorphism */
  --glass-bg: rgba(10, 25, 47, 0.6);
  --glass-border: rgba(211, 47, 47, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Utilities */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --nav-height: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Typography Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================================
   Background Animations & Orbs
   ========================================================================== */
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary-cyan-dim);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary-violet-dim);
  bottom: 20%;
  right: -150px;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* ==========================================================================
   UI Components
   ========================================================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--primary-cyan);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 4px 15px var(--primary-cyan-dim);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-cyan);
  border: 1px solid var(--primary-cyan);
}

.btn-outline:hover {
  background: var(--primary-cyan-dim);
  transform: translateY(-2px);
}

.badge {
  background: var(--primary-cyan-dim);
  color: var(--primary-cyan);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--primary-cyan);
}

/* ==========================================================================
   Layout Sections
   ========================================================================== */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 35px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-cyan);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Visual Mockup */
.mockup-panel {
  padding: 1.5rem;
  height: 400px;
  display: flex;
  flex-direction: column;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.mockup-panel:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.mockup-line {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

.w-75 { width: 75%; }
.w-50 { width: 50%; }
.w-90 { width: 90%; }
.mt-2 { margin-top: 2rem; }

.mockup-block {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-top: 1rem;
}

/* Common Section Styles */
section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

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

/* About Section */
.about-grid {
  display: flex;
  justify-content: center;
}

.about-card {
  max-width: 600px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-container {
  margin-bottom: 1.5rem;
  position: relative;
}

.avatar-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-violet));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-dark);
  box-shadow: 0 0 20px var(--primary-cyan-dim);
}

.about-name {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.about-role {
  color: var(--primary-cyan);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.about-bio {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
}

/* Software Section */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  align-items: center;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-title {
  font-size: 2rem;
  color: var(--text-main);
}

.product-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.product-features {
  margin-bottom: 2rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.product-features .icon {
  color: var(--primary-cyan);
  font-weight: bold;
}

.mt-4 {
  margin-top: 1rem;
}

/* Product Dashboard CSS Wireframe */
.dashboard-wireframe {
  width: 100%;
  height: 300px;
  background: rgba(10, 25, 47, 0.8);
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  display: flex;
  overflow: hidden;
}

.sidebar-wire {
  width: 60px;
  background: rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.main-wire {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.header-wire {
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.cards-wire {
  display: flex;
  gap: 1rem;
  height: 80px;
}

.card-w {
  flex: 1;
  background: linear-gradient(135deg, rgba(211, 47, 47, 0.1), rgba(0, 0, 0, 0.2));
  border-radius: 6px;
  border: 1px solid rgba(211, 47, 47, 0.05);
}

.chart-wire {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  position: relative;
}

.chart-wire::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(211, 47, 47, 0.2), transparent);
  clip-path: polygon(0 100%, 0 50%, 20% 40%, 40% 60%, 60% 20%, 80% 50%, 100% 10%, 100% 100%);
}

/* Contact Section */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.contact-card {
  padding: 2.5rem;
  min-width: 280px;
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  background: rgba(5, 11, 20, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-cyan);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
  .hero .container, .product-showcase {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
     margin: 0 auto 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .mockup-panel {
    max-width: 500px;
    margin: 0 auto;
  }

  .product-brand {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
}
