/* ============================================
   SINEMATIK — Custom CSS
   Tailwind CSS additional customizations
   ============================================ */

/* ============================================
   NEON GLOW EFFECTS
   ============================================ */
.service-card:hover {
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.2),
                0 0 60px rgba(0, 212, 255, 0.05);
}

.service-card:hover .service-icon {
    color: var(--color-primary);
    transform: scale(1.15);
    text-shadow: 0 0 20px var(--color-glow);
}

.service-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   COUNTER ANIMATION
   ============================================ */
.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TESTIMONIAL SLIDER
   ============================================ */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 0 1rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-muted);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-glow);
    transform: scale(1.2);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-glow);
    z-index: 1;
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion-item {
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: var(--color-border);
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--glass-bg);
    cursor: pointer;
    color: var(--color-text);
    font-weight: 600;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: rgba(0, 212, 255, 0.05);
}

.accordion-header .icon {
    transition: transform 0.3s ease;
    color: var(--color-primary);
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 1.5rem 1.5rem;
    color: var(--color-muted);
    line-height: 1.8;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(17, 29, 53, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: var(--color-muted);
}

.sinematik-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.form-status {
    display: none;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.form-status.success,
.form-status.error {
    display: block;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-accent.is-loading,
.btn-accent:disabled {
    opacity: 0.75;
    cursor: wait;
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
    text-align: center;
}

.team-card .team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.team-card .team-photo::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--color-surface);
}

.team-card .team-photo span {
    position: relative;
    z-index: 1;
}

/* ============================================
   FORM STATUS MESSAGES
   ============================================ */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   PORTFOLIO FILTERS
   ============================================ */
.portfolio-item.is-hidden,
.portfolio-item[hidden] {
    display: none;
}

.portfolio-filter-btn.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0, 212, 255, 0.08);
}

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

/* ============================================
   HERO PARTICLE OVERLAY
   ============================================ */
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--color-bg) 70%);
    pointer-events: none;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PARTNERS SLIDER
   ============================================ */
.partners-track {
    display: flex;
    gap: 3rem;
    animation: scroll-partners 30s linear infinite;
}

@keyframes scroll-partners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-track:hover {
    animation-play-state: paused;
}

/* ============================================
   STICKY HEADER BEHAVIORS
   ============================================ */
.sinematik-header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.sinematik-header-scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.sinematik-header-hidden {
    transform: translateY(-100%);
}

.sinematik-header-visible {
    transform: translateY(0);
}

/* Reading time badge */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-muted, #64748b);
    font-size: 0.8125rem;
}

/* ============================================
   SITE LOGO — height via Customizer (--logo-height)
   Applied to the header & footer logo anchors (.site-logo)
   and to WordPress custom-logo images. Width stays auto so
   the aspect ratio is preserved.
   ============================================ */
.site-logo img,
img.custom-logo {
    height: var(--logo-height, 40px);
    width: auto;
    max-width: none;
}

/* ============================================
   SITE TAGLINE (next to the header logo)
   Plain CSS, NOT Tailwind utilities — the compiled
   tailwind.css is a minimal build that omits many
   utilities (e.g. sm:inline-block), so utility-only
   styling here would silently leave the tagline hidden.
   ============================================ */
.site-tagline {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 400;
    opacity: 0.7;
    border-left: 1px solid var(--glass-border, rgba(148, 163, 184, 0.25));
    padding-left: 0.75rem;
    margin-left: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 22rem;
}

/* ============================================
   ERROR / 404 SECTION — keep content clear of the fixed navbar
   The 404 card uses backdrop-filter, which (known compositor behavior in
   Chrome/Safari) can render ABOVE the position:fixed navbar when they
   physically overlap. Two guards:
   1. generous pt (pt-32) so the card starts below the navbar;
   2. align-items: safe center — vertically center, but never let the card
      overflow upward under the navbar on short screens (older browsers
      fall back to plain centering via the line above).
   ============================================ */
.error-section {
    align-items: center;
    align-items: safe center;
}
