@import url('https://pro.fontawesome.com/releases/v6.0.0-beta1/css/all.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Condensed&family=Inter:wght@400;600&display=swap');

/* Assuming a root font size of 16px for rem calculations */
:root {
    --grad: linear-gradient(to right, red, blue);
    --primary-color: #007bff;
    --secondary-color: #6c757d;
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.25;
    background-color: #fff5f5;
    color: #333;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #c31432;
    padding: 0.5rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.navbar.scrolled {
    background-color: #c31432;
}

.navbar-logo span {
    font-size: 2.2rem;
    font-weight: bold;
    color: #F3F9FF;
    margin-left: 2rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 5rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-weight: 600; /* Increased font weight */
    font-size: 1.1rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding: 0.25rem 0;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #FFA500;
    border-bottom: 2px solid #FFA500;
}

.signup-button {
    background-color: #fcf9f9;
    color: #c31432;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.signup-button:hover {
    background-color: #f7f7f7;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: #F3F9FF;
    cursor: pointer;
    margin-right: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 5rem 2rem 4rem;
    margin-top: 3.75rem;
    background-image: linear-gradient(to bottom, #c31432, #a10043, #780049, #4d0845, #240b36);
}

.hero h1 {
    font-size: 2.5rem; /* 40px */
    margin-bottom: 1rem;
    color: #f0f8ff;
}

/* Terms Container */
.terms-container {
    max-width: 75rem; 
    margin: 2rem auto;
    padding: 0 2rem;
}

.terms-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #004e77;
}

.terms-container .description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.terms-container ul {
    list-style: none;
    margin: 1rem 0;
}

.terms-container ul li {
    font-size: 1.125rem; /* 18px */
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 2rem;
}

.terms-container ul li::before {
    content: '\f560'; /* fa-check-double */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: transparent;
    background: linear-gradient(to right, red, blue); /* Copied from styles.css */
    background-clip: text;
    -webkit-background-clip: text;
}

.terms-container ul ul {
    margin: 0.5rem 0 0 2rem;
}

.terms-container ul ul li::before {
    content: '\f0a9'; /* fa-hand-point-right */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: transparent;
    background: linear-gradient(to right, red, blue); /* Copied from styles.css */
    background-clip: text;
    -webkit-background-clip: text;
}

/* Footer Styles */
/* Footer */
.footer {
    background-color: #240b36;
    color: #f7f7f7;
    padding: 4rem 5% 1rem;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column h3 {
    font-size: 1.5rem;
    color: #FFA500;
    margin-bottom: 1rem;
}

.footer-column ol {
    list-style: none;
    padding: 0;
}

.footer-column ol li {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}

.footer-column ol li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ol li a:hover {
    color: #fff;
}

.footer-column ol.square li::before {
    content: "\f054";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #c31432;
    position: absolute;
    left: -18px;
    top: 2px;
    font-size: 0.6rem;
    transform: rotate(90deg);
}

.footer-column.address-column ol li {
    padding-left: 0;
}

.footer-social {
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.social-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.footer-social h3 {
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.footer-social h3 i {
    color: #f0f8ff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    width: 3.8rem;
    height: 3.8rem;
    background-color: #fff;
    text-align: center;
    line-height: 3.8rem;
    font-size: 1.8rem;
    margin: 0 10px;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
    z-index: 1;
    transition: transform 0.5s, opacity 0.5s, scale 0.5s;
}

.social-links a i {
    position: relative;
    color: #262626;
    transition: color 0.5s, transform 0.5s;
    z-index: 3;
}

.social-links a:before {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: top 0.5s;
    z-index: 2;
}

.social-links a:nth-child(1):before {
    background: #4267B2;
}

.social-links a:nth-child(2):before {
    background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-links a:nth-child(3):before {
    background: #FF0000;
}

.social-links a:nth-child(4):before {
    background: #0077B5;
}

.social-links a:hover:before {
    top: 0;
}

.social-links a:hover {
    transform: scale(1.2);
}

.social-links a:hover i {
    color: #fff;
    transform: rotateY(360deg);
}
.footer-recognitions {
    max-width: 1200px;
    margin: 0 auto 2rem;
    text-align: center;
}

.recognition-logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.recognition-logos img {
    height: 40px;
    opacity: 0.8;
}

.footer-copy {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    margin: 0;
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #c31432;
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design for Smaller Screens */

/* Media Query for Tablets (768px–1024px) */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    body {
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 0.8rem 1.2rem;
        justify-content: space-between;
        width: 100%;
        max-width: 100vw;
        margin: 0 auto;
    }

    .navbar-logo span {
        font-size: 1.8rem;
        margin-left: 0.8rem;
    }

    .hamburger {
        display: block;
        font-size: 1.4rem;
        margin-right: 1.5rem;
        color: #fff;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100vw;
        background-color: #6f0000;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        display: none;
        z-index: 1000;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu ul {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
        align-items: center;
    }

    .navbar-menu a {
        font-size: 1rem;
        padding: 0.4rem 0;
    }

    .signup-button {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
        align-self: center;
        margin-top: 0.8rem;
    }

    .hero {
        margin-top: 3.8rem;
        padding: 2rem 1rem;
        height: 20vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .terms-container {
        max-width: 90%;
        padding: 0 1.5rem;
    }

    .terms-container h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .terms-container .description {
        font-size: 1rem;
    }

    .terms-container ul li {
        font-size: 1rem;
        padding-left: 1.8rem;
    }

    .terms-container ul li::before {
        font-size: 1rem;
    }

    .terms-container ul ul {
        margin-left: 1.8rem;
    }

    .terms-container ul ul li::before {
        font-size: 0.9rem;
    }

    .footer-columns {
        gap: 0.8rem;
    }

    .footer-column {
        max-width: 220px;
        min-width: 160px;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }

    .footer-column ol li {
        font-size: 0.85rem;
    }

    .footer-social {
        max-width: 500px;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-links a {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.5rem;
        transform: scale(1);
        opacity: 1;
    }

    .social-links a.visible {
        opacity: 1;
        transform: scale(1);
    }

    .social-links a.visible:nth-child(1) {
        background: #4267B2;
        border-color: #fff;
    }

    .social-links a.visible:nth-child(2) {
        background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        border-color: #fff;
    }

    .social-links a.visible:nth-child(3) {
        background: #FF0000;
        border-color: #fff;
    }

    .social-links a.visible:nth-child(4) {
        background: #0077B5;
        border-color: #fff;
    }

    .social-links a.visible i {
        color: #fff;
    }

    .recognition-logos img {
        width: 90px;
    }

    .footer-copy {
        font-size: 0.8rem;
    }

    .go-to-top {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 0.95rem;
    }
}

/* Media Query for Small Laptops (1025px–1366px) */
@media screen and (min-width: 1025px) and (max-width: 1366px) {
    body {
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .navbar {
        padding: 0.4rem;
    }

    .navbar-logo span {
        font-size: 1.9rem;
        margin-left: 1rem;
    }

    .navbar-menu a {
        font-size: 1.1rem;
    }

    .signup-button {
        padding: 0.7rem 1.3rem;
        font-size: 1.1rem;
    }

    .hero {
        margin-top: 3.5rem;
        padding: 2rem 1rem;
        height: 30vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .terms-container {
        max-width: 1000px;
        padding: 0 1.5rem;
    }

    .terms-container h2 {
        font-size: 1.9rem;
    }

    .terms-container .description {
        font-size: 1.05rem;
    }

    .terms-container ul li {
        font-size: 1.1rem;
        padding-left: 1.8rem;
    }

    .terms-container ul li::before {
        font-size: 1.05rem;
    }

    .terms-container ul ul {
        margin-left: 1.8rem;
    }

    .terms-container ul ul li::before {
        font-size: 0.95rem;
    }

    .footer-columns {
        max-width: 900px;
        gap: 1rem;
    }

    .footer-column {
        max-width: 250px;
    }

    .footer-column h3 {
        font-size: 1.3rem;
    }

    .footer-column ol li {
        font-size: 0.9rem;
    }

    .footer-social {
        max-width: 550px;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 3.5rem;
        height: 3.5rem;
        line-height: 3.5rem;
        font-size: 1.8rem;
    }

    .recognition-logos img {
        width: 110px;
    }

    .footer-copy {
        font-size: 0.85rem;
    }
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem;
    }

    .navbar-logo span {
        font-size: 1.4rem;
        margin-left: 0.5rem;
    }

    .hamburger {
        display: block;
        font-size: 1.1rem;
        margin-right: 1.5rem;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #6f0000;
        flex-direction: column;
        padding: 1rem;
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu ul {
        flex-direction: column; /* Vertical layout for mobile */
        gap: 0.8rem;
        align-items: center;
    }

    .navbar-menu a {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .signup-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.8rem;
    }

    .hero {
        margin-top: 2.5rem;
        padding: 3rem 0.5rem;
        min-height: 25vh;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    /* Terms Container */
    .terms-container h2 {
        font-size: 1.5rem; 
    }

    .terms-container .description {
        font-size: 0.9rem;
    }

    .terms-container ul li {
        font-size: 0.9rem; 
    }

    .card-content p {
        font-size: 0.85rem;
    }

    .footer-columns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-column {
        max-width: 90%;
        min-width: 0;
    }

    .footer-column h3 {
        font-size: 1.2rem;
    }

    .footer-column ol li {
        font-size: 0.85rem;
    }

    .footer-social {
        overflow: hidden;
    }

    .social-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    .social-links a {
        width: 2.3rem;
        height: 2.3rem;
        line-height: 2.5rem;
        font-size: 25px;
        margin: 0;
        opacity: 0;
        transform: scale(0.8);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .social-links a.visible {
        opacity: 1;
        transform: scale(1);
    }

    .social-links a.visible:nth-child(1) {
        background: #4267B2;
        border-color: #fff;
    }

    .social-links a.visible:nth-child(2) {
        background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        border-color: #fff;
    }

    .social-links a.visible:nth-child(3) {
        background: #FF0000;
        border-color: #fff;
    }

    .social-links a.visible:nth-child(4) {
        background: #0077B5;
        border-color: #fff;
    }

    .social-links a.visible i {
        color: #fff;
    }

    .recognition-logos img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .navbar-logo span {
        font-size: 1.2rem;
    }

    .hamburger {
        font-size: 1rem;
    }

    .navbar-menu a {
        font-size: 0.8rem;
    }

    .signup-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .about-section h2,
    .mission-section h2,
    .values-section h2 {
        font-size: 1.4rem;
    }

    .about-section p {
        font-size: 0.85rem;
    }

    .card {
        width: 95%;
        min-height: 240px;
    }

    .card img {
        height: 90px;
    }

    .card-content h3 {
        font-size: 0.95rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }

    .footer-column h3 {
        font-size: 1.1rem;
    }

    .footer-column ol li {
        font-size: 0.8rem;
    }

    .footer-social h3 {
        font-size: 1.1rem;
    }

    .footer-social {
        overflow: hidden;
    }

    .social-row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-links {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }

    .social-links a {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.5rem;
        margin: 0;
        opacity: 0;
        transform: scale(0.8);
        transition: transform 0.5s ease, opacity 0.5s ease;
    }

    .social-links a.visible {
        opacity: 1;
        transform: scale(1);
    }

    .social-links a.visible:nth-child(1) {
        background: #4267B2;
        border-color: #fff;
    }

    .social-links a.visible:nth-child(2) {
        background-image: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
        border-color: #fff;
    }

    .social-links a.visible:nth-child(3) {
        background: #FF0000;
        border-color: #fff;
    }

    .social-links a.visible:nth-child(4) {
        background: #0077B5;
        border-color: #fff;
    }

    .social-links a.visible i {
        color: #fff;
    }

    .recognition-logos img {
        width: 70px;
    }

    .footer-copy {
        font-size: 0.8rem;
    }

    .go-to-top {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 0.9rem;
    }
}