/* index.css */

body {
    background-color: #f8f9fb;
    background-image: radial-gradient(rgba(0,0,0,0.07) 1px, transparent 1px),
                      radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px, 12px 12px;
    background-position: 0 0, 12px 12px;
}

.index-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    text-align: center;
    border-radius: 18px;
}

.index-title {
    font-size: 3.5rem;
    font-weight: 700;
}

.index-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
}

@keyframes float-once {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  }
}

.feature-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    height: 100%;
}

.feature-card.is-floating {
    animation: float-once 1.5s ease-in-out;
}

.feature-card.floating:hover {
    animation-play-state: paused;
}

/* Stagger the floating animations (clockwise) */
.why-learn .col-sm-6:nth-child(1) .feature-card.floating { animation-delay: 0s; }
.why-learn .col-sm-6:nth-child(2) .feature-card.floating { animation-delay: 0.25s; }
.why-learn .col-sm-6:nth-child(4) .feature-card.floating { animation-delay: 0.5s; }
.why-learn .col-sm-6:nth-child(3) .feature-card.floating { animation-delay: 0.75s; }

.feature-card .card-body {
    padding: 1.5rem;
}

.feature-card .card-title {
    font-weight: 600;
    color: #343a40;
}

.how-it-works-list .list-group-item {
    border-radius: 2rem !important;
    margin-bottom: 0.75rem;
    border-width: 1.5px;
    font-weight: 500;
    background: #fff;
    box-shadow: 0 4px 16px rgba(80, 120, 200, 0.08), 0 1.5px 4px rgba(0,0,0,0.04);
    border: 1.5px solid #e3e8f0;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.how-it-works-list .list-group-item:hover {
    box-shadow: 0 8px 24px rgba(80, 120, 200, 0.13), 0 2px 8px rgba(0,0,0,0.07);
    border-color: #b6c6e6;
}

.how-it-works-list .list-group-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.how-it-works-list-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0;
}

.how-it-works-list-flex .list-group-item {
    display: inline-block;
    width: auto;
    min-width: 180px;
    max-width: 90vw;
    text-align: center;
    margin-bottom: 0;
    padding: 0.7rem 1.5rem;
    opacity: 0;
    transform: scale(0.92);
    transition: box-shadow 0.3s, border-color 0.3s, opacity 0.4s, transform 0.4s;
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  70% {
    opacity: 1;
    transform: scale(1.10);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.how-it-works-list-flex .list-group-item.visible {
    opacity: 1;
    transform: scale(1);
    animation: pop-in 0.38s cubic-bezier(.4,1.6,.6,1.1) both;
}

.index-bg-icons {
    position: absolute;
    left: 0; right: 0; bottom: 0; top: 0;
    pointer-events: none;
    z-index: 0;
}

@keyframes swim {
  0%   { transform: translateY(0) translateX(0); }
  25%  { transform: translateY(-24px) translateX(18px); }
  50%  { transform: translateY(0) translateX(36px); }
  75%  { transform: translateY(24px) translateX(18px); }
  100% { transform: translateY(0) translateX(0); }
}

.bg-icon {
    position: absolute;
    width: 36px;
    height: 36px;
    opacity: 0.38;
    filter: drop-shadow(0 2px 8px rgba(80,80,80,0.10));
    z-index: 0;
    user-select: none;
    animation: swim 18s ease-in-out infinite;
}
.bg-icon.pdf { left: 2%; top: 7%; animation-delay: 0s; }
.bg-icon.notebook { left: 90%; top: 12%; animation-delay: 2s; animation-direction: reverse; }
.bg-icon.pencil { left: 6%; top: 92%; animation-delay: 4s; }
.bg-icon.exam { left: 88%; top: 88%; animation-delay: 6s; animation-direction: reverse; }
.bg-icon.pill { left: 52%; top: 96%; animation-delay: 8s; }
.bg-icon.flask { left: 95%; top: 60%; animation-delay: 10s; animation-direction: reverse; }
.bg-icon.bacteria1 { left: 3%; top: 60%; animation-delay: 12s; }
.bg-icon.bacteria2 { left: 96%; top: 80%; animation-delay: 14s; animation-direction: reverse; }
.bg-icon.magnet { left: 95%; top: 35%; animation-delay: 16s; }
.bg-icon.ai { left: 8%; top: 25%; animation-delay: 3s; animation-direction: reverse; }
.bg-icon.chronometer { left: 92%; top: 50%; animation-delay: 5s; }
.bg-icon.remove { left: 12%; top: 75%; animation-delay: 7s; animation-direction: reverse; }
.bg-icon.test { left: 80%; top: 97%; animation-delay: 9s; }
.bg-icon.ecommerce { left: 10%; top: 45%; animation-delay: 11s; animation-direction: reverse; }

@media (max-width: 900px) {
  .bg-icon { width: 24px; height: 24px; }
  .bg-icon.pdf { left: 2%; top: 10%; }
  .bg-icon.notebook { left: 85%; top: 18%; }
  .bg-icon.pencil { left: 5%; top: 97%; }
  .bg-icon.exam { left: 80%; top: 97%; }
  .bg-icon.pill { left: 52%; top: 99%; }
  .bg-icon.flask { left: 95%; top: 70%; }
  .bg-icon.bacteria1 { left: 3%; top: 75%; }
  .bg-icon.bacteria2 { left: 96%; top: 90%; }
  .bg-icon.magnet { left: 95%; top: 40%; }
  .bg-icon.ai { left: 8%; top: 35%; }
  .bg-icon.chronometer { left: 92%; top: 60%; }
  .bg-icon.remove { left: 12%; top: 85%; }
  .bg-icon.test { left: 80%; top: 99%; }
  .bg-icon.ecommerce { left: 10%; top: 55%; }
}

/* Content Section Styling */
.content-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    border-radius: 20px;
    margin: 3rem 0;
}

.why-section {
    padding: 2rem 0;
}

/* Small Video Styling */
.video-container {
    max-width: 100%;
}

.video-wrapper-small {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    background: #000;
}

.intro-video-small {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Better spacing for How it works */
.how-it-works-list {
    max-width: 400px;
    margin: 0 auto;
}

/* Why section cards in 4 columns */
.why-learn .col-md-3 {
    display: flex;
}

.why-learn .feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.why-learn .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .video-wrapper-small {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .why-learn .col-md-3 {
        margin-bottom: 1rem;
    }
    
    /* Stack how-it-works and video on mobile */
    .content-section .col-md-6:first-child {
        margin-bottom: 2rem;
    }
} 