/* Loge Media Design Refinements
 * Glassmorphism + Tech aesthetic
 * Electric blue accents for video production energy
 */

:root {
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* Better font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   GLASSMORPHISM STICKY CTA
   ======================================== */

.sticky-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 217, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0, 217, 255, 0.3),
                0 4px 8px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(120px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.sticky-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.sticky-cta:hover::before {
    opacity: 0.2;
}

.sticky-cta.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sticky-cta:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow: 0 12px 48px rgba(0, 217, 255, 0.4),
                0 6px 12px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(0, 217, 255, 0.2);
    text-decoration: none;
}

.sticky-cta-icon {
    font-size: 1.25rem;
    transition: transform var(--transition-base);
}

.sticky-cta:hover .sticky-cta-icon {
    transform: translateX(4px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        right: 20px;
        padding: 0;
        width: 48px;
        height: 48px;
        justify-content: center;
        border-radius: 50%;
    }

    .sticky-cta-text {
        display: none;
    }

    .sticky-cta-icon {
        font-size: 1.5rem;
        transform: rotate(-45deg);
    }

    .sticky-cta:hover .sticky-cta-icon {
        transform: rotate(-45deg) scale(1.1);
    }
}

/* ========================================
   BUTTON ENHANCEMENTS
   ======================================== */

.learn-more-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(253, 173, 1, 0.3);
    transition: all var(--transition-base);
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-smooth), height var(--transition-smooth);
}

.learn-more-btn:hover::before {
    width: 300px;
    height: 300px;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 173, 1, 0.4);
}

/* ========================================
   SERVICE CARDS / WORK ITEMS
   ======================================== */

.service-card,
.work-item {
    position: relative;
    transition: all var(--transition-slow);
}

.service-card::before,
.work-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
        rgba(0, 217, 255, 0.1) 0%,
        transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.service-card:hover::before,
.work-item:hover::before {
    opacity: 1;
}

.service-card:hover,
.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(0, 217, 255, 0.3) inset;
}

/* ========================================
   SCROLL PROGRESS INDICATOR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform-origin: left;
    z-index: 9999;
    box-shadow: 0 0 10px var(--blue-glow);
}

/* ========================================
   LINK REFINEMENTS
   ======================================== */

a {
    transition: color var(--transition-base);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ========================================
   RESPONSIVE REFINEMENTS
   ======================================== */

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

/* Better mobile touch targets */
@media (max-width: 768px) {
    .learn-more-btn,
    .quicklink-button {
        min-height: 48px;
        padding-top: 14px;
        padding-bottom: 14px;
    }
}

/* ========================================
   ENHANCED GLASSMORPHISM
   ======================================== */

/* Testimonial cards */
.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-slow);
    position: relative;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--secondary-color) 50%,
        transparent 100%);
    border-radius: 12px 12px 0 0;
}

.testimonial-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.2);
    transform: translateY(-4px);
}

/* ========================================
   VIDEO PLAYER ENHANCEMENTS
   ======================================== */

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.video-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.video-container:hover::after {
    opacity: 1;
}

.video-container:hover {
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

/* ========================================
   TECH ACCENTS
   ======================================== */

/* Blue accent line */
.tech-divider {
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--secondary-color) 50%,
        transparent 100%);
    margin: 60px 0;
}

/* Glowing headings */
h1.glow,
h2.glow {
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.3);
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 2px solid transparent;
    border-top-color: var(--secondary-color);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
