:root {
    --primary-rgb: 6, 104, 167;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
}

.grayscale-hover {
    filter: grayscale(100%);
    transition: filter 0.3s ease-in-out;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

@keyframes shine {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

.animate-shine {
    animation: shine 1.5s infinite;
}

/* Viewfinder Corners */
.viewfinder-corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border-color: rgba(255, 255, 255, 0.4);
    border-style: solid;
    pointer-events: none;
    z-index: 20;
}

.corner-tl {
    top: 40px;
    left: 40px;
    border-width: 4px 0 0 4px;
}

.corner-tr {
    top: 40px;
    right: 40px;
    border-width: 4px 4px 0 0;
}

.corner-bl {
    bottom: 40px;
    left: 40px;
    border-width: 0 0 4px 4px;
}

.corner-br {
    bottom: 40px;
    right: 40px;
    border-width: 0 4px 4px 0;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.animate-blink {
    animation: blink 1.5s infinite;
}

/* Staggered Text Reveal */
@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(60px) rotateX(-20deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Staggered Text Reveal - DEFAULT (Works on all pages) */
.animate-reveal {
    opacity: 0;
    animation: reveal-up 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Home Page Specific Delay - Suppress until .hero-active is added */
.wait-reveal .animate-reveal {
    animation: none !important;
    opacity: 0 !important;
}

.hero-active.wait-reveal .animate-reveal {
    animation: reveal-up 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
    opacity: 1 !important;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

/* Disable hero animations on mobile — show content immediately */
@media (max-width: 767px) {
    #hero-section .animate-reveal,
    #hero-section.wait-reveal .animate-reveal,
    #hero-section .hero-active.wait-reveal .animate-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Marquee Carousel Animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.animate-scroll-left {
    animation: scroll-left 190s linear infinite;
}

.animate-scroll-right {
    animation: scroll-right 190s linear infinite;
}

.logo-slide-container {
    width: max-content;
    display: flex;
}

/* Pause animation on hover */
.logo-slide-container:hover {
    animation-play-state: paused;
}

.client-logo-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.client-logo-item img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: all 0.3s ease;
}

.client-logo-item img:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.1);
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

/* Cinematic Frame Expand Transition */
.video-frame-container {
    perspective: 1000px;
}

.video-frame-box {
    width: var(--frame-width, 92%);
    height: var(--frame-height, 85vh);
    border-radius: var(--frame-radius, 2.5rem);
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    padding-top: var(--frame-pt, 0);
}

@media (max-width: 768px) {
    .video-frame-box {
        width: 100% !important;
        height: 56.25vw !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }
}

.video-frame-inner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(var(--inner-scale, 1.1));
}

/* Creative WhatsApp Floating Icon */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    position: relative;
}

.whatsapp-float:hover .whatsapp-icon-wrapper {
    transform: scale(1.1) rotate(10deg);
}

.whatsapp-icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
    opacity: 0.6;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.whatsapp-label {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .whatsapp-label {
        display: none;
    }
}

/* Laptop View Scaling & Fixes (1024px - 1440px) */
@media screen and (min-width: 1024px) and (max-width: 1440px) {

    /* Header Scaling */
    header#main-header {
        width: 98% !important;
        top: 0.75rem !important;
    }

    header#main-header .h-20 {
        height: 4.5rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    header#main-header .nav-link {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
        font-size: 0.8rem !important;
    }

    header#main-header .lg\:flex.items-center.bg-white\/5 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    /* Actions (Phone & Button) */
    header#main-header .hidden.sm\:flex.items-center {
        margin-right: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    a[href="contact.php"] {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        font-size: 0.7rem !important;
    }

    /* Cinematic Layout Scaling */
    .perspective-1000 h1 span {
        font-size: clamp(2.5rem, 5vw, 4rem) !important;
        line-height: 1.1 !important;
    }

    .viewfinder-corner {
        width: 25px !important;
        height: 25px !important;
    }

    .grid {
        gap: 1.5rem !important;
    }

    /* Scaling for services section items */
    .h-\[380px\] {
        height: 320px !important;
    }
}

/* --- Dynamic Blog Content Styling --- */
.blog-content {
    /* Headings */
}

.blog-content h1, .blog-content h2, .blog-content h3, .blog-content h4, .blog-content h5, .blog-content h6 {
    font-weight: 900 !important;
    color: white !important;
    letter-spacing: -0.05em !important;
    text-transform: uppercase !important;
    margin-top: 4rem !important;
    margin-bottom: 2rem !important;
    line-height: 1.1 !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.blog-content h1:first-child, .blog-content h2:first-child, .blog-content h3:first-child {
    margin-top: 0 !important;
}

.blog-content h1 { font-size: clamp(2rem, 6vw, 3.5rem) !important; }
.blog-content h2 { font-size: clamp(1.75rem, 5vw, 2.75rem) !important; }
.blog-content h3 { font-size: clamp(1.5rem, 4vw, 2rem) !important; }
.blog-content h4 { font-size: clamp(1.25rem, 3vw, 1.5rem) !important; }
.blog-content h5 { font-size: clamp(1.1rem, 2.5vw, 1.25rem) !important; }
.blog-content h6 { font-size: 1rem !important; }

/* Paragraphs */
.blog-content p {
    font-size: 1.125rem !important;
    line-height: 1.8 !important;
    color: rgba(238, 248, 255, 0.7) !important;
    margin-bottom: 2rem !important;
}

.blog-content p:last-child {
    margin-bottom: 0 !important;
}

/* Bold Paragraphs as Headings (Safety Fallback) */
.blog-content p > strong:only-child,
.blog-content p > b:only-child {
    display: block !important;
    font-size: 1.5rem !important;
    color: white !important;
    margin-top: 3rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

/* Lists */
.blog-content ul, .blog-content ol {
    margin-bottom: 2.5rem !important;
    padding-left: 2rem !important;
}

.blog-content ul { list-style-type: disc !important; }
.blog-content ol { list-style-type: decimal !important; }

.blog-content li {
    margin-bottom: 1.25rem !important;
    padding-left: 0.5rem !important;
    color: rgba(238, 248, 255, 0.7) !important;
    line-height: 1.6 !important;
}

.blog-content li::marker {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

/* Blockquotes */
.blog-content blockquote {
    position: relative !important;
    padding: 6rem 3rem 4rem 3rem !important;
    margin: 5rem 0 !important;
    border-radius: 40px !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    font-style: italic !important;
}

.blog-content blockquote::before {
    content: 'format_quote' !important;
    font-family: 'Material Symbols Outlined' !important;
    color: var(--primary) !important;
    font-size: 5rem !important;
    opacity: 0.2 !important;
    position: absolute !important;
    top: -2.5rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #050505 !important;
    padding: 0 1rem !important;
}

.blog-content blockquote p {
    font-size: clamp(1.5rem, 5vw, 2.5rem) !important;
    color: white !important;
    font-weight: 300 !important;
    letter-spacing: -0.025em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.blog-content blockquote cite {
    display: block !important;
    margin-top: 2.5rem !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4em !important;
    color: var(--primary) !important;
    font-style: normal !important;
}

/* Media */
.blog-content img {
    width: 100% !important;
    height: auto !important;
    border-radius: 30px !important;
    margin: 4rem 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5) !important;
}

.blog-content figure {
    margin: 4rem 0 !important;
}

.blog-content figcaption {
    margin-top: 1.5rem !important;
    text-align: center !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2em !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Inline Elements */
.blog-content strong, .blog-content b {
    color: white !important;
    font-weight: 700 !important;
}

.blog-content em, .blog-content i {
    font-style: italic !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.blog-content a {
    color: var(--primary) !important;
    text-decoration: underline !important;
    text-underline-offset: 4px !important;
    transition: all 0.3s ease !important;
}

.blog-content a:hover {
    color: #8fd0fa !important;
}

/* Dividers */
.blog-content hr {
    margin: 5rem 0 !important;
    border: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent) !important;
}