/*HEADER AND FOOTER STYLE START*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Orbitron:wght@400..900&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #0b0b0c;
    color: #00ff00;
}

/*Apply Orbitron to headings*/
h1, h2, h3, h4, h5, h6, .bn31span, .cta-button, nav, .btn, .ccc, .counter {
    font-family: "Orbitron", sans-serif;
}

/*Apply system font stack to body text */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Make scrollbar transparent */
body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track,
body::-webkit-scrollbar-thumb {
    background: transparent;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    padding-bottom: 5px;
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
}
    
header .container {
    display: flex;
    justify-content: space-between;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

header h1 {
    margin: 0;
    color: #00FF00;
    text-transform: uppercase;
}

/* Navigation styles */
nav {
    position: relative;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav ul li a {
    color: #00FF00;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #00FF00;
    transition: width 0.4s ease, right 0.4s ease;
}

nav ul li a:hover::after {
    width: 100%;
    right: 0;
}

/* Active nav link - always underlined */
nav ul li a.active::after {
    width: 100%;
    right: 0;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #00FF00;
    margin: 5px 0;
}

.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.active .bar:nth-child(2) {
    opacity: 0;
}

.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: rgba(0, 0, 0, 0.765);
        backdrop-filter: blur(5px);
        width: 100%;
    }

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu ul {
        list-style-type: none;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .mobile-menu ul li {
        margin: 10px 0;
    }

    .mobile-menu ul li a {
        color: #00FF00;
        text-decoration: none;
        padding: 10px 0;
    }

    header .container {
        text-align: center;
    }

    nav ul {
        display: inline-block;
        margin-top: 10px;
    }

    nav ul li {
        display: inline-block;
        margin: 0 10px;
    }

    header {
        margin-top: 2px;
    }

    header h1 {
        font-size: 28px;
    }
}

@media (max-width: 365px) {
    header h1 {
        font-size: 25px;
    }
}

@media (max-width: 325px) {
    header h1 {
        font-size: 20px;
    }
}

@media only screen and (max-width: 768px) {
    nav ul {
        margin-top: 5px;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 14px;
    }

    header .container {
        width: 90%;
        padding: 10px;
    }
}

/*HEADER AND FOOTER STYLE END*/

/* ===== REFERRAL PAGE SPECIFIC STYLES ===== */

.section {
    padding: 40px 0;
    opacity: 0;
}

#bgneeded {
    background-color: #0b0b0c;
}

/* Hero Section */
#refer-hero {
    margin-top: 80px;
    padding-top: 40px;
}

.refer-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.refer-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #00ff00;
}

.refer-hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.refer-hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #00ff00;
    color: #000;
    border: 2px solid #00ff00;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    text-align: center;
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: transparent;
    color: #00ff00;
}

.cta-button.secondary {
    background: transparent;
    color: #00ff00;
}

.cta-button.secondary:hover {
    background: #00ff00;
    color: #000;
}

@media (max-width: 768px) {
    #refer-hero {
        margin-top: 60px;
        padding-top: 20px;
    }

    .refer-hero-content h1 {
        font-size: 2.2rem;
    }

    .refer-hero-content p {
        font-size: 1rem;
    }

    .refer-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 90%;
        max-width: 200px;
    }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background-color: #0b0b0c;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #1a1a1a;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-content: center;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.15);
}

.stat-card h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    margin-top: 0px;
    color: #00ff00;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card h2 {
        font-size: 2.2rem;
    }

    .stat-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-card h2 {
        font-size: 1.8rem;
    }
}

/* Qualifying Projects Section */
#refer-qualifying {
    text-align: center;
}

#refer-qualifying h2 {
    text-align: center;
    margin-bottom: 20px;
}
#refer-qualifying p {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.qualifying-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 800px;
    margin: 20px auto 0;
}

.qualifying-item {
    background-color: #0b0b0c;
    padding: 15px 20px;
    border-radius: 5px;
    border: 1px solid #1a1a1a;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.qualifying-item:hover {
    border-color: #00ff00;
}

@media (max-width: 768px) {
    .qualifying-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .qualifying-item {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .qualifying-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .qualifying-item {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}

/* How It Works Section */
#refer-how-it-works {
    text-align: center;
}

#refer-how-it-works h2 {
    text-align: center;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step-card {
    background-color: #0b0b0c;
    padding: 25px 20px;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.15);
}

.step-number {
    display: inline-block;
    font-family: "Orbitron", sans-serif;
    font-size: 2rem;
    color: #00ff00;
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #00ff00;
}

.step-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

.step-note {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    background-color: rgba(0, 255, 0, 0.03);
}

.step-note p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .step-card {
        padding: 20px 15px;
    }

    .step-number {
        font-size: 1.6rem;
    }

    .step-card h3 {
        font-size: 1rem;
    }

    .step-card p {
        font-size: 0.85rem;
    }

    .step-note p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* FAQ Section */
#refer-faq {
    text-align: center;
}

#refer-faq h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #0b0b0c;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #1a1a1a;
    text-align: left;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #00ff00;
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #00ff00;
}

.faq-item p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .faq-item {
        padding: 15px 20px;
    }

    .faq-item h3 {
        font-size: 0.95rem;
    }

    .faq-item p {
        font-size: 0.85rem;
    }
}

/* Final CTA Section */
#refer-cta {
    text-align: center;
}

.refer-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.refer-cta-content h2 {
    margin-bottom: 20px;
}

.refer-cta-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .refer-cta-content p {
        font-size: 1rem;
    }
}

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

.social-icons img {
    width: 36px;
    height: 36px;
}

.social-icons a {
    margin: 0 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .social-icons img {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .social-icons img {
        width: 25px;
        height: 25px;
    }
}

/* Matrix Effect */
.matrix-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    animation: matrixAnimation -1s linear infinite;
}

@keyframes matrixAnimation {
    from {
        transform: translateY(0%);
    }
    to {
        transform: translateY(100%);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

body, html {
    overflow-x: hidden;
}

/* Default font sizes */
h2 {
    font-size: 32px;
}

p {
    font-size: 15px;
}

@media (max-width: 768px) {
    h2 {
        font-size: 25px;
    }

    p {
        font-size: 14px;
    }

    #services h1 {
        font-size: 35px;
    }
}

/* Keep counter style consistent */
.counter {
    font-family: "Orbitron", sans-serif;
}