/* Base Styles & Typography */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, .font-display {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

/* Nav Link Animation */
.nav-link {
    transition: all 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #059669;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 20px;
}

.nav-link.active {
    color: #1e293b;
}

/* Scroll Animation System */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Quiz UI Components */
.quiz-opt {
    background: #1e293b;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.quiz-opt:hover {
    border-color: #cbd5e1;
    background: white;
    transform: scale(1.01);
}

.quiz-opt.correct {
    background: #065f46 !important;
    color: rgb(255, 255, 255) !important;
    border-color: #059669 !important;
}

.quiz-opt.wrong {
    background: #991b1b !important;
    color: white !important;
    border-color: #7f1d1d !important;
}

/* Smooth Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; border: 3px solid #f1f5f9; }
::-webkit-scrollbar-thumb:hover { background: #059669; }




/* Modal Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease;
}


.container {
  display: flex;
  flex-wrap: wrap; /* allows items to adjust on small screens */
}

.box {
  flex: 1 1 300px; /* grows, shrinks, minimum width */
}


/* Default = PC */
.container {
  display: flex;
}

/* Phone */
@media (max-width: 768px) {
  .container {
    flex-direction: column; /* stack items */
  }
}




.calc-btn {
    background: #ffffff10;
    border: 1px solid #ffffff20;
    padding: 14px 20px;
    border-radius: 1rem;
    color: white;
    font-weight: 600;
    transition: 0.3s;
    text-align: left;
}
.calc-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}




#modalImg {
    animation: popZoom 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popZoom {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.info-card, .strategy-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-card:hover, .strategy-card:hover {
    transform: translateY(-10px) scale(1.03) rotate(0.3deg);
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.25);
}



@keyframes popScreen {
    from { opacity: 0; transform: scale(0.55); }
    to { opacity: 1; transform: scale(1); }
}

.animate-pop {
    animation: popScreen 0.4s ease;
}



/* Float Card Animation */
@keyframes floatCard {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
  100% { transform: translateY(0px); }
}
.float-card {
  animation: floatCard 4s ease-in-out infinite;
}

/* Intro Pop Animation */
@keyframes popIntro {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
.animate-popIntro {
  animation: popIntro 0.4s ease;
}

/* Video Pop Animation */
@keyframes videoPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
.animate-videoPop {
  animation: videoPop 0.35s ease;
}








