/* =================================================
   GLOBAL RESET
   ================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    background-color: #333;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    overflow-x: hidden;
}

/* =================================================
   UTILITIES
   ================================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 0;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
}

/* =================================================
   FULL WIDTH SECTIONS
   ================================================= */
.full-width-section {
    width: 100%;
    min-height: 600px;
    padding: 0;
    background-size: cover;
    background-attachment: fixed;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Only apply to non-video images inside sections */
.full-width-section img {
    max-width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

/* =================================================
   VIDEO BACKGROUNDS - MOBILE FIXED
   ================================================= */
.full-width-section video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: none;
    user-select: none;
    background: transparent;
    transition: opacity 0.5s ease;
}

/* Dark overlay */
.full-width-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.full-width-section.video-active::before {
    background: rgba(0, 0, 0, 0.6);
}

/* Content layers above overlay */
.full-width-section .value-content,
.full-width-section .service-content-wrapper,
.full-width-section .testimonials-content-wrapper,
.full-width-section .about-us-content-wrapper {
    position: relative;
    z-index: 2;
}

/* =================================================
   HIDE ALL VIDEO CONTROLS - COMPREHENSIVE
   ================================================= */
video::-webkit-media-controls {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
    -webkit-appearance: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
    -webkit-appearance: none !important;
}

video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

video::-webkit-media-controls-overlay-play-button {
    display: none !important;
    -webkit-appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button,
video::-webkit-media-controls-enclosure {
    display: none !important;
    -webkit-appearance: none !important;
}

video::-moz-media-controls {
    display: none !important;
}

video::-moz-media-controls-panel {
    display: none !important;
}

/* iOS-specific fix */
@supports (-webkit-touch-callout: none) {
    .full-width-section video {
        pointer-events: none !important;
        -webkit-appearance: none !important;
    }

    video::-webkit-media-controls-start-playback-button {
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }

    video::-webkit-media-controls-overlay-play-button {
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* =================================================
   HEADER & NAVIGATION
   ================================================= */
nav {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    z-index: 1000;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    padding: 0 30px;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease-in-out;
}

nav.scrolled {
    height: 65px;
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(255, 193, 7, 0.4);
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-width: 100px;
    max-height: 70px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links li a {
    text-decoration: none;
    color: #ccc;
    padding: 5px 0;
    display: block;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links li a:hover {
    color: #ffc107;
    border-bottom: 2px solid #ffc107;
}

.nav-links li a.active {
    color: #ffc107;
    border-bottom: 2px solid #ffc107;
    font-weight: 700;
}

/* Get Funded CTA in Nav */
.nav-cta {
    background-color: #ffc107 !important;
    color: #111 !important;
    padding: 8px 20px !important;
    border-radius: 5px;
    font-weight: 700 !important;
    transition: background-color 0.3s !important;
}

.nav-cta:hover {
    background-color: #e0a800 !important;
    border-bottom: none !important;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #ffc107;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation when open */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* =================================================
   HERO SECTION
   ================================================= */
.value-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.value-image {
    flex: 1;
    max-width: 40%;
}

.value-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.value-text {
    flex: 1.5;
}

/* =================================================
   CTA BANNER
   ================================================= */
.cta-button {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #e0a800;
}

.cta-standalone-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    max-height: 100px;
}

.cta-standalone-wrapper .cta-button {
    padding: 18px 60px;
    font-size: 1.2em;
    margin: 0;
}

/* =================================================
   SERVICES
   ================================================= */
.service-content-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}

.service-card {
    background: #1a1a1a;
    padding: 30px;
    border: 1px solid #333;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
}

/* =================================================
   CREDIT REPAIR
   ================================================= */
.credit-content-block h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.credit-content-block p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.process-description {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.process-description p {
    font-size: 1.1em;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.credit-repair-image {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.credit-repair-image img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* =================================================
   IMAGE MODAL/LIGHTBOX
   ================================================= */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #ffc107;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.modal-close:hover {
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* =================================================
   HOW WE WORK
   ================================================= */
.process-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* =================================================
   TESTIMONIALS
   ================================================= */
#testimonials {
    background-image: url('./assets/images/testimonials-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.testimonials-content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 40px;
    max-width: 1400px;
}

.testimonial-card {
    background: #1a1a1a;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
}

.testimonial-card p {
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.testimonial-author {
    color: #ffc107;
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

/* =================================================
   TYPOGRAPHY
   ================================================= */
h2 {
    color: #ffc107;
    font-weight: 700;
}

.service-card h3,
.credit-content-block h3,
.process-step h3 {
    color: #ffc107;
    margin-bottom: 15px;
}

p {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.full-width-section .value-text p,
.full-width-section .service-card p {
    color: #ccc;
}

/* =================================================
   ABOUT US
   ================================================= */
#about-us-section {
    background-color: #111;
    min-height: 700px;
    padding: 80px 0;
}

.about-us-content-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    text-align: left;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.about-us-image {
    flex: 1;
    min-width: 40%;
}

.about-us-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.about-us-text {
    flex: 1.5;
}

.about-us-text h2 {
    color: #ffc107;
    font-size: 2.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid rgba(255, 193, 7, 0.5);
    display: inline-block;
    padding-bottom: 5px;
}

.about-us-text p {
    font-size: 1.15em;
    margin-bottom: 20px;
    color: #ccc;
}

/* =================================================
   FOOTER
   ================================================= */
.footer-disclaimer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.footer-disclaimer p {
    font-size: 0.85em;
    color: #999;
    line-height: 1.5;
}

.site-footer {
    background-color: #111;
    padding: 30px 0;
    border-top: 1px solid #333;
    color: #ccc;
    font-size: 0.95em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left,
.footer-right {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.site-footer p {
    color: #e0a800;
    margin: 5px 0;
}

.footer-right a {
    color: #e0a800;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* =================================================
   SCROLL REVEAL
   ================================================= */
.is-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* =================================================
   RESPONSIVE - TABLET (max 1024px)
   ================================================= */
@media (max-width: 1024px) {
    .value-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .value-image {
        max-width: 90%;
        order: -1;
    }

    .value-text {
        text-align: center;
    }

    h2 {
        font-size: 2.2em;
    }

    .nav-links {
        gap: 20px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =================================================
   RESPONSIVE - TABLET SMALL (max 768px)
   ================================================= */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    nav {
        height: 70px;
        padding: 0 20px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Mobile menu */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        gap: 0;
        border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        display: block;
        text-align: center;
    }

    .nav-links li a {
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li a:hover {
        background-color: rgba(255, 193, 7, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-cta {
        margin: 10px 20px !important;
        text-align: center !important;
        border-radius: 5px !important;
    }

    /* Process grid stacks */
    .process-grid {
        flex-direction: column;
        align-items: center;
    }

    .process-step {
        width: 100%;
    }

    /* About us stacks */
    .about-us-content-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-us-image {
        min-width: 100%;
    }

    .about-us-text h2 {
        text-align: center;
    }

    /* Footer stacks */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        min-width: 100%;
        text-align: center;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================
   RESPONSIVE - MOBILE (max 480px)
   ================================================= */
@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }

    nav {
        height: 60px;
        padding: 0 15px;
    }

    .nav-links {
        top: 60px;
    }

    .logo img {
        max-width: 80px;
        max-height: 50px;
    }

    .full-width-section {
        min-height: 400px;
        padding: 40px 0;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }

    p {
        font-size: 0.95em;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }

    .cta-standalone-wrapper {
        padding: 40px 0;
    }

    .cta-standalone-wrapper .cta-button {
        padding: 15px 40px;
        font-size: 1em;
    }

    .about-us-text h2 {
        font-size: 1.8em;
    }
}