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

:root {
    --dark-blue: #001335;
    --gold: #ffd352;
    --beige: #fff9e3;
    --red: #cc3433;
}

@font-face {
    font-family: 'pixel-game';
    font-display: auto;
    src: url('font/PixelGameFont.woff2') format('woff2'),
         url('font/PixelGameFont.woff') format('woff');
}

body {
    background-color: var(--dark-blue);
    font-family: pixel-game , sans-serif;
    font-weight: bold;
}

/* Navbar */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--beige);
    padding: 10px 250px;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 57px;
    left: 0;
    right: 0;
    background-color: var(--beige);
    flex-direction: column;
    padding: 10px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.dropdown-menu a {
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 1.25rem;
    text-transform: uppercase;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 225px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 225px;
}

.nav-links a {
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 1.25rem;
    text-transform: uppercase;
}

.get-started {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 225px;
}

.get-started a {
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.25rem;
    text-transform: uppercase;
    height: 37px;
}

/* Hero Section */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 68px); /* Adjusted for navbar height */
    text-align: center;
    color: var(--beige);
    background-image: url('images/hero-bg.jpg');
    background-position: center;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 20px;
}

.hero h1.highlight-gold {
    color: var(--gold);
}

.hero .highlight-red {
    color: var(--red);
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-100%); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(100%); }
    100% { opacity: 1; transform: translateX(0); }
}

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

/* Ensuring h1 elements are initially hidden */
.hero h1 {
    opacity: 0;
}

/* Applying unique animations to each h1 */
.hero h1:nth-child(1) {
    animation: scaleUp 1s ease-out forwards;
}

.hero h1:nth-child(2) {
    animation: slideInLeft 1s ease-out forwards;
    animation-delay: 0.5s;
}

.hero h1:nth-child(3) {
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 1s;
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.hero-btn {
    position: relative;
    display: inline-block;
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 16px 35px;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
    font-family: pixel-game, sans-serif;
    letter-spacing: 2px;
    border: 3px solid var(--dark-blue);
    box-shadow: 4px 4px var(--red);
    opacity: 0; /* Initially hidden */
    animation: popIn 1s ease-out forwards, scalePulse 2s ease-in-out infinite 2.5s;
    animation-delay: 1.5s; /* Delay the button animation start to show up after other elements */
    transition: transform 0.2s;
    height: 65px;
    cursor: pointer;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid var(--dark-blue);
    z-index: -1;
}

.hero-btn:hover {
    transform: translate(-6px, -6px) scale(1.1);
    box-shadow: 6px 6px var(--beige), 0 0 25px var(--gold), 0 0 50px var(--red);
}

/* How it works section */

.heading {
    text-align: center;
    color: var(--beige);
    font-size: 3.5rem;
    margin: 30px 0;
}

.works-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 50px;
    padding: 0 100px;
    background-color: var(--gold);
    color: var(--dark-blue);
    height: 75vh;
}

.step-title {
    position: absolute;
    left: 1%;
    top: 15%;
    font-size: 1rem;
    background-color: beige;
    border-radius: 12px;
    padding: 20px;
}

.step-image img {
    width: 850px;
    border: 5px dashed var(--dark-blue);
    border-radius: 12px;
}

.step-text {
    font-size: 1.2rem;
}

.step-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 12px;
    background-color: var(--dark-blue);
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: transform 0.2s;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}

.hidden {
    display: none;
}

.show {
    display: flex;
}

/* Firms section */

.firms-section {
    margin-bottom: 50px;
}

.firms-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 0 30px;
}

.firm-card {
    height: 800px;
    width: 300px;
    display: flex;
    flex-direction: column;
    background-color: var(--beige);
}

.firm-card img {
    width: 100%;
    height: 75%;
    object-fit: cover;
}

.firm-card h2 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin: 10px 0;
}

.firm-card p {
    font-size: 1rem;
    color: var(--dark-blue);
    padding: 0 10px;
}

.firm-card .tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
}

.firm-card .tag {
    background-color: var(--dark-blue);
    color: var(--gold);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.firm-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    margin-bottom: 10px;
    text-align: center;
}

.firm-card a {
    background-color: var(--dark-blue);
    color: var(--beige);
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.25rem;
}

.firms-more-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    width: 100%;
}

.firms-more {
    text-align: center;
    font-size: 2.2rem;
    text-decoration: none;
    background-color: var(--gold);
    color: var(--dark-blue);
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease-in-out;
    height: 48px;
}

.firms-more:hover {
    transform: scale(1.05);
}

/* FAQ Section */


.faq-section {
    background-color: var(--beige);
    padding: 50px 100px;
}

.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    width: 100%;
    background-color: var(--gold);
    color: var(--dark-blue);
    font-family: pixel-game, sans-serif;
    font-size: 1.5rem;
    padding: 15px;
    text-align: left;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--dark-blue);
    color: var(--beige);
}

.faq-answer {
    background-color: var(--beige);
    color: var(--dark-blue);
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.faq-question span {
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"] span {
    transform: rotate(180deg);
}

/* CTA Section */

.cta-section {
    background-color: var(--gold);
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0% 100%);
    color: var(--dark-blue);
    text-align: center;
    padding: 60px 50px;
    margin-bottom: 100px;
    animation: fadeIn 1.5s ease-out both;
    position: relative;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-mascot {
    width: 500px;
    position: absolute;
    top: 50%;
    left: 3%;
    transform: translateX(-50%);
    animation: mascotFloat 3s ease-in-out infinite;
    z-index: 1;
    rotate: 34deg;
}

.cta-heading, .cta-description, .cta-button {
    z-index: 2;
}

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

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.cta-heading {
    font-family: pixel-game, sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    position: relative;
    animation: slideInFromLeft 1s ease-out forwards;
}

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

.cta-description {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeIn 2s ease-out 0.5s forwards;
    max-width: 750px;
}

.cta-button {
    background-color: var(--dark-blue);
    color: var(--beige);
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.5rem;
    letter-spacing: 2px;
    transition: transform 0.2s, background-color 0.3s;
}

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

.cta-button:hover {
    background-color: var(--dark-blue);
    color: var(--beige);
    transform: scale(1.05);
}

/* Footer */

.footer {
    background-color: var(--dark-blue);
    color: var(--beige);
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-logo img {
    width: 100px;
}

.footer-columns {
    display: flex;
    gap: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--gold)
}

.footer-column a {
    color: var(--beige);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social a img {
    width: 40px;
    transition: transform 0.3s;
}

.footer-social a:hover img {
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 0.9rem;
    margin-top: 20px;
    width: 100%;
}

/* Signup Form */

.signup-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    height: calc(100vh - 68px);
}

.signup-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--beige);
    padding: 40px;
    margin: 0;
    color: var(--dark-blue);
    border-radius: 12px;
    width: 100%;
}

.signup-image img {
    width: 100%;
    border-radius: 12px;
}

.signup-heading {
    font-family: pixel-game, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.signup-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-collection {
    display: flex;
    gap: 15px;
    width: 100%;
}

.input-collection .input-group {
    width: 48%;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group label {
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: bold;
}

.signup-form input {
    font-size: 1rem;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid var(--dark-blue);
    background-color: var(--beige);
    font-family: pixel-game, sans-serif;
}

.signup-btn {
    font-size: 1.2rem;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    border: none;
    background-color: var(--gold);
    color: var(--dark-blue);
    font-weight: bold;
    transition: transform 0.3s;
    margin-top: 20px;
    font-family: pixel-game, sans-serif;
    cursor: pointer;
}

.signup-btn:hover {
    transform: scale(1.05);
}

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    border: none;
    background-color: var(--red);
    color: white;
    font-weight: bold;
    transition: transform 0.3s;
    font-family: pixel-game, sans-serif;
    margin-top: 10px;
    cursor: pointer;
}

.google-btn:hover {
    transform: scale(1.05);
}

.google-logo {
    width: 20px;
    margin-right: 10px;
    fill: white;
}

.login-link {
    font-size: 1rem;
    margin-top: 10px;
    text-align: center;
}

.login-link a {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.login-link a:hover {
    color: var(--dark-blue);
}

/* For firms page */


.grid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 20px;
  padding: 20px 20%;
}

.grid-item.text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  color: var(--gold);
}

.grid-item.text h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.grid-item.text p {
    font-size: 1.2rem;
    color: var(--beige);
}

.grid-item.text .highlight-red {
    color: var(--red);
    text-shadow: 0 0 10px var(--red);
}

.grid-item.image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item.image img {
  max-width: 100%;
  width: 500px;
  border-radius: 12px;
}

/* Responsive Styles */

.works-section-mobile {
    display: none;
}

@media (max-width: 768px) {
    .navbar {
        padding: 5px 10px;
        position: fixed;
        width: 100%;
        z-index: 99999;
    }

    .nav-links, .get-started {
        display: none;
    }

    .hamburger-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-btn {
        padding: 16px 10px;
        font-size: 1.25rem;
    }

    .works-section.desktop-version {
        display: none;
    }

    .works-section-mobile {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: auto;
        background-color: var(--gold);
        color: var(--dark-blue);
    }



    .step {
        margin-bottom: 40px;
        width: 100%;
        border-bottom: 2px dashed var(--dark-blue);
        padding-bottom: 20px;
    }

    .step-title, .step-text {
        width: 90%;
        margin: 0 auto;
    }

    .step-image img {
        width: 100%;
        height: auto;
        border: none;
        margin-bottom: 20px;
    }

    .step-title {
        position: static;
        background: none;
        padding: 10px 0;
        text-align: center;
    }
    
    .firm-button {
        margin-top: 10px;
        margin-inline: auto;
        width: 80%;
    }

    .faq-section {
        padding: 50px;
    }

    .faq-heading {
        font-size: 2.5rem;
    }

    .cta-section {
        clip-path: none;
        height: auto;
        margin-bottom: 0;
    }

    .cta-mascot {
        width: 150px;
        position: static;
        rotate: 0deg;
        translate: 50%;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .footer-columns {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .footer-social {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
    }

    .grid-section {
        padding: 0;
    }

    .grid-item.image img {
        width: 200px;
    }

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

    .grid-item.text h1 {
        font-size: 2rem;
    }

    .grid-item.text p {
        font-size: 1rem;
    }

    .signup-page {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .signup-image {
        display: none;
    }

    .signup-section {
        width: 400px;
        padding: 10px;
        margin-inline: auto;
    }

    .signup-heading {
        font-size: 2rem;
        text-align: center;
        width: 100%;
    }

    .signup-btn, .google-btn {
        font-size: 1rem;
    }
}