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

:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #f2a900;
  --secondary-dark: #d99700;
  --secondary-light: #fef6e5;
  --dark: #0b2545;
  --dark-gray: #134074;
  --light-gray: #f4f7fa;
  --border: #d0dbeb;
  --text: #1e293b;
  --text-light: #475569;
  --white: #ffffff;
  --font: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

body {
  font-family: var(--font);
  background-color: var(--light-gray);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  display: inline-block;
  color: var(--secondary);
  animation: float 3s ease-in-out infinite;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-item a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--dark-gray);
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-item a:hover::after,
.nav-item.active a::after {
  width: 100%;
}

.nav-item.active a {
  color: var(--primary);
  font-weight: 600;
}

.nav-item.disabled a {
  color: var(--text-light);
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-btn {
  background-color: var(--secondary);
  color: var(--white) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(242, 169, 0, 0.3);
}

.nav-btn:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(242, 169, 0, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  padding: 6rem 2rem;
  background-color: var(--dark);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.badge {
  display: inline-block;
  background-color: rgba(242, 169, 0, 0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Button UI */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 168, 150, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 150, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Core Info / Pillars Section */
.info-section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

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

.section-tag {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
}

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

.pillar-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.pillar-card:nth-child(2) .pillar-icon {
  background-color: var(--secondary-light);
  color: var(--secondary);
}
.pillar-card:nth-child(2)::before {
  background-color: var(--secondary);
}

.pillar-card:nth-child(3) .pillar-icon {
  background-color: rgba(99, 102, 241, 0.1);
  color: rgb(99, 102, 241);
}
.pillar-card:nth-child(3)::before {
  background-color: rgb(99, 102, 241);
}

.pillar-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.pillar-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Documentation DIAN Page styling */
.doc-header-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

.doc-header-container {
  max-width: 800px;
  margin: 0 auto;
}

.doc-description {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.search-section {
  max-width: 600px;
  margin: -25px auto 3rem auto;
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}

.search-wrapper {
  background-color: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  padding: 6px 6px 6px 20px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.search-wrapper:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.search-icon {
  color: var(--text-light);
  margin-right: 10px;
  font-size: 1.2rem;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: var(--dark);
  font-family: var(--font);
}

.docs-section {
  max-width: 1200px;
  margin: 0 auto 5rem auto;
  padding: 0 2rem;
  width: 100%;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.doc-card {
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.doc-icon-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.pdf-icon {
  width: 50px;
  height: 50px;
  background-color: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 10px;
}

.doc-badge {
  background-color: var(--light-gray);
  color: var(--text-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid var(--border);
}

.doc-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.5;
}

.doc-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.doc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-card {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

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

.btn-card-outline:hover {
  background-color: var(--primary-light);
}

.btn-card-fill {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.btn-card-fill:hover {
  background-color: var(--primary-dark);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  background-color: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.no-results-icon {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 2rem 2rem 2rem;
  margin-top: auto;
  border-top: 5px solid var(--primary);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-desc {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact-icon {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-item a {
    font-size: 0.9rem;
  }
  
  .nav-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn {
    justify-content: center;
  }

  .info-section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
