/* ==========================================================================
   Instituto Anderson Costa - Custom Styles
   ========================================================================== */

/* Variables */
:root {
  --primary-color: #605BE5;
  --secondary-color: #12fc89a;
  --success-color: #28a745;
  --dark-color: #3D5744;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --text-dark: #333333;
  --text-light: #6c757d;

  /* Fonts */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

/* Global Styles */
body {
  font-family: var(--font-secondary);
  color: var(--text-dark);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}

/* Bootstrap overrides */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #4A47CC;
  border-color: #4A47CC;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Navigation Styles */
.navbar-nav .nav-link {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 15px 10px !important;
  margin: 0 10px;
  position: relative;
  transition: color 0.3s ease;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
    url('../img/alunos-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Course Cards */
.course-card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 10px;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.course-icon i {
  transition: transform 0.3s ease;
}

.course-card:hover .course-icon i {
  transform: scale(1.1);
}

.course-details ul li {
  padding: 5px 0;
  font-size: 14px;
}

/* Buttons */
.btn {
  font-family: var(--font-primary);
  font-weight: 600;
  border-radius: 5px;
  padding: 12px 30px;
  transition: all 0.3s ease;
}

.btn-success {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.btn-success:hover {
  background-color: #218838;
  border-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* Content Sections */
.content-text p {
  font-family: var(--font-secondary);
}

/* Statistics */
.stat-item h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--dark-color) !important;
}

footer p {
  margin-bottom: 5px;
  font-size: 14px;
}

/* Animations */
.fade-in {
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    min-height: 80vh;
  }

  .hero-content {
    margin: 20px 0;
  }

  .display-4 {
    font-size: 2rem;
  }

  .lead {
    font-size: 1.1rem;
  }

  .course-card {
    margin-bottom: 20px;
  }

  .stat-item h2 {
    font-size: 2rem;
  }

  .navbar-nav .nav-link {
    text-align: center;
    margin: 5px 0;
  }
}

@media (max-width: 576px) {
  .hero-content .bg-white {
    padding: 30px 20px !important;
  }

  .btn-lg {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Accessibility improvements */
.btn:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading states */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4A47CC;
}

/* Print styles */
@media print {

  .navbar,
  .btn,
  footer {
    display: none !important;
  }

  .hero-section {
    background: none !important;
    color: black !important;
  }

  .hero-content {
    background-color: rgba(255, 255, 255, 0.7) !important;
    color: black !important;
    backdrop-filter: blur(2px);
  }

  /* Adjust hero section for smaller screens */
  .hero-section .row {
    min-height: 85vh !important;
  }

  .hero-content {
    padding: 1.5rem !important;
  }

  .hero-content h1 {
    font-size: 1.8rem !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-content p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
  }
}

/* ==========================================================================
   Founder Photo Styles
   ========================================================================== */

.founder-photo-container {
  position: relative;
}

.founder-photo {
  transition: all 0.3s ease;
  filter: grayscale(0%);
}

.founder-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(96, 91, 229, 0.3) !important;
}

/* Founder photo responsive adjustments */
@media (max-width: 991px) {
  .founder-photo {
    width: 180px !important;
    height: 180px !important;
    margin: 2rem auto;
  }

  .founder-photo-container {
    margin-top: 2rem;
  }
}

@media (max-width: 576px) {
  .founder-photo {
    width: 150px !important;
    height: 150px !important;
  }
}

/* ==========================================================================
   Diferenciais Section Styles
   ========================================================================== */

.diferencial-icon {
  transition: all 0.3s ease;
}

.diferencial-icon:hover {
  transform: translateY(-10px);
}

.diferencial-icon i {
  color: var(--primary-color);
  filter: drop-shadow(0 4px 8px rgba(96, 91, 229, 0.2));
}

/* Responsive adjustments for diferenciais */
@media (max-width: 768px) {
  .diferencial-icon i {
    font-size: 3rem !important;
  }
}