/* ======================
   BASE STYLES
   ====================== */

/* General body styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}


/* ======================
   LANGUAGES SECTION (DUAS LISTING)
   ====================== */

/* Main container for duas section */
.languages-section {
    padding: 2rem;
    text-align: center;
}

/* Section title styling */
.section-title {
    font-size: 2.5rem;
    color: #ff0000 !important;
    margin-bottom: 1rem !important;
    margin-top: 1rem !important;
    opacity: 1;
    transform: translateY(-20px);
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    border: 1px solid black;
    padding: 1rem;
}

/* Visible state for section title */
.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Container for all dua cards */
.languages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Individual dua card styling */
.language-card {
    background: rgb(197, 197, 197);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    width: 300px;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Horizontal border animation (top and bottom) */
.language-card::before,
.language-card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #000000;
    left: 0;
    animation: animateLine 13s linear infinite;
}

/* Top border */
.language-card::before {
    top: 0;
}

/* Bottom border */
.language-card::after {
    bottom: 0;
}

/* Vertical border animation (left and right) */
.language-card .vertical-line::before,
.language-card .vertical-line::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 4px;
    background: #922525;
    top: 0;
    animation: animateLine 2s linear infinite;
}

/* Left border */
.language-card .vertical-line::before {
    left: 0;
}

/* Right border */
.language-card .vertical-line::after {
    right: 0;
}

/* Border animation keyframes */
@keyframes animateLine {
    0% {
        transform: scaleX(0);
    }
    50% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

/* Visible state for dua cards */
.language-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects for dua cards */
.language-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
    transition: transform 2s ease;
    border: 1px dotted darkgreen;
    transform: translateY(-12px);
    box-shadow: 0 15px 15px rgba(255, 0, 0, 0.2);
}

/* Dua title styling */
.language-title {
    font-size: 1.5rem;
    color: #ff0000;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Dua text styling */
.language-description {
    font-size: 1rem;
    color: black;
    font-weight: bold;
}

/* ======================
   ANIMATIONS
   ====================== */

/* Fade in from top animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in from bottom animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Back to Top Button */
.fabs {
  position: fixed;
  bottom: 97px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #2b6777, #52ab98);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
  opacity: 1;
  transform: translateY(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fabs.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fabs:hover {
  background: linear-gradient(135deg, #52ab98, #2b6777);
  transform: translateY(-1px) scale(1.09);
  box-shadow: 0 6px 25px rgba(43, 103, 119, 0.4);
}

.fabs:active {
  transform: scale(0.98);
}

/* Animation when scrolling appears */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fabs {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
    bottom: 100px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .fabs {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    bottom: 100px;
    right: 22px;
  }
}




