@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Outfit:wght@100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&display=swap');

/*----- Root -----*/
:root {
    --font-title: "Outfit";
    --font-text: "Hind Siliguri";
    --primary: #21a85e;
    --secondary: #66999B;
    --tertiary: #E9B44C;
    --dark: #2D3047;
    --light-bg: #F5F6FA;
}

/*----- General Settings -----*/
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

p, a, li {
    font-family: var(--font-text);
}

/*----- General Animation Classes -----*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(to right, #30e7b9, #30d876, #a5ff30, #34D399, #2DD4BF);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-flow 6s linear infinite;
}

/*----- Header -----*/
header {
    background-color: var(--dark);
    padding: 5px 30px;
    display: grid;
    grid-template-columns: minmax(50px, 170px) 1fr;
    grid-template-rows: 80px;
    align-items: center;
}

#logo-finmind {
    width: 140px;
    height: 70px;
}

menu {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    gap: 30px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--light-bg);
    font-size: 17px;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/*----- General Button -----*/
button {
    width: 130px;
    height: 50px;
    font-size: 17px;
    font-weight: 600;
    background-color: var(--primary);
    color: var(--light-bg);
    border: none;
    border-radius: 15px;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

/*----- Hero Section -----*/
section#hero {
    padding: 100px 100px 0px 100px;
    display: grid;
    grid-template-columns: minmax(350px, 783px) 1fr;
    align-items: center;
}

#flex-container-hero {
    display: flex;
    flex-flow: column;
    text-align: left;
    gap: 10px;
}

#flex-container-hero > h1 {
    font-weight: 400;
    font-size: 150px;
    line-height: 115px;
}

#flex-container-hero > p {
    max-width: 783px;
    margin-top: 50px;
    font-size: 22px;
}

#flex-container-hero > button {
    width: 160px;
    height: 65px;
    margin-top: 50px;
    font-size: 19px;
    animation-delay: 0.6s;
}

#flex-container-hero > h1,
#flex-container-hero > p,
#flex-container-hero > button {
    opacity: 0;
    animation: fadeIn-up 0.8s ease-out forwards;
}

#flex-container-hero > p {
    animation-delay: 0.3s;
}

img#phone {
    width: 100%;
    min-width: 500px;
    max-width: 600px;
    max-height: 550px;
    justify-self: center;
    animation: floatAnimation 4s ease-in-out infinite;
}

/*----- Features Section -----*/
section#features {
    margin: 60px 0px;
    padding: 20px 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto;
    align-items: center;
    justify-items: center;
    gap: 20px;
}

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

.feature-card:hover .feature-icon {
    transform: translateY(-8px);
}

div.feature-card {
    max-width: 450px;
    padding: 20px;
    text-align: center;
    border-radius: 15px;
    color: var(--dark);
}

div.feature-card > h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

div.feature-card > p {
    font-size: 17px;
}

/*----- Learn Section -----*/
section#learn {
    background-color: var(--dark);
    color: var(--light-bg);
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    padding: 40px 20px;
}

#learn h1 {
    font-size: 60px;
    text-align: center;
    padding-bottom: 25px;
}

#learn p {
    font-size: 20px;
    text-align: center;
}

img#finance-path {
    width: 100%;
    max-width: 800px;
}

/*----- Testimonials Section -----*/
section#testimonials {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

.carousel-container {
    width: 90%;
    max-width: 1200px;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-track {
    display: flex;
    gap: 30px;
    animation: scroll-infinite 40s linear infinite;
}

.testimony {
    flex: 0 0 calc(50% - 15px);
    padding: 30px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #cccccc;
    border-radius: 15px;
}

.testimony img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 20px;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimony h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 0 0 10px 0;
}

.testimony p {
    color: #323232;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/*----- Pricing Section -----*/
section#pricing {
    background-color: var(--light-bg);
    color: var(--dark);
    display: flex;
    padding: 80px 20px;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    flex-wrap: wrap;
}

div.plan {
    max-width: 400px;
    width: 100%;
    height: 650px;
    padding: 25px 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
}

div.plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

div.plan h3 {
    font-size: 70px;
    font-weight: 400;
    text-align: center;
}

div.plan h4 {
    font-size: 40px;
    font-weight: 400;
    text-align: start;
}

div.plan p {
    font-size: 20px;
    text-align: center;
}

#plan-starter {
    border: 5px solid transparent;
    border-image: linear-gradient(45deg, #2D3047, #888db4) 1;
}

#plan-pro {
    position: relative;
    border: 5px solid transparent;
    border-image: linear-gradient(45deg, #1a8148, #4fe693) 1;
}

#plan-pro-chosen {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: var(--primary);
    width: 170px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

#plan-pro h3,
#plan-pro span.price-value {
    color: var(--primary);
}

#plan-premium {
    border: 5px solid transparent;
    border-image: linear-gradient(45deg, #c08f2c, #ffc85a) 1;
}

#plan-premium h3,
#plan-premium span.price-value {
    color: var(--tertiary);
}

div.price-container {
    display: grid;
    grid-template-columns: auto 1fr;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

span.price-value {
    font-size: 70px;
}

p.price {
    display: contents;
}

p.price span.price-text {
    min-height: 40px;
    font-size: 20px;
    text-align: left;
    line-height: 20px;
}

div.plan ul {
    list-style-type: none;
    line-height: 40px;
}

div.plan li {
    font-size: 25px;
    font-weight: 300;
}

div.plan li::before {
    content: '✔️ ';
}

div.plan li.disabled::before {
    content: '❌ ';
}

.pricing-button-container {
    margin-top: 20px;
}

.pricing-button-container .pricing-button {
    width: 100%;
    max-width: 300px;
    height: 45px;
    margin: 0 auto;
    display: block;
}

/*----- Final CTA Section -----*/
section#final-cta {
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    justify-items: center;
    align-items: center;
    gap: 30px;
}

section#final-cta h1 {
    color: black;
    font-size: 130px;
    text-align: center;
    line-height: 115px;
}

img#computer-finmind {
    margin-top: -100px;
    height: 650px;
    width: 100%;
    max-width: 700px;
    grid-row: 3;
}

#button-join-finmind {
    margin-top: 50px;
    width: 150px;
    height: 70px;
    grid-row: 2;
    justify-self: center;
    position: relative;
    overflow: hidden;
}

#button-join-finmind::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 75%;
    height: 100%;
    background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine-effect 4s infinite linear;
}

/*----- Footer -----*/
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
}

footer a {
    display: inline-block;
    color: #00bfff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
    transform: scale(1.05);
}

/*----- Keyframes -----*/
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes fadeIn-up {
    to { opacity: 1; }
}

@keyframes scroll-infinite {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes shine-effect {
    100% { left: 200%; }
}

/*----- Responsivity (Only additions below) -----*/

@media (max-width: 1200px) {
    #flex-container-hero > h1 { font-size: 100px; line-height: 90px; }
    section#hero { padding: 80px 50px; }
    section#final-cta h1 { font-size: 100px; line-height: 90px; }
    img#computer-finmind { margin-top: -50px; max-width: 600px; height: auto; }
}

@media (max-width: 992px) {
    section#hero { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    #flex-container-hero { align-items: center; text-align: center; }
    img#phone { max-width: 400px; min-width: 0; }
    section#features { grid-template-columns: 1fr 1fr; padding: 20px 50px; }
    header { grid-template-columns: 140px 1fr; }
    menu { justify-content: flex-end; }
    header menu > button { display: none; }
}

@media (max-width: 768px) {
    #flex-container-hero > h1 { font-size: 60px; line-height: 55px; }
    #flex-container-hero > p { font-size: 18px; margin-top: 30px; }
    section#features { grid-template-columns: 1fr; }
    #learn h1 { font-size: 40px; }
    .testimony { flex: 0 0 85%; }
    section#final-cta h1 { font-size: 60px; line-height: 55px; }
    img#computer-finmind { margin-top: 0; }
    header { grid-template-columns: 1fr; justify-items: center; }
    menu { flex-direction: column; align-items: center; margin-top: 20px; }
}

@media (max-width: 480px) {
    #flex-container-hero > h1 { font-size: 45px; line-height: 42px; }
    section#hero { padding: 60px 20px; }
    div.plan { padding: 25px 20px; height: auto; min-height: 600px; }
    div.plan h3 { font-size: 50px; }
    span.price-value { font-size: 50px; }
}