/*
Theme Name: Shakti Steel
Theme URI: https://digitaltoinfinity.com/
Author: Digital To Infinity
Author URI: https://digitaltoinfinity.com/
Description: A premium, visually advanced theme for Shakti Steel, featuring 3D elements, a modern 'Industrial Premium' aesthetic, and custom post types.
Version: 1.0
*/

.st-site-logo .custom-logo {
    max-height: 60px; /* Adjust 40px to your preferred height */
    width: 120px;
    height: 60px;
}

html {
    scroll-behavior: smooth;
}

/* --- Hero Text Panel 3D Tilt --- */
#hero-text-panel {
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* --- Text Animation Keyframes --- */
@keyframes fade-in-up {
    0% { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* --- Text Animation Classes --- */
.animate-in {
    opacity: 0;
    animation: fade-in-up 0.5s ease-out forwards;
}

/* --- Core Strengths Card Interactivity --- */
.st-strength-card-wrapper {
    transition: transform 0.3s ease-out;
}

/* 1. 3D Tilt & Base Styles (The inner card) */
.st-strength-card {
    position: relative; 
    overflow: hidden; 
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    outline: none;
    box-shadow: none;
}

/* 2. Spotlight Effect - REFINED */
.st-card-spotlight {
    position: absolute;
    width: 300px; 
    height: 300px;
    border-radius: 50%; 
    /* background: radial-gradient(...) is now in functions.php */
    transform: translate(-50%, -50%); 
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; 
    z-index: 1; 
}

/* 3. Icon Hover Glow - REFINED */
.icon-container {
    position: relative; 
    z-index: 2; 
}

.st-icon-circle {
    transition: box-shadow 0.3s ease;
    position: relative;
    z-index: 2; 
}

/* 4. Scroll-Triggered Animation (Now targets the wrapper) */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--st-delay, 0s); 
}
.scroll-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- REFINED: Section 3: Horizontal Scroll --- */
#process-pin-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

#process-horizontal-track {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    padding-left: 15vw;
    padding-right: 15vw;
    gap: 3rem; /* 48px */
}

.process-slide {
    width: 70vw; 
    min-width: 70vw;
    height: 100vh;
    flex-shrink: 0;
    background-color: #0a0a0a; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-slide-content {
    /* This is the "frosted glass" panel */
    width: 100%;
    padding: 3rem 4rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    
    /* Animation styles */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: 0.2s;
}

.process-slide-content.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- NEW: Section 4: Product Range --- */
.st-product-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem; /* Counteract item padding */
    margin-right: -1rem; /* Counteract item padding */
}
.st-product-grid-item {
    width: 33.3333%; /* 3 columns */
    padding: 1rem; /* Gutter space */
    box-sizing: border-box;
}

/* Smaller screens */
@media (max-width: 1024px) {
    .st-product-grid-item {
        width: 50%; /* 2 columns */
    }
}
@media (max-width: 640px) {
    .st-product-grid-item {
        width: 100%; /* 1 column */
    }
}

/* Filter Buttons */
.st-filter-button-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.st-filter-button {
    padding: 0.5rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* color: is now in functions.php */
    border-radius: 9999px; /* pill shape */
    cursor: pointer;
    transition: all 0.2s ease-out;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}
        
/* .st-filter-button.is-checked {...} is now in functions.php */


/* Re-using card styles for products */
.st-product-card .st-icon-circle {
    width: 100%;
    height: 180px; /* Fixed height for product images */
    border-radius: 0.75rem; /* rounded-xl */
    /* border & background-color are now in functions.php */
    margin-bottom: 1.5rem;
    overflow: hidden; /* To clip the image */
}

.st-product-card .st-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

/* --- NEW: Product Card Clickable --- */
.st-strength-card-wrapper.is-clickable {
    cursor: pointer;
}

.st-product-card {
     min-height: 440px; 
     display: flex;
     flex-direction: column;
}

.st-product-card-content {
    flex-grow: 1; /* Pushes button to bottom */
    display: flex;
    flex-direction: column;
}

.st-product-card-content .text-gray-400 {
    flex-grow: 1; /* Pushes button to bottom */
}

.st-product-card-cta {
    display: inline-block;
    /* background-color, color, border are now in functions.php */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem; /* rounded-lg */
    margin-top: 1.5rem;
    transition: all 0.2s ease-out;
    text-align: center;
    width: 100%;
}

/* --- UPDATED: Enquiry Modal Styles --- */
.st-enquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem; /* For small screens */
}

.st-enquiry-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.st-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.st-modal-box {
    position: relative;
    z-index: 1001;
    background-color: #111111; /* shakti-dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 800px; /* Wider for 2 columns */
    max-height: 90vh; /* Max height */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    overflow-y: auto; /* Allow modal to scroll if content is tall */
}

.st-enquiry-modal.is-visible .st-modal-box {
    transform: scale(1);
}

/* NEW: 2-Column Layout for Modal */
.st-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.st-modal-product-details {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

/* Product content styling */
.st-modal-product-details .prose-style {
    font-size: 0.95rem;
    color: #9ca3af; /* gray-400 */
}
.st-modal-product-details .prose-style p,
.st-modal-product-details .prose-style ul {
    margin-bottom: 1rem;
}
.st-modal-product-details .prose-style ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}
.st-modal-product-details .prose-style li {
    padding-left: 0.5rem;
}

.st-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    color: #9ca3af; /* gray-400 */
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}

/* --- NEW: Section 5: Authority & Vision --- */

/* Part A: Logo Scroller */
@keyframes scroll-x {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.st-logo-scroller {
    overflow: hidden;
    display: flex;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.st-logo-scroller-inner {
    display: flex;
    flex-shrink: 0;
    animation: scroll-x 40s linear infinite; /* Adjust 40s to change speed */
}

.st-logo-scroller-inner img {
    height: 50px; /* Adjust height as needed */
    width: auto;
    margin: 0 3rem; /* Space between logos */
    filter: grayscale(1) brightness(1.5);
    opacity: 0.7;
    transition: all 0.2s ease-out;
}

/* Part B: Sticky Stack */
.st-sticky-stack-container {
    position: relative;
}

.st-sticky-stack-pin {
    height: 100vh;
    overflow: hidden;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.st-sticky-stack-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 3rem 4rem;
    position: absolute;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.st-sticky-stack-card .quote-mark {
    font-size: 5rem;
    font-family: 'Space Mono', monospace;
    /* color: is now in functions.php */
    line-height: 1;
    opacity: 0.5;
}

.st-sticky-stack-card .quote-text {
    font-size: 1.75rem; /* 28px */
    line-height: 1.4;
    font-weight: 600;
    color: white;
    margin: 1rem 0;
}

.st-sticky-stack-card .quote-author {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* color: is now in functions.php */
    margin-top: 1rem;
}

/* --- NEW: Section 6: Blueprint CTA --- */
#quote {
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem;
    background-color: #0a0a0a; /* Fallback */
}

.blueprint-texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* NOTE: Make sure this image path is correct relative to your theme's root.
      If 'assets' is in your theme root, this is correct.
    */
    background-image: url('assets/Blueprint Texture.jpg');
    background-repeat: repeat;
    background-size: auto;
    opacity: 0.1;
    z-index: 1;
}

.blueprint-form-container {
    position: relative; 
    z-index: 2;
    width: 100%;
    max-width: 600px; /* Limit form width */
    margin: 0 auto;
    text-align: center;
}

/* Styling for the form inputs */
    .st-enquiry-form input[type="text"],
    .st-enquiry-form input[type="email"],
    .st-enquiry-form input[type="tel"],
    .st-enquiry-form textarea {
    width: 100%;
    background-color: transparent;
    /* border: is now in functions.php */
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.st-enquiry-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* .blueprint-form input:focus {...} is now in functions.php */

.st-enquiry-form ::placeholder {
    color: rgba(255, 255, 255, 0.4);
    opacity: 1; 
}


/* ==============================================
[NEW] DESKTOP-ONLY HOVER & CURSOR STYLES
==============================================
*/
@media (hover: hover) and (min-width: 1025px) {
    /* --- Custom Cursor Styles --- */
    #hero-section {
        cursor: none; /* Hide the default cursor */
    }
    #custom-cursor {
        display: block; /* Will be shown by JS on hover */
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        /* background-color: is now in functions.php */
        border-radius: 50%;
        pointer-events: none; /* Allows click-through */
        mix-blend-mode: difference;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease;
    }

    /* --- Card Hover Effects --- */
    .st-strength-card-wrapper:hover {
        transform: translateY(-10px) scale(1.03); /* The "Pop" */
    }
    .st-strength-card:hover .st-card-spotlight {
        opacity: 1;
    }
    
    /* .st-strength-card:hover .st-icon-circle {...} is now in functions.php */

    /* --- Product Card Hover Effects --- */
    .st-product-card:hover .st-icon-circle img {
        transform: scale(1.05);
    }
    
    /* .st-product-card:hover .st-icon-circle {...} is now in functions.php */
    
    /* .st-strength-card-wrapper:hover .st-product-card-cta {...} is now in functions.php */
    
    /* .st-filter-button:hover {...} is now in functions.php */
    
    /* --- Modal Close Hover --- */
    .st-modal-close:hover {
        color: white;
    }

    /* --- Logo Scroller Hover --- */
    .st-logo-scroller:hover .st-logo-scroller-inner {
        animation-play-state: paused;
    }
    .st-logo-scroller-inner img:hover {
        filter: grayscale(0) brightness(1);
        opacity: 1;
        transform: scale(1.1);
    }
}

/* ==============================================
[NEW] MOBILE HERO SCENE ADJUSTMENTS
============================================== */
@media (max-width: 1023px) {
    #hero-section {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 6rem; /* Add top padding for mobile */
    }
    
    #hero-canvas-container {
        display: block !important; /* Override the hidden class */
        pointer-events: none; /* Allow clicks to pass through canvas */
    }
    
    /* Make the canvas clickable/interactive */
    #hero-canvas-container canvas {
        pointer-events: auto; /* Re-enable interactions on the actual canvas */
    }
    
    /* Adjust hero text panel for better mobile layout */
    #hero-text-panel {
        max-width: 90%;
        padding: 1.5rem;
        pointer-events: auto; /* Ensure panel is clickable */
        margin-bottom: auto; /* Push it to top */
        margin-top: 1rem;
    }
    
    #hero-text-panel h1 {
        font-size: 2rem; /* Smaller heading on mobile */
    }
    
    #hero-text-panel h1 span:last-child {
        font-size: 1.5rem; /* Smaller accent text */
    }
    
    #hero-text-panel p {
        font-size: 1rem; /* Smaller body text */
    }
    
    /* Add visual hint that 3D scene is below */
    #hero-section::after {
        content: '↓ Drag the I-Beam ↓';
        position: absolute;
        bottom: 8rem;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(234, 179, 8, 0.7);
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        animation: bounce 2s infinite;
        pointer-events: none;
        z-index: 35;
    }
    
}
    
    @keyframes bounce {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(10px); }
    }

/* ==============================================
[NEW] MOBILE-ONLY LAYOUT ADJUSTMENTS
==============================================
*/
@media (max-width: 768px) {
    
    /* --- 1. Horizontal Scroll Section --- */
    #process-horizontal-track {
        /* Center the 90vw slide */
        padding-left: 5vw;
        padding-right: 5vw;
        gap: 1.5rem; /* 24px */
    }
    .process-slide {
        /* Make slides wider on mobile (was 70vw) */
        width: 90vw; 
        min-width: 90vw;
    }
    .process-slide-content {
        /* Reduce panel padding */
        padding: 2rem 1.5rem;
    }

    /* --- 2. Product Modal --- */
    .st-modal-layout {
        grid-template-columns: 1fr; /* Stack columns */
    }
    .st-modal-box {
        padding: 2rem 1.5rem; /* Reduce modal padding */
    }
    .st-modal-product-details {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    /* --- 3. Sticky Stack Section --- */
    .st-sticky-stack-card {
        padding: 2rem 1.5rem;
        max-width: 90vw;
    }
    .st-sticky-stack-card .quote-text {
        font-size: 1.25rem; /* 20px */
        line-height: 1.5;
    }
    .st-sticky-stack-card .quote-mark {
        font-size: 3rem;
    }

    /* --- 4. Product Grid (Tweak existing mobile styles) --- */
    .st-product-card {
        min-height: 0; /* Remove fixed min-height */
        padding: 1.5rem;
    }
    .st-product-card .st-icon-circle {
        height: 140px; /* Make image shorter */
    }
    .st-product-card-content h3 {
        font-size: 1.25rem; /* Smaller title */
    }
    .st-product-card-cta {
        padding: 0.5rem 1rem;
        margin-top: 1rem;
    }

/* ============================================
   TESTIMONIAL STACK - RESPONSIVE SETUP
   ============================================ */

/* Desktop: Sticky overlay animation */
@media (min-width: 1024px) {
    .st-sticky-stack-container {
        position: relative;
        width: 100%;
    }

    .st-sticky-stack-pin {
        position: relative;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .st-sticky-stack-card {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 900px;
    }
}

/* Mobile: Vertical scrolling cards */
@media (max-width: 1023px) {
    .st-sticky-stack-container {
        position: relative;
        width: 100%;
        padding: 4rem 0;
    }

    .st-sticky-stack-pin {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        padding: 0 1rem;
    }

    .st-sticky-stack-card {
        position: relative;
        width: 100%;
        max-width: 100%;
        /* Cards will be animated by JavaScript */
    }
}

/* General card styling (both mobile and desktop) */
.st-sticky-stack-card {
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.st-sticky-stack-card .quote-mark {
    font-size: 6rem;
    line-height: 1;
    font-family: 'Space Mono', monospace;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.st-sticky-stack-card .quote-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 300;
}

.st-sticky-stack-card .quote-author {
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile text adjustments */
@media (max-width: 768px) {
    .st-sticky-stack-card {
        padding: 2rem 1.5rem;
    }
    
    .st-sticky-stack-card .quote-mark {
        font-size: 4rem;
    }
    
    .st-sticky-stack-card .quote-text {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}
}

/* ==============================================
[NEW] ABOUT US: TIMELINE STYLES
============================================== */

.st-timeline-container {
    position: relative;
    /* This is the main timeline bar */
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

.st-timeline-item {
    position: relative;
    padding-left: 3rem; /* 48px */
    padding-bottom: 1.5rem; /* 24px - for spacing */
}

/* The circle on the timeline bar */
.st-timeline-item::before {
    content: '';
    position: absolute;
    left: -9px; /* (16px circle + 2px border) / 2 = 9px */
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--shakti-accent);
    border: 4px solid #111111; /* shakti-dark */
    z-index: 2;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

/* Faded circle for the last item */
.st-timeline-item:last-child::before {
    background-color: #111111;
    border-color: var(--shakti-accent);
}

.st-timeline-year {
    font-family: 'Space Mono', monospace;
    font-size: 1.125rem; /* 18px */
    font-weight: 600;
    color: var(--shakti-accent);
    margin-bottom: 0.5rem;
}

.st-timeline-content {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem; /* rounded-xl */
    padding: 1.5rem; /* 24px */
    z-index: 1;
}

/* Mobile adjustments for timeline */
@media (max-width: 640px) {
    .st-timeline-item {
        padding-left: 2rem; /* 32px */
    }

    .st-timeline-content {
        padding: 1.25rem;
    }
}

/* ==============================================
[NEW] ABOUT US: TEAM CARD STYLES
============================================== */

.st-team-card {
    text-align: center;
}

.st-team-card-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.st-team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make card pop a little more on hover */
@media (hover: hover) and (min-width: 1025px) {
    .st-strength-card-wrapper:hover .st-team-card {
        border-color: var(--shakti-accent);
    }
}

/* ==============================================
[NEW] CONTACT PAGE STYLES
============================================== */

/* Re-using blueprint texture on contact page */
#contact-hub-section .blueprint-texture {
    /* Only show texture on half the screen on desktop */
    width: 50%;
    opacity: 0.05;
}

/* Contact Hub Cards */
.st-contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* 24px */
    text-decoration: none;
}

.st-contact-card:hover {
    text-decoration: none;
}

.st-contact-card-icon {
    flex-shrink: 0;
    width: 64px; /* w-16 */
    height: 64px; /* h-16 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark Mode Google Map */
.st-google-map {
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 0; /* Fixes small gap under iframe */
}

.st-google-map iframe {
    /* The Dark Mode Filter */
    filter: invert(100%) grayscale(80%) brightness(1.1);
    width: 100%;
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    #contact-hub-section .blueprint-texture {
        width: 100%;
        opacity: 0.1; /* Slightly more visible on mobile */
    }

    .st-contact-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }
}

/* ==============================================
[NEW] SERVICES PAGE: STICKY SCROLLER
============================================== */

.st-sticky-scroller-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; /* 64px */
    position: relative;
}

.st-sticky-image-panel {
    /* This empty div just acts as a height-aware container */
    position: relative;
    /* On mobile, this will just be 100% width */
}

.st-sticky-image-inner {
    /* This is the part that sticks */
    position: -webkit-sticky;
    position: sticky;
    top: 10rem; /* 160px from top */
    width: 100%;
    height: 60vh;
    max-height: 600px;
    border-radius: 1rem; /* rounded-2xl */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: #0a0a0a; /* shakti-darker */
}

.st-service-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1.05); /* Slight zoom for fade effect */
}

.st-service-image.is-active {
    opacity: 1;
    transform: scale(1);
    transition-duration: 0.8s;
}

.st-scrolling-text-panel {
    display: flex;
    flex-direction: column;
    /* This padding is crucial for the start/end scroll trigger */
    padding-top: 10vh;
    padding-bottom: 30vh;
}

.st-scrolling-text-item {
    padding: 2rem;
    margin-bottom: 20vh; /* This spacing drives the scrolling */
    border: 1px solid transparent;
    border-radius: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    opacity: 0.4; /* Fade out non-active items */
}

.st-scrolling-text-item.is-active {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 1;
}

.st-scrolling-text-item:last-child {
    margin-bottom: 10vh; /* Less margin on the last item */
}

/* Mobile adjustments for sticky scroller */
@media (max-width: 1023px) {
    .st-sticky-scroller-container {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2rem;
    }
    
    .st-sticky-image-inner {
        position: -webkit-sticky; /* For Safari */
        position: sticky;
        top: 80px; /* Stick 80px from top (to clear the header) */
        height: 40vh; /* Make height responsive */
        max-height: 40vh;
        margin-bottom: 2rem;
        z-index: 10; /* Keep it below the header (z-100) */
    }
    
    .st-scrolling-text-panel {
        padding-top: 0;
        padding-bottom: 0;
        position: relative;
        z-index: 20;
    }
    
    .st-scrolling-text-item {
        margin-bottom: 2rem; /* Just normal spacing */
        opacity: 0.6;
        background-color: #0a0a0a; /* Add shakti-darker bg */
        padding: 1.5rem; /* Add padding */
        border-radius: 0.75rem; /* Add rounded corners */
        border: 1px solid rgba(255, 255, 255, 0.1); /* Add base border */
        transition: opacity 0.3s ease, border-color 0.3s ease; /* Add transitions */
    }

    .st-scrolling-text-item.is-active {
        /* These styles are now only applied to the active item */
        opacity: 1;
        border-color: var(--shakti-accent);
        border-color: rgba(255, 255, 255, 0.08);
    }
}

/* ==============================================
[NEW] SERVICES PAGE: CATEGORY CARD
============================================== */

.st-category-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Makes all cards in a row the same height */
    text-decoration: none;
}

.st-category-card:hover {
    text-decoration: none;
}

.st-category-card p {
    flex-grow: 1; /* Pushes the CTA text to the bottom */
}

.st-category-card-cta {
    color: var(--shakti-accent);
    font-weight: 600;
    font-family: 'Space Mono', monospace;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-top: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

@media (hover: hover) and (min-width: 1025px) {
    .st-category-card:hover .st-category-card-cta {
        opacity: 1;
    }
}

/* ==============================================
[NEW] ARCHIVE PAGE: FILTER BUTTONS
============================================== */

.st-filter-button-group {
    /* Overrides from homepage to allow wrapping and center */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.st-filter-button {
    text-decoration: none; /* Make buttons act like links */
}

.st-filter-button.is-checked {
    /* Style for the active category link */
    background-color: var(--shakti-accent);
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}

@media (hover: hover) and (min-width: 1025px) {
    .st-filter-button:hover {
        background-color: rgba(234, 179, 8, 0.7); /* A slightly more subtle hover */
        color: #0a0a0a;
    }

    .st-filter-button.is-checked:hover {
        background-color: var(--shakti-accent); /* Keep active state on hover */
    }
}

/* ==============================================
[NEW] FORM FEEDBACK MODAL
============================================== */

.st-form-feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    
    /* Hide by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.st-form-feedback-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.st-feedback-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.st-feedback-box {
    position: relative;
    z-index: 10;
    background-color: #111111; /* shakti-dark */
    border: 1px solid var(--shakti-accent);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    
    /* Animation */
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.st-form-feedback-modal.is-visible .st-feedback-box {
    transform: scale(1);
}

.st-feedback-icon-success {
    color: var(--shakti-accent);
}
.st-feedback-icon-error {
    color: #ef4444; /* Red-500 */
}

/* Hide icons by default, JS will show the correct one */
.st-feedback-icon-success,
.st-feedback-icon-error {
    display: none;
    margin: 0 auto;
}

/* ==============================================
[NEW] BLOG & SINGLE POST STYLES
============================================== */

/* --- Blog Archive Card --- */
.st-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

.st-blog-card:hover {
    text-decoration: none;
}

.st-blog-card-image {
    width: 100%;
    height: 200px;
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.st-blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-out;
}

.st-blog-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1rem 1rem; /* Padding for card content */
}

.st-blog-card-content .text-gray-400 {
    flex-grow: 1; /* Pushes CTA to bottom */
}

@media (hover: hover) and (min-width: 1025px) {
    .st-blog-card:hover .st-blog-card-image img {
        transform: scale(1.05);
    }
}

/* --- Pagination --- */
.st-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.st-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    min-width: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #9ca3af; /* gray-400 */
    text-decoration: none;
    transition: all 0.2s ease;
}

.st-pagination .page-numbers:hover {
    border-color: var(--shakti-accent);
    color: var(--shakti-accent);
}

.st-pagination .page-numbers.current {
    background-color: var(--shakti-accent);
    border-color: var(--shakti-accent);
    color: #0a0a0a;
    font-weight: 700;
}

/* --- Single Post Sidebar --- */
.st-sidebar-widget {
    background-color: #111111; /* shakti-dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
}

.st-sidebar-title {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: white;
    border-bottom: 2px solid var(--shakti-accent);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
}

.st-sidebar-widget ul {
    list-style: none;
    padding-left: 0;
}

.st-sidebar-widget ul li {
    padding-left: 1.25rem;
    position: relative;
}

/* Custom list-style bullet */
.st-sidebar-widget ul li::before {
    content: '»';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--shakti-accent);
    font-weight: 700;
}

.st-sidebar-widget ul li a {
    text-decoration: none;
    color: #d1d5db; /* gray-300 */
    transition: color 0.2s ease;
}

.st-sidebar-widget ul li a:hover {
    color: var(--shakti-accent);
}

/* WordPress Category List specific styles */
.st-sidebar-widget .cat-item {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 1rem;
}
.st-sidebar-widget .cat-item::before {
    content: '»';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--shakti-accent);
    font-weight: 700;
}