/* RUK CUSTOM.CSS v0.4*/



/* patch */

/*
.home-section-002-section {
    background-color: orange !important;
}
    */

.site-footer {
    margin-top: -25px !important;
}




/* ==========================================================================
   1. MASTER HEADER LAYOUT (Glass & Transparency)
   ========================================================================== */

/* testing */

/*
.ruk-home-hero-block
{
    border: 2px solid red !important;
}
*/

.ruk-home-hero-row .kt-row-column-wrap
{
    padding-bottom: 0px !important;
}





/* THE ROOT CAUSE FIX: Clear parent containers so glass is visible */
.site-header-row-layout-fullwidth,
.site-main-header-wrap,
.site-header-row-container-inner,
.site-header-row-layout-fullwidth .site-container {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* THE GLASS LAYER (Static State) */
.site-main-header-inner-wrap {
    width: 100% !important;
    background-color: rgba(255, 255, 255, 0.6) !important; 
    backdrop-filter: blur(12px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box !important;
    transition: all 0.3s ease;
}

/* THE GLASS LAYER (Sticky State) */
.item-is-sticky .site-main-header-inner-wrap,
.header-sticky-wrapper.is-sticky .site-main-header-inner-wrap {
    background-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* PADDING ALIGNMENT: The 8vw "Snap" */
.site-header-main-section-left { padding-left: 8vw !important; }
.site-header-main-section-right { padding-right: 8vw !important; }

/* ==========================================================================
   2. NAVIGATION FORCE (Locking Colors to Black)
   ========================================================================== */

/* Force Logo/Title Black */
.site-title, .site-branding a, .transparent-header .site-title,
.transparent-header .site-branding a {
    color: #0f172a !important;
    transition: none !important;
}

/* Force Menu Links Black */
.main-navigation .primary-menu-container ul li a,
.transparent-header .main-navigation .primary-menu-container ul li a {
    color: #0f172a !important;
    font-weight: 500 !important;
}

/* Header Button (Shop Now) */
.header-button-wrap .button.header-button {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

/* ==========================================================================
   3. HERO SECTIONS (Agency vs Business)
   ========================================================================== */

:root {
    --color-agency-bg: #0f172a;   
    --color-business-bg: #eef2f6; 
    --color-blue-primary: #2563eb;
    --font-hero: 'Inter', sans-serif;
    
    /* Neumorphism Variables */
    --neu-light: #ffffff;
    --neu-shadow: #d1d9e6;
}

/* --- Panel Layout --- */
.ruk-panel {
    position: relative;
    width: 100%; 
    height: 100%;
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 10% 8vw !important; /* 8vw Alignment */
    overflow: hidden;
    text-decoration: none !important; 
    box-sizing: border-box;
}

/* Remove all underlines */
.ruk-panel h1, .ruk-panel p, .ruk-panel span, .ruk-panel div {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Background Effects */
.ruk-agency { background-color: var(--color-agency-bg); color: white; }
.ruk-business { background-color: var(--color-business-bg); color: #0f172a; }

/* Left Side Backgrounds */
.ruk-bg-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 60%;
    background: radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.15), transparent 70%);
    pointer-events: none;
}

/* Content Stability Fix */
.ruk-content {
    position: relative; z-index: 10; max-width: 650px; 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    backface-visibility: hidden;
}

/* --- Typography --- */

/* Tightened Tags */
.ruk-tag {
    display: inline-flex; align-items: center; gap: 0.5rem; 
    padding: 0.5rem 1rem; border-radius: 99px; font-size: 0.75rem; 
    font-weight: 700; text-transform: uppercase;
    margin-bottom: 0.75rem !important; 
}
.agency-tag { background: rgba(255, 255, 255, 0.05); color: #93c5fd; }

/* Tightened Headline */
.ruk-headline {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 5vw, 4.5rem); 
    font-weight: 800; 
    line-height: 1.0 !important; 
    margin: 0 0 1.5rem 0; 
    letter-spacing: -0.04em; 
}
.ruk-content.agency .ruk-headline { color: #ffffff; }

/* Gradients */
.text-gradient-blue {
    background: linear-gradient(135deg, #60a5fa 0%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.text-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.2)); 
}

.ruk-desc { 
    font-size: 1.25rem; margin-bottom: 2.5rem; line-height: 1.6; 
    color: rgba(255, 255, 255, 0.7); max-width: 90%;
}
.ruk-desc.light-theme { color: #475569; }

/* ==========================================================================
   4. BUTTONS & ACTIONS
   ========================================================================== */

.ruk-actions { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    gap: 1rem; 
}

.ruk-btn-look {
    padding: 1rem 2rem; 
    border-radius: 16px; 
    font-weight: 600;
    display: inline-flex; 
    align-items: center; 
    gap: 0.75rem;
}

/* Left Button (Sharp/Tech) */
.btn-blue { 
    background-color: var(--color-blue-primary); 
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
}

.ruk-code-comment { font-family: monospace; color: #64748b; font-size: 0.9rem; }
.ruk-cta-text { font-size: 0.95rem; color: #64748b; font-weight: 500; }

/* ==========================================================================
   5. FRAGMENTED GLASS (Left Side)
   ========================================================================== */

.shard-wrap {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; 
}

.glass-shard {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(3px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transform-origin: center;
}

.shard-1 {
    top: -10%; right: -5%; width: 400px; height: 400px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform: rotate(25deg);
    animation: floatShard 8s ease-in-out infinite;
}
.shard-2 {
    bottom: 10%; left: -5%; width: 200px; height: 500px;
    clip-path: polygon(20% 0%, 0% 100%, 100% 100%);
    transform: rotate(-15deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
    animation: floatShard 10s ease-in-out infinite reverse;
}
.shard-3 {
    top: 40%; right: 20%; width: 150px; height: 150px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.6;
    animation: floatShard 12s ease-in-out infinite 2s;
}

@keyframes floatShard {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-15px) rotate(2deg) scale(1.02); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}

.ruk-panel:hover .shard-1 { transform: translateX(-10px) rotate(20deg); }
.ruk-panel:hover .shard-2 { transform: translateX(10px) rotate(-10deg); }

/* ==========================================================================
   6. SOFT UI / NEUMORPHISM 2.0 (Right Side)
   ========================================================================== */

/* The Background Blob (Soft/Fluid) */
.soft-blob {
    position: absolute;
    top: -20%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(248, 250, 252, 0) 70%);
    filter: blur(60px);
    opacity: 0.8;
    pointer-events: none;
    animation: blobPulse 8s ease-in-out infinite;
}

@keyframes blobPulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.1) translate(-20px, 20px); }
    100% { transform: scale(1) translate(0, 0); }
}

/* The Tag: "Pressed" Effect */
.soft-tag {
    background: #eef2f6; 
    color: #ea580c;
    box-shadow: inset 4px 4px 8px var(--neu-shadow), 
                inset -4px -4px 8px var(--neu-light);
    border: 1px solid rgba(255,255,255,0.5); 
}

/* The Button: "Floating" Effect */
.btn-soft {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #ea580c; 
    border: 1px solid #ffffff;
    box-shadow: 8px 8px 16px var(--neu-shadow), 
                -8px -8px 16px var(--neu-light);
}

.btn-soft:hover {
    transform: translateY(-2px);
    box-shadow: 10px 10px 20px var(--neu-shadow), 
                -10px -10px 20px var(--neu-light);
    color: #c2410c;
}

/* ==========================================================================
   7. ANIMATIONS (Mobile & Desktop)
   ========================================================================== */

@media (min-width: 1024px) {
    .ruk-panel:hover .ruk-content { transform: scale(1.02); }
}

@media (max-width: 768px) {
    .ruk-panel { min-height: auto; padding: 6rem 8vw 4rem 8vw !important; }
    .ruk-headline { font-size: 2.5rem; }
    .shard-wrap { opacity: 0.5; }
}

/* ==========================================================================
   8. FEATURE GRID (The Floating Deck)
   ========================================================================== */

/* The Navy Section Background */
.ruk-features-wrap {
    background-color: #0f172a; /* Deep Navy */
    /* Add extra padding top to account for the cards being pulled up */
    padding: 12rem 8vw 5rem 8vw; 
    position: relative;
    z-index: 20; /* Sits above the hero background */
    margin-top: -1px; /* Kills the sub-pixel white line */
}

/* The Grid Container (The Cards) */
.ruk-features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    
    /* THE OVERLAP MAGIC: Pulls the whole grid UP into the Hero section */
    margin-top: -18rem; 
    position: relative;
    z-index: 30;
}

/* The Dark Glass Card */
.glass-card {
    /* Darker background so white text is readable over white hero sections */
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Inner shadow for depth */
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 
                0 20px 40px -10px rgba(0, 0, 0, 0.5);
                
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: white;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
}

/* Card Typography */
.glass-card h3 {
    font-family: var(--font-hero);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.glass-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #cbd5e1; /* Lighter slate for better contrast */
    margin: 0;
}

/* Card Icons */
.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05); /* Subtle background for icon */
}

.icon-speed { color: #60a5fa; }
.icon-ghost { color: #f97316; }
.icon-scale { color: #e2e8f0; }

/* Mobile Fix: Remove overlap on small screens */
@media (max-width: 768px) {
    .ruk-features-wrap { padding-top: 4rem; }
    .ruk-features-container { margin-top: 0; }
}