/*
Theme Name: Ramsla
Author: Xyphla Solutions
Author URI: https://xyphla.app
Description: Professional event planning and creative solutions theme for Ramsla Creation
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ramsla
Domain Path: /languages
*/

:root {
    color-scheme: dark;

    --obsidian: #02040a;
    --onyx: #060913;
    --charcoal: #0b101d;
    --brand-light: #4d88ff;
    --brand-default: #0052ff;
    --brand-dark: #0033a8;
    --brand-glow: #00e5ff;
}

html {
    color-scheme: dark;
    forced-color-adjust: none;
}

body {
    background-color: #02040a !important;
    color: #ffffff !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #02040a;
    color-scheme: dark;
    forced-color-adjust: none;

}

/* Prevent Samsung altering design-critical elements */
.glass,
.section-pattern,
.section-cover,
.hero-slide-overlay,
.hero-slide-bg,
.noise-bg,
.bg-gradient-brand {
    forced-color-adjust: none;
}

* {
    forced-color-adjust: none;
}



body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--obsidian);
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    animation: pageFade 0.8s ease both;
    forced-color-adjust: none;

}




@keyframes pageFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.fd {
    font-family: 'Outfit', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.num {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Noise Overlay */
.noise-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Tech Grid */
.tech-grid {
    background-image:
        linear-gradient(rgba(0, 82, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 82, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Patterned section backgrounds */
.section-pattern {
    position: relative;
    isolation: isolate;
    background-color: var(--section-base, var(--obsidian));
    background-image:
        linear-gradient(180deg, rgba(2, 4, 10, 0.52), rgba(2, 4, 10, 0.68)),
        var(--section-pattern);
    background-repeat: no-repeat, repeat;
    background-position: center, center;
    background-size: cover, 220px auto;
}

/* Full-cover section backgrounds */
.section-cover {
    position: relative;
    isolation: isolate;
    background-color: var(--section-base, var(--obsidian));
    background-image: var(--section-cover-pattern);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-default);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-glow);
}

::selection {
    background: rgba(0, 136, 255, 0.3);
    color: #ffffff;
}

/* Gradient Text */
.gtext {
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand-glow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-default) 0%, var(--brand-dark) 100%);
}

/* Glass Morphism */
.glass {
    background: rgba(0, 82, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 82, 255, 0.15);
    transition: all 0.4s ease;
}

.glass:hover {
    border: 1px solid rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 82, 255, 0.15);
    background: rgba(0, 82, 255, 0.05);
}

/* Buttons */
.btn-brand {
    background: linear-gradient(135deg, var(--brand-default), var(--brand-dark));
    background-size: 200% 200%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 82, 255, 0.3);
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-brand:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5);
    color: #ffffff;
    text-decoration: none;
}

.btn-outline {
    border: 1px solid rgba(0, 136, 255, 0.4);
    color: #e6f0ff;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: rgba(2, 4, 10, 0.35);
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 229, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    transform: scaleX(1);
}

.btn-outline:hover {
    border-color: var(--brand-glow);
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Tags */
.tag {
    border: 1px solid rgba(0, 229, 255, 0.3);
    background: rgba(0, 82, 255, 0.1);
    color: var(--brand-glow);
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

/* Links */
.ul-link {
    position: relative;
    text-decoration: none;
}

.ul-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-glow);
    transition: width 0.3s ease;
}

.ul-link:hover::after {
    width: 100%;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

.d4 {
    transition-delay: 0.4s;
}

/* ── Hero Carousel Animations ── */
.hero-slide {
    transition: opacity 0.9s ease-in-out;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    visibility: visible;
}

.hero-slide.inactive {
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    visibility: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 9s ease-out;
    z-index: 0;
}

.hero-slide.active .hero-slide-bg {
    animation: heroZoom 10s ease-in-out infinite alternate;
}

@keyframes heroZoom {

    0%,
    100% {
        transform: scale(1.08);
    }

    50% {
        transform: scale(1.25);
    }
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(2, 4, 10, 0.46) 0%,
            rgba(2, 4, 10, 0.58) 50%,
            rgba(2, 4, 10, 0.84) 100%);
    z-index: 1;
}

.slide-content {
    opacity: 0;
    transform: translateY(28px);
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s;
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: clamp(8rem, 14vh, 11rem);
    padding-bottom: clamp(9rem, 16vh, 12rem);
}

@media (min-width: 768px) {
    .slide-content {
        text-align: left;
    }
}

.hero-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Carousel Dots ── */
#carousel-dots {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
    width: 12px;
    height: 12px;
}

/* ── Marquee ── */
.marquee-outer {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px dashed rgba(0, 82, 255, 0.3);
    border-bottom: 1px dashed rgba(0, 82, 255, 0.3);
    background: #060913;
}

.marquee-inner {
    display: inline-flex;
    align-items: center;
    --marquee-start-offset: 0px;
    animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(var(--marquee-start-offset, 0px));
    }

    to {
        transform: translateX(calc(var(--marquee-start-offset, 0px) - 50%));
    }
}

.marquee-logo {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 4rem;
    text-transform: uppercase;
}

.marquee-logo:hover {
    color: #00e5ff;
}

/* Main Container */
.max-w-7xl {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin: 1.5rem 0;
    line-height: 1.1;
}

h3 {
    font-size: 2rem;
    margin: 1.2rem 0;
    line-height: 1.1;
}

h4 {
    font-size: 1.5rem;
    margin: 1rem 0;
}

p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

a {
    color: var(--brand-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--brand-glow);
}

/* WordPress Default Classes */
.wp-caption {
    max-width: 100%;
}

/* Fix Samsung double inversion */
.custom-logo,
.custom-logo-fallback {
    filter: brightness(0) invert(1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none !important;

}

/* Posts & Content */
.post-title {
    margin: 1rem 0;
}

.post-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

article {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 82, 255, 0.1);
}

article:last-child {
    border-bottom: none;
}

/* Blog Cards */
.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #070b14;
    transition: transform 0.5s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 229, 255, 0.3);
}

.blog-card img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
}

.blog-card:hover img {
    transform: scale(1.05);
}

/* Gallery Items */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #070b14;
    cursor: zoom-in;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.gallery-set-thumbnail {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #070b14;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.4s ease;
}

.gallery-item:hover,
.gallery-set-thumbnail:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 229, 255, 0.4);
}

.gallery-item img,
.gallery-set-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: contrast(1.1) brightness(0.9);
}

.gallery-item:hover img,
.gallery-set-thumbnail:hover img {
    transform: scale(1.08);
    filter: contrast(1.1) brightness(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 4, 10, 0.95) 0%, rgba(0, 82, 255, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.gallery-item:hover .gallery-overlay,
.gallery-set-thumbnail:hover .gallery-overlay {
    opacity: 1;
}

.gallery-meta {
    transform: translateY(15px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.gallery-item:hover .gallery-meta,
.gallery-set-thumbnail:hover .gallery-meta {
    transform: translateY(0);
    opacity: 1;
}

.icon-expand {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #00e5ff;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease 0.1s;
    backdrop-filter: blur(4px);
}

.gallery-item:hover .icon-expand,
.gallery-set-thumbnail:hover .icon-expand {
    opacity: 1;
    transform: scale(1);
}

/* Portfolio Case Study */
.spec-label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}

.spec-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.gallery-img-container {
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.gallery-img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: zoom-in;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-img-container:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 4, 10, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.gallery-img-container:hover::after {
    opacity: 1;
}

/* Single Portfolio Lightbox (gallery page) */
#lb-img-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 255, 0.3);
    box-shadow: 0 0 50px rgba(0, 82, 255, 0.2);
}

#lb-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

#lb-caption {
    margin-top: 20px;
    text-align: center;
}

/* Article Prose */
.prose p {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.prose h2 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.prose h3 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose blockquote {
    border-left: 3px solid #00e5ff;
    padding: 1rem 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    background: linear-gradient(to right, rgba(0, 82, 255, 0.1), transparent);
}

.prose img {
    border-radius: 8px;
    margin: 2.5rem 0;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prose ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.prose ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.prose ul li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    top: 2px;
    color: #00e5ff;
    font-size: 0.7rem;
    text-shadow: 0 0 5px #00e5ff;
}

.first-letter-drop::first-letter {
    color: #00e5ff;
    float: left;
    font-size: 4.5rem;
    line-height: 0.8;
    padding-right: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

/* Footer */
footer {
    background-color: var(--charcoal);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
    margin-top: 0;
    border-top: 1px solid rgba(0, 82, 255, 0.1);
}

footer a {
    color: var(--brand-light);
}

footer a:hover {
    color: var(--brand-glow);
}

/* Form Elements */
.form-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 82, 255, 0.3);
    border-radius: 6px;
    padding: 14px 18px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
}

.form-field:focus {
    border-color: var(--brand-glow);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    background: rgba(0, 82, 255, 0.05);
}

.form-field option {
    background: var(--onyx);
    color: #fff;
}

textarea.form-field {
    resize: vertical;
    min-height: 140px;
}

/* ── Section Ornament ── */
.sec-orn {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.sec-orn::before,
.sec-orn::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, .5));
}

.sec-orn::after {
    background: linear-gradient(90deg, rgba(0, 229, 255, .5), transparent);
}

.sec-orn.justify-start::before {
    display: none;
}

.sec-orn.justify-center::before {
    display: block;
}

.sec-orn-diamond {
    width: 5px;
    height: 5px;
    background: #00e5ff;
    transform: rotate(45deg);
    box-shadow: 0 0 10px #00e5ff;
}

/* ── Reveal Animations ── */
.reveal-l {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(.22, 1, .36, 1);
}

.reveal-r {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(.22, 1, .36, 1);
}

.reveal-l.visible,
.reveal-r.visible {
    opacity: 1;
    transform: translateX(0);
}

.d4 {
    transition-delay: 0.6s;
}

/* ── Timeline ── */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #02040a;
    border: 2px solid #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, .4);
    transition: background 0.3s;
}

.timeline-item:hover::before {
    background: #00e5ff;
}

/* ── Team Card ── */
.team-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.team-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    transform: scale(1.1);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%) contrast(1.2);
}

.team-card:hover .team-bg {
    opacity: 0.4;
    transform: scale(1);
    filter: grayscale(0%);
}

.team-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #02040a 0%, transparent 100%);
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.5s;
}

.team-card:hover::after {
    opacity: 1;
    background: linear-gradient(to top, #02040a 10%, transparent 100%);
}

/* ── Hamburger Animation ── */
.bar1,
.bar2,
.bar3 {
    transition: 0.4s;
}

.nav-open .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-open .bar2 {
    opacity: 0;
}

.nav-open .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ── Service Cards ── */
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    transform: scale(1.1);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(45%);
}

.service-card:hover .service-bg {
    opacity: 0.42;
    transform: scale(1);
    filter: grayscale(0%);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #02040a 0%, transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s;
}

.service-card:hover::after {
    opacity: 1;
}

#services .service-card {
    min-height: 260px;
    border-color: rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 80% -20%, rgba(0, 229, 255, 0.12), transparent 45%), rgba(0, 82, 255, 0.03);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.35s ease;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
}

#services .service-card:hover {
    transform: scale(1.0125);
    border-color: rgba(0, 229, 255, 0.45);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 255, 0.2) inset;
}

#services .service-card h3 {
    text-wrap: balance;
}

#services .service-card p {
    margin-bottom: 0;
    line-height: 1.6;
}

.creative-feature {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(130deg, rgba(2, 4, 10, 0.98) 0%, rgba(6, 9, 19, 0.96) 45%, rgba(2, 4, 10, 0.9) 100%);
    isolation: isolate;
    transform: translateZ(0);
}

.creative-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(0, 229, 255, 0.08) 0%, transparent 35%, rgba(0, 82, 255, 0.12) 100%);
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.creative-feature:hover::after {
    opacity: 0.65;
}

.creative-feature-media img {
    filter: saturate(1.08) contrast(1.08) brightness(1.1);
    min-width: 100%;
    min-height: 100%;
    backface-visibility: hidden;
    transform: scale(1.02) !important;
    opacity: 0.58 !important;
}

.creative-feature:hover .creative-feature-media img {
    transform: scale(1.02) !important;
    opacity: 0.68 !important;
}

.creative-feature-media {
    overflow: hidden;
}

.creative-feature-media>div {
    background: linear-gradient(90deg, rgba(2, 4, 10, 0.92) 0%, rgba(2, 4, 10, 0.56) 36%, rgba(2, 4, 10, 0.18) 68%, rgba(2, 4, 10, 0) 100%) !important;
}

@media (min-width: 768px) {
    .creative-feature-media {
        left: calc(33.333333% - 1px) !important;
        right: -1px;
        top: -1px;
        bottom: -1px;
    }
}

.creative-feature-media,
.creative-feature-content,
.service-bg,
.service-card::after {
    border-radius: inherit;
}

.creative-feature-content {
    position: relative;
}

.creative-feature-content::before {
    content: '';
    position: absolute;
    inset: 24px auto 24px -1px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0, 229, 255, 0.45), rgba(0, 82, 255, 0.1));
}

.creative-pill {
    transition: all 0.25s ease;
}

.creative-pill:hover {
    border-color: rgba(0, 229, 255, 0.6);
    color: #ffffff;
    background: rgba(0, 82, 255, 0.25);
    transform: translateY(-2px);
}

.creative-feature-cta {
    box-shadow: 0 10px 26px rgba(0, 82, 255, 0.45);
}

.trusted-strip {
    position: relative;
}

.trusted-strip .marquee-inner {
    --marquee-loop-distance: 33.333333%;
    animation-name: trusted-marquee-scroll;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

@keyframes trusted-marquee-scroll {
    from {
        transform: translateX(var(--marquee-start-offset, 0px));
    }

    to {
        transform: translateX(calc(var(--marquee-start-offset, 0px) - var(--marquee-loop-distance, 33.333333%)));
    }
}

.trusted-strip .marquee-inner .brand-logo-tile {
    opacity: 1;
    width: 8rem;
    min-width: 8rem;
    height: 2.5rem;
    padding: 0.25rem 0.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.trusted-strip .marquee-inner .brand-logo-tile img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    object-fit: contain;
}

.trusted-strip .marquee-inner:hover .brand-logo-tile {
    opacity: 1;
}

.trusted-strip .marquee-inner .brand-logo-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 229, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .trusted-strip .marquee-inner .brand-logo-tile {
        width: 11rem;
        min-width: 11rem;
        height: 3rem;
    }
}

@media (max-width: 768px) {
    #services .service-card {
        min-height: 220px;
    }

    .creative-feature-content::before {
        inset: 0 0 auto 0;
        width: 120px;
        height: 2px;
        background: linear-gradient(to right, rgba(0, 229, 255, 0.45), rgba(0, 82, 255, 0.1));
    }

    .creative-feature-media>div {
        background: linear-gradient(180deg, rgba(2, 4, 10, 0.8) 0%, rgba(2, 4, 10, 0.48) 44%, rgba(2, 4, 10, 0.1) 100%) !important;
    }
}

.service-chip {
    border: 1px solid rgba(0, 82, 255, 0.3);
    background: rgba(0, 82, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* ── Capability List ── */
.cap-list {
    counter-reset: cap-counter;
}

.cap-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.cap-item:hover {
    transform: translateX(8px);
}

.cap-item::before {
    counter-increment: cap-counter;
    content: "0" counter(cap-counter);
    position: absolute;
    left: 0;
    top: 2px;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(0, 229, 255, 0.4);
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.cap-item:hover::before {
    color: #00e5ff;
}

/* ── Tab Nav Buttons ── */
.tab-btn {
    border: 1px solid rgba(0, 82, 255, 0.2);
    background: rgba(0, 82, 255, 0.05);
}

.tab-btn.active {
    background: rgba(0, 229, 255, 0.1);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* ── Check Item ── */
.check-item::before {
    content: '\2705';
    color: #00e5ff;
    margin-right: 12px;
    font-size: 16px;
    font-weight: bold;
}

/* ── Portfolio Cards ── */
.filter-btn {
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .02);
    color: rgba(255, 255, 255, .5);
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all .3s ease;
}

.filter-btn:hover {
    color: #fff;
    border-color: rgba(0, 229, 255, .4);
    background: rgba(0, 82, 255, .1);
}

.filter-btn.active {
    background: rgba(0, 82, 255, .2);
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, .2);
}

.p-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .05);
    background: #070b14;
    cursor: pointer;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .4s ease;
}

.p-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    border-color: rgba(0, 229, 255, .3);
}

.p-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 4, 10, .95) 0%, rgba(2, 4, 10, .4) 50%, transparent 100%);
    transition: opacity .4s ease;
}

.p-card:hover .overlay {
    opacity: 0.9;
    background: linear-gradient(to top, rgba(2, 4, 10, 1) 0%, rgba(0, 82, 255, .4) 100%);
}

.p-card .meta {
    transition: transform .4s ease, opacity .4s ease;
    transform: translateY(10px);
}

.p-card:hover .meta {
    transform: translateY(-5px);
}

.p-card .view-btn {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity .4s ease .1s, transform .4s ease .1s;
}

.p-card:hover .view-btn {
    opacity: 1;
    transform: translateY(0);
}

.p-card img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    width: 100%;
}

.p-card:hover img {
    transform: scale(1.08);
}

/* ── Lightbox Carousel ── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(2, 4, 10, .95);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    flex-direction: column;
}

#lightbox.open {
    display: flex;
    animation: pageFade .3s ease both;
}

#lb-carousel-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: #070b14;
    border: 1px solid rgba(0, 82, 255, .3);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    margin-bottom: 24px;
}

#lb-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
}

#lb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, .6);
    border: 1px solid rgba(0, 229, 255, .3);
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.lb-nav:hover {
    background: #0052ff;
    border-color: #00e5ff;
    transform: translateY(-50%) scale(1.1);
}

.lb-prev-btn {
    left: 12px;
}

.lb-next-btn {
    right: 12px;
}

#lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .5);
    border: 1px solid rgba(255, 255, 255, .1);
    cursor: pointer;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    backdrop-filter: blur(4px);
    padding: 0;
    line-height: 1;
}

#lightbox-close:hover {
    background: #0052ff;
    border-color: #00e5ff;
}

#lb-caption {
    max-width: 900px;
    width: 100%;
    padding: 0 24px;
    text-align: left;
}

#lb-counter {
    display: block;
    font-size: 0.85rem;
}

/* ── Gallery Filter Buttons ── */
.filter-btn {
    background: rgba(0, 82, 255, 0.1);
    border: 1px solid rgba(0, 82, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #00e5ff;
    color: #00e5ff;
}

.filter-btn.active {
    background: #0052ff;
    border-color: #00e5ff;
    color: #00e5ff;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

/* ── Search Field ── */
.search-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 82, 255, 0.3);
    border-radius: 6px;
    padding: 18px 24px 18px 54px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.search-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.search-field:focus {
    border-color: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    background: rgba(0, 82, 255, 0.05);
}

/* ── FAQ Accordion ── */
.faq-item {
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    opacity: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #00e5ff;
}

.faq-item.open {
    border-color: rgba(0, 229, 255, 0.4) !important;
    background: rgba(0, 82, 255, 0.05) !important;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.05);
}

.faq-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* ── Pulse Ring ── */
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: .6;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.pulse-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, .4);
    animation: pulseRing 2s ease-out infinite;
    z-index: -1;
}

#navbar .custom-logo-link {
    display: flex;
    align-items: center;
}

#navbar .custom-logo {
    height: 5rem;
    width: auto;
    max-height: none;
}

@media (min-width: 768px) {
    #navbar .custom-logo {
        height: 6rem;
    }
}

/* Navigation */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 82, 255, 0.1);
    background: rgba(2, 4, 10, 0.95);
    backdrop-filter: blur(10px);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 80rem;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: var(--brand-light);
    text-decoration: none;
}

.site-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.main-navigation {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #ffffff;
}

#page {
    margin-top: 100px;
}

.site-main {
    padding: 2rem 0;
}

/* ── Testimonials Section ── */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(6, 9, 19, 0.4);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(0, 82, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    background: rgba(6, 9, 19, 0.6);
    border-color: rgba(0, 229, 255, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 229, 255, 0.1), 0 0 40px rgba(0, 82, 255, 0.05);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover .group {
    filter: brightness(1.1);
}

/* Star Rating */
.testimonial-card svg.text-brand-glow {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
}

/* Testimonial Text */
.testimonial-card p.text-white\/80 {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .container {
        padding: 0 1rem;
    }

    .main-navigation {
        display: none;
    }
}