/* Totally Rolled Ice Cream - Main Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Improve rendering performance */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for transforms */
.card,
.stat-card,
.cta-button,
.mobile-menu-toggle,
.hero {
    transform: translateZ(0);
    will-change: transform;
}

/* Optimize image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Optimize background attachments for mobile */
@media (max-width: 768px) {
    .hero,
    .section {
        background-attachment: scroll !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .card,
    .stat-card,
    .cta-button {
        will-change: auto;
    }
}

/* Font optimization */
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    /* Brand Colors: Blue, Orange, Red */
    --primary-blue: #3b82f6;
    --light-blue: #60a5fa;
    --dark-blue: #2563eb;
    --accent-orange: #fb923c;
    --light-orange: #fbbf24;
    --dark-orange: #f97316;
    --accent-red: #ef4444;
    --light-red: #f87171;
    --dark-red: #dc2626;
    
    /* Dark Theme UI Colors */
    --text-dark: #f9fafb;
    --text-medium: #e5e7eb;
    --text-light: #d1d5db;
    --background-light: #111827;
    --background-white: #1f2937;
    --card-background: #374151;
    --border-light: #4b5563;
    --border-medium: #6b7280;
    --white: #ffffff;
    
    /* Enhanced shadows for dark theme */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
    position: relative;
}

/* Sprinkle background texture */
.sprinkle-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: transparent;
    background-image: 
        /* Fewer, more spaced out sprinkles */
        radial-gradient(circle 2px at 12% 18%, #FF6B35 0%, #FF6B35 100%, transparent 100%),
        radial-gradient(circle 3px at 78% 25%, #E63946 0%, #E63946 100%, transparent 100%),
        radial-gradient(circle 2px at 35% 65%, #1D3557 0%, #1D3557 100%, transparent 100%),
        radial-gradient(circle 3px at 88% 75%, #2A9D8F 0%, #2A9D8F 100%, transparent 100%),
        radial-gradient(circle 2px at 22% 82%, #9C4DF4 0%, #9C4DF4 100%, transparent 100%),
        radial-gradient(circle 3px at 65% 12%, #F4A261 0%, #F4A261 100%, transparent 100%),
        radial-gradient(circle 2px at 45% 35%, #FF006E 0%, #FF006E 100%, transparent 100%),
        radial-gradient(circle 3px at 8% 55%, #06D6A0 0%, #06D6A0 100%, transparent 100%);
    background-size: 
        300px 300px, 280px 280px, 320px 320px, 290px 290px, 
        310px 310px, 270px 270px, 340px 340px, 260px 260px;
    opacity: 0.3;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--light-blue);
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-xl);
}

.scroll-to-top:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

.scroll-to-top:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Call Now Floating Button */
.call-now-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--accent-red);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.call-now-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    animation: none;
}

.call-now-button:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 2px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Header/Navigation - Mobile First */
.header {
    background: var(--background-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.025em;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--accent-orange);
}

/* Mobile navigation - hidden by default */
.nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--background-white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
    list-style: none;
    border: 1px solid var(--border-light);
    border-top: none;
}

.nav-menu.active {
    display: flex;
}

.nav-menu li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.nav-menu li:last-child {
    border-bottom: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.75rem 0;
    position: relative;
    display: block;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--accent-orange);
}

.nav-menu a:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Main Content */
main {
    min-height: calc(100vh - 80px);
    animation: fadeIn 0.5s ease-in-out;
}

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

/* Hero Section - Mobile First */
.hero {
    background: linear-gradient(135deg, rgba(30, 100, 175, 0.6) 0%, rgba(59, 130, 246, 0.6) 100%), url('../images/MainPgBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
    font-weight: 400;
}

/* Layout - Mobile First */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 3rem 0;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Alternate section heading colors for variety */
.section:nth-child(odd) h2 {
    color: var(--accent-orange);
}

.section:nth-child(even) h2 {
    color: var(--accent-red);
}

.section:nth-child(4n) h2 {
    color: var(--accent-red);
}

.section-content {
    text-align: center;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-medium);
    line-height: 1.7;
}

/* Alternating section backgrounds */
.section:nth-child(even) {
    background: var(--background-white);
}

/* Add subtle colored backgrounds for variety */
.section:nth-child(6n) {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(251, 146, 60, 0.08));
}

.section:nth-child(8n) {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(239, 68, 68, 0.08));
}

.section:nth-child(10n) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(147, 197, 253, 0.06));
}

/* Stats Grid - Mobile First */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    text-align: center;
    background: var(--card-background);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-orange);
}

/* Different hover colors for stat cards */
.stat-card:nth-child(1):hover {
    border-color: var(--accent-orange);
}

.stat-card:nth-child(2):hover {
    border-color: var(--accent-red);
}

.stat-card:nth-child(3):hover {
    border-color: var(--primary-blue);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-orange);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* Different colors for each stat */
.stat-card:nth-child(1) .stat-number {
    color: var(--accent-orange);
}

.stat-card:nth-child(2) .stat-number {
    color: var(--accent-red);
}

.stat-card:nth-child(3) .stat-number {
    color: var(--primary-blue);
}

.stat-label {
    font-size: 1.125rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Content Grid Layouts - Mobile First */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    margin: 3rem 0;
}

.content-text h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.content-text p {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.content-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.content-text ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--text-medium);
}

.content-image {
    background: linear-gradient(135deg, #475569, #64748b);
    height: 320px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.content-image:hover img {
    transform: scale(1.05);
}

/* Buttons - Mobile First */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-orange);
    color: var(--background-white);
    padding: 1.25rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    width: 100%;
    text-align: center;
    min-height: 48px;
}

.cta-button:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.cta-button-secondary {
    background: transparent;
    color: var(--accent-red);
    border: 2px solid var(--accent-red);
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: var(--accent-red);
    color: var(--background-white);
}

.cta-button-blue {
    background: var(--primary-blue);
    color: var(--background-white);
}

.cta-button-blue:hover {
    background: var(--dark-blue);
}

.cta-button-red {
    background: var(--accent-red);
    color: var(--background-white);
}

.cta-button-red:hover {
    background: var(--dark-red);
}

/* Testimonial Card */
.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-background);
    padding: 3rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-orange);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.testimonial-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-orange), var(--dark-orange));
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background-white);
    font-weight: 600;
    font-size: 1.25rem;
}

.author-info h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.author-info p {
    color: var(--text-medium);
    font-size: 0.9rem;
}

/* Cards Grid - Mobile First */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

.card {
    background: var(--card-background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-orange);
}

/* Different hover colors for variety */
.card:nth-child(3n+1):hover {
    border-color: var(--accent-orange);
}

.card:nth-child(3n+2):hover {
    border-color: var(--accent-red);
}

.card:nth-child(3n+3):hover {
    border-color: var(--primary-blue);
}

.card-image {
    background: linear-gradient(135deg, #475569, #64748b);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 2rem;
}

.card h3 {
    font-size: 1.25rem;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Color variety for card titles */
.card:nth-child(3n+1) h3 {
    color: var(--accent-orange);
}

.card:nth-child(3n+2) h3 {
    color: var(--accent-red);
}

.card:nth-child(3n+3) h3 {
    color: var(--primary-blue);
}

.card p {
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Forms - Mobile First */
.form-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-medium);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--card-background);
    color: var(--text-dark);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Special Sections */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    color: var(--white);
    text-align: center;
}

.hero-section h2 {
    color: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.value-item {
    text-align: center;
    padding: 2rem 1rem;
}

.value-item h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Color variety for value items */
.value-item:nth-child(3n+1) h4 {
    color: var(--accent-red);
}

.value-item:nth-child(3n+2) h4 {
    color: var(--accent-orange);
}

.value-item:nth-child(3n+3) h4 {
    color: var(--primary-blue);
}

.value-item p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Contact Grid - Mobile First */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.contact-info {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-orange);
    border: 1px solid var(--border-light);
}

/* Alternate contact info border colors */
.contact-info:nth-child(odd) {
    border-left: 4px solid var(--accent-red);
}

.contact-info:nth-child(even) {
    border-left: 4px solid var(--accent-orange);
}

.contact-info:nth-child(3n) {
    border-left: 4px solid var(--primary-blue);
}

.contact-info h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Alternate contact info colors */
.contact-info:nth-child(odd) h4 {
    color: var(--accent-red);
}

.contact-info:nth-child(even) h4 {
    color: var(--accent-orange);
}

.contact-info p {
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-links a {
    color: var(--accent-orange);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    color: var(--background-white);
    background: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Urgency and conversion elements */
.urgency-text {
    color: var(--accent-red) !important;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    margin: 1rem 0 !important;
    font-size: 0.95rem;
}

.social-proof {
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: inline-block;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--background-white);
    text-align: center;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-light);
}

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Mobile Menu - Visible by default (mobile-first) */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-dark);
    padding: 0.75rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--background-light);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

/* Smooth animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* TikTok Section Styles */
.tiktok-gallery-wrapper {
    width: 100%;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
}

.tiktok-video-gallery {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 0;
    padding: 1rem 0;
    scrollbar-width: none; /* Hide scrollbar for cleaner look */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar completely for single video view */
.tiktok-video-gallery::-webkit-scrollbar {
    display: none;
}

.tiktok-video-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
}

.tiktok-video-container {
    max-width: 400px;
    width: 100%;
    background: var(--background-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tiktok-video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.tiktok-video-header {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tiktok-icon {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tiktok-username {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.tiktok-style-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--background-dark);
    aspect-ratio: 9/16;
    object-fit: cover;
}

.tiktok-style-video:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 4px;
}

.tiktok-video-description {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-video-description p {
    color: white;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Video Navigation Dots */
.video-navigation-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    transform: scale(1.2);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Creative Swipe Indicator */
.swipe-indicator-container {
    text-align: center;
    margin-bottom: 2rem;
}

.swipe-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.swipe-animation {
    position: relative;
    width: 80px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-finger {
    font-size: 1.5rem;
    animation: swipeLeft 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.swipe-trail {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 80, 0.6), transparent);
    border-radius: 2px;
    animation: trailPulse 2s ease-in-out infinite;
}

@keyframes swipeLeft {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

@keyframes trailPulse {
    0%, 100% { opacity: 0; transform: translateY(-50%) scaleX(0); }
    50% { opacity: 1; transform: translateY(-50%) scaleX(1); }
}

.swipe-text {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
    font-style: italic;
}

/* Video Play Button Centering */
.tiktok-style-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--background-dark);
    aspect-ratio: 9/16;
    object-fit: cover;
}

.tiktok-style-video::-webkit-media-controls-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tiktok-style-video::-webkit-media-controls {
    position: relative;
}

/* Enhanced video controls positioning */
.tiktok-video-container {
    max-width: 400px;
    width: 100%;
    background: var(--background-dark);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Custom play button overlay for better UX */
.custom-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: none;
    outline: none;
    font-family: Arial, sans-serif;
}

.custom-play-button:hover {
    background: rgba(255, 0, 80, 0.7);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.custom-play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Play button will be hidden via JavaScript when video plays */
.tiktok-video-container.playing .custom-play-button {
    opacity: 0;
    pointer-events: none;
}

/* Responsive adjustments for TikTok section */
@media (max-width: 768px) {
    .tiktok-gallery-wrapper {
        padding: 1.5rem 0;
    }
    
    .tiktok-video-gallery {
        padding: 1rem 0;
    }
    
    .tiktok-video-item {
        padding: 0 1.5rem;
    }
    
    .tiktok-video-container {
        max-width: 350px;
    }
    
    .tiktok-video-header,
    .tiktok-video-description {
        padding: 0.75rem 1rem;
    }
    
    .tiktok-username {
        font-size: 0.9rem;
    }
    
    .tiktok-video-description p {
        font-size: 0.85rem;
    }
    
    /* Adjust swipe indicator for tablets */
    .swipe-finger {
        font-size: 1.3rem;
    }
    
    .custom-play-button {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .tiktok-gallery-wrapper {
        padding: 1rem 0;
    }
    
    .tiktok-video-gallery {
        padding: 1rem 0;
    }
    
    .tiktok-video-item {
        padding: 0 1rem;
    }
    
    .tiktok-video-container {
        max-width: 300px;
    }
    
    /* Adjust swipe indicator for mobile */
    .swipe-animation {
        width: 60px;
        height: 30px;
    }
    
    .swipe-finger {
        font-size: 1.2rem;
    }
    
    .swipe-trail {
        width: 40px;
    }
    
    .swipe-text {
        font-size: 0.8rem;
    }
    
    .custom-play-button {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
}

/* Video Section Styles */
.video-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--background-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container.playing .custom-play-button {
    opacity: 0;
    pointer-events: none;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.signature-process-video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--background-dark);
    border-radius: 16px;
}

.signature-process-video:focus {
    outline: 3px solid var(--accent-orange);
    outline-offset: 4px;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
    .video-container {
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .signature-process-video {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .video-container {
        border-radius: 8px;
        margin: 0 1rem;
    }
    
    .signature-process-video {
        border-radius: 8px;
    }
}
