/* GymFuel - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #E10600;
    --primary-dark: #B80500;
    --secondary-color: #000000;
    --accent-color: #FF4444;
    --text-light: #FFFFFF;
    --text-gray: #CCCCCC;
    --text-dark: #333333;
    --gradient-primary: linear-gradient(135deg, #E10600 0%, #FF4444 100%);
    --gradient-dark: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    --shadow-glow: 0 0 20px rgba(225, 6, 0, 0.5);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 10000 !important;
    overflow: visible !important;
}

.navbar .container {
    position: relative !important;
    overflow: visible !important;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 2px 20px rgba(225, 6, 0, 0.3);
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
}

.hero-slide {
    min-height: 90vh;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Carousel Background Image (actual img tag) */
.carousel-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.carousel-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Carousel Gradient Background (fallback) */
.carousel-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Content Wrapper */
.carousel-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Fixed background effect on desktop (larger screens) - parallax effect */
@media (min-width: 1025px) and (hover: hover) {
    .carousel-bg-image {
        position: fixed;
        top: 0;
        left: 0;
    }
}

.carousel-item {
    width: 100%;
    display: block;
    background: transparent !important;
    transition: transform 0.6s ease-in-out !important;
}

.carousel-inner {
    width: 100%;
    overflow: hidden;
    background: transparent !important;
}

.hero-section {
    background: transparent !important;
}

/* Responsive enforcement for smaller screens */
@media (max-width: 1024px) {
    .carousel-bg-image {
        position: absolute;
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .carousel-item {
        width: 100% !important;
        height: auto !important;
    }
    
    .carousel-inner {
        width: 100% !important;
        overflow: hidden !important;
    }
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-gray);
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-cta {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    position: relative;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Carousel Indicators */
.carousel-indicators {
    z-index: 15;
    margin-bottom: 1rem;
}

.carousel-indicators button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators button.active {
    background: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(225, 6, 0, 0.6);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 15;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-color: rgba(225, 6, 0, 0.8);
    border-radius: 50%;
    padding: 20px;
}

/* Hero Particles Animation */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 2s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 60%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
}

/* About Section */
.about-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.machine-3d {
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.machine-3d img {
    transition: transform 0.3s ease;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
}

.machine-3d:hover {
    transform: rotateY(10deg) rotateX(5deg);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    font-weight: 500;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* About Section Divider - Left aligned on desktop, centered on mobile */
.about-divider {
    margin-left: 0;
    margin-right: auto;
    justify-content: flex-start;
}

/* About Particles */
.about-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.red-line {
    position: absolute;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.15;
    animation: moveLine 8s infinite linear;
}

.red-line:nth-child(1) {
    top: 20%;
    width: 100px;
    animation-delay: 0s;
}

.red-line:nth-child(2) {
    top: 60%;
    width: 150px;
    animation-delay: 3s;
}

.red-line:nth-child(3) {
    top: 80%;
    width: 80px;
    animation-delay: 6s;
}

/* Benefits Section */
.benefits-section {
    background: var(--secondary-color);
    position: relative;
    overflow: visible;
    min-height: auto;
    padding: 5rem 0 !important;
}

@media (max-width: 768px) {
    .benefits-section {
        padding: 4rem 0 !important;
    }
}

@media (max-width: 576px) {
    .benefits-section {
        padding: 3rem 0 !important;
    }
}

.benefits-section .container {
    position: relative;
    z-index: 5;
}

.benefits-section .row.g-4 {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    justify-content: center;
    align-items: stretch;
}

.benefits-section .row.g-4 > [class*="col-"] {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    min-width: 0;
    flex-shrink: 0;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

@media (max-width: 576px) {
    .benefits-section .row.g-4 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        row-gap: 1rem !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    
    .benefits-section .row.g-4 > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 380px) {
    .benefits-section .row.g-4 {
        margin-left: -0.3rem;
        margin-right: -0.3rem;
        row-gap: 0.75rem !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    
    .benefits-section .row.g-4 > [class*="col-"] {
        padding-left: 0.3rem;
        padding-right: 0.3rem;
        display: flex !important;
        flex-direction: column !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}


.benefit-card {
    height: 350px;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    position: relative;
    z-index: 15;
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Ensure first benefit card is always visible */
.benefits-section .row.g-4 > [class*="col-"]:first-child .benefit-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 20;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.benefit-card:hover .card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to flex-start */
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    overflow: hidden; /* Prevent overflow */
}

.card-front {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 2px solid rgba(225, 6, 0, 0.3);
}

.card-back {
    background: linear-gradient(135deg, rgba(225, 6, 0, 0.1) 0%, rgba(255, 68, 68, 0.1) 100%);
    border: 2px solid var(--primary-color);
    transform: rotateY(180deg) translateZ(0);
    -webkit-transform: rotateY(180deg) translateZ(0);
    z-index: 1;
    overflow: hidden;
    position: relative;
}

/* Hide icon and title on card back (only description visible) */
.card-back .card-icon,
.card-back h4 {
    display: none !important;
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    flex-shrink: 0; /* Keep icon from shrinking */
}

.card-front h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0; /* Keep title from shrinking */
}

.card-back p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    overflow-y: auto; /* Enable scrolling */
    overflow-x: hidden;
    width: 100%;
    max-height: 100%; /* Limit height to container */
    padding-right: 0.5rem; /* Space for scrollbar */
}

/* Custom scrollbar for card back */
.card-back p::-webkit-scrollbar {
    width: 6px;
}

.card-back p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card-back p::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.card-back p::-webkit-scrollbar-thumb:hover {
    background: #ff0800;
}

.card-front p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
    overflow-y: auto; /* Enable scrolling for long text */
    overflow-x: hidden;
    width: 100%;
    flex: 1; /* Take remaining space */
    padding-right: 0.5rem; /* Space for scrollbar */
    text-align: center;
}

/* Custom scrollbar for card front */
.card-front p::-webkit-scrollbar {
    width: 6px;
}

.card-front p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.card-front p::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.card-front p::-webkit-scrollbar-thumb:hover {
    background: #ff0800;
}

/* Tablet - 1 per row (full width) */
@media (max-width: 992px) {
    .benefits-section .row.g-4 > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .benefit-card {
        height: 360px;
        max-width: 100%;
    }
    
    .card-icon {
        font-size: 2.9rem;
        margin-bottom: 1rem;
    }
    
    .card-front h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .card-back p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        max-height: 100%;
        height: auto;
    }
    
    .card-front p {
        font-size: 1rem;
        line-height: 1.6;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding-right: 0.5rem;
    }
    
    .card-front, .card-back {
        padding: 2rem 1.5rem;
    }
}

/* Mobile landscape - 1 per row (full width) */
@media (max-width: 768px) {
    .benefits-section .row.g-4 > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .benefit-card {
        height: 320px;
        max-width: 100%;
    }
    
    .card-icon {
        font-size: 2.6rem;
        margin-bottom: 0.9rem;
    }
    
    .card-front h4 {
        font-size: 1.25rem;
        margin-bottom: 0.8rem;
    }
    
    .card-back p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        max-height: 100%;
        height: auto;
    }
    
    .card-front p {
        font-size: 0.95rem;
        line-height: 1.5;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding-right: 0.5rem;
    }
    
    .card-front, .card-back {
        padding: 1.75rem 1.25rem;
    }
}

/* Mobile - 1 card per row on all mobile screens */
@media (max-width: 576px) {
    .benefits-section .row.g-4 {
        justify-content: center !important;
    }
    
    .benefits-section .row.g-4 > div[class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    .benefit-card {
        min-height: 300px;
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
        padding-bottom: 4rem;
    }
    
    .card-icon {
        font-size: 2.4rem;
        margin-bottom: 0.8rem;
    }
    
    .card-front h4 {
        font-size: 1.2rem;
        margin-bottom: 0.7rem;
    }
    
    .card-back p {
        font-size: 0.92rem;
        line-height: 1.5;
        margin: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        max-height: 100%;
        height: auto;
    }
    
    .card-front p {
        font-size: 0.92rem;
        line-height: 1.5;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding-right: 0.5rem;
    }
    
    .card-front, .card-back {
        padding: 1.5rem 1rem 4rem 1rem;
    }
}

/* Mobile - 1 card per row on very small screens */
@media (max-width: 480px) {
    .benefits-section .row.g-4 {
        justify-content: center !important;
    }
    
    .benefits-section .row.g-4 > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .benefit-card {
        min-height: 260px;
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
        padding-bottom: 4rem;
    }
    
    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .card-front h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
    }
    
    .card-back p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        max-height: 100%;
        height: auto;
    }
    
    .card-front p {
        font-size: 0.9rem;
        line-height: 1.4;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding-right: 0.5rem;
    }
    
    .card-front, .card-back {
        padding: 1.25rem 1rem 4rem 1rem;
    }
}

/* Extra small devices - 1 card per row with compact sizing */
@media (max-width: 380px) {
    .benefits-section .row.g-4 {
        justify-content: center !important;
    }
    
    .benefits-section .row.g-4 > div[class*="col-"] {
        padding-left: 0.3rem !important;
        padding-right: 0.3rem !important;
    }
    
    .benefit-card {
        min-height: 220px;
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
        padding-bottom: 4rem;
    }
    
    .card-icon {
        font-size: 1.6rem;
        margin-bottom: 0.4rem;
    }
    
    .card-front h4 {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .card-back p {
        font-size: 0.75rem;
        line-height: 1.3;
        margin: 0;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        max-height: 100%;
        height: auto;
    }
    
    .card-front p {
        font-size: 0.75rem;
        line-height: 1.3;
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        padding-right: 0.5rem;
    }
    
    .card-front, .card-back {
        padding: 0.8rem 0.4rem 4rem 0.4rem;
        border-radius: 10px;
    }
}

.card-stats {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border-radius: 25px;
    color: var(--text-light);
    font-weight: 600;
}

/* How It Works Section */
.how-it-works-section {
    background: var(--secondary-color);
    position: relative;
    min-height: 600px;
    padding: 80px 0 !important;
    overflow: visible !important;
}

.how-it-works-section .container {
    max-width: 100%;
    padding: 0 15px;
}

.how-it-works-section .row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

/* 1 card per row on all devices (full width) */
.how-it-works-section [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 2rem;
}

/* Ensure step cards have equal height */
.how-it-works-section .step-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Center items in row */
.how-it-works-section .row {
    justify-content: center;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem 4.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    border-radius: 15px;
    border: 2px solid rgba(225, 6, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    margin-top: 0; /* Reset margin */
}

.step-card:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(225, 6, 0, 0.4);
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 35px rgba(225, 6, 0, 0.9);
    background: linear-gradient(135deg, #e10600 0%, #ff4500 100%);
}

.step-number {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    box-shadow: 0 4px 20px rgba(225, 6, 0, 0.6);
    z-index: 10;
    border: 5px solid rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.step-card h4 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    z-index: 2;
    position: relative;
}

.step-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 100%;
    z-index: 2;
    position: relative;
}

/* How It Works - 1 card per row on all screens */
@media (max-width: 768px) {
    .how-it-works-section [class*="col-"] {
        padding: 0.5rem;
    }
    
    .step-card {
        padding: 1.5rem 0.75rem 4.5rem 0.75rem;
        min-height: 280px;
        margin-top: 0;
        position: relative;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
        border-width: 4px;
    }
    
    .step-icon {
        font-size: 2.25rem;
        margin-bottom: 0.75rem;
    }
    
    .step-card h4 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        margin-top: 0.75rem;
    }
    
    .step-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 576px) {
    .step-card {
        padding: 1.25rem 0.5rem 4.5rem 0.5rem;
        min-height: 260px;
        border-radius: 10px;
        margin-top: 0;
        position: relative;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
        margin-bottom: 1rem;
        border-width: 4px;
    }
    
    .step-icon {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }
    
    .step-card h4 {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        margin-top: 0.5rem;
    }
    
    .step-card p {
        font-size: 0.75rem;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .step-card {
        padding: 1rem 0.5rem 4.5rem 0.5rem;
        min-height: 240px;
        margin-top: 0;
        position: relative;
    }
    
    .step-number {
        width: 55px;
        height: 55px;
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        border-width: 4px;
    }
    
    .step-icon {
        font-size: 1.5rem;
    }
    
    .step-card h4 {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .step-card p {
        font-size: 0.7rem;
    }
}

/* Small mobile - maintain 2 per row but adjust spacing */
@media (max-width: 480px) {
    .how-it-works-section [class*="col-"] {
        padding: 0.25rem;
    }
    
    .step-card {
        padding: 1rem 0.5rem 4.5rem 0.5rem;
        min-height: 250px;
        position: relative;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .step-card h4 {
        font-size: 0.9rem;
        margin: 0.5rem 0 1.5rem 0;
    }
    
    .step-card p {
        font-size: 0.65rem;
        line-height: 1.3;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .how-it-works-section [class*="col-"] {
        padding: 0.2rem;
    }
    
    .step-card {
        padding: 0.8rem 0.4rem 4.5rem 0.4rem;
        min-height: 220px;
        position: relative;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    .step-card h4 {
        font-size: 0.8rem;
        margin: 0.4rem 0 1.5rem 0;
    }
    
    .step-card p {
        font-size: 0.6rem;
        line-height: 1.2;
    }
}

/* Step descriptions always visible */
.step-description {
    display: block !important;
}

/* Testimonials Section with Background Image Support */
.testimonials-section {
    background: var(--secondary-color);
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
    position: relative;
    margin-bottom: 0 !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Dark overlay layer for readability when background image is used */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 0;
    pointer-events: none;
}

/* Transition gradient bridge to collaborate section */
.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, rgba(225, 6, 0, 0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure content is above overlays */
.testimonials-section .container {
    position: relative;
    z-index: 2;
}

/* Ensure particles and shapes are above overlay */
.testimonials-section .particles-container,
.testimonials-section .floating-shapes {
    z-index: 3;
}

@keyframes floatTransition1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 3rem;
    border: 2px solid rgba(225, 6, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.testimonial-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    object-fit: cover;
}

.author-info h5 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Collaborate Section */
.collaborate-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    padding-top: 2rem !important;
    margin-top: 0 !important;
}

/* Add decorative top border to collaborate section */
.collaborate-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Floating decorative element on collaborate section */
.collaborate-section::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 10%;
    width: 35px;
    height: 12px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(255, 68, 68, 0.3));
    border-radius: 2px;
    animation: floatTransition2 7s infinite ease-in-out;
    pointer-events: none;
    z-index: 2;
    box-shadow: 
        -4px 0 0 rgba(0, 0, 0, 0.5),
        4px 0 0 rgba(0, 0, 0, 0.5),
        -4px -7px 0 rgba(0, 0, 0, 0.5),
        4px -7px 0 rgba(0, 0, 0, 0.5),
        -4px 7px 0 rgba(0, 0, 0, 0.5),
        4px 7px 0 rgba(0, 0, 0, 0.5);
}

@keyframes floatTransition2 {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-25px) rotate(5deg);
        opacity: 0.3;
    }
}

/* Grid pattern background */
.collaborate-section .container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

/* Section Divider 3D Effect - Professional Design */
.section-divider-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto 2rem;
    position: relative;
    width: fit-content;
    height: 20px;
    z-index: 10;
}

/* Default black divider bar - removed in favor of section-animations.css */

/* Floating Shapes - Gym Themed */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float 8s infinite ease-in-out;
}

/* Note: Detailed gym-themed shape styles are in section-animations.css */

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Particles Container */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.particles-container .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #000000;
    border-radius: 50%;
    opacity: 0.2;
    animation: floatParticle 6s infinite ease-in-out;
}

.particles-container .particle:nth-child(1) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.particles-container .particle:nth-child(2) {
    top: 45%;
    left: 10%;
    animation-delay: 1s;
}

.particles-container .particle:nth-child(3) {
    top: 75%;
    left: 30%;
    animation-delay: 2s;
}

.particles-container .particle:nth-child(4) {
    top: 25%;
    right: 20%;
    animation-delay: 1.5s;
}

.particles-container .particle:nth-child(5) {
    top: 55%;
    right: 10%;
    animation-delay: 0.5s;
}

.particles-container .particle:nth-child(6) {
    top: 85%;
    right: 25%;
    animation-delay: 2.5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-30px);
        opacity: 0.4;
    }
}

.collaborate-form {
    background: rgba(0, 0, 0, 0.8);
    padding: 3rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 1rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Collaborate Form - 2 per row responsive */
@media (max-width: 768px) {
    .collaborate-form {
        padding: 2rem 1.5rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .form-control {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .collaborate-form {
        padding: 1.5rem 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

@media (max-width: 400px) {
    .collaborate-form {
        padding: 1.25rem 0.75rem;
        border-radius: 15px;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .form-control {
        padding: 0.65rem;
        font-size: 0.85rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    border-top: 2px solid var(--primary-color);
}

.footer-brand {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.footer h5 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(225, 6, 0, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--text-light);
}

.footer-divider {
    border-color: rgba(225, 6, 0, 0.3);
    margin: 2rem 0;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-brand {
        font-size: 1.6rem;
        letter-spacing: 1.2px;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .footer-brand {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .footer-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-30px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(-10px);
    }
    75% {
        transform: translateY(-30px) translateX(10px);
    }
}

@keyframes moveLine {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */

/* Tablet and Below */
@media (max-width: 992px) {
    .hero-section,
    .hero-slide {
        min-height: 70vh;
    }
    
    .hero-slide .row {
        min-height: 70vh !important;
    }
    
    /* Tablet carousel image fixes */
    .carousel-bg-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    /* Tablets use scroll attachment (already set in base) */
}

/* Mobile Landscape and Below */
@media (max-width: 768px) {
    .hero-section,
    .hero-slide {
        min-height: 60vh;
    }
    
    .hero-slide .row {
        min-height: 60vh !important;
    }
    
    /* Mobile landscape carousel image fixes */
    .carousel-bg-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero-slide {
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }
    
    .quote-icon {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .author-image {
        width: 55px;
        height: 55px;
    }
    
    .author-info h5 {
        font-size: 1rem;
    }
    
    /* Reduce testimonials section height and space on tablet */
    .testimonials-section {
        padding-top: 2rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .testimonials-section .col-12.mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .collaborate-section {
        padding-top: 1.5rem !important;
        margin-top: 0 !important;
    }
    
    /* Center about divider on mobile */
    .about-divider {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .about-content {
        text-align: center;
    }
    
    /* Mobile uses scroll attachment (already set in base) */
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .hero-section,
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-slide .row {
        min-height: 100vh !important;
    }
    
    /* Critical mobile carousel image fixes */
    .carousel-bg-image {
        object-fit: cover;
        width: 100% !important;
        height: 100% !important;
        position: absolute;
    }
    
    .hero-slide {
        min-height: 100vh;
    }
    
    .carousel-item {
        width: 100% !important;
        min-height: 100vh !important;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .quote-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .author-info h5 {
        font-size: 0.95rem;
    }
    
    .author-info span {
        font-size: 0.85rem;
    }
    
    /* Reduce testimonials section height and space on mobile */
    .testimonials-section {
        padding-top: 1rem !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
        background-attachment: scroll !important;
    }
    
    .testimonials-section .container {
        padding-bottom: 0 !important;
    }
    
    /* Keep dark overlay on mobile for background image readability */
    .testimonials-section::before {
        background: rgba(0, 0, 0, 0.8) !important;
        display: block !important;
    }
    
    /* Hide transition gradient on mobile */
    .testimonials-section::after {
        display: none !important;
    }
    
    .testimonials-section .col-12.mb-5 {
        margin-bottom: 0.75rem !important;
    }
    
    .testimonials-section .section-subtitle {
        margin-bottom: 0.5rem !important;
    }
    
    .testimonials-section .carousel,
    .testimonials-section #testimonialsCarousel {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .collaborate-section {
        padding-top: 0 !important;
        margin-top: -1rem !important;
    }
    
    .collaborate-section .container {
        padding-top: 0.5rem !important;
    }
    
    .collaborate-section::before {
        display: none !important;
    }
    
    .collaborate-section::after {
        display: none !important;
    }
    
    /* Small mobile uses scroll attachment (already set in base) */
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-control-prev {
        left: 5px;
    }
    
    .carousel-control-next {
        right: 5px;
    }
}

/* Small Mobile Devices */
@media (max-width: 400px) {
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .quote-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .author-image {
        width: 45px;
        height: 45px;
    }
    
    .author-info h5 {
        font-size: 0.9rem;
    }
    
    .author-info span {
        font-size: 0.8rem;
    }
    
    /* Reduce testimonials section height and space on small mobile */
    .testimonials-section {
        padding-top: 0.5rem !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .testimonials-section .container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Keep dark overlay on small mobile for background image readability */
    .testimonials-section::before {
        background: rgba(0, 0, 0, 0.85) !important;
        display: block !important;
    }
    
    /* Hide transition gradient on small mobile */
    .testimonials-section::after {
        display: none !important;
    }
    
    .testimonials-section .col-12.mb-5 {
        margin-bottom: 0.5rem !important;
    }
    
    .testimonials-section .section-subtitle {
        margin-bottom: 0.25rem !important;
    }
    
    .testimonials-section .carousel,
    .testimonials-section #testimonialsCarousel {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .collaborate-section {
        padding-top: 0 !important;
        margin-top: -1.5rem !important;
    }
    
    .collaborate-section .container {
        padding-top: 0.25rem !important;
    }
    
    .collaborate-section::before {
        display: none !important;
    }
    
    .collaborate-section::after {
        display: none !important;
    }
    
    /* Extra small device carousel fixes */
    .carousel-bg-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .carousel-indicators {
        display: none;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section,
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-slide .row {
        min-height: 100vh !important;
    }
    
    /* Landscape orientation carousel image fixes */
    .carousel-bg-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }
    
    .hero-slide {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.border-glow {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-glow);
}

