/* --- Variables & Reset (Dark Mode) --- */
:root {
    /* Gemini-inspired Dark Palette */
    --bg-main: #121212;           /* Deepest background gray */
    --bg-surface: #2D2D2D;        /* Lighter gray for cards/sections */
    --bg-accent-blue: #024f87;    /* Dark blue for contact section background */
    
    /* Text Colors */
    --text-primary: #E8EAED;      /* Main text (off-white for readability) */
    --text-secondary: #B0B0B0;    /* Slightly muted text */
    
    /* Accents */
    /* I brightened the blue slightly so it pops better on dark backgrounds */
    --primary-blue: #29B6F6;      
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* --- Typography & Utilities --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

/* Formerly bg-light-blue, now dark surface color */
.bg-light-blue {
    background-color: var(--bg-surface);
}

.bg-dark-blue {
    background-color: var(--bg-accent-blue);
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--bg-main); /* Dark text on bright button */
    border: 2px solid var(--primary-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

.btn-nav {
    background-color: var(--primary-blue);
    color: var(--bg-main);
    padding: 8px 20px;
}

.btn-nav:hover {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 6px 18px; /* Adjust for border addition */
}

/* --- Navigation --- */
.navbar {
    background: var(--bg-main); /* Dark background for nav */
    box-shadow: 0 2px 5px rgba(255,255,255,0.05); /* Subtle light shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-blue);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 600;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    background-color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
    /* Update the overlay gradient to be darker */
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(2, 80, 135, 0.6)), url('images/frank-bright-magician.png'); 
    background-size: cover;
    background-position: center;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
    border-bottom: 2px solid var(--bg-surface);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* --- About Section --- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text strong, .about-text em {
    color: var(--text-primary);
}

.about-img {
    width: 100%;          /* Fills the container width */
    height: auto;         /* CRITICAL: Maintains aspect ratio so it doesn't stretch */
    max-width: 100%;      /* Ensures it never overflows on small screens */
    display: block;       /* Fixes a common bug where images have a tiny gap below them */
    border-radius: 8px;   /* Matches the rounded look of modern video players */
    object-fit: cover;    /* Ensures the image covers the area cleanly */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* Adds a subtle "pop" so it doesn't look flat */
}

/* Optional: Center alignment on mobile if your grid doesn't do it automatically */
@media (max-width: 768px) {
    .about-image {
        margin-top: 20px; /* Adds space between text and image on phones */
        text-align: center;
    }
}

.img-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-surface); /* Dark placeholder */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-secondary);
    border: 2px solid #444;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* --- Services Cards --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-surface); /* Lighter gray surface */
    padding: 30px;
    border-radius: 8px;
    /* Subtle shadow for dark mode depth */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 6px 6px rgba(0,0,0,0.25);
    text-align: center;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid #3d3d3d;
}

.card h3 {
    color: var(--primary-blue);
}

.card p {
    color: var(--text-secondary);
}

.card:hover {
    transform: translateY(-5px);
    background: #383838; /* Slightly lighter on hover */
}

/* --- Card Images --- */
.card-img {
    width: 100%;
    height: 220px;          /* Forces all images to be the same height */
    object-fit: cover;      /* Crops the image intelligently so it doesn't distort */
    border-radius: 5px;     /* Small rounded corners to match the card */
    margin-bottom: 20px;    /* Space between image and the headline */
    border: 1px solid #444; /* Subtle border for dark mode contrast */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2); /* Lift the image slightly */
}

/* Optional: Slight zoom effect on hover for a modern feel */
.card:hover .card-img {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}


/* --- Client Logos Marquee --- */

/* Specific spacing for the logo track */
.logo-track {
    gap: 60px; /* More space between logos than reviews */
    align-items: center; /* Vertically center them */
}

.client-logo {
    height: 80px; /* Fixed height ensures they are all the same size */
    width: auto;  /* Width adjusts automatically */
    object-fit: contain;
    
    /* The "Pro" Effect: Black & White by default */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* 1. Reduce the main section padding just for clients */
#clients {
    padding-top: 20px;    /* Reduced from standard 60px */
    padding-bottom: 20px; /* Reduced from standard 60px */
}

/* 2. Remove the extra padding inside the scrolling wrapper */
#clients .marquee-wrapper {
    padding: 10px 0; /* Reduced from 40px to 10px */
}

/* 3. Tighten the space between the title "Trusted By" and the logos */
#clients .section-title {
    margin-bottom: 20px; /* Reduced from standard 40px */
    font-size: 1.5rem;   /* Optional: Make title slightly smaller to match compact look */
}

/* Color on Hover */
.client-logo:hover {
    filter: grayscale(0%); /* Full color when hovered */
    opacity: 1;
    transform: scale(1.1); /* Slight pop effect */
}

/* Mobile Adjustment: Make them smaller on phones */
@media (max-width: 768px) {
    .client-logo {
        height: 50px;
    }
    .logo-track {
        gap: 40px;
    }
}


/* --- Testimonials --- */
/* This container forces the vertical layout */
.testimonial-slider {
    display: flex;
    flex-direction: row; /* Stacks items vertically */
    align-items: center;    /* Centers items horizontally */
    gap: 40px;              /* Space between each testimonial */
}

.testimonial {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #3d3d3d;
    
    /* Control the width for readability */
    width: 100%;
    max-width: 700px; 
    
    text-align: center;
    position: relative; /* Needed for the quote icon decoration */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Add a stylish quote icon behind the text */
.testimonial::before {
    content: '\201C'; /* Unicode for large opening quote */
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-blue);
    opacity: 0.3; /* Make it subtle */
    font-family: serif;
    line-height: 1;
}

.testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.testimonial h4 {
    margin-top: 20px;
    color: var(--primary-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Infinite Marquee Reviews (FIXED) --- */

.container-fluid {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0; /* Increased top/bottom padding for breathing room */
    
    /* Fade effect on edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    
    /* This is the magic setting for Equal Heights */
    align-items: stretch; 
    
    animation: scroll 60s linear infinite;
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
    cursor: grab;
}

.review-card {
    width: 350px; 
    min-width: 350px;
    
    /* Remove "height: 100%" and let Flexbox stretch it naturally */
    height: auto; 
    
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    
    /* This makes the internal content stretch too */
    display: flex;
    flex-direction: column;
}

/* --- FIX: Spacing between Badge and Text --- */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* Increased from 20px to 35px */
    margin-bottom: 35px; 
    border-bottom: 1px solid #f0f0f0; /* Optional: adds a faint line for separation */
    padding-bottom: 15px; /* Adds space inside the border */
}

.review-text {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    
    /* This pushes the Author Name to the bottom so they all align perfectly */
    flex-grow: 1; 
}

.review-author {
    font-weight: 700;     /* Bold text for the name */
    color: #333;          /* Dark grey/black */
    font-size: 0.95rem;
    margin-top: auto;     /* Ensures it sits at the bottom if using flex-grow */
}

.review-role {
    font-weight: 400;     /* Normal weight (not bold) */
    color: #888;          /* Lighter grey */
    font-size: 0.85rem;   /* Smaller font */
    display: block;       /* Forces it onto a new line */
    margin-top: 2px;      /* Tiny gap between name and role */
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .review-card {
        background: #2D2D2D;
        border: 1px solid #444;
    }
    .review-header {
        border-bottom: 1px solid #444;
    }
    .review-text {
        color: #ccc;
    }
    .review-author {
        color: #fff;
    }
}

/* Animation Keyframes */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .review-card {
        width: 280px;
        min-width: 280px;
        padding: 20px;
    }
}

/* --- Platform Badges (Same as before) --- */
.reviews-slider .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.platform-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.gigsalad { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #2e7d32; }
.google { background-color: #e3f2fd; color: #1565c0; border: 1px solid #1565c0; }
.bark { background-color: #c4cfff; color: #181bc2; border: 1px solid #181bc2; }

/* Mobile Optimization: Hide arrows on phones (touch scroll is better) */
@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
    .reviews-slider {
        padding-left: 20px; /* Indent slightly so first card isn't flush */
    }
}

/* --- FAQ Section --- */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-surface);
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #444;
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none; /* Hides default triangle */
    position: relative;
    padding-right: 40px;
}

/* Custom Plus Icon */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-blue);
}

/* Change to Minus when open */
.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 10px 20px 20px 20px;
    color: var(--text-secondary);
    border-top: 1px solid #444;
    margin-top: 10px;
}

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    color: var(--text-primary);
}

.contact-info p {
     color: var(--text-primary);
     margin-bottom: 1rem;
}

.contact-form {
    background: var(--bg-surface);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #444;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Dark Mode Input Styling */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    background-color: var(--bg-main); /* Dark input background */
    color: var(--text-primary); /* Light input text */
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.full-width {
    width: 100%;
}

/* --- Footer --- */
footer {
    background: #002f52; /* Very deep dark blue */
    color: var(--text-secondary);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #024f87;
}

/* --- Social Media Links --- */
.social-links-container {
    text-align: center;
    margin-top: 30px; /* Space above the icons */
}

.social-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #666;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Makes them perfect circles */
    background-color: #f0f0f0; /* Light grey default background */
    color: #444; /* Dark grey default icon color */
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease; /* Smooth animation */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Brand Color Hover Effects --- */

/* Facebook Blue */
.social-btn.facebook:hover {
    background-color: #1877F2;
    color: white;
    transform: translateY(-3px); /* Moves up slightly */
}

/* Instagram Gradient */
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
    transform: translateY(-3px);
}

/* YouTube Red */
.social-btn.youtube:hover {
    background-color: #FF0000;
    color: white;
    transform: translateY(-3px);
}

/* LinkedIn Blue */
.social-btn.linkedin:hover {
    background-color: #0077b5;
    color: white;
    transform: translateY(-3px);
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .social-btn {
        background-color: #333;
        color: #ddd;
    }
    .social-label {
        color: #ccc;
    }
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-primary);
        transition: 0.3s;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-main);
        width: 100%;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s;
        border-bottom: 1px solid #333;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .grid-2, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}
/* --- Responsive Video Container --- */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #444; /* Matches your dark theme border */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}