/* DuoHacker Landing Page - Custom Styles */

/* ============================================
   Base Styles
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}

/* Selection color */
::selection {
    background-color: rgba(0, 208, 132, 0.3);
    color: white;
}

/* ============================================
   Animations
   ============================================ */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 208, 132, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 208, 132, 0.5);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animation classes */
.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-pulse-once {
    animation: pulse 0.6s ease-in-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Staggered animations for children */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* ============================================
   Component Styles
   ============================================ */

/* Navigation */
nav {
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

nav.scrolled {
    background-color: rgba(17, 24, 39, 0.98);
}

/* Language dropdown */
#lang-dropdown {
    transform-origin: top right;
    animation: scaleIn 0.2s ease-out;
}

#lang-dropdown button:first-child {
    border-radius: 0.75rem 0.75rem 0 0;
}

#lang-dropdown button:last-child {
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Hero section gradient text (optional) */
.gradient-text {
    background: linear-gradient(135deg, #00D084, #1cb0f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Video container glow effect */
#video .absolute {
    animation: pulse 4s ease-in-out infinite;
}

/* Feature cards hover effect */
.bg-dark-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.bg-dark-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* FAQ accordion */
.faq-item {
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 208, 132, 0.3);
}

.faq-toggle {
    transition: background-color 0.2s ease;
    outline: none !important;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-content {
    animation: fadeIn 0.3s ease-out;
}

/* Download button glow */
#download-btn {
    position: relative;
    overflow: hidden;
}

#download-btn::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;
}

#download-btn:hover::before {
    left: 100%;
}

/* Stats number styling */
.text-duo-green,
.text-duo-blue,
.text-duo-purple,
.text-duo-yellow {
    text-shadow: 0 0 30px currentColor;
}

/* Review cards */
#reviews .bg-dark-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#reviews .bg-dark-card blockquote {
    flex-grow: 1;
}

#reviews .bg-dark-card footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

/* Step numbers in How It Works */
.w-12.h-12.bg-duo-green,
.w-12.h-12.bg-duo-blue,
.w-12.h-12.bg-duo-purple {
    box-shadow: 0 0 20px currentColor;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Mobile-first responsive styles */
@media (max-width: 640px) {
    /* Reduce hero text size */
    h1 {
        font-size: 2.25rem !important;
        line-height: 1.2;
    }

    /* Stack hero features vertically */
    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Full-width buttons on mobile */
    .flex-col.sm\:flex-row > a {
        width: 100%;
    }

    /* Adjust video aspect ratio for mobile */
    .aspect-video {
        aspect-ratio: 16 / 10;
    }

    /* Smaller stats on mobile */
    .text-4xl.sm\:text-5xl {
        font-size: 2rem;
    }

    /* FAQ adjustments */
    .faq-toggle {
        padding: 1rem;
    }

    .faq-content {
        padding: 0 1rem 1rem;
    }

    /* Footer stacking */
    footer .grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    /* Adjust section padding */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Hide decorative elements on mobile */
    .hidden-mobile {
        display: none;
    }

    /* Reviews horizontal scroll */
    #reviews .grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 1rem;
        padding-bottom: 1rem;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #reviews .grid::-webkit-scrollbar {
        display: none;
    }

    #reviews .grid > div {
        scroll-snap-align: center;
        flex-shrink: 0;
        width: 85%;
        max-width: 320px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Tablet adjustments */
    .max-w-7xl {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    nav,
    #video iframe,
    #download,
    footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .bg-dark-card {
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
    }
}

/* ============================================
   Accessibility
   ============================================ */

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid #00D084;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bg-dark-card {
        border-width: 2px;
    }

    .text-gray-400,
    .text-gray-500 {
        color: #d1d5db;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #00D084 0%, #1cb0f6 50%, #ce82ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass effect */
.glass {
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Shimmer loading effect */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Hide scrollbar */
.no-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Truncate text */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
