/* ============================================================================
   Ycodify Site - Main Styles
   ============================================================================ */

/* --- CSS Variables --- */
:root {
  --ycodify-green: #0daf5e;
  --ycodify-dark-green: #00b060;
  --ycodify-blue: #2a465d;
  --ycodify-orange: #F5A623;
  --ycodify-red: #F8585B;
  --ycodify-purple: #8B4789;
}

/* --- Global Styles --- */
body {
  font-family: 'Nunito', sans-serif;
}

html {
  scroll-padding-top: 80px;
}

/* --- Header & Navigation --- */
.header {
  --background-color: rgba(255, 255, 255, 0);
  color: var(--ycodify-dark-green);
  background-color: var(--background-color);
  padding: 16px 0;
  transition: all 0.5s;
  z-index: 997;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.header .header-container {
  background: #ffffff;
  border-radius: 50px;
  padding: 5px 25px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

.header .logo {
  line-height: 1;
  padding-left: 5px;
  outline: none;
}

.header .logo:focus {
  outline: none;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
  transition: all 0.3s ease;
  outline: none;
}

.header .logo:hover img {
  transform: scale(1.05);
}

.navmenu {
  padding: 0;
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.navmenu a,
.navmenu a:focus {
  color: #212529;
  padding: 18px 15px;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  transition: 0.3s;
  text-decoration: none;
}

.navmenu li:hover>a,
.navmenu .active,
.navmenu .active:focus {
  color: var(--ycodify-green);
}

.btn-getstarted,
.btn-getstarted:focus {
  color: #ffffff;
  background: var(--ycodify-green);
  font-size: 14px;
  padding: 8px 20px;
  margin: 0 0 0 30px;
  border-radius: 50px;
  transition: 0.3s;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
}

.btn-getstarted:hover,
.btn-getstarted:focus:hover {
  color: #ffffff;
  background: var(--ycodify-dark-green);
}

.mobile-nav-toggle {
  color: #212529;
  font-size: 28px;
  line-height: 0;
  margin-right: 10px;
  cursor: pointer;
  transition: color 0.3s;
  display: none;
}

@media (max-width: 1200px) {
  .header {
    padding-top: 10px;
  }

  .header .header-container {
    margin-left: 10px;
    margin-right: 10px;
    padding: 10px 5px 10px 15px;
  }

  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 10px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }

  .mobile-nav-toggle {
    display: block;
  }
}

/* --- Hero Section --- */
.hero-modern {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
}

.hero-modern .container {
  max-width: 960px;
}

.hero-modern h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-family: 'Nunito', sans-serif;
}

.hero-modern p {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-modern .highlight {
  color: var(--ycodify-green);
  font-weight: 700;
}

.hero-modern .cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-modern .btn {
  padding: 15px 35px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-entrepreneur {
  background-color: var(--ycodify-green);
  border-color: var(--ycodify-green);
  color: white;
}

.btn-enterprise {
  background-color: var(--ycodify-blue);
  border-color: var(--ycodify-blue);
  color: white;
}

.hero-modern .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Utility Classes for Text Styling --- */
.text-blue-shadow {
  color: var(--ycodify-blue);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-blue-shadow-light {
  color: var(--ycodify-blue);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.text-weight-400 {
  font-weight: 400;
}

.text-weight-600 {
  font-weight: 600;
}

.text-weight-700 {
  font-weight: 700;
}

.text-weight-800 {
  font-weight: 800;
}

.text-size-1-2 {
  font-size: 1.2rem;
}

.text-size-2-9 {
  font-size: 2.9rem;
}

.text-size-1-8 {
  font-size: 1.8rem;
}

.text-size-1-1 {
  font-size: 1.1rem;
}

.text-size-0-95 {
  font-size: 0.95rem;
}

.tooltip-text {
  cursor: help;
  border-bottom: 1px dotted var(--ycodify-blue);
}

.tooltip-text-white {
  cursor: help;
  border-bottom: 1px dotted white;
}

.tooltip-text-dark {
  cursor: help;
  border-bottom: 1px dotted #222222;
}

.tooltip-text-gray {
  cursor: help;
  border-bottom: 1px dotted #333;
}

/* --- 5 Pillars Section --- */
.pillars-section {
  padding: 100px 0;
  background-color: #ffffff;
  overflow-x: hidden;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  font-family: 'Nunito', sans-serif;
  color: #333;
}

.section-title p {
  font-size: 1.05rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.pillars-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 40px;
  box-sizing: border-box;
}

.pillars-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  overflow-x: auto;
}

.pillar-card {
  background: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  text-align: center;
  border: 1px solid #f0f0f0;
  flex: 0 0 280px;
  max-width: 350px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.pillar-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}

.pillar-card .icon {
  font-size: 3.2rem;
  margin-bottom: 18px;
  color: var(--ycodify-green);
}

.pillar-card:nth-child(2) .icon {
  color: var(--ycodify-orange);
  margin-bottom: 25px;
}

.pillar-card:nth-child(3) .icon {
  color: var(--ycodify-red);
}

.pillar-card:nth-child(4) .icon {
  color: var(--ycodify-purple);
}

.pillar-card:nth-child(2) {
  background: var(--ycodify-blue);
  border-color: var(--ycodify-blue);
  padding: 40px 25px;
  flex: 0 0 350px;
  max-width: 440px;
  min-width: 350px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.pillar-card:nth-child(2) h4 {
  color: #ffffff;
}

.pillar-card:nth-child(2) p {
  color: #f0f0f0;
}

.pillar-card:nth-child(2) p span {
  color: #ffffff;
}

.pillar-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Nunito', sans-serif;
  color: #333;
}

.pillar-card:nth-child(2) h4 {
  margin-bottom: 20px;
}

.pillar-card p {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

.pillar-card:nth-child(2) p {
  line-height: 1.7;
  flex-grow: 1;
}

/* --- General Section Styling --- */
.section {
  padding: 80px 0;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.service-card .icon {
  font-size: 2.2rem;
  color: var(--ycodify-green);
  margin-bottom: 20px;
  margin-right: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  font-family: 'Nunito', sans-serif;
}

.service-card p {
  color: #555;
  font-size: 0.9rem;
}

.service-card .read-more {
  color: var(--ycodify-green);
  font-weight: 600;
  text-decoration: none;
  margin-top: 15px;
  display: inline-block;
  font-size: 0.9rem;
}

.service-card .read-more:hover {
  text-decoration: underline;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
}

.contact-section {
  background-color: #f8f9fa;
}

.contact-section .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 12px 15px;
}

.contact-section .btn-primary {
  background-color: var(--ycodify-green);
  border-color: var(--ycodify-green);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
}

.contact-section .btn-primary:hover {
  background-color: #00a050;
  border-color: #00a050;
}

/* --- Footer --- */
.footer {
  background-color: #111;
  color: #fff;
  padding: 50px 0 20px 0;
  font-size: 14px;
}

.footer .footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'Nunito', sans-serif;
}

.footer .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  font-family: 'Nunito', sans-serif;
  text-decoration: none;
}

.footer p {
  color: #aaa;
}

.footer .social-links a {
  display: inline-block;
  color: #fff;
  line-height: 1;
  padding: 8px 0;
  margin-right: 10px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer .social-links a:hover {
  background-color: var(--ycodify-green);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: #aaa;
  text-decoration: none;
  transition: 0.3s;
}

.footer ul a:hover {
  color: var(--ycodify-green);
}

.footer .copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 20px;
  border-top: 1px solid #333;
  color: #aaa;
}

/* --- Opportunities Section --- */
.opportunities-section {
  background-color: #f8f9fa;
  padding: 100px 0;
}

.opportunities-section .row {
  max-width: 960px;
  margin: 0 auto;
}

.opportunity-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 22px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.opportunity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.entrepreneur-card {
  border-top: 4px solid var(--ycodify-green);
}

.enterprise-card {
  border-top: 4px solid var(--ycodify-blue);
}

.opportunity-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  text-align: center;
}

.entrepreneur-card .opportunity-icon {
  color: var(--ycodify-green);
}

.enterprise-card .opportunity-icon {
  color: var(--ycodify-blue);
}

.opportunity-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
  color: #333;
  text-align: center;
}

.opportunity-tagline {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  font-family: 'Nunito', sans-serif;
}

.entrepreneur-card .opportunity-tagline {
  color: var(--ycodify-green);
}

.enterprise-card .opportunity-tagline {
  color: var(--ycodify-blue);
}

.opportunity-description {
  font-size: 0.8rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
  text-align: center;
}

.opportunity-highlights,
.opportunity-ideal {
  margin-bottom: 18px;
}

.opportunity-highlights h5,
.opportunity-ideal h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Nunito', sans-serif;
  color: #333;
}

.opportunity-highlights ul,
.opportunity-ideal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opportunity-highlights ul li,
.opportunity-ideal ul li {
  padding: 6px 0;
  font-size: 0.75rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.opportunity-highlights ul li i {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.entrepreneur-card .opportunity-highlights ul li i {
  color: var(--ycodify-green);
}

.enterprise-card .opportunity-highlights ul li i {
  color: var(--ycodify-blue);
}

.opportunity-card .btn {
  margin-top: auto;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.opportunities-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.opportunities-cta p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 10px;
}

.opportunities-cta p:last-of-type {
  margin-bottom: 20px;
}

.btn-contact {
  background-color: #333;
  color: white;
  padding: 12px 35px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid #333;
}

.btn-contact:hover,
.btn-contact:active {
  background-color: white;
  color: #333;
  border-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Cofounder Styles --- */
.cofounders-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 40px 20px;
}

.cofounder-item {
  text-align: center;
}

.cofounder-item img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border: 3px solid var(--ycodify-green);
}

.cofounder-item p {
  margin-top: 15px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

@media (max-width: 768px) {
  .opportunity-card {
    margin-bottom: 30px;
  }

  .opportunity-card h3 {
    font-size: 1.4rem;
  }

  .opportunity-tagline {
    font-size: 0.95rem;
  }
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 100px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 300px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
  background: white;
  border-left: 4px solid;
}

.toast.success {
  border-left-color: var(--ycodify-green);
}

.toast.error {
  border-left-color: var(--ycodify-red);
}

.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--ycodify-green);
}

.toast.error .toast-icon {
  color: var(--ycodify-red);
}

.toast-message {
  flex: 1;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-close:hover {
  color: #333;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast.hiding {
  animation: slideOut 0.3s ease-out forwards;
}

/* --- Toast Inline (abaixo do botão) --- */
.toast-message-inline {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.toast-message-inline.toast-success {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #28a745;
}

.toast-message-inline.toast-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #dc3545;
}

.toast-icon-inline {
  font-size: 20px;
  font-weight: 700;
}

.toast-message-inline.hiding {
  animation: fadeOut 0.3s ease-out forwards;
}

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

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