/* Custom styles for the startup homepage - Dark Theme */

/* General body styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; /* gray-900 */
    color: #cbd5e1; /* slate-300 */
}

/* --- Menu Styles --- */
.menu-item {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 0.5rem;
    color: #d1d5db;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
    z-index: 10;
}

.menu-item:hover {
    color: #ffffff;
}

#menu-background-highlight {
    z-index: 5;
    opacity: 0;
}

/* --- Hero Section Styles --- */
.hero-bg {
    background-color: #0f172a;
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, rgba(15, 23, 42, 0) 100%);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,...') center/50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.blinking-dot-banner {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 0.35rem 1rem;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.blinking-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: #ef4444; /* Tailwind red-500 */
  margin-right: 8px;
  animation: blink 1s infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.highlighted-text { 
    background-color: #2563eb;
    display: inline-block;
    padding: 0.25rem 0.5rem;
}

.sub-headline-underline {
    position: relative;
    display: inline-block;
}

.sub-headline-underline:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #2563eb;
}

.new-cta-button {
    background: linear-gradient(92.88deg, #3b82f6 9.16%, #2563eb 43.89%, #1d4ed8 64.72%);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px -6px #3b82f680;
}

/* --- Hero Content Animation --- */
#hero-content-wrapper > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

#hero-content-wrapper.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

#hero-content-wrapper.is-visible .blinking-dot-banner { transition-delay: 0.1s; }
#hero-content-wrapper.is-visible h1 { transition-delay: 0.2s; }
#hero-content-wrapper.is-visible h2 { transition-delay: 0.3s; }
#hero-content-wrapper.is-visible .max-w-3xl { transition-delay: 0.4s; }
#hero-content-wrapper.is-visible .new-cta-button { transition-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content-wrapper > * {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.hero-content-wrapper > *:nth-child(1) { animation-delay: 0.2s; }
.hero-content-wrapper > *:nth-child(2) { animation-delay: 0.4s; }
.hero-content-wrapper > *:nth-child(3) { animation-delay: 0.6s; }
.hero-content-wrapper > *:nth-child(4) { animation-delay: 0.8s; }

/* --- Old CTA Button (For other sections) --- */
.cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* --- Testimonial Card --- */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

/* --- New Wave Footer Styles --- */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #60a5fa; /* sky-400 */
}

.wave-segment {
    background-color: #ffffff;
    margin-top: -2px; /* Overlap segments slightly */
    will-change: transform; /* Performance optimization */
}

/* --- Add these video container styles --- */
.video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.video-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(45deg, #2563eb, #1d4ed8);
    opacity: 0.15;
    filter: blur(20px);
    z-index: -1;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

/* No changes needed for video functionality */

/* Testimonial Cards Styles */
.video-testimonial-card {
    position: relative;
    background-color: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.video-container-testimonial {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper-testimonial {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper-testimonial iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* You can remove or comment out the .play-button-overlay block if not used */
/*
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.play-button-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.play-button-overlay svg {
    transition: transform 0.3s ease;
}

.play-button-overlay:hover svg {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .play-button-overlay {
        background-color: rgba(0, 0, 0, 0.4);
    }
    
    .play-button-overlay svg {
        width: 60px;
        height: 60px;
    }
}
*/

.content-wrapper {
    padding: 1rem;
}

.result-tag {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-value {
    display: block;
    color: #3b82f6;
    font-weight: 700;
    font-size: 1.125rem;
}

.stat-label {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Updated Secrets Section Styles */
.secrets-section {
    background: #0f172a; /* Match the slate-900 theme */
    position: relative;
    overflow: hidden;
}

.secrets-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59,130,246,0.05) 0%, transparent 50%);
}

.secret-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.secret-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.secret-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.1), transparent);
    transition: left 0.6s ease;
}

.secret-card:hover::before {
    left: 100%;
}

.secret-icon {
    width: 72px;
    height: 72px;
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.secret-card:hover .secret-icon {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    transform: scale(1.05);
}

.secret-icon svg {
    width: 36px;
    height: 36px;
    color: #60A5FA;
}

.secret-title {
    color: #F8FAFC;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

.secret-stat {
    color: #60A5FA;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secret-description {
    color: #94A3B8;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .video-testimonial-card {
        margin-bottom: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .video-testimonial-card:active {
        transform: scale(0.98);
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .play-button-overlay svg {
        width: 3rem;
        height: 3rem;
    }

    .stats-grid {
        margin: 0.75rem 0;
        padding: 0.5rem;
    }

    .secret-card {
        padding: 20px 16px;
    }
    
    .secret-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 16px;
    }
    
    .secret-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .secret-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .secret-stat {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
    
    .secret-description {
        font-size: 0.875rem;
    }
}

/* Loading Animation for Videos */
.video-wrapper-testimonial::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.1), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Responsive styles for larger screens --- */
@media (min-width: 768px) {
    .menu-item {
        padding: 0.5rem 1rem;
    }
    .blinking-dot-banner {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    .blinking-dot {
        width: 10px;
        height: 10px;
        margin-right: 10px;
    }
    .highlighted-text {
        padding: 4px 12px;
        border-radius: 8px;
        margin: 8px 0;
    }
    .new-cta-button {
        padding: 16px 24px;
        border-radius: 12px;
        font-size: 1rem;
    }
}

/* As Seen On Section Styles */
.logo-item {
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 8px 16px;
}

.logo-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.verge-logo {
    /* Add your styles for verge-logo here if needed */
}

.gq-logo {
    color: #FFD700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mankind-logo {
    color: #FF6B6B;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-item {
        padding: 6px 12px;
    }
}

/* Ensure video is tappable and prevent zoom/text selection on mobile */
.video-container {
    touch-action: manipulation;
    user-select: none;
}
@media (max-width: 768px) {
    .video-container {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .video-testimonial-card:hover,
    .video-testimonial-card:active {
        transform: none !important;
        box-shadow: none !important;
        border-color: inherit !important;
    }
}

.gq-logo {
    color: #FFD700;
    background: linear-gradient(135deg, #FFD700 0%, #FFA000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mankind-logo {
    color: #FF6B6B;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5722 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-item {
        padding: 6px 12px;
    }
}

/* Ensure video is tappable and prevent zoom/text selection on mobile */
.video-container {
    touch-action: manipulation;
    user-select: none;
}
@media (max-width: 768px) {
    .video-container {
        overflow: visible !important;
    }
}

@media (max-width: 768px) {
    .video-testimonial-card:hover,
    .video-testimonial-card:active {
        transform: none !important;
        box-shadow: none !important;
        border-color: inherit !important;
    }
}

.underline-animate-container {
    position: relative;
    display: inline-block;
}

#underline-animate-text {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

#underline-animate-svg {
    width: 100%;
    max-width: 300px;
    height: 24px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}