/* ========================================
   Resyvex Institute - Main Stylesheet
   Color Scheme: White, Red (#E63946), Black (#1a1a1a)
   ======================================== */

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

:root {
  --primary-red: #E63946;
  --primary-red-dark: #d62828;
  --dark-black: #1a1a1a;
  --light-white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --gray-dark: #6c757d;
  --text-dark: #2c3e50;
  --border-radius: 12px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--light-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   ANIMATIONS & KEYFRAMES
   ======================================== */

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

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

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

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(230, 57, 70, 0.5);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Animation utility classes */
.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.5s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.5s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.5s ease-out forwards;
}

.animate-slideUp {
  animation: slideUp 0.4s ease-out forwards;
}

.animate-popIn {
  animation: popIn 0.35s ease-out forwards;
}

.animate-float {
  animation: float 2s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 1.2s ease-in-out infinite;
}

.animate-glow {
  animation: glow 1.2s ease-in-out infinite;
}

[data-animate] {
  opacity: 0;
}

[data-animate].animate-fadeInUp,
[data-animate].animate-fadeInDown,
[data-animate].animate-fadeInLeft,
[data-animate].animate-fadeInRight,
[data-animate].animate-slideUp,
[data-animate].animate-popIn {
  opacity: 1;
}

/* Make sure cards without data-animate still appear */
.card {
  opacity: 1;
}

.feature-item[data-animate] {
  opacity: 0;
}

.feature-item[data-animate].animate-slideInFromLeft {
  opacity: 1;
}

.course-item[data-animate],
.workshop-item[data-animate] {
  opacity: 0;
}

.course-item[data-animate].animate-slideInFromLeft,
.workshop-item[data-animate].animate-slideInFromLeft {
  opacity: 1;
}

.stat-box[data-animate] {
  opacity: 0;
}

.stat-box[data-animate].animate-popIn {
  opacity: 1;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background-color: var(--light-white);
  border-bottom: 1px solid var(--gray-medium);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-black);
  text-decoration: none;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, var(--dark-black) 0%, var(--primary-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.logo span {
  color: var(--primary-red);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
  margin-left: auto;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
  letter-spacing: 0.3px;
}

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

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

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

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

.nav-menu a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-black);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--dark-black) 0%, var(--primary-red-dark) 50%, var(--primary-red) 100%);
  color: var(--light-white);
  padding: 8rem 2rem;
  text-align: center;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  line-height: 1.2;
  animation: fadeInDown 0.5s ease-out;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-weight: 300;
  letter-spacing: 0.3px;
  animation: fadeInUp 0.5s ease-out 0.15s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: popIn 0.35s ease-out 0.3s both;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--light-white);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-red-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(230, 57, 70, 0.35);
}

.btn-secondary {
  background-color: var(--light-white);
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  box-shadow: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-red);
  z-index: -1;
  transition: left 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-red);
  color: var(--light-white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ========================================
   SECTIONS & CONTAINERS
   ======================================== */

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

section {
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--dark-black);
  margin-bottom: 1.2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
  border-radius: 3px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 3rem;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   CARDS & GRID LAYOUTS
   ======================================== */

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

.card {
  background-color: var(--light-white);
  border: 1px solid var(--gray-medium);
  border-radius: var(--border-radius);
  padding: 2.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(230, 57, 70, 0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.15);
  border-color: var(--primary-red);
}

.card h3 {
  color: var(--dark-black);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-dark);
  line-height: 1.8;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
  background-color: var(--gray-light);
}

.feature-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  animation: slideInFromLeft 0.5s ease-out forwards;
  opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
  color: var(--light-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  animation: float 0.8s ease-in-out infinite;
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.5);
  transform: scale(1.1);
}

.feature-content h4 {
  color: var(--dark-black);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature-content p {
  color: var(--text-dark);
  line-height: 1.7;
}

/* ========================================
   FORM STYLES
   ======================================== */

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-black);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 1.5px solid var(--gray-medium);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--light-white);
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

.form-group:nth-child(1) input,
.form-group:nth-child(1) textarea,
.form-group:nth-child(1) select { animation-delay: 0.1s; }

.form-group:nth-child(2) input,
.form-group:nth-child(2) textarea,
.form-group:nth-child(2) select { animation-delay: 0.2s; }

.form-group:nth-child(3) input,
.form-group:nth-child(3) textarea,
.form-group:nth-child(3) select { animation-delay: 0.3s; }

.form-group:nth-child(4) input,
.form-group:nth-child(4) textarea,
.form-group:nth-child(4) select { animation-delay: 0.4s; }

.form-group:nth-child(5) input,
.form-group:nth-child(5) textarea,
.form-group:nth-child(5) select { animation-delay: 0.5s; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
  background-color: rgba(230, 57, 70, 0.01);
  transform: scale(1.02);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: var(--dark-black);
  color: var(--light-white);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

.footer-section h4 {
  color: var(--primary-red);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #cccccc;
  text-decoration: none;
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 2rem;
  text-align: center;
  color: #999;
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Social Media Links in Footer */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(230, 57, 70, 0.15);
  color: var(--primary-red);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-links a:hover {
  background-color: var(--primary-red);
  color: var(--light-white);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(230, 57, 70, 0.3);
}

.social-links a i {
  font-size: 18px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

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

  .nav-menu {
    position: absolute;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--light-white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
  }

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

  .nav-menu li {
    margin: 1rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .feature-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .hero {
    padding: 4rem 1rem;
    min-height: 400px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  section {
    padding: 2rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

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

.text-black {
  color: var(--dark-black);
}

.bg-light {
  background-color: var(--gray-light);
}

.bg-white {
  background-color: var(--light-white);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.px-2 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 2rem; padding-bottom: 2rem; }

.hidden {
  display: none;
}

/* ========================================
   SPECIAL PAGE STYLES
   ======================================== */

.course-item,
.workshop-item {
  background-color: var(--light-white);
  border-left: 5px solid var(--primary-red);
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  animation: slideInFromLeft 0.4s ease-out forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
}

.course-item::before,
.workshop-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
  transition: left 0.4s ease;
}

.course-item:hover::before,
.workshop-item:hover::before {
  left: 100%;
}

.course-item:nth-child(1),
.workshop-item:nth-child(1) { animation-delay: 0.1s; }

.course-item:nth-child(2),
.workshop-item:nth-child(2) { animation-delay: 0.2s; }

.course-item:nth-child(3),
.workshop-item:nth-child(3) { animation-delay: 0.3s; }

.course-item:nth-child(4),
.workshop-item:nth-child(4) { animation-delay: 0.4s; }

.course-item:nth-child(5),
.workshop-item:nth-child(5) { animation-delay: 0.5s; }

.course-item:hover,
.workshop-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.course-item h4,
.workshop-item h4 {
  color: var(--dark-black);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.course-item .duration,
.workshop-item .duration {
  display: inline-block;
  background-color: var(--primary-red);
  color: var(--light-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.stat-box {
  background-color: var(--gray-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-top: 4px solid var(--primary-red);
  animation: popIn 0.35s ease-out forwards;
  opacity: 0;
  transition: var(--transition);
}

.stat-box:nth-child(1) { animation-delay: 0.1s; }
.stat-box:nth-child(2) { animation-delay: 0.2s; }
.stat-box:nth-child(3) { animation-delay: 0.3s; }
.stat-box:nth-child(4) { animation-delay: 0.4s; }

.stat-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  color: var(--primary-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.stat-label {
  color: var(--dark-black);
  font-weight: 600;
}

/* ========================================
   FLOATING WHATSAPP WIDGET
   ======================================== */

.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.whatsapp-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #20ba5e);
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.5s ease-out;
}

.whatsapp-button:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:active {
  transform: scale(0.95);
}

.whatsapp-tooltip {
  position: absolute;
  bottom: 75px;
  right: 0;
  background-color: var(--dark-black);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: -8px;
  right: 8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--dark-black);
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  animation: slideUpTip 0.3s ease;
}

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

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

@media (max-width: 768px) {
  .whatsapp-button {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }
  
  .whatsapp-tooltip {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* ========================================
   RESPONSIVE IMPROVEMENTS FOR HOME PAGE
   ======================================== */

@media (max-width: 1024px) {
  .nav-menu {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
    margin-left: auto;
  }

  .nav-menu a {
    font-size: 0.85rem;
    padding: 0.3rem 0;
  }

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

  section {
    padding: 2rem 1rem;
  }

  .card {
    padding: 1.5rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 1rem;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    top: 70px;
    flex-direction: column;
    background-color: var(--light-white);
    width: 100%;
    text-align: left;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
    padding: 2rem 0;
    gap: 0;
    margin-left: 0;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    margin: 0;
    padding: 1rem 2rem;
  }

  .nav-menu a {
    padding: 0;
    font-size: 1rem;
  }
}
