/* CSS Variables for Dark Mode Palette */
:root {
    --bg-main: #0B0B0D;
    --bg-secondary: #141416;
    --accent-red: #D90429;
    --accent-red-hover: #EF233C;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --border-color: #2F2F2F;
    --font-heading: 'Anton', 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* =========================================================
   Navbar 
   ========================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(11,11,13,0.95), rgba(11,11,13,0));
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-left, .nav-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 60px; /* Space from logo */
    padding-left: 10%;   /* Balancing padding */
}

.nav-right {
    justify-content: flex-start;
    padding-left: 60px;  /* Space from logo */
    padding-right: 10%;  /* Balancing padding */
}

.navbar a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.navbar a:hover {
    color: var(--text-gray);
}

.navbar a:hover::after {
    width: 100%;
}

/* Red Contact Button */
.btn-primary {
    border: 1px solid var(--accent-red);
    padding: 8px 24px;
    border-radius: 20px;
    color: var(--text-white) !important;
    transition: all 0.3s ease !important;
}

.btn-primary::after {
    display: none !important;
}

.btn-primary:hover {
    background-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(217, 4, 41, 0.4);
}

/* =========================================================
   Interactive Toast Notification
   ========================================================= */
#toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9991;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-hidden {
    opacity: 0;
    bottom: -100px !important;
    pointer-events: none;
}

.toast-visible {
    opacity: 1;
    bottom: 30px !important;
    pointer-events: auto;
}

.toast-content {
    background: rgba(20, 20, 22, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(217, 4, 41, 0.3);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 4, 41, 0.1);
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.toast-icon {
    color: var(--accent-red);
    width: 20px;
    height: 20px;
}

#close-toast {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#close-toast:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}


/* Circular Center Logo */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    text-decoration: none !important; /* Fix underline issue */
}

.logo-container::after {
    display: none !important;
}

.logo-circle {
    width: 90px;
    height: 90px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
    z-index: 1001;
    margin-top: 15px; /* slight overhang */
    /* Silky smooth transition for resting and hover */
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow; /* Hardware accelerate */
    cursor: pointer;
}

/* Let the container handle the hover surface area */
.logo-container:hover .logo-circle {
    transform: scale(1.12) translateY(-4px); /* Smoother, slight lift */
    box-shadow: 0 15px 45px rgba(217, 4, 41, 0.4); /* Elegant glow */
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-logo {
    width: 60px;
    height: 60px;
}

/* =========================================================
   Events Carousel (Explore Page)
   ========================================================= */
.events-carousel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 100;
    pointer-events: none; /* Container doesn't block clicks */
    transition: gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.events-carousel:hover {
    gap: 15px; /* Become congested */
}

.event-logo.main-gym-event {
    width: 144px; /* Matches scale(1.6) * 90px of central transition logo */
    height: 144px;
    opacity: 0; /* Hidden initially, swapped in JS */
    transform: scale(1); 
    pointer-events: none; /* Enabled after swap */
}

.event-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    opacity: 0; /* Hidden initially, anime.js will fade in */
    transform: scale(0.8);
    pointer-events: none; /* Enables clicks once animated in JS */
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.event-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-carousel:hover .event-logo {
    width: 80px; /* Non-hovered items shrink */
    height: 80px;
}

/* Ensure the main gym logo also perfectly respects the shrink rule */
.events-carousel:hover .event-logo.main-gym-event {
    width: 80px;
    height: 80px;
}

.events-carousel .event-logo:hover,
.events-carousel .event-logo.main-gym-event:hover {
    width: 200px; /* Hovered item becomes much bigger than gym logo */
    height: 200px;
    transform: scale(1) translateY(-6px) !important; /* Keep scale fixed, shift up slightly */
    box-shadow: 0 15px 45px rgba(217, 4, 41, 0.8);
    z-index: 10;
}

.event-logo.visible {
    pointer-events: auto;
}

/* =========================================================
   Hero Section 
   ========================================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(11,11,13,0.4) 0%, rgba(11,11,13,0.95) 100%); /* Stronger contrast */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 6rem;
    letter-spacing: 2px;
    margin-bottom: 0px;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8); /* Added contrast */
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 40px;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    opacity: 0.9;
}

.btn-secondary {
    display: inline-block;
    background-color: var(--text-white);
    color: #000;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 30px;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
}

/* =========================================================
   About Us Section
   ========================================================= */
.about-us {
    padding: 100px 20px;
    background-color: var(--bg-main);
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
}

.about-card {
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.primary-card {
    background: linear-gradient(135deg, var(--accent-red), #8a0219);
}

.primary-card h3 {
    color: var(--text-light);
}

.primary-card p {
    color: rgba(255, 255, 255, 0.9);
}

.dark-card {
    background-color: var(--bg-lighter);
}

.dark-card h3 {
    color: var(--accent-red);
}

.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .full-width {
        grid-column: 1;
    }
}

/* =========================================================
   Offerings Section 
   ========================================================= */
.offerings {
    position: relative;
    padding: 100px 20px;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
}

.offerings-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    gap: 50px 80px;
    position: relative;
    z-index: 10;
}

.offering-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 150px;
}

.offering-card:hover {
    transform: scale(1.1);
}

.offering-card .offering-img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.offering-card:hover .offering-img {
    transform: scale(1.15);
}

.offering-card h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Separator component style inspired by Radix UI */
.separator {
    height: 1px;
    width: 100%;
    background-color: var(--border-color);
    margin: 20px 0;
    flex-shrink: 0;
}

.separator.horizontal {
    height: 1px;
    width: 100%;
}

.separator.vertical {
    height: 100%;
    width: 1px;
}

/* "And many more" card styling */
.more-card {
    justify-content: center;
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    height: 100px;
    align-self: center;
}

.and-more-text {
    font-family: 'Oswald', sans-serif;
    color: var(--accent-red);
    font-size: 0.9rem !important;
    text-align: center;
}

/* =========================================================
   Testimonials Section (Animated)
   ========================================================= */
.animated-testimonials {
    position: relative;
    padding: 100px 40px;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.test-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    position: relative;
    z-index: 10;
}

@media (max-width: 900px) {
    .test-container {
        grid-template-columns: 1fr;
    }
}

.test-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.test-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: rgba(217, 4, 41, 0.1);
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    width: fit-content;
}

.test-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.test-subtitle {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
}

.test-dots {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.test-dots .dot {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 10px;
}

.test-dots .dot.active {
    width: 40px;
    background-color: var(--accent-red);
}

.test-cards-wrapper {
    position: relative;
    min-height: 450px;
    margin-right: 20px;
}

.test-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    
    /* Animation base state */
    opacity: 0;
    transform: translateX(100px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.test-card.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 10;
}

.img-card {
    padding: 0;
    overflow: hidden;
    background-color: transparent;
}

.test-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
}

.test-client-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--text-white);
    padding: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 1.1rem;
    pointer-events: none;
}

.test-stars {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.star.filled {
    color: #eab308;
    fill: #eab308;
    width: 20px;
    height: 20px;
}

.test-quote {
    position: relative;
    flex: 1;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    color: rgba(217, 4, 41, 0.2);
    transform: rotate(180deg);
}

.test-quote p {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-white);
}

.test-separator {
    height: 1px;
    border: none;
    background-color: var(--border-color);
    margin: 20px 0;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.test-author .avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.author-info h3 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Decorative background shapes for right side */
.decor-box {
    position: absolute;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    background-color: rgba(217, 4, 41, 0.05); /* very faint red */
    z-index: -1;
}
.decor-tl {
    top: -24px;
    right: -24px;
}
.decor-br {
    bottom: -24px;
    left: -24px;
}

/* Trusted Companies cloud */
.trusted-companies {
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 10;
}
.trusted-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 30px;
}
.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px 50px;
}
.trusted-logos span {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.2);
}

/* =========================================================
   Decorations 
   ========================================================= */
.cursor-decoration {
    position: fixed;
    bottom: 30px;
    right: 30px;
    color: var(--text-gray);
    opacity: 0.5;
    z-index: 1000;
}

/* =========================================================
   Footer Section 
   ========================================================= */
.site-footer {
    background-color: #050505;
    border-top: 1px solid var(--border-color);
    padding: 80px 40px 20px;
    color: var(--text-gray);
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

.footer-brand-top {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo {
    width: 80px;
    height: 80px;
    background-color: #000;
    border-radius: 50%;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 25px rgba(255,255,255,0.1);
}

.footer-logo img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-brand-top h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-white);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.footer-brand-top p {
    color: var(--text-gray);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
    padding: 0 20px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: var(--text-white);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-column p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    line-height: 1.6;
}

.footer-column .social-links {
    justify-content: center;
}

.footer-column i {
    color: var(--accent-red);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center; /* keep center align */
}

.social-logo-circle {
    width: 35px;
    height: 35px; /* Circular form */
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-logo-circle img {
    width: 80%; /* logo inside it */
    height: auto;
    object-fit: contain;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    text-align: left;
    width: fit-content;
}

.social-links a:hover .social-logo-circle {
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(217, 4, 41, 0.3);
}

.social-links a:hover {
    color: var(--accent-red);
}

.footer-bottom {
    text-align: center;
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    width: 100%;
}

/* =========================================================
   Mobile Responsiveness (768px & below)
   ========================================================= */
@media (max-width: 768px) {
    /* Navbar styling for mobile */
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .nav-left, .nav-right {
        width: 100%;
        justify-content: center;
        padding: 0;
        gap: 20px;
        margin-top: 10px;
    }
    
    .logo-container {
        order: -1; 
        margin-bottom: 5px;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
        margin-top: 5px;
    }
    
    .main-logo {
        width: 40px;
        height: 40px;
    }

    /* Hero section for mobile */
    .hero-title {
        font-size: 3.5rem;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-top: 10px;
    }

    .hero-desc {
        padding: 0 15px;
    }
    
    /* About Us section for mobile */
    .about-us {
        padding: 60px 15px;
    }
    
    .about-card {
        padding: 25px;
    }
    
    .about-card h3 {
        font-size: 1.5rem;
    }
    
    /* Offerings/Specialities section for mobile */
    .offerings {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .offerings-grid {
        gap: 30px 20px;
    }

    .offering-card {
        width: 40%;
    }
    
    .offering-card .offering-img {
        width: 45px;
        height: 45px;
    }

    /* Testimonials section for mobile */
    .animated-testimonials {
        padding: 60px 20px;
    }
    
    .test-container {
        gap: 40px;
    }

    .test-cards-wrapper {
        min-height: 250px;
        margin-right: 0;
    }
    
    .test-card {
        padding: 25px;
    }
    
    .test-quote p {
        font-size: 0.95rem;
    }
    
    .test-client-name {
        font-size: 0.95rem;
        padding: 15px;
    }

    .trusted-logos {
        gap: 20px 30px;
    }
    
    .trusted-logos span {
        font-size: 1.1rem;
    }

    /* Footer overrides for mobile */
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .footer-container {
        gap: 40px;
    }
    
    .social-links {
        align-items: center;
    }

    .social-links a {
        justify-content: center;
    }
}

/* =========================================================
   Success Stories Section
   ========================================================= */
.success-stories {
    padding: 100px 5%;
    background: #000;
    text-align: center;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.success-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.success-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-red);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-red);
}

.client-info h4 {
    color: white;
    font-size: 1.1rem;
    margin: 0;
}

.client-info p {
    color: var(--accent-red);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
}

.quote {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: -10px;
}

/* =========================================================
   Devil Circuit Popup (Explore Page)
   ========================================================= */
.devil-popup {
    position: fixed;
    top: 50%;
    left: 55%;
    transform: translateX(0) translateY(-40%);
    width: 450px;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    text-align: center;
}

.devil-popup.active {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
    pointer-events: auto;
}

.devil-popup-title {
    color: #000000;
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 700;
}

.devil-cards-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    margin: 0; /* override margin from test-cards-wrapper */
}

/* Customizing the test-card inside devil-popup */
.devil-card {
    padding: 0; /* override padding to allow the image to fill */
    background: transparent;
    border: none;
    box-shadow: none;
}

.devil-card .test-img {
    border-radius: 12px;
    border: 4px solid #ff7300; /* orange frame */
    box-sizing: border-box;
}

/* On Hover active, move the specific event logo to the left smoothly */
body.active-devil-hover .events-carousel .event-logo:first-child {
    transform: translateX(-150px) translateY(-50px) scale(0.9) !important;
}
