/* Orlov Digital - Dark Theme + Animations */

/* Self-hosted Inter font (no Google Fonts dependency) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/inter-latin-800-normal.woff2') format('woff2');
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom text selection */
::selection {
    background: rgba(37, 99, 235, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(37, 99, 235, 0.4);
    color: white;
}

/* Offset for fixed nav */
section {
    scroll-margin-top: 80px;
}

/* ===== ANIMATIONS ===== */

/* Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
    }
}

/* Gradient shift animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== GRADIENT TEXT (Animated) ===== */
.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 25%, #f472b6 50%, #a78bfa 75%, #60a5fa 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== GLOWING ELEMENTS ===== */
.glow {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.glow-hover:hover {
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.6);
}

/* ===== GRADIENT BORDER (Animated) ===== */
.gradient-border {
    position: relative;
    background: #0f1219;
    border-radius: 12px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #ec4899, #2563eb);
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
    opacity: 1;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== SERVICE CARDS ===== */
.service-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.15);
}

/* ===== PROCESS STEPS ===== */
.process-step {
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: scale(1.05);
}

.process-number {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ===== BUTTONS ===== */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(37, 99, 235, 0.2); }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
    animation: none;
}

/* ===== PHOTO PLACEHOLDER ===== */
.photo-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1));
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

.photo-placeholder::after {
    content: 'Photo Coming Soon';
    color: #64748b;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* ===== ICON CONTAINERS ===== */
.icon-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: iconFloat 4s ease-in-out infinite;
}

.icon-container:hover {
    transform: rotate(5deg) scale(1.15);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
    animation-play-state: paused;
}

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

/* Stagger floating animation for each card */
.service-card:nth-child(1) .icon-container { animation-delay: 0s; }
.service-card:nth-child(2) .icon-container { animation-delay: 0.5s; }
.service-card:nth-child(3) .icon-container { animation-delay: 1s; }

/* ===== VALUE PROPS ===== */
.value-prop {
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 12px;
    padding: 16px;
    margin: -16px;
}

.value-prop:hover {
    transform: translateX(8px);
    background: rgba(37, 99, 235, 0.05);
}

/* ===== CONTACT BUTTONS ===== */
.contact-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.contact-btn:hover::after {
    width: 300px;
    height: 300px;
}

.contact-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.2);
}

/* ===== CLICK RIPPLE EFFECT ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== NAV ===== */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-grid {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-glow {
    position: relative;
}

.bg-glow::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bg-glow::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== DIVIDERS ===== */
.gradient-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #2563eb, #7c3aed, transparent);
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Mobile: Vertical scroll indicator on right side */
@media (max-width: 768px) {
    .scroll-progress {
        top: 50%;
        left: auto;
        right: 8px;
        width: 3px !important;
        height: 0;
        max-height: 30vh;
        transform: translateY(-50%);
        background: linear-gradient(180deg, #2563eb, #7c3aed, #ec4899);
        border-radius: 2px;
        transition: height 0.1s ease;
    }

    .scroll-progress-track {
        position: fixed;
        top: 50%;
        right: 8px;
        width: 3px;
        height: 30vh;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        transform: translateY(-50%);
        z-index: 9998;
    }
}

/* ===== LOGO HOVER ANIMATION ===== */
.logo-text {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-text:hover {
    animation: logoWiggle 0.5s ease;
}

@keyframes logoWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* ===== SOFT PAGE REVEAL ===== */
@keyframes softReveal {
    to { opacity: 1; }
}

/* ===== FLOATING PARTICLES ===== */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-50px) translateX(-10px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) translateX(15px);
        opacity: 0.4;
    }
}

/* ===== FOCUS STATES ===== */
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

#mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
    opacity: 1;
}

/* ===== CURSOR GLOW (optional fancy effect) ===== */
.cursor-glow {
    pointer-events: none;
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px);
    }

    .bg-glow::before,
    .bg-glow::after {
        display: none;
    }
}

/* ===== EASTER EGG RAINBOW ===== */
@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ===== ARTICLE CONTENT TYPOGRAPHY ===== */
.article-content > *:first-child {
    margin-top: 0;
}

.article-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #fff;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.article-content > h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.article-content h2::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.article-content > h2:first-child::before {
    display: none;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    color: #94a3b8;
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    color: #94a3b8;
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.article-content ul {
    list-style-type: none;
    padding-left: 0;
}

.article-content ul li {
    padding-left: 1.5rem;
    position: relative;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}

.article-content ol {
    list-style-type: decimal;
    padding-left: 1.75rem;
}

.article-content ol li::marker {
    color: #2563eb;
    font-weight: 600;
}

.article-content li {
    margin-bottom: 0.75rem;
    padding-left: 0.25rem;
}

.article-content strong {
    color: #fff;
    font-weight: 600;
}

.article-content em {
    font-style: italic;
    color: #cbd5e1;
}

.article-content a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(96, 165, 250, 0.3);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
    color: #93c5fd;
    text-decoration-color: #93c5fd;
}

.article-content blockquote {
    border-left: 3px solid #2563eb;
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .article-content h2 {
        font-size: 2rem;
    }

    .article-content h3 {
        font-size: 1.375rem;
    }

    .article-content p,
    .article-content ul,
    .article-content ol {
        font-size: 1.125rem;
    }
}

/* ===== REDUCED MOTION ===== */
@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;
    }
}
