/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --brand-red: #c70039;
    --brand-red-rgb: 199, 0, 57;
    --dark-bg: #0f0f10;
    --panel-bg: #161618;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.5);
    /* GLOBAL FONT CHANGE: Helvetica */
    --font-primary: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0; padding: 0; background-color: var(--dark-bg);
    color: var(--text-white); font-family: var(--font-primary);
    position: relative; overflow-x: hidden; cursor: none;
}

a { text-decoration: none; }
section { position: relative; width: 100%; overflow: visible; }

/* Sections requiring hidden overflow */
.hero-section, .highlight-section, .hero-portfolio-section, 
.propulsion-section, .success-section, .cta-section { overflow: hidden; }

/* --- BOOTSTRAP OVERRIDES --- */
.text-danger { color: var(--brand-red) !important; }
.btn-danger { background-color: var(--brand-red) !important; border-color: var(--brand-red) !important; }
.btn-outline-danger { color: #c70039 !important; border-color: #c70039 !important; }
.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active {
    background-color: #c70039 !important; border-color: #c70039 !important; color: #ffffff !important;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes spin { 0% { transform: rotateY(0deg) rotateX(20deg); } 100% { transform: rotateY(360deg) rotateX(20deg); } }
@keyframes pulseRing { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.2; } }
@keyframes rotateBg { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulseRed { 0% { opacity: 0.5; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.5; transform: scale(0.9); } }

/* ==========================================================================
   2. UI ENHANCEMENTS (Preloader, Cursor, Scrollbar)
   ========================================================================== */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f0f10; z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1); transform-origin: top;
}
#preloader.loaded { transform: translateY(-100%); }
.loader-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; width: 100%; transition: opacity 0.5s ease;
}
#preloader.loaded .loader-content { opacity: 0; }
.loader-text {
    font-family: var(--font-primary); color: #fff; letter-spacing: 2px;
    font-size: 1.8rem; margin-bottom: 20px; font-weight: 700;
}
.loader-bar {
    width: 200px; height: 2px; background: rgba(255,255,255,0.1);
    position: relative; overflow: hidden; margin-bottom: 15px; border-radius: 2px;
}
.loader-progress {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--brand-red); box-shadow: 0 0 10px var(--brand-red); transition: width 0.1s linear;
}
#loader-percent {
    font-family: monospace; font-size: 0.9rem; color: rgba(255,255,255,0.5); letter-spacing: 1px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0f0f10; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; border: 2px solid #0f0f10; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-red); }

.magic-cursor {
    position: fixed; top: 0; left: 0; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s; mix-blend-mode: difference;
}
.magic-cursor-dot {
    position: fixed; top: 0; left: 0; width: 8px; height: 8px;
    background: var(--brand-red); border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 10000;
}
.magic-cursor.hovered { width: 60px; height: 60px; background-color: rgba(255, 255, 255, 0.1); border-color: transparent; }
@media (max-width: 991px) {
    .magic-cursor, .magic-cursor-dot { display: none !important; }
    body { cursor: auto !important; }
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9000; opacity: 0.05;
    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");
}

.scroll-indicator-wrapper {
    position: fixed; right: 30px; top: 50%; transform: translateY(-50%);
    height: 250px; width: 2px; background: rgba(255, 255, 255, 0.1);
    z-index: 10001; border-radius: 2px; display: block;
}
.scroll-indicator-fill {
    position: absolute; bottom: 0; left: 0; width: 100%; background: var(--brand-red);
    height: 0%; transition: height 0.1s linear; box-shadow: 0 0 15px var(--brand-red);
}
.scroll-indicator-text {
    position: absolute; top: 0; right: 15px; transform: translateY(-50%);
    color: #fff; font-family: monospace; font-size: 13px; font-weight: 700;
    pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.3s;
}
.scroll-indicator-wrapper.active .scroll-indicator-text { opacity: 1; }
@media (max-width: 991px) { .scroll-indicator-wrapper { display: none !important; } }

/* ==========================================================================
   3. HEADER & MOBILE MENU
   ========================================================================== */
.navbar-toggler.modern-menu-btn {
    padding: 0; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; outline: none; box-shadow: none !important; transition: transform 0.3s ease;
}
.navbar-toggler.modern-menu-btn:active { transform: scale(0.95); }
/* HIDE ON DESKTOP */
@media (min-width: 992px) { .navbar-toggler.modern-menu-btn { display: none !important; } }

.menu-lines { width: 30px; height: 14px; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.line {
    display: block; height: 2px; background-color: #fff; border-radius: 4px; position: absolute; width: 100%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.line-1 { top: 0; right: 0; width: 100%; }
.line-2 { bottom: 0; right: 0; width: 70%; }
.navbar-toggler.modern-menu-btn:hover .line-2 { width: 100%; }
.navbar-toggler[aria-expanded="true"] .line-1 { top: 50%; transform: translateY(-50%) rotate(45deg); background-color: var(--brand-red); }
.navbar-toggler[aria-expanded="true"] .line-2 { bottom: 50%; width: 100%; transform: translateY(50%) rotate(-45deg); background-color: var(--brand-red); }

.offcanvas { background-color: #0f0f10 !important; background-image: radial-gradient(circle at 100% 0%, rgba(20,20,20,1) 0%, rgba(10,10,10,1) 100%); }
.offcanvas .nav-link {
    position: relative; display: inline-block; color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.3s ease, transform 0.3s ease; opacity: 0; transform: translateY(20px);
}
.offcanvas .nav-link:hover, .offcanvas .nav-link.active { color: #fff !important; transform: translateX(10px); text-shadow: 0 0 20px rgba(255, 255, 255, 0.2); }
.offcanvas.show .nav-link { animation: menuSlideUp 0.6s cubic-bezier(0.2, 1, 0.2, 1) forwards; }
.offcanvas.show .nav-item:nth-child(1) .nav-link { animation-delay: 0.1s; }
.offcanvas.show .nav-item:nth-child(2) .nav-link { animation-delay: 0.15s; }
.offcanvas.show .nav-item:nth-child(3) .nav-link { animation-delay: 0.2s; }
.offcanvas.show .nav-item:nth-child(4) .nav-link { animation-delay: 0.25s; }
.offcanvas.show .nav-item:nth-child(5) .nav-link { animation-delay: 0.3s; }
.offcanvas.show .nav-item:nth-child(6) .nav-link { animation-delay: 0.35s; }
.offcanvas.show .mobile-cta { opacity: 0; animation: menuSlideUp 0.6s cubic-bezier(0.2, 1, 0.2, 1) forwards; animation-delay: 0.4s; }
.offcanvas.show .mobile-socials { opacity: 0; animation: menuFadeIn 0.8s ease forwards; animation-delay: 0.5s; }
@keyframes menuSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menuFadeIn { from { opacity: 0; } to { opacity: 1; } }
.mobile-socials { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }
.social-link-item { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all 0.3s ease; text-decoration: none; }
.social-link-item:hover { background: var(--brand-red); border-color: var(--brand-red); color: #fff; transform: translateY(-3px); }

/* Sticky Header Styles */
header.header-sticky-on {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background-color: rgba(15, 15, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* ==========================================================================
   4. FOOTER
   ========================================================================== */
footer { position: relative; background: #050505 !important; overflow: hidden; }
.footer-link { position: relative; display: inline-block; color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.3s ease; }
.footer-link::after { content: ''; position: absolute; width: 0; height: 1px; bottom: -2px; left: 50%; background-color: var(--brand-red); transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); }
.footer-link:hover { color: #fff; }
.footer-link:hover::after { width: 100%; left: 0; }
.icon-circle { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-color: rgba(255, 255, 255, 0.1); color: #fff; transition: all 0.3s ease; }
.icon-circle:hover { background: var(--brand-red); border-color: var(--brand-red); box-shadow: 0 0 15px var(--brand-red); transform: translateY(-3px); }
.footer-marquee-wrapper { position: relative; width: 100%; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05); padding: 20px 0; background: rgba(255,255,255,0.01); }
.footer-marquee-track { display: flex; white-space: nowrap; gap: 50px; animation: marqueeScroll 5s linear infinite; }
.marquee-item { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; gap: 50px; }
.marquee-item::after { content: '•'; color: var(--brand-red); }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   5. HOME PAGE SECTIONS
   ========================================================================== */
.hero-section { position: inherit; min-height: 100vh; display: flex; align-items: center; background: radial-gradient(circle at 50% 50%, #1a1a1e 0%, #0f0f10 100%); z-index: 10; }
.hero-glow { position: absolute; width: 800px; height: 800px; max-width: 100vw; background: radial-gradient(circle, rgba(var(--brand-red-rgb), 0.15) 0%, rgba(0,0,0,0) 70%); border-radius: 50%; pointer-events: none; z-index: 0; mix-blend-mode: screen; }
.hero-subtitle { font-family: monospace; color: var(--brand-red); font-size: 1rem; letter-spacing: 2px; margin-bottom: 1.5rem; display: block; opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s ease forwards 0.2s; }
.hero-title { font-size: 3.5rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards 0.4s; color: #fff; }
.rotator-window { display: inline-block; position: relative; height: 1.2em; overflow: hidden; vertical-align: bottom; color: var(--brand-red); margin-bottom: -5px; }
.rotator-strip { display: flex; flex-direction: column; }
.rotator-strip span { display: block; height: 1.2em; line-height: 1.2em; font-weight: 700; white-space: nowrap; }
.hero-desc { font-size: 1.25rem; color: rgba(255, 255, 255, 0.7); max-width: 550px; margin-bottom: 2.5rem; line-height: 1.6; opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards 0.6s; }
.btn-hero { padding: 15px 40px; font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; border-radius: 50px; background: transparent; color: #fff; border: 1px solid var(--brand-red); position: relative; overflow: hidden; transition: all 0.3s ease; opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s ease forwards 0.8s; z-index: 2; display: inline-flex; align-items: center; cursor: pointer; }
.btn-hero:hover { background: var(--brand-red); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3); color: #fff; }
.btn-hero::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: 0.5s; }
.btn-hero:hover::after { left: 100%; }
.hero-visual-wrapper { position: relative; height: 500px; width: 100%; display: flex; align-items: center; justify-content: center; perspective: 1000px; z-index: 1; opacity: 0; animation: fadeIn 1.5s ease forwards 1s; }
.construct-sphere { width: 400px; height: 400px; position: relative; transform-style: preserve-3d; animation: spin 20s infinite linear; }
.ring { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; transform: translate(-50%, -50%); }
.ring:nth-child(1) { width: 100%; height: 100%; border-color: rgba(220, 53, 69, 0.3); transform: translate(-50%, -50%) rotateX(70deg); }
.ring:nth-child(2) { width: 80%; height: 80%; border-color: rgba(255, 255, 255, 0.1); transform: translate(-50%, -50%) rotateY(60deg); }
.ring:nth-child(3) { width: 60%; height: 60%; border-color: rgba(220, 53, 69, 0.2); transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg); }
.ring:nth-child(4) { width: 120%; height: 120%; border: 1px dashed rgba(255, 255, 255, 0.05); transform: translate(-50%, -50%); animation: pulseRing 4s infinite ease-in-out; }
.orb { position: absolute; width: 40px; height: 40px; background: radial-gradient(circle, var(--brand-red) 0%, transparent 70%); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 30px var(--brand-red); }
@media (max-width: 991px) {
    .hero-title { font-size: 2.5rem; }
    .hero-visual-wrapper { height: 300px; margin-top: 2rem; }
    .construct-sphere { width: 250px; height: 250px; }
    
    /* UPDATED: Increased top padding to clear the logo */
    .hero-section { 
        text-align: center; 
        padding: 8rem 0 4rem 0; /* 8rem Top ensures space for header */
    }
    
    /* Ensure side padding prevents text touching edges */
    .hero-section .container { 
        padding-left: 1.5rem; 
        padding-right: 1.5rem; 
        padding-top: inherit;
    }
    
    .hero-desc { margin: 0 auto 2rem auto; }
}

/* Client Logo Strip (RESTORED) */
.client-logo-section { padding: 3rem 0; background-color: var(--dark-bg); border-bottom: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 2; }
.client-logo-title { font-family: monospace; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.3); margin-bottom: 2rem; }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 4rem; }
.client-logo { max-height: 35px; width: auto; filter: grayscale(100%) opacity(0.4) brightness(1.2); transition: all 0.4s ease; cursor: pointer; }
.client-logo:hover { filter: grayscale(0%) opacity(1) brightness(1); transform: scale(1.1); }
@media (max-width: 991px) { .logo-grid { gap: 2rem; } .client-logo { max-height: 25px; } }

/* Highlight Section */
/* Highlight Section (Fixed Centering) */
.highlight-section {
    background-color: var(--dark-bg);
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    
    /* ADDED: Centering Logic */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.highlight-title { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 800; line-height: 1.05; text-transform: uppercase; color: #fff; margin-bottom: 1rem; letter-spacing: -2px; opacity: 0; transform: translateY(50px); transition: all 0.5s ease; }
.highlight-title span { background: linear-gradient(180deg, #fff 20%, rgba(255,255,255,0.4) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.highlight-subtitle { font-family: var(--font-primary); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--brand-red); margin-top: 1.5rem; opacity: 0; transform: translateY(30px); transition: all 0.5s ease 0.3s; }
.highlight-divider { width: 0; height: 2px; background-color: rgba(255,255,255,0.2); margin: 2rem auto; transition: width 0.6s ease 0.5s; }
.stats-row { margin-top: 6rem; opacity: 0; transform: translateY(30px); transition: all 0.5s ease 0.6s; }
.highlight-section.active .stats-row { opacity: 1; transform: translateY(0); }
.highlight-section.active .highlight-title, .highlight-section.active .highlight-subtitle { opacity: 1; transform: translateY(0); }
.highlight-section.active .highlight-divider { width: 120px; }
.stat-item { text-align: center; padding: 1.5rem; border-left: 1px solid rgba(255,255,255,0.1); }
.stat-item:first-child { border-left: none; }
.stat-number { font-size: 3.5rem; font-weight: 700; color: var(--brand-red); line-height: 1; margin-bottom: 0.75rem; font-family: var(--font-primary); }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; margin-bottom: 1rem; color: #fff; display: block; }
.stat-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 0; }
.digital-grid, .bg-grid-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 60px 60px; opacity: 0.5; mask-image: radial-gradient(circle at center, black 0%, transparent 70%); z-index: 0; }

/* Home: Our Capabilities (RESTORED Sticky Layout) */
.services-wrapper { background-color: var(--dark-bg); position: relative; z-index: 5; padding: 5rem 0; }
.service-content-block { position: relative; overflow: hidden; }
@media (min-width: 992px) {
    .services-container { display: flex; align-items: flex-start; position: relative; }
    .services-nav-col { width: 35%; position: sticky; top: 20vh; height: auto; padding-right: 3rem; z-index: 10; }
    .nav-item { cursor: pointer; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); transition: all 0.4s ease; opacity: 0.3; position: relative; }
    .nav-item::before { content: ''; position: absolute; left: -20px; top: 50%; transform: translateY(-50%) scale(0); width: 8px; height: 8px; background-color: var(--brand-red); border-radius: 50%; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .nav-item.active { opacity: 1; padding-left: 10px; border-bottom-color: rgba(255,255,255,0.3); }
    .nav-item:hover { opacity: 0.7; }
    .nav-item.active::before { transform: translateY(-50%) scale(1); }
    .nav-title { font-size: 1.75rem; font-weight: 700; margin: 0; line-height: 1.2; }
    .nav-subtitle { font-size: 0.9rem; color: var(--brand-red); margin-top: 0.25rem; display: block; font-family: monospace; letter-spacing: 1px; }
    .services-content-col { width: 65%; position: relative; padding-left: 2rem; }
    .service-content-block { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; margin-bottom: 5vh; padding: 4rem; background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; opacity: 0.2; transform: scale(0.95); transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1); }
    .service-content-block.active { opacity: 1; transform: scale(1); border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
}
@media (max-width: 991px) {
    .services-nav-col { display: none; }
    .services-content-col { width: 100%; }
    .service-content-block { margin-bottom: 2rem; background: var(--panel-bg); padding: 2rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); opacity: 1 !important; transform: none !important; }
    .mobile-title-block { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
.content-h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; background: linear-gradient(to right, #fff, rgba(255,255,255,0.5)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.content-desc { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,0.8); margin-bottom: 2.5rem; }
.bg-watermark { position: absolute; right: -20px; bottom: -50px; font-size: 15rem; color: rgba(255,255,255,0.03); transform: rotate(-10deg); z-index: 0; pointer-events: none; transition: transform 0.6s ease; }
.service-content-block:hover .bg-watermark { transform: rotate(0deg) scale(1.1); color: rgba(255,255,255,0.05); }
.content-wrapper { position: relative; z-index: 1; }

/* Services Deck Section (For Services Page & Home Variant) */
.services-deck-section { position: relative; padding: 0; background: #0f0f10; overflow: hidden; }
.deck-container { display: flex; width: 100%; height: 90vh; min-height: 700px; }
.service-panel { position: relative; flex: 1; height: 100%; border-right: 1px solid rgba(255,255,255,0.05); transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1), background 0.3s; cursor: pointer; overflow: hidden; background: linear-gradient(to bottom, #161618, #0a0a0a); }
.service-panel:hover, .service-panel.active { flex: 5; background: #1a1a1e; }
.panel-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; background: linear-gradient(to top, #0f0f10 10%, rgba(15,15,16,0.9) 50%, rgba(0,0,0,0) 100%); }
.panel-top-info { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 20px; transition: all 0.5s ease; width: 100%; }
.panel-num { font-family: monospace; color: var(--brand-red); font-size: 1rem; opacity: 0.6; }
.panel-icon { font-size: 1.5rem; color: #fff; opacity: 0.5; transition: all 0.5s; }
.panel-title { font-family: var(--font-primary); font-size: 1.5rem; color: #fff; white-space: nowrap; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-90deg); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: 400px; text-align: center; letter-spacing: 1px; }
.service-panel:hover .panel-top-info, .service-panel.active .panel-top-info { left: 40px; top: 40px; transform: translateX(0); align-items: flex-start; }
.service-panel:hover .panel-icon, .service-panel.active .panel-icon { color: var(--brand-red); opacity: 1; transform: scale(1.2); }
.service-panel:hover .panel-title, .service-panel.active .panel-title { top: 40px; left: 80px; bottom: auto; transform: translate(0, 0) rotate(0deg); text-align: left; font-size: 2rem; z-index: 10; }
.panel-body { opacity: 0; transform: translateY(50px); transition: all 0.5s ease; transition-delay: 0.1s; width: 100%; max-width: 800px; max-height: 70%; overflow-y: auto; padding-right: 10px; }
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: var(--brand-red); border-radius: 4px; }
.service-panel:hover .panel-body, .service-panel.active .panel-body { opacity: 1; transform: translateY(0); }
.panel-desc { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }
.impact-box { display: flex; gap: 30px; margin-bottom: 30px; padding: 15px 20px; background: rgba(199, 0, 57, 0.05); border-left: 3px solid var(--brand-red); border-radius: 0 8px 8px 0; }
.impact-item { display: flex; flex-direction: column; }
.impact-label { font-size: 0.75rem; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.impact-value { color: #fff; font-weight: 700; font-size: 1rem; }
.panel-body .tech-tags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }

@media (max-width: 991px) {
    .services-deck-section { padding: 40px 0; overflow: hidden; }
    .deck-container { flex-direction: row; flex-wrap: nowrap; width: 100%; height: auto; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 15px; padding: 10px 20px 40px 20px; }
    .deck-container::-webkit-scrollbar { display: none; }
    .service-panel { display: block; flex: 0 0 85vw !important; width: 85vw !important; max-width: 400px; height: auto !important; min-height: 600px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); scroll-snap-align: center; scroll-snap-stop: always; transition: none !important; }
    .service-panel:hover, .service-panel.active, .service-panel:focus { flex: 0 0 85vw !important; width: 85vw !important; border-color: rgba(255,255,255,0.1) !important; background: linear-gradient(145deg, #1a1a1e, #0f0f10) !important; }
    .panel-content { height: auto !important; min-height: 100%; }
    .panel-top-info { position: relative; top: 0 !important; left: 0 !important; transform: none !important; flex-direction: row; justify-content: space-between; margin-bottom: 20px; }
    .panel-icon { transform: scale(1) !important; }
    .panel-title { position: relative !important; top: auto !important; left: auto !important; transform: none !important; writing-mode: horizontal-tb; text-align: left; font-size: 1.8rem !important; margin-bottom: 20px; }
    .panel-body { opacity: 1 !important; transform: none !important; height: auto !important; max-height: none !important; display: block !important; padding-bottom: 20px; }
    .impact-box { flex-direction: row; flex-wrap: wrap; }
    .panel-body .tech-tags { display: flex !important; flex-direction: column !important; }
    .panel-body .tech-tag { width: 100% !important; }
    .panel-body .tech-tag-text { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; max-width: none !important; }
}

.propulsion-section { position: relative; overflow: hidden; min-height: 850px; display: flex; align-items: center; justify-content: center; background: #0f0f10; }
.ascent-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: space-around; z-index: 0; mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent); }
.ascent-col { position: relative; width: 100%; height: 100%; overflow: hidden; display: flex; flex-direction: column; align-items: center; border-right: 1px solid rgba(255,255,255,0.03); }
.ascent-track { display: flex; flex-direction: column; gap: 80px; padding-bottom: 80px; animation: scrollUp linear infinite; }
.ascent-item { color: rgba(255, 255, 255, 0.15); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; writing-mode: vertical-rl; transform: rotate(180deg); }
.ascent-item.highlight { color: rgba(199, 0, 57, 0.4); text-shadow: 0 0 10px rgba(199, 0, 57, 0.2); }
.speed-slow { animation-duration: 25s; }
.speed-med  { animation-duration: 20s; }
.speed-fast { animation-duration: 15s; }
@keyframes scrollUp { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }
.propulsion-content { position: relative; z-index: 10; text-shadow: 0 0 50px rgba(0,0,0,0.8); background: radial-gradient(circle, rgba(0,0,0,0.8) 0%, transparent 70%); padding: 60px; border-radius: 50%; max-width: 600px; text-align: center; }
.propulsion-title { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.3; font-weight: 700; color: #fff; margin: 0; }

.creative-works-section { background-color: var(--dark-bg); padding: 8rem 0; overflow: hidden; }
.agency-project-row { position: relative; margin-bottom: 15rem; z-index: 1; }
.agency-project-row:last-child { margin-bottom: 0; }
.collage-wrapper { position: relative; display: block; }
.collage-desktop { width: 90%; position: relative; z-index: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.3); transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.collage-desktop img { width: 100%; height: auto; display: block; filter: brightness(0.9); transition: filter 0.6s ease; }
.collage-mobile { width: 28%; position: absolute; top: 15%; right: 0; z-index: 2; border-radius: 12px; border: 6px solid #1a1a1a; background: #000; box-shadow: -20px 20px 60px rgba(0,0,0,0.6); transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1); }
.collage-mobile img { width: 100%; height: auto; display: block; object-fit: cover; }
.agency-project-row:hover .collage-desktop { transform: scale(0.98); }
.agency-project-row:hover .collage-desktop img { filter: brightness(1); }
.agency-project-row:hover .collage-mobile { transform: translateY(10px) scale(1.05); }
.sticky-agency-info { position: sticky; top: 25vh; }
.agency-num-big { font-family: var(--font-primary); font-size: 8rem; line-height: 0.8; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(var(--brand-red-rgb), 0.5); position: absolute; top: -6rem; left: -2rem; z-index: -1; pointer-events: none; }
.agency-title { font-size: 2.5rem; font-weight: 700; line-height: 1.1; color: #fff; margin-bottom: 1.5rem; }
.agency-desc { font-size: 1.1rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 2.5rem; }
.agency-tags { list-style: none; padding: 0; margin: 0 0 2.5rem 0; display: flex; flex-wrap: wrap; gap: 15px; }
.agency-tag-item { font-family: monospace; font-size: 0.85rem; text-transform: uppercase; color: var(--brand-red); letter-spacing: 1px; }
.agency-tag-item::before { content: '/'; margin-right: 10px; color: rgba(255,255,255,0.2); }
.btn-agency-link { display: inline-flex; align-items: center; font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #fff; padding-bottom: 5px; border-bottom: 1px solid var(--brand-red); transition: all 0.3s ease; }
.btn-agency-link:hover { color: var(--brand-red); padding-bottom: 10px; }
.btn-agency-link i { transform: rotate(-45deg); transition: transform 0.3s ease; margin-left: 10px; }
.btn-agency-link:hover i { transform: rotate(0deg); }

.success-section { background-color: var(--dark-bg); position: relative; overflow: hidden; padding-top: 10rem; padding-bottom: 10rem; }
.success-content-sticky { position: sticky; top: 20vh; }
.success-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px; border-radius: 50px; background: rgba(220, 53, 69, 0.1); border: 1px solid rgba(220, 53, 69, 0.3); color: var(--brand-red); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 1.5rem; }
.success-heading { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.success-lead { font-size: 1.25rem; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 90%; }
.stat-list-item { display: flex; align-items: center; padding: 3rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); transition: all 0.4s ease; }
.stat-list-item:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.stat-list-item:hover { border-color: var(--brand-red); padding-left: 20px; }
.stat-list-num { font-size: 4.5rem; font-weight: 700; font-family: var(--font-primary); color: rgba(255,255,255,0.2); margin-right: 3rem; min-width: 150px; transition: all 0.4s ease; line-height: 1; }
.stat-list-item:hover .stat-list-num { color: var(--brand-red); }
.stat-list-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.stat-list-desc { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 0; max-width: 350px; }

.testimonials-section { padding-top: 6rem; padding-bottom: 6rem; overflow: hidden; background-color: #121214; border-top: 1px solid rgba(255,255,255,0.05); }
.testimonial-track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-top: 60px; padding-bottom: 40px; padding-left: 20px; padding-right: 20px; scrollbar-width: none; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-slide { flex: 0 0 calc(33.333% - 20px); scroll-snap-align: start; position: relative; }
@media (max-width: 991px) { .testimonial-slide { flex: 0 0 100%; } }
.testimonial-card { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); border-radius: 20px; padding: 30px 25px 25px; height: 100%; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.testimonial-card:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-5px); }
.client-pop-image { position: absolute; top: -40px; right: 25px; width: 80px; height: 100px; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); border: 2px solid var(--brand-red); z-index: 2; }
.card-quote-icon { font-size: 2.5rem; color: var(--brand-red); opacity: 0.8; margin-bottom: 20px; }
.testimonial-stars { color: var(--brand-red); margin-bottom: 15px; font-size: 0.8rem; }
.testimonial-text { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; font-style: italic; }
.author-meta h5 { color: #fff; font-size: 1rem; margin-bottom: 2px; font-weight: 600; }
.author-meta span { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; text-transform: uppercase; }
.testimonial-controls { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }
.slider-btn { width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.05); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); }
.slider-btn:hover { background: var(--brand-red); }
@media (min-width: 992px) { .testimonial-controls { display: none; } }

.cta-section { background-color: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); padding: 8rem 0; }

/* ==========================================================================
   6. INNER PAGE: SERVICES (Grid & Process)
   ========================================================================== */
.hero-portfolio-section { position: relative; min-height: 60vh; display: flex; align-items: flex-end; padding-bottom: 5rem; padding-top: 150px; background-color: var(--dark-bg); overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); }
.hero-portfolio-bg { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle at center, rgba(220, 53, 69, 0.08) 0%, transparent 50%); animation: rotateBg 20s linear infinite; z-index: 1; pointer-events: none; }
.hero-watermark { position: absolute; top: 50%; right: -5%; transform: translateY(-50%) rotate(-10deg); font-size: 35rem; font-weight: 800; color: rgba(255,255,255,0.02); z-index: 3; pointer-events: none; font-family: 'Segoe UI', sans-serif; }
.port-badge { display: inline-block; font-family: monospace; color: var(--brand-red); border: 1px solid rgba(220, 53, 69, 0.3); padding: 5px 15px; border-radius: 4px; font-size: 0.85rem; margin-bottom: 1.5rem; background: rgba(220, 53, 69, 0.05); opacity: 0; animation: fadeInUp 0.8s ease forwards 0.1s; }
.port-hero-title { font-size: clamp(3.5rem, 8vw, 7rem); font-weight: 800; line-height: 0.9; color: #fff; margin-bottom: 0; opacity: 0; animation: fadeInUp 0.8s ease forwards 0.3s; }
.text-outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.5); transition: all 0.5s ease; }
.hero-portfolio-section:hover .text-outline { -webkit-text-stroke: 1px var(--brand-red); }
.port-hero-desc { font-size: 1.1rem; color: rgba(255,255,255,0.6); line-height: 1.6; max-width: 400px; margin-top: 2rem; border-left: 2px solid var(--brand-red); padding-left: 1.5rem; opacity: 0; animation: fadeInUp 0.8s ease forwards 0.5s; }

.process-visual-section { padding: 8rem 0; background: var(--dark-bg); border-bottom: 1px solid rgba(255,255,255,0.05); }
.process-wrapper { margin-bottom: 2rem; position: relative; }
.process-img-card { height: 500px; border-radius: 20px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.1); background: var(--panel-bg); margin-bottom: 2rem; transition: all 0.4s ease; }
.process-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); filter: brightness(0.9); }
.process-wrapper:hover .process-img-card { border-color: var(--brand-red); box-shadow: 0 20px 50px rgba(0,0,0,0.3); transform: translateY(-5px); }
.process-wrapper:hover .process-img { transform: scale(1.1); filter: brightness(1.1); }
.process-number { font-family: var(--font-primary); font-size: 5rem; font-weight: 800; color: rgba(var(--brand-red-rgb),0.5); line-height: 0.8; margin-bottom: 1.5rem; display: block; position: relative; }
.process-number::after { content: ''; position: absolute; left: 0; bottom: -10px; width: 50px; height: 3px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.process-wrapper:hover .process-number::after { transform: scaleX(1); }
.process-visual-title { font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 1.5rem; padding-top: 1rem; }
.process-visual-desc { font-size: 1.1rem; color: rgba(255, 255, 255, 0.6); line-height: 1.7; max-width: 95%; }

.services-grid-section { padding: 8rem 0; background: #121214; }
.service-grid-card { background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 3rem 2.5rem; height: 100%; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); display: flex; flex-direction: column; z-index: 1; }
.service-grid-card:hover { transform: translateY(-5px); border-color: rgba(220, 53, 69, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.service-icon-header { margin-bottom: 2rem; font-size: 2.5rem; color: var(--brand-red); position: relative; z-index: 5; }
.service-grid-card .bg-watermark { position: absolute; font-size: 8rem; bottom: -20px; right: -10px; opacity: 0.05; color: #fff; transition: all 0.5s ease; z-index: 0; pointer-events: none; transform: rotate(0deg); }
.service-grid-card:hover .bg-watermark { transform: rotate(0deg) scale(1.2); opacity: 0.1; color: var(--brand-red); }
.service-grid-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 1rem; position: relative; z-index: 5; }
.service-grid-desc { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); position: relative; z-index: 5; }
.service-details-block { margin-bottom: 2rem; flex-grow: 1; position: relative; z-index: 5; }
.detail-label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brand-red); font-weight: 700; margin-bottom: 0.5rem; }
.detail-text { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.5; margin: 0; }

@media (max-width: 991px) {
    .process-img-card { height: 350px; }
    .mt-lg-stagger { margin-top: 0 !important; }
    .process-wrapper { margin-bottom: 4rem; }
    .service-grid-card { padding: 2rem; }
    .service-grid-title { font-size: 1.5rem; }
}

/* ==========================================================================
   7. INNER PAGE: WORK / PORTFOLIO
   ========================================================================== */
.tech-stack-section { padding: 60px 0; background: #000; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tech-track { display: flex; gap: 60px; width: max-content; animation: techScroll 25s linear infinite; }
.tech-item { font-family: monospace; font-size: 1.2rem; color: rgba(255,255,255,0.4); text-transform: uppercase; display: flex; align-items: center; gap: 10px; transition: color 0.3s; }
.tech-item:hover { color: var(--brand-red); }
@keyframes techScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.works-list-section { padding: 5rem 0 10rem 0; background: var(--dark-bg); }
.project-display-card { background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; overflow: hidden; margin-bottom: 6rem; transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.project-display-card:hover { transform: translateY(-5px); border-color: rgba(220, 53, 69, 0.3); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.project-visuals-wrapper { width: 100%; height: 600px; background: radial-gradient(circle at center, #2a2a2e 0%, #1a1a1c 100%); position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; }
.mockup-desktop { width: 70%; height: auto; position: absolute; left: 50%; top: 50%; transform: translate(-60%, -45%); z-index: 1; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; background: #000; transition: transform 0.5s ease; }
.mockup-mobile { width: 20%; min-width: 180px; position: absolute; right: 15%; bottom: -10%; z-index: 2; border-radius: 24px; border: 6px solid #1a1a1a; box-shadow: 0 15px 40px rgba(0,0,0,0.6); overflow: hidden; background: #000; transform: translateY(0); transition: transform 0.6s ease; }
.project-display-card:hover .mockup-desktop { transform: translate(-60%, -48%); }
.project-display-card:hover .mockup-mobile { transform: translateY(-20px); }
.project-info-body { padding: 4rem; position: relative; z-index: 3; background: var(--panel-bg); }
.client-logo-box { width: 80px; height: 80px; background: rgba(255,255,255,0.03); border-radius: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; overflow: hidden; padding: 10px; }
.project-title-lg { font-size: 3rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; line-height: 1.1; }
.project-desc-lg { font-size: 1.15rem; color: rgba(255,255,255,0.7); line-height: 1.7; max-width: 900px; margin-bottom: 2rem; }
.project-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); }
.pill-tag { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; padding: 6px 14px; border-radius: 50px; background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; margin-right: 8px; }
.project-display-card:hover .pill-tag { background: transparent; border-color: var(--brand-red); color: #fff; }
.website-link { color: var(--brand-red); text-decoration: none; font-weight: 600; font-family: monospace; font-size: 1rem; letter-spacing: 1px; display: inline-flex; align-items: center; transition: all 0.3s ease; padding: 10px 20px; border: 1px solid rgba(220, 53, 69, 0.3); border-radius: 50px; }
.website-link:hover { background: rgba(220, 53, 69, 0.1); color: #fff; }

@media (max-width: 991px) {
    .project-visuals-wrapper { height: auto; padding: 3rem 1rem; flex-direction: column; align-items: center; }
    .mockup-desktop { position: relative; width: 100%; left: auto; top: auto; transform: none !important; margin-bottom: -10%; }
    .mockup-mobile { position: relative; right: auto; bottom: auto; width: 40%; min-width: 140px; margin-left: 40%; transform: none !important; }
    .project-title-lg { font-size: 2rem; }
    .project-info-body { padding: 2rem; }
    .project-meta-row { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .website-link { width: 100%; justify-content: center; }
}

/* ==========================================================================
   8. INNER PAGE: ABOUT US
   ========================================================================== */
.about-stats-bar { padding: 5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); background: #0f0f10; }
.values-section { padding: 8rem 0; background: #121214; border-bottom: 1px solid rgba(255,255,255,0.05); }
.value-card { background: var(--panel-bg); border: 1px solid rgba(255,255,255,0.05); border-radius: 20px; padding: 2.5rem; height: 100%; position: relative; overflow: hidden; transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; z-index: 1; }
.value-card:hover { transform: translateY(-10px); border-color: var(--brand-red); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.value-card .bg-watermark { position: absolute; font-size: 8rem; bottom: -20px; right: -10px; opacity: 0.05; color: #fff; transition: all 0.5s ease; z-index: 0; pointer-events: none; }
.value-card:hover .bg-watermark { transform: rotate(-10deg) scale(1.2); opacity: 0.1; color: var(--brand-red); }
.value-icon { font-size: 2.5rem; color: var(--brand-red); margin-bottom: 1.5rem; position: relative; z-index: 5; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.value-card:hover .value-icon { transform: scale(1.1) rotate(5deg); text-shadow: 0 0 15px rgba(199, 0, 57, 0.6); }
.value-title { font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 1rem; position: relative; z-index: 5; }
.value-desc { font-size: 1rem; color: rgba(255,255,255,0.7); line-height: 1.6; margin: 0; position: relative; z-index: 5; }

.process-grid-section { padding: 80px 0; background: #0f0f10; border-bottom: 1px solid rgba(255,255,255,0.05); }
.process-step-card { padding: 30px; border-left: 1px solid rgba(255,255,255,0.1); position: relative; transition: all 0.3s ease; }
.process-step-card:hover { background: linear-gradient(90deg, rgba(255,255,255,0.03) 0%, transparent 100%); border-left-color: var(--brand-red); }
.process-num { font-family: monospace; font-size: 0.9rem; color: var(--brand-red); margin-bottom: 15px; display: block; }
.process-title { color: #fff; font-size: 1.5rem; margin-bottom: 15px; }
.process-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.6; }

.about-story-section { padding: 100px 0; background: #0f0f10; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cs-sticky-title { position: sticky; top: 120px; margin-bottom: 60px; }
.cs-step-heading { font-family: var(--font-primary); font-size: 3.5rem; color: #fff; line-height: 1.1; }
.cs-body-text { font-size: 1.15rem; line-height: 1.8; color: rgba(255, 255, 255, 0.7); margin-bottom: 40px; }
.hero-offset-showcase { position: relative; border-radius: 4px; overflow: hidden; margin-left: -100px; width: calc(100% + 100px); }

.reviews-section { padding: 8rem 0; background: #0b0b0c; }
.review-grid-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 2.5rem; border-radius: 16px; height: 100%; transition: all 0.3s ease; }
.review-grid-card:hover { background: rgba(255,255,255,0.04); border-color: rgba(220, 53, 69, 0.2); transform: translateY(-5px); }
.review-quote { font-size: 1.1rem; font-style: italic; color: rgba(255,255,255,0.8); line-height: 1.6; margin-bottom: 1.5rem; }
.review-author h5 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; }
.review-author span { font-size: 0.8rem; color: var(--brand-red); text-transform: uppercase; letter-spacing: 1px; }

.faq-section { padding: 8rem 0; background: var(--dark-bg); }
.custom-accordion .accordion-item { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
.custom-accordion .accordion-button { background: transparent; color: #fff; font-size: 1.2rem; font-weight: 600; padding: 2rem 0; box-shadow: none; }
.custom-accordion .accordion-button:not(.collapsed) { color: var(--brand-red); }
.custom-accordion .accordion-body { color: rgba(255,255,255,0.7); padding: 0 0 2rem 0; font-size: 1.05rem; line-height: 1.7; }

/* ==========================================================================
   9. INNER PAGE: TEAM
   ========================================================================== */
.team-section { padding-top: 150px !important; padding-bottom: 150px !important; background-color: var(--dark-bg); position: relative; z-index: 5; }
.team-card { background: var(--panel-bg); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.team-card:hover { transform: translateY(-15px); border-color: rgba(220, 53, 69, 0.3); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.team-img-wrapper { width: 100%; height: 500px; overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.team-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.8s ease, filter 0.8s ease; filter: grayscale(100%) contrast(1.1); }
.team-card:hover .team-img { transform: scale(1.05); filter: grayscale(0%) contrast(1); }
.team-info { padding: 3rem 2.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.team-role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 3px; color: rgba(255, 255, 255, 0.5); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.team-name { font-size: 2rem; font-weight: 700; color: #fff; margin-bottom: 2.5rem; line-height: 1.1; }
.team-brio { display: flex; flex-direction: column-reverse; gap: 1.5rem; margin-bottom: auto; }
.brio-badge { align-self: flex-start; display: inline-flex; align-items: center; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--brand-red); background: rgba(220, 53, 69, 0.05); padding: 8px 16px 8px 12px; border-radius: 4px; border: 1px solid rgba(220, 53, 69, 0.15); transition: all 0.3s ease; }
.brio-badge i { margin-right: 10px; font-size: 0.6rem; animation: pulseRed 2s infinite; }
.brio-quote { font-family: var(--font-primary); font-style: italic; font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, 0.9); border: none !important; background: transparent !important; }

/* ==========================================================================
   10. INNER PAGE: BLOG & ARTICLE
   ========================================================================== */
.filter-container { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 50px; margin-top: 40px; }
.filter-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); padding: 10px 25px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; transition: all 0.3s ease; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; }
.filter-btn:hover, .filter-btn.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(199, 0, 57, 0.3); }
.featured-blog-card { position: relative; width: 100%; min-height: 550px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s ease; background: #000; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.featured-blog-card:hover { transform: translateY(-5px); border-color: var(--brand-red); }
.featured-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 40px; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, transparent 100%); z-index: 2; }
.blog-badge { display: inline-block; background: rgba(199, 0, 57, 0.2); color: var(--brand-red); padding: 6px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; border: 1px solid rgba(199, 0, 57, 0.3); }
.featured-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; font-family: var(--font-primary); }
.read-link { color: #fff; font-size: 1rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; transition: color 0.3s; }
.read-link:hover { color: var(--brand-red); }

.article-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; overflow: hidden; height: 100%; transition: all 0.3s ease; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-10px); border-color: rgba(199, 0, 57, 0.3); background: rgba(255, 255, 255, 0.04); }
.article-img-box { height: 240px; position: relative; overflow: hidden; }
.article-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-img { transform: scale(1.05); }
.category-badge { position: absolute; top: 20px; left: 20px; background: rgba(0, 0, 0, 0.7); color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1); }
.article-body { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.article-title { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; line-height: 1.3; }
.article-link { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; transition: color 0.3s; }
.article-link:hover { color: var(--brand-red); }

.article-header-section { padding-top: 180px; padding-bottom: 60px; position: relative; background: linear-gradient(to bottom, #0f0f10 0%, #161618 100%); }
.article-main-title { font-family: var(--font-primary); font-size: clamp(2.5rem, 5vw, 4rem); color: #fff; line-height: 1.1; margin-bottom: 30px; }
.article-meta-row { display: flex; align-items: center; gap: 30px; color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.article-banner-wrapper { width: 100%; height: 60vh; min-height: 400px; position: relative; overflow: hidden; }
.article-banner-img { width: 100%; height: 100%; object-fit: cover; }
.content-body { color: rgba(255,255,255,0.85); font-size: 1.15rem; line-height: 1.8; }
.content-body h2 { color: #fff; font-family: var(--font-primary); font-size: 2rem; margin-top: 50px; }
.highlight-quote { border-left: 4px solid var(--brand-red); padding-left: 30px; margin: 50px 0; font-family: var(--font-primary); font-size: 1.8rem; color: #fff; font-style: italic; }
.share-sidebar { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.share-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: all 0.3s; background: rgba(255,255,255,0.03); text-decoration: none; }
.share-btn:hover { background: var(--brand-red); border-color: var(--brand-red); }

/* ==========================================================================
   11. INNER PAGE: CASE STUDY
   ========================================================================== */
.cs-modern-hero { min-height: 90vh; display: flex; align-items: center; position: relative; padding-top: 100px; background: radial-gradient(circle at top right, #1a1a1e 0%, #0f0f10 60%); overflow: hidden; }
.cs-hero-floater { position: absolute; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(220, 53, 69, 0.08) 0%, transparent 70%); border-radius: 50%; top: -10%; right: -10%; animation: float 10s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.cs-hero-title { font-size: clamp(2.5rem, 8vw, 6.5rem); font-weight: 800; line-height: 1; margin-bottom: 2rem; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cs-modern-meta { display: flex; gap: 3rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); }
.cs-meta-item h6 { font-size: 0.8rem; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.5rem; letter-spacing: 1px; }

.cs-showcase-parallax { width: 100%; max-width: 1400px; margin: 4rem auto; height: auto; aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.cs-showcase-parallax .cs-offset-image-container { width: 100%; height: 100%; margin-left: 0; border-radius: 0; box-shadow: none; }
.cs-showcase-parallax .cs-offset-image { width: 100%; height: 100%; transform: none; object-fit: cover; object-position: center; }

.cs-story-section { padding: 8rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cs-sticky-title { position: sticky; top: 150px; margin-bottom: 3rem; }
.cs-step-number { font-family: var(--font-primary); font-size: 5rem; color: rgba(255,255,255,0.05); line-height: 0.8; display: block; margin-bottom: 1rem; }
.cs-step-heading { font-size: 2.5rem; font-weight: 700; color: #fff; }

.cs-mobile-scroll-section { padding: 6rem 0; background: #151517; position: relative; overflow: hidden; }
.mobile-track-container { width: 100%; overflow-x: auto; padding-bottom: 30px; padding-left: 5vw; display: flex; gap: 30px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; cursor: grab; }
.mobile-card { flex: 0 0 auto; width: 300px; height: 600px; border-radius: 24px; overflow: hidden; position: relative; border: 8px solid #2a2a2e; background: #000; box-shadow: 0 20px 50px rgba(0,0,0,0.4); scroll-snap-align: center; transition: transform 0.4s ease; }
.mobile-card:hover { transform: translateY(-10px); }

.cs-result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin: 4rem 0; }
.cs-stat-box { background: rgba(255,255,255,0.03); padding: 2rem; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); text-align: center; }
.cs-stat-num { font-size: 3.5rem; font-weight: 700; color: var(--brand-red); display: block; margin-bottom: 0.5rem; font-family: var(--font-primary); }
.testimonial-block-bold { background: linear-gradient(145deg, rgba(220, 53, 69, 0.1) 0%, rgba(0,0,0,0) 100%); padding: 5rem 3rem; border-radius: 24px; margin: 6rem 0; border: 1px solid rgba(220, 53, 69, 0.2); text-align: center; position: relative; }
.testimonial-quote-mark { font-size: 4rem; color: var(--brand-red); opacity: 0.5; margin-bottom: 1.5rem; display: block; }
.testimonial-text-bold { font-family: var(--font-primary); font-size: 2rem; line-height: 1.4; color: #fff; margin-bottom: 2.5rem; font-style: italic; }

@media (max-width: 991px) {
    .cs-modern-hero { padding-top: 150px; min-height: auto; padding-bottom: 4rem; }
    .cs-offset-image-container { width: 100%; border-radius: 0; }
    .cs-sticky-title { position: static; margin-bottom: 2rem; }
    .mobile-track-container { padding-left: 20px; }
}
/* Side Article Card (Right) */
.side-blog-card {
    display: flex;
    align-items: flex-start; /* Aligns items to top */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.side-blog-card:last-child {
    margin-bottom: 0;
}

.side-blog-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    border-color: rgba(199, 0, 57, 0.3);
}

.side-img-wrapper {
    width: 140px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
}

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-blog-card:hover .side-img {
    transform: scale(1.1);
}

/* UPDATED: Flex logic to separate Title (Top) and Meta (Bottom) */
.side-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes title up and meta down */
    height: 110px; /* Matches image height to ensure full spacing */
    padding: 2px 0; /* Slight visual tweak */
}

/* Typography for Blogs */
.blog-badge {
    display: inline-block;
    background: rgba(199, 0, 57, 0.2);
    color: var(--brand-red, #c70039);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(199, 0, 57, 0.3);
}

.featured-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: var(--font-primary);
}

.side-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0; 
    line-height: 1.4;
    margin-top: -3px; /* Pulls title slightly higher visually */
}

.read-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
    transition: color 0.3s;
}
.read-link:hover { color: var(--brand-red); }

/* Side Meta Wrapper */
.side-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.side-date {
    color: var(--brand-red, #c70039);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.side-read-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* NEW: Explore All Link Styling */
.explore-all-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.explore-all-link:hover {
    color: var(--brand-red, #c70039);
    border-bottom-color: var(--brand-red, #c70039);
    padding-left: 10px;
}

.explore-all-link i {
    margin-left: 8px;
    font-size: 0.8em;
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .featured-blog-card { min-height: 350px; margin-bottom: 30px; }
    
    .side-blog-card { flex-direction: column; align-items: flex-start; }
    
    .side-img-wrapper { width: 100%; height: 180px; margin-right: 0; margin-bottom: 15px; }
    
    /* Reset height on mobile so content flows naturally */
    .side-content { height: auto; justify-content: flex-start; }
    
    .side-title { margin-bottom: 15px; margin-top: 0; }
    
    .side-blog-card:hover { transform: translateY(-5px); }
}
/* =========================================
   PILLS STYLING (Restored & Fixed)
   ========================================= */

/* 1. The Container (Default Grid for Service Panels) */
.tech-tags {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns side-by-side */
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* 2. The Individual Pill */
.tech-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Visuals */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px; /* Rounded corners */
    
    /* Sizing */
    padding: 12px 16px;
    min-height: 60px; /* Ensures consistent height */
    height: 100%;
    
    /* Interaction */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover State */
.tech-tag:hover {
    background: rgba(199, 0, 57, 0.15); /* Red tint */
    border-color: var(--brand-red, #c70039);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 3. The Text */
.tech-tag-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal; /* Allows text to wrap if long */
    text-align: left;
    padding-right: 12px;
    flex-grow: 1;
}

.tech-tag:hover .tech-tag-text {
    color: #fff;
}

/* 4. The Icon (Arrow) */
.tech-tag-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tech-tag:hover .tech-tag-arrow {
    color: var(--brand-red, #c70039);
    opacity: 1;
    transform: translate(2px, -2px); /* Moves diagonally */
}

/* 5. Mobile Override (Prevents overflow) */
@media (max-width: 991px) {
    .tech-tags {
        display: flex !important; /* Switch to Flexbox */
        flex-wrap: wrap !important;
        grid-template-columns: none !important;
    }

    .tech-tag {
        width: auto !important; /* Let content dictate width */
        min-height: auto !important;
        flex: 0 1 auto;
    }
}
/* =========================================
   NEWS & INSIGHTS (Fixed Layout)
   ========================================= */

.insights-section {
    padding: 80px 0 100px;
    background: linear-gradient(to top, #000 0%, #111 100%);
    overflow: hidden;
}

/* --- LEFT COLUMN: FEATURED CARD --- */
.featured-blog-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px; /* Ensures it matches the height of the 3 side cards */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.featured-blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
}

.featured-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.6s ease;
}

.featured-blog-card:hover .featured-bg-img {
    transform: scale(1.05);
    opacity: 0.6;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    z-index: 2;
}

/* --- RIGHT COLUMN: SIDE CARDS --- */
.side-blog-card {
    display: flex; /* Aligns Image and Text side-by-side */
    align-items: flex-start; 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.side-blog-card:last-child {
    margin-bottom: 0;
}

.side-blog-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    border-color: rgba(199, 0, 57, 0.3);
}

/* Image Wrapper (Fixed Size) */
.side-img-wrapper {
    width: 140px;
    height: 110px;
    flex-shrink: 0; /* Prevents shrinking */
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px;
}

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.side-blog-card:hover .side-img {
    transform: scale(1.1);
}

/* Content Area */
.side-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 110px; /* Forces height to match image */
    padding: 2px 0;
}

/* Typography */
.featured-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    font-family: var(--font-primary);
}

.side-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0; 
    line-height: 1.4;
    margin-top: -3px; 
    font-family: var(--font-primary);
}

.blog-badge {
    display: inline-block;
    background: rgba(199, 0, 57, 0.2);
    color: var(--brand-red);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid rgba(199, 0, 57, 0.3);
}

.read-link {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}
.read-link i { margin-left: 8px; transition: transform 0.3s; }
.read-link:hover { color: var(--brand-red); }
.read-link:hover i { transform: translateX(5px); }

/* Meta Data (Date & Time) */
.side-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.side-date {
    color: var(--brand-red);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.side-read-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* Explore All Link */
.explore-all-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.explore-all-link:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
    padding-left: 10px;
}

.explore-all-link i {
    margin-left: 8px;
    font-size: 0.8em;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 991px) {
    .featured-blog-card {
        min-height: 350px;
        margin-bottom: 30px;
    }
    
    /* Stack side card image above text on mobile */
    .side-blog-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .side-img-wrapper {
        width: 100%;
        height: 180px; /* Taller image on mobile */
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .side-content {
        height: auto; /* Let text grow naturally */
        justify-content: flex-start;
        gap: 10px;
    }
    
    .side-title {
        font-size: 1.2rem;
    }
}

/* =========================================
   FINAL MOBILE SPACING FIX: SELECTED WORKS
   ========================================= */
@media (max-width: 991px) {
    
    /* Force huge gap between the Project Visuals and the Text below it */
    .agency-project-row {
        display: flex;
        flex-direction: column;
        gap: 0; 
        margin-bottom: 8rem !important; /* Spacing between projects */
    }

    /* Target the image wrapper specifically */
    .collage-wrapper {
        margin-bottom: 150px !important; /* Force 150px space below image */
        display: block;
        width: 100%;
        position: relative;
    }

    /* Reset the info column margin */
    .agency-info-col {
        margin-top: 0 !important;
        padding-top: 2rem !important;
    }

    /* Ensure mobile image is positioned correctly */
    .collage-mobile {
        width: 40% !important;
        top: 20% !important;
        right: 0 !important;
        transform: none !important;
    }
}

/* =========================================
   FIX: PORTFOLIO IMAGES (DESKTOP & MOBILE)
   ========================================= */

/* 1. The Container */
.project-visuals-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for Desktop canvas */
    background: radial-gradient(circle at center, #2a2a2e 0%, #1a1a1c 100%);
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block; /* Ensure it's a block, not flex, to handle absolute children */
}

/* 2. Desktop Mockup (The Large Screen) */
.mockup-desktop {
    width: 70%;
    height: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    /* Exact center positioning from original file */
    transform: translate(-60%, -45%) !important; 
    z-index: 1;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background: #000;
    transition: transform 0.5s ease;
}

.mockup-desktop img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* 3. Mobile Mockup (The Phone) */
.mockup-mobile {
    width: 20%;
    min-width: 180px;
    position: absolute;
    right: 15%;
    bottom: -10%;
    z-index: 2;
    border-radius: 24px;
    border: 6px solid #1a1a1a;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    background: #000;
    transform: translateY(0);
    transition: transform 0.6s ease;
}

.mockup-mobile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 9/19;
}

/* Hover Effects (Desktop) */
.project-display-card:hover .mockup-desktop {
    transform: translate(-60%, -48%) !important; /* Slight lift */
}

.project-display-card:hover .mockup-mobile {
    transform: translateY(-20px); /* Slight lift */
}

/* --- MOBILE RESPONSIVE FIXES --- */
@media (max-width: 991px) {
    
    .project-visuals-wrapper {
        height: auto; /* Let content dictate height */
        padding: 4rem 1rem 0 1rem; /* Padding top to push images down */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }

    /* Reset Desktop Mockup for Mobile */
    .mockup-desktop {
        position: relative;
        width: 100%;
        left: auto;
        top: auto;
        transform: none !important; /* Remove centering transform */
        margin-bottom: -15%; /* Pull phone up over it */
        z-index: 1;
    }

    /* Reset Mobile Mockup for Mobile */
    .mockup-mobile {
        position: relative;
        right: auto;
        bottom: auto;
        width: 40%;
        min-width: 140px;
        margin-left: 35%; /* Push to the right side */
        transform: none !important;
        z-index: 2;
        margin-bottom: -20px; /* Hang off the bottom slightly */
    }

    /* Disable Hover effects on mobile */
    .project-display-card:hover .mockup-desktop,
    .project-display-card:hover .mockup-mobile {
        transform: none !important;
    }
}

/* =========================================
   FIX: WORKS CARD LOGOS & PILLS
   ========================================= */

/* 1. Client Logo Box (Perfect Fit) */
.client-logo-box {
    width: 80px;
    height: 80px;
    /* Ensure it has a dark background to make white logos pop */
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 15px; /* Adds breathing room so logo doesn't touch edges */
    overflow: hidden;
}

.client-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole logo is visible without cropping */
}

/* 2. Pills Container (Force Wrap) */
.project-meta-row .work-pill-tags {
    display: flex;
    flex-wrap: wrap !important; /* Critical: Forces pills to next line */
    gap: 10px;
    max-width: 100%; /* Prevents it from pushing outside the card */
    margin-bottom: 15px; /* Space before the 'View Project' button on mobile */
}

.project-meta-row .pill-tag {
    white-space: normal; /* Allows text inside pill to wrap if extremely long */
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    height: auto; /* Allow height to grow if text wraps */
    min-height: 35px;
    flex-shrink: 0; /* Prevents pills from being squashed */
}

/* 3. Mobile Layout Adjustment */
@media (max-width: 991px) {
    .project-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .project-meta-row .work-pill-tags {
        width: 100%;
        justify-content: flex-start;
    }
    
    .website-link {
        width: 100%;
        justify-content: center;
    }
}

/* Ensure Glow works globally */
.hero-glow {
    position: fixed; /* Changed from absolute to fixed */
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    max-width: 100vw;
    background: radial-gradient(circle, rgba(199, 0, 57, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1; /* Above background, below text */
    mix-blend-mode: screen;
}

/* =========================================
   FINAL "HARD RESET" FOR MOBILE SERVICES
   ========================================= */
@media (max-width: 991px) {

    /* 1. Fix the Parent Container so it doesn't clip tall cards */
    .deck-container {
        height: auto !important;
        min-height: 0 !important;
        overflow-y: visible !important; /* Allow cards to grow down */
        align-items: flex-start !important; /* Align cards to top */
        padding-bottom: 60px !important; /* Extra space for shadow/scroll */
    }

    /* 2. Force the Card to be a tall, scrolling box if needed */
    .service-panel {
        height: auto !important; 
        min-height: 550px !important; /* Minimum size */
        max-height: none !important; /* Remove any max-height limits */
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important; /* Show everything */
        justify-content: flex-start !important;
    }

    /* 3. Force Content to stack Top-to-Bottom */
    .panel-content {
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important; /* Start from top */
        height: auto !important;
        min-height: 100% !important;
        padding: 30px 25px !important;
        overflow: visible !important;
    }

    /* 4. Reset Top Info (Icon/Number) */
    .panel-top-info {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        order: 1; /* Force it to be first */
    }

    /* 5. Reset Title (Force it to sit under Top Info) */
    .panel-title {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        text-align: left !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        white-space: normal !important;
        opacity: 1 !important;
        order: 2; /* Force it to be second */
    }

    /* 6. Reset Body (Description + Pills) */
    .panel-body {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
        margin-top: 0 !important;
        padding: 0 !important;
        display: block !important;
        order: 3; /* Force it to be third */
    }
}

/* =========================================
   FIX: CASE STUDY MOBILE MOCKUPS (CENTERED)
   ========================================= */

/* 1. The Scroll Container */
.mobile-track-container {
    padding-bottom: 40px; /* Space for shadow */
    padding-top: 20px;
    
    /* CENTER ALIGNMENT FIX */
    display: flex;
    justify-content: center; /* Centers the phones on Desktop */
    align-items: flex-start;
    gap: 30px;
    
    /* Scroll logic setup (activates only when content overflows) */
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    cursor: grab;
    
    /* Remove the left padding that was pushing it off-center */
    padding-left: 0; 
}

/* 2. The Phone Card Frame */
.mobile-card {
    /* Use Aspect Ratio for perfect phone shape */
    width: 280px !important;
    aspect-ratio: 9 / 19 !important; 
    height: auto !important; 
    
    border: 8px solid #1a1a1a; /* Phone Bezel */
    border-radius: 30px; 
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    flex-shrink: 0; /* Prevent squishing */
    scroll-snap-align: center;
    transition: transform 0.4s ease;
}

.mobile-card:hover {
    transform: translateY(-10px);
}

/* 3. The Image Inside */
.mobile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the frame */
    object-position: top center; /* Anchors image to the top (Header visible) */
}

/* Optional: Notch */
.mobile-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    z-index: 5;
    pointer-events: none;
}

/* --- MOBILE RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    .mobile-track-container {
        /* Revert to Left Alignment on Mobile for natural scrolling */
        justify-content: flex-start; 
        padding-left: 20px; /* Add start padding so first card isn't flush with edge */
        padding-right: 20px;
    }

    .mobile-card {
        width: 240px !important; /* Slightly smaller on actual mobile devices */
    }
}

.cs-hero-client {
    font-family: monospace, monospace !important; /* Double declaration forces browser monospace */
    color: var(--brand-red) !important; 
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 700; /* Made bolder to stand out */
}