@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #059669;
  --accent: #3b82f6;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --glass: rgba(255, 255, 255, 0.95);
  --glass-dark: rgba(15, 23, 42, 0.95);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.07), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --input-bg: #ffffff;
  --input-color: #0f172a;
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --gradient-emerald: linear-gradient(135deg, #059669 0%, #047857 100%);
  --gradient-amber: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

body.dark-mode {
  --primary: #f8fafc;
  --primary-hover: #e2e8f0;
  --secondary: #10b981;
  --accent: #3b82f6;
  --dark: #f8fafc;
  --light: #090d16;
  --gray: #94a3b8;
  --gray-light: #64748b;
  --glass: rgba(15, 23, 42, 0.9);
  --glass-dark: rgba(9, 13, 22, 0.95);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.7);
  --card-bg: #0f172a;
  --border-color: #1e293b;
  --border-subtle: #162032;
  --input-bg: #111827;
  --input-color: #f8fafc;
  --gradient-primary: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  --gradient-emerald: linear-gradient(180deg, #10b981 0%, #047857 100%);
  --gradient-amber: linear-gradient(180deg, #fbbf24 0%, #b45309 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.5;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

nav.scrolled {
  background: var(--glass);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-actions button, .nav-actions a {
  white-space: nowrap;
}

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

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card-bg);
  min-width: 550px;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  border: 1px solid var(--border-color);
  z-index: 1001;
  animation: slideDown 0.3s ease-out;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: var(--card-bg);
  transform: rotate(45deg);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown:hover .dropdown-menu {
  display: grid;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-item:hover {
  background: var(--light);
  color: var(--primary) !important;
}

.dropdown-item i {
  font-size: 1rem;
  color: var(--gray);
}

.dropdown-item:hover i {
  color: var(--primary);
}

.btn-consult {
  background: var(--primary);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent);
}

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

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  display: inline-block;
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--dark);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  display: inline-block;
}

.hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(-5deg);
}

.hero-image img {
  width: 100%;
  display: block;
}

/* Services */
.services {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Portal News Layout */
.portal-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.headline-news {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
}

.headline-news img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.headline-news:hover img {
  transform: scale(1.05);
}

.headline-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.9));
  color: white;
}

.category-badge {
  background: var(--primary);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.8rem;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  align-items: center;
}

.news-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.news-item-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.news-item-content h4 a {
  color: var(--dark);
}

.news-item-content h4 a:hover {
  color: var(--primary);
}

.news-meta {
  font-size: 0.8rem;
  color: var(--gray);
}

.category-tabs {
  display: flex;
  gap: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.category-tab {
  font-weight: 600;
  color: var(--gray);
  padding: 0.5rem 0;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.category-tab:hover {
  color: var(--primary);
}

.category-tab.active {
  color: var(--primary);
}

.category-tab.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Pricing Card */
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  transform: translateY(-10px);
}

.pricing-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--dark);
  font-size: 0.95rem;
}

.pricing-features i {
  color: var(--secondary);
  margin-top: 0.3rem;
}

/* Tool Widget */
.tool-widget {
  background: linear-gradient(135deg, var(--dark) 0%, #1e293b 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-widget::after {
  content: '\f1ec';
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-size: 8rem;
  opacity: 0.05;
}

.form-control {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--input-color);
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

@media (max-width: 992px) {
  .hero-grid, .portal-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .portal-grid { text-align: left; }
  .headline-news { height: 300px; }
  .hero-content h1 { font-size: 3rem; }
  .hero-btns { justify-content: center; }
  .hero-image { transform: none; margin-top: 3rem; }
  .nav-links { display: none; }
}
