/* =============================================
   SocialMedia - Main Stylesheet
   ============================================= */

/* CSS Custom Properties */
:root {
    --accent: #f43f5e;
    --accent-secondary: #05a895;
    --light: #ffffff;
    --dark: #0a0a0a;
    --muted: #666666;
    --muted-dark: #a3a3a3;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Theme Transition */
* {
    transition-property: background-color, border-color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* =============================================
   Scroll Reveal Animation
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Link Underline Animation
   ============================================= */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-underline:hover::after {
    width: 100%;
}

/* =============================================
   Image Grayscale Hover Effect
   ============================================= */
.img-grayscale {
    filter: grayscale(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-grayscale:hover,
.group:hover .img-grayscale {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =============================================
   Mobile Menu
   ============================================= */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

/* =============================================
   Card Hover Effect
   ============================================= */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
}

/* =============================================
   Feature Card Inversion
   ============================================= */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background-color: var(--dark);
    border-color: var(--dark);
}

.dark .feature-card:hover {
    background-color: var(--light);
    border-color: var(--light);
}

.feature-card:hover .feature-title,
.feature-card:hover .feature-desc {
    color: white;
}

.dark .feature-card:hover .feature-title,
.dark .feature-card:hover .feature-desc {
    color: var(--dark);
}

.feature-card:hover .feature-number {
    color: rgba(255, 255, 255, 0.1);
}

.dark .feature-card:hover .feature-number {
    color: rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon-box {
    background-color: white;
    border-color: white;
}

.dark .feature-card:hover .feature-icon-box {
    background-color: var(--dark);
    border-color: var(--dark);
}

.feature-card:hover .feature-icon {
    color: var(--dark);
}

.dark .feature-card:hover .feature-icon {
    color: var(--accent);
}

/* =============================================
   Filter Buttons
   ============================================= */
.filter-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* =============================================
   Gallery Item Filter
   ============================================= */
.gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

/* =============================================
   Lightbox Modal
   ============================================= */
#lightbox {
    display: none;
}

#lightbox.active {
    display: flex;
}

/* =============================================
   Marquee Animation
   ============================================= */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    animation: marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =============================================
   FAQ Accordion
   ============================================= */
.faq-icon {
    transition: transform 0.3s ease;
}

/* =============================================
   Counter Animation
   ============================================= */
.counter {
    transition: all 0.3s ease;
}

/* =============================================
   Pricing Card
   ============================================= */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-8px);
}

/* =============================================
   Header Scroll Effect
   ============================================= */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* =============================================
   Button Glow Effect
   ============================================= */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-glow:hover::before {
    width: 300%;
    height: 300%;
}

/* =============================================
   Form Focus States
   ============================================= */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1);
}

/* =============================================
   Selection Color
   ============================================= */
::selection {
    background-color: var(--accent);
    color: white;
}

/* =============================================
   Scrollbar Styling
   ============================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4a4a4a;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* =============================================
   Responsive Adjustments
   ============================================= */

/* Mobile: 480px and below */
@media (max-width: 480px) {
    .reveal {
        transform: translateY(20px);
    }

    .marquee-track {
        animation-duration: 30s;
    }
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 35s;
    }
}

/* Desktop: 1024px and below */
@media (max-width: 1024px) {
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* =============================================
   Accessibility
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }
}

/* Focus Visible for Keyboard Navigation */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* =============================================
   Print Styles
   ============================================= */
@media print {
    header,
    footer,
    .mobile-menu,
    #lightbox {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}