:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --accent-blue: #2563EB;
    --accent-blue-light: #3B82F6;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
}

/* Cinematic 3D Launcher */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    background: #fff;
    /* Solid white fallback */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 2000px;
}

.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/abstract_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    /* Subtle blend for premium feel */
    z-index: -1;
}

.loader.open {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.laptop-scene {
    position: absolute;
    top: 62.5%;
    /* User refined position */
    left: 50%;
    width: 600px;
    height: 400px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop {
    position: relative;
    width: 480px;
    height: 1px;
    transform-style: preserve-3d;
    transform: rotateX(-12deg) rotateY(0deg);
}

/* Lid (Screen) - Refined Silver Metallic */
.laptop-lid {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 310px;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    /* Cool silver metallic */
    border-radius: 12px 12px 0 0;
    transform-origin: bottom;
    transform-style: preserve-3d;
    transform: rotateX(-95deg);
    transition: transform 1.5s cubic-bezier(0.7, 0, 0.3, 1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6), 0 0 15px rgba(0, 0, 0, 0.08);
    /* Soft shadows for depth */
    z-index: 2;
}

.laptop.open .laptop-lid {
    transform: rotateX(0deg);
}

.screen-content {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateZ(1px);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 1);
}

.screen-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    /* Lighter blue glow */
    transform: translate(-50%, -50%);
    transition: width 1.2s ease 1.2s, height 1.2s ease 1.2s;
}

.laptop.open .screen-glow,
.mobile-phone.loading-active .screen-glow {
    width: 180%;
    height: 180%;
    animation: glow-pulse 3s infinite ease-in-out 2.5s;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.screen-logo {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.7) translateY(10px);
    transition: all 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1.8s;
    text-align: center;
}

.laptop.open .screen-logo,
.mobile-phone.loading-active .screen-logo {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.mobile-phone.loading-active .screen-logo {
    transition-delay: 0.2s !important;
    /* Bring logo in immediately on mobile power-on */
    z-index: 10;
}

.screen-logo img {
    width: 90px;
    height: auto;
    display: block;
    margin: 0 auto 1.2rem;
    filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.8)) brightness(1.2);
}

.boot-text {
    color: var(--accent-blue-light);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.lid-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px 12px 0 0;
    transform: rotateY(180deg) translateZ(1px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Base - Silver Metallic */
.laptop-base {
    position: absolute;
    top: -100px;
    /* User refined position */
    left: -10px;
    width: 500px;
    height: 330px;
    background: linear-gradient(to bottom, #f1f5f9 0%, #cbd5e1 100%);
    border-radius: 6px;
    transform: rotateX(90deg);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.2),
        /* Softer shadows for white theme */
        inset 0 0 20px rgba(255, 255, 255, 0.5);
}

.base-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px;
}

.keyboard-mock {
    width: 92%;
    height: 55%;
    margin: 0 auto;
    background: rgba(226, 232, 240, 0.8);
    /* Light grey keys mask */
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.trackpad-mock {
    width: 35%;
    height: 25%;
    margin: 20px auto 0;
    background: rgba(203, 213, 225, 0.5);
    /* Slightly darker trackpad */
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Corrected Zoom - Targeting the center of the vertical monitor */
.zoom-in {
    animation: camera-zoom 2.5s cubic-bezier(0.7, 0, 0.3, 1) forwards !important;
}

@keyframes camera-zoom {
    0% {
        transform: translate(-50%, -85%) scale(1) translateY(35%);
    }

    50% {
        transform: translate(-50%, 35%) scale(10) translateY(35%);
    }

    100% {
        /* Scale highly and shift up (translateY positive) to center the upright monitor */
        transform: translate(-50%, 0%) scale(20);
        opacity: 0;
    }
}

/* Screen Loading State - Optimized for Black Screen */
.screen-loader {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    /* Light on black screen */
    border-radius: 10px;
    margin: 1.2rem auto 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease 2.0s;
}

.laptop.loading-active .screen-loader {
    opacity: 1;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-blue);
    /* Solid blue progress */
    border-radius: 10px;
    transition: width 2.5s ease-out;
}

.laptop.loading-active .loader-bar {
    width: 100%;
    animation: load-progress 2.5s ease-out forwards;
}

@keyframes load-progress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}


/* Background Styles */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(1.1);
    opacity: 0.5;
    /* More visible bk */
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
}

/* Notebook Container */
.notebook {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 3000px;
    z-index: 5;
}

.pages-wrapper {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Reduced from 85vh to avoid header overlap */
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    margin-top: 4rem;
    /* Push down away from header */
}

/* Rummy Card Layout */
.page {
    position: absolute;
    width: 70%;
    height: 100%;
    background: rgba(250, 249, 246, 0.98);
    /* Premium Paper Color */
    backdrop-filter: blur(15px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    opacity: 0;
    transform: translateZ(-1000px);
    overflow-y: auto;
    /* Allow scrolling within the card */
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    will-change: transform, opacity;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(0, 0, 0, 0.05);
}

.page::-webkit-scrollbar {
    width: 6px;
}

.page::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

.page::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    /* Slightly smaller */
    height: 60%;
    background-image: url('images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    /* Even more subtle */
    pointer-events: none;
    z-index: -1;
    /* Behind content */
}

/* Ensure Home card specifically doesn't have the clashing watermark if sky is present */
.page-home.page::after {
    display: none;
}

.page.active {
    opacity: 1;
    transform: translateZ(100px);
    pointer-events: all;
    z-index: 50;
}

.page.prev {
    opacity: 0.8;
    transform: translateX(-45%) translateZ(-200px);
    filter: brightness(0.9);
    pointer-events: all;
    z-index: 30;
    cursor: pointer;
}

.page.next {
    opacity: 0.8;
    transform: translateX(45%) translateZ(-200px);
    filter: brightness(0.9);
    pointer-events: all;
    z-index: 30;
    cursor: pointer;
    overflow-y: hidden;
    /* No scroll for background cards */
}

/* Single Page Website Mode (Reflow) */
.minimize-single-page {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.is-single-page .minimize-single-page {
    opacity: 1;
    visibility: visible;
}

body.is-single-page {
    overflow-y: auto !important;
    background-color: #FAF9F6;
}

body.is-single-page .notebook {
    perspective: none !important;
    transform: none !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
    padding: 0 !important;
}

body.is-single-page .pages-wrapper {
    display: block !important;
    height: auto !important;
    width: 100% !important;
    transform: none !important;
    perspective: none !important;
    padding: 0 !important;
}

body.is-single-page .page {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 80vh;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    /* Prevent grey/brightness shift */
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 !important;
    pointer-events: all !important;
    display: block !important;
    visibility: visible !important;
    margin: 0 !important;
}

body.is-single-page .page-inner {
    max-width: 1200px;
    margin: 0 auto;
    /*padding: 8rem 2rem; */
    overflow: visible !important;
    height: auto !important;
}

/* Allow home hero to be wider than 1200px when maximized */
body.is-single-page .page-inner.home-new-inner {
    max-width: 100% !important;
    padding: 0 !important;
}

body.is-single-page .notebook-nav,
body.is-single-page .background-image,
body.is-single-page .background-overlay,
body.is-single-page .maximize-btn {
    display: none !important;
}

.page .maximize-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 2100;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.page .maximize-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.page-inner {
    width: 100%;
    height: 100%;
    padding: 4rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-secondary);
}

.page-inner::-webkit-scrollbar {
    width: 6px;
}

.page-inner::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.page-inner::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 10px;
}

/* Notebook Sheet Texture (Simplified) */
.notebook-sheet {
    background-color: #FAF9F6;
    /* Premium Paper Off-White */
    position: relative;
}

/* Home Page */
.page-inner {
    padding: 3rem;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* =============================================
   HOME PAGE - HERO SECTION (Full Overhaul)
   ============================================= */

.home-new-inner {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0;
    background: white !important;
    border-radius: 0 !important;
    overflow-x: hidden;
}

/* The sky background hero now uses a composite image with integrated laptop/rocket */
/* =============================================
   NEW HERO SECTION (SAAS DESIGN)
   ============================================= */
.hero {
    width: 100%;
    min-height: 90vh;
    background-image: url('assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1.2;
    max-width: 520px;
    text-align: left;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #2c4a84;
    margin: 0;
    max-width: 520px;
}

.hero-description {
    font-size: 18px;
    color: #6c7a89;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 480px;
}

.hero-btn {
    padding: 14px 28px;
    border-radius: 10px;
    border: 1px solid #4a6cf7;
    color: #4a6cf7;
    background: transparent;
    font-weight: 600;
    margin-top: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-family: inherit;
    text-decoration: none;
    outline: none;
    font-size: 16px;
}

.hero-btn:hover {
    background: #4a6cf7;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
}

.hero-features {
    margin-top: 30px;
    font-size: 14px;
    color: #7c8aa0;
    letter-spacing: 0.5px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 520px;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    animation: floatingHero 6s ease-in-out infinite;
}

@keyframes floatingHero {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Tablet Layout (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 36px;
    }
}

/* Mobile Layout (max-width: 768px) */
@media (max-width: 768px) {

    /* DEFAULT STATE: CARD VIEW (Within the perspective notebook) */
    body:not(.is-single-page) .hero {
        padding: 60px 20px 30px !important;
        /* Reduced bottom padding */
        min-height: 440px !important;
        /* Slightly reduced height as well to tighten space */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        background-position: center !important;
        overflow: visible !important;
    }

    body:not(.is-single-page) .hero-container {
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    body:not(.is-single-page) .hero-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    body:not(.is-single-page) .hero-text {
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    body:not(.is-single-page) .hero-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    body:not(.is-single-page) .hero-description {
        font-size: 15px !important;
        margin-top: 15px !important;
        max-width: 280px !important;
        color: #64748b !important;
    }

    body:not(.is-single-page) .hero-btn {
        margin-top: 25px !important;
        padding: 12px 24px !important;
        font-size: 14px !important;
    }

    body:not(.is-single-page) .hero-features {
        margin-top: 30px !important;
        font-size: 12px !important;
        opacity: 0.8;
    }

    body:not(.is-single-page) .hero-image {
        display: none !important;
        /* Hide illustration in card view as requested */
    }

    /* MAXIMIZED STATE: FULL VIEW (Single-page mode) */
    body.is-single-page .hero {
        padding: 120px 20px 80px !important;
        min-height: 90vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.is-single-page .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    body.is-single-page .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body.is-single-page .hero-title {
        font-size: clamp(32px, 8vw, 42px) !important;
        max-width: 100%;
    }

    body.is-single-page .hero-description {
        font-size: 18px !important;
        margin-top: 20px;
    }

    body.is-single-page .hero-btn {
        margin-top: 30px;
        width: fit-content;
    }

    body.is-single-page .hero-image {
        display: flex !important;
        margin-top: 40px;
        max-width: 480px;
        width: 100%;
    }
}

/* Individual image styles removed - now part of composite background */


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Services Row */
@keyframes scroll-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Bulletproof Services Structure: Immersive Desktop Coverage */
/* .home-services-row {
        position: relative;
        width: 100% !important;
        min-height: 550px !important;
        /* Larger footprint
        margin-top: -130px !important;
        /* Pull aggressively onto clouds 
        margin-bottom: 4rem !important;
        z-index: 1000 !important;
        overflow: hidden !important;
        display: block !important;
        background: rgba(255, 255, 255, 0.3);
        /* Subtle glass tint to define the space 
        backdrop-filter: blur(10px);
        padding: 3rem 0;
    } */

.services-scroller {
    display: flex !important;
    gap: 1.5rem !important;
    width: max-content !important;
    animation: scroll-loop 45s linear infinite !important;
    padding: 2rem 0;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    /* Stabilize layer */
    visibility: visible !important;
}

/* Pause on hover restored for better UX since scroller visibility is fixed */
.services-scroller:hover {
    animation-play-state: paused;
}


.service-feature {
    width: 380px !important;
    /* Larger cards to fill space */
    height: 350px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 1.5rem !important;
    padding: 3rem 2rem !important;
    background: #ffffff !important;
    border-radius: 30px !important;
    /* Softer, premium curves */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(0, 102, 255, 0.08) !important;
    visibility: visible !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-feature img,
.service-feature video {
    width: 100% !important;
    max-height: 220px !important;
    object-fit: contain;
    border-radius: 15px;
}

.service-feature * {
    color: black !important;
    /* Force text visible */
}

.service-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.6);
}





.service-icon {
    width: 100%;
    height: 160px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 15px;
    background: transparent;
    /* No white box inside icon */
}

.service-icon video,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.05);
    mix-blend-mode: darken;
    /* More aggressive removal of white background artifacts */
}

.service-feature:hover .service-icon {
    transform: scale(1.02);
}

/* Removed generic img style to use the combined one above */

.service-text h3 {
    font-size: 1.15rem;
    color: #0066ff;
    margin: 0.3rem 0;
    font-weight: 800;
    line-height: 1.1;
    background: transparent;
}

.service-text p {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.3;
    margin: 0;
}




.home-work-section {
    padding: 3rem 2rem;
    background: #f8fafc;
    text-align: center;
    position: relative;
    z-index: 10;
}

.section-badge {
    display: inline-block;
    padding: 0.35rem 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.section-title-sm {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #0f172a;
    text-align: center;
    margin-bottom: 1.2rem;
    position: relative;
    line-height: 1.2;
}

.services-title-wrapper {
    width: 100%;
    margin: 4rem auto 3rem;
    display: block;
    position: relative;
    z-index: 1001;
    text-align: center;
}

.section-title-sm-2 {
    color: #0f172a;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 !important;
    display: inline-block;
    /* Above the pulls */
}

.section-title-sm::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.section-title-sm-2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.work-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-8px);
    /* Subtle shift */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.work-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    border-radius: 20px 20px 0 0;
    /* Match parent */
}

.work-thumb.bg-black {
    background: #000000;
}

.work-thumb.bg-white {
    background: #ffffff;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-item:hover .work-thumb img {
    transform: scale(1.1);
}

.work-info {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding: 1.2rem 1.5rem;
    /* Slightly more compact */
}

.work-info span {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1.1rem;
}

.arrow-icon {
    width: 30px;
    height: 30px;
    background: #eff6ff;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-style: normal;
}

/* Bottom CTA */
.home-bottom-cta {
    padding: 3rem 2rem;
    /* Reduced from 5rem */
    background: white;
    text-align: center;
}

.home-bottom-cta h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1e3a8a;
    margin-bottom: 1.5rem;
    /* Reduced margin */
}

/* Mobile Responsive Adjustments — only for actual mobile devices */
/* Mobile Responsive Adjustments — specifically for the hero and composite layout */


/* =============================================
   STATE OVERRIDES: Notebook vs Single Page Mode
   ============================================= */

/* Removed Legacy Hero State Overrides */

.company-name {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Buttons */
.cta-button {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2500;
    /* Above everything else on the page */
    pointer-events: auto !important;
}

.cta-button:hover {
    background: var(--accent-blue-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: rgba(37, 99, 235, 0.05);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    border-left: 6px solid var(--accent-blue);
    padding-left: 1.5rem;
}

/* Highlights */
.highlights {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    flex-direction: column;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.highlight-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(37, 99, 235, 0.05);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.service-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-container {
    transform: scale(1.1);
    background: rgba(37, 99, 235, 0.12);
}

.service-card svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    color: var(--accent-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Services Grid Distribution */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 1rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

/* End of Services Section */
/* =============================================
   BLOG & INSIGHTS SECTION
   ============================================= */
.blog-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    color: #64748B;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.blog-container {
    padding: 1rem 0;
}

/* Blog Card Base */
.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.blog-image-wrapper {
    position: relative;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

/* Category Tag */
.blog-category {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* Standard Card Content */
.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1E293B;
    line-height: 1.4;
}

.blog-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Author Section */
.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2563EB;
}

.author-meta {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* Read More Link */
.read-more-link {
    display: inline-block;
    margin-top: 1rem;
    color: #2563EB;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}

.read-more-link:hover {
    text-decoration: underline;
}

/* Featured Card Styles */
.blog-card.featured {
    margin-bottom: 2.5rem;
    border: none;
    width: 100%;
    height: auto;
    background: transparent;
}

.blog-card.featured .blog-image {
    height: 400px;
}

.blog-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.blog-featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    color: #fff;
    z-index: 2;
}

.blog-card.featured .blog-category {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
    background: #2563EB;
}

.blog-card.featured .blog-title {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    max-width: 850px;
}

.blog-card.featured .blog-excerpt {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 700px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.blog-card.featured .author-info {
    border: none;
    padding: 0;
    margin: 0;
}

.blog-card.featured .author-meta {
    color: rgba(255, 255, 255, 0.8);
}

.featured-link {
    background: #fff;
    color: #2563EB !important;
    padding: 10px 24px;
    border-radius: 50px;
    margin: 0;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-link:hover {
    background: #2563EB;
    color: #fff !important;
    text-decoration: none;
}

/* Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Pricing */
.pricing-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 250px;
    max-width: 320px;
    padding: 2.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.pricing-card.featured {
    border: 2px solid var(--accent-blue);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card li {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Premium SaaS Contact Section Redesign */
.contact-section-premium {
    width: 100%;
    min-height: 100%;
}

.contact-container-inner {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    gap: 40px;
    box-sizing: border-box;
    align-items: stretch;
}

/* Left Form Section */
.contact-left-form {
    flex: 0 0 65%;
    max-width: 65%;
}

.contact-title-main {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.contact-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

.premium-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row-dual {
    display: flex;
    gap: 20px;
}

.premium-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.premium-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
}

.premium-form-group input,
.premium-form-group textarea {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    outline: none;
    font-family: inherit;
}

.premium-form-group textarea {
    height: 120px;
    resize: vertical;
}

.premium-form-group input:focus,
.premium-form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Services Selection */
.services-toggle-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
}

.services-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #475569;
    user-select: none;
    transition: color 0.2s ease;
}

.service-option:hover {
    color: #2563eb;
}

.service-option input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

/* Primary CTA Button */
.premium-send-btn {
    height: 48px;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.premium-send-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.premium-send-btn:active {
    transform: translateY(0);
}

/* Right Info Panel */
.contact-right-info {
    flex: 0 0 35%;
    max-width: 35%;
}

.info-card-panel {
    background: #f8fafc;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.info-section-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.info-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.info-text-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-text-content span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

.info-text-content a {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.2s ease;
}

.info-text-content a:hover {
    color: #2563eb;
}

.premium-social-row {
    display: flex;
    gap: 12px;
}

.premium-social-icon {
    width: 40px;
    height: 40px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.premium-social-icon:hover {
    transform: translateY(-3px);
    background: #1d4ed8;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.premium-social-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .contact-container-inner {
        flex-direction: column;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .contact-left-form,
    .contact-right-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .info-card-panel {
        height: auto;
    }
}

@media (max-width: 768px) {
    .form-row-dual {
        flex-direction: column;
        gap: 20px;
    }

    .services-option-grid {
        grid-template-columns: 1fr;
    }

    .contact-title-main {
        font-size: 28px;
    }

    .contact-subtitle {
        font-size: 15px;
    }

    .premium-send-btn {
        width: 100%;
    }
}


.social-icon svg {
    width: 22px;
    height: 22px;
}

/* Navigation */
.notebook-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 20;
}

.nav-btn {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--accent-blue);
    color: white;
}

.page-indicator {
    display: flex;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-blue);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.dot:hover {
    background: var(--accent-blue-light);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.85);
    /* Darker backdrop for focus */
    z-index: 6000;
    /* Above header (4000) */
    justify-content: center;
    align-items: center;
    padding: 2rem;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    /* Allow modal itself to scroll if content is tall */
}

/* Modal Open State */
body.modal-open {
    overflow: hidden !important;
    /* Lock background scroll */
}

.modal-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
    /* Important for alignment */
    transform-style: preserve-3d;
    animation: modal-enter 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--accent-blue);
    transform: rotate(90deg);
}

/* Modern Project Modal Layout */
.project-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: start;
}

.project-modal-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-modal-details {
    padding-right: 1rem;
}

.project-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-modal-details h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.project-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.project-description p {
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.meta-item {
    font-size: 0.9rem;
    color: #64748b;
}

.meta-item strong {
    color: #0f172a;
    display: block;
    margin-bottom: 0.2rem;
}

.project-approach-title {
    font-size: 1.8rem;
    color: #facc15;
    /* Signature Yellow */
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

.title-separator {
    width: 60px;
    height: 4px;
    background: #facc15;
    margin-bottom: 2rem;
    border-radius: 2px;
}

.project-modal-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 4px solid #facc15;
    /* The signature border from image */
}

@media (max-width: 768px) {
    .project-modal-layout {
        grid-template-columns: 1fr;
    }

    .project-modal-details h2 {
        font-size: 1.8rem;
    }

    .modal {
        padding: 1rem;
        align-items: flex-start;
        /* Better for tall content on mobile */
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}

/* Hidden Class */
.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .page {
        width: 95%;
    }

    .page.prev,
    .page.next {
        display: none;
    }

    .company-name {
        font-size: 2.5rem;
    }

    /* Maximize button breathing room */
    .maximize-btn {
        top: 0.8rem !important;
        right: 0.8rem !important;
    }
}

/* Global Header Menu */
.site-header {
    position: fixed;
    top: 1rem;
    /* Pulled up slightly */
    left: 0;
    width: 100%;
    z-index: 4000;
    pointer-events: none;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 0.3rem 2rem;
    pointer-events: all;
    box-shadow: var(--shadow-soft);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.header-logo img {
    height: 50px;
    width: auto;
}

.header-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    opacity: 0.8;
}

.header-nav a:hover {
    color: var(--accent-blue);
    opacity: 1;
}

/* Site Footer */
.site-footer {
    display: none;
    background: #0f172a;
    color: #ffffff;
    padding: 6rem 0 3rem;
    width: 100%;
}

body.is-single-page .site-footer {
    display: block;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 5rem;
}

.footer-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-blue-light);
    font-family: 'Poppins', sans-serif;
}

.footer-info p {
    opacity: 0.7;
    line-height: 1.8;
    max-width: 400px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-col a {
    display: block;
    color: #ffffff;
    opacity: 0.6;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col a:hover {
    opacity: 1;
    color: var(--accent-blue-light);
    transform: translateX(5px);
}

.social-links-footer {
    display: flex;
    flex-direction: row;
    /* Horizontal as per usual footer designs unless specified otherwise */
    gap: 1.2rem;
    margin-top: 1rem;
}

.social-links-footer .social-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    width: 40px;
    height: 40px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links-footer .social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.social-links-footer .social-icon svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 2.5rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    opacity: 0.4;
    font-size: 0.85rem;
}

.nav-btn {
    display: none !important;
}

/* Mobile Phone Loader Styles */
.mobile-phone-scene {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 600px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    display: none;
    /* Hidden by default, shown in media query */
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.mobile-phone {
    position: relative;
    width: 260px;
    height: 520px;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
}

.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
    border-radius: 36px;
    padding: 10px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(255, 255, 255, 0.5);
    transform-style: preserve-3d;
}

.phone-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen-glow.mobile {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 75%);
}

.phone-home-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.phone-speaker {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* Mobile Zoom Animation */
.zoom-in-mobile {
    animation: phone-zoom 2.5s cubic-bezier(0.7, 0, 0.3, 1) forwards !important;
}

@keyframes phone-zoom {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -50%) scale(10);
        opacity: 0;
    }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .laptop-scene {
        display: none !important;
    }

    .mobile-phone-scene {
        display: flex !important;
    }

    body {
        overflow-x: hidden;
    }

    .notebook {
        perspective: 1500px !important;
    }

    .pages-wrapper {
        height: 70vh !important;
        margin-top: 5rem !important;
    }

    .page {
        width: 88% !important;
        height: 100% !important;
    }

    .page.prev {
        transform: translateX(-30%) translateZ(-400px) rotateY(15deg) !important;
        opacity: 0.3;
    }

    .page.next {
        transform: translateX(30%) translateZ(-400px) rotateY(-15deg) !important;
        opacity: 0.3;
    }

    .page.active {
        transform: translateZ(50px) !important;
    }

    .home-services-row {
        margin-top: -60px !important;
        /* Reduced gap for tablet */
        z-index: 10 !important;
    }

    .company-name {
        font-size: 2.2rem !important;
    }

    .tagline {
        font-size: 1rem !important;
    }

    .page-inner {
        padding: 1.5rem !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-header {
        padding: 0.5rem 0 !important;
    }

    .header-logo span {
        font-size: 1.1rem !important;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10001;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background: var(--accent-blue-light);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Nav Overlay */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 28, 0.98);
        backdrop-filter: blur(15px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 10000;
        padding: 2rem;
    }

    .header-nav.active {
        right: 0;
    }

    .header-nav a {
        font-size: 1.5rem;
        font-weight: 500;
        color: #fff;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.4s ease forwards;
    }

    .header-nav.active a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Fix Overlap: Move minimize button to bottom-right on mobile */
    .minimize-single-page {
        bottom: 2rem !important;
        right: 2rem !important;
        top: auto !important;
        left: auto !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 2rem !important;
        z-index: 10002 !important;
        /* Ensure it stays above everything */
    }

    /* Staggered animation for menu items */
    .header-nav.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .header-nav.active a:nth-child(2) {
        transition-delay: 0.15s;
    }

    .header-nav.active a:nth-child(3) {
        transition-delay: 0.2s;
    }

    .header-nav.active a:nth-child(4) {
        transition-delay: 0.25s;
    }

    .header-nav.active a:nth-child(5) {
        transition-delay: 0.3s;
    }

    .header-nav.active a:nth-child(6) {
        transition-delay: 0.35s;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }

    .footer-info p {
        margin: 0 auto;
    }

    .footer-links {
        grid-template-columns: 1fr !important;
    }

    /* Fixed cards scrolling on mobile */
    .page.active .page-inner {
        overflow-y: auto !important;
    }
}

.mobile-phone.loading-active .phone-screen {
    background: #000;
    animation: screen-on 0.5s ease-out forwards;
}

@keyframes screen-on {
    0% {
        background: #000;
    }

    10% {
        background: rgba(59, 130, 246, 0.2);
    }

    100% {
        background: #000;
    }
}

.mobile-phone.loading-active .screen-glow.mobile {
    width: 250% !important;
    height: 150% !important;
    opacity: 0.8;
    transition: all 1s ease-out;
}

/* =============================================
   ABOUT PAGE - WHO WE ARE STYLING
   ============================================= */

.sheet-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 2rem;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.about-flex.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1.2;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 1.2rem;
}

.about-text p strong {
    color: var(--accent-blue);
    font-weight: 700;
}

.about-media {
    flex: 0.8;
    position: relative;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: transform 0.5s ease;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.about-img:hover {
    transform: scale(1.03);
}

.about-more-text {
    background: rgba(0, 102, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent-blue);
}

.about-more-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    font-style: italic;
}

/* Mission & Vision Styling */
.mission-vision-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.mv-item {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
}

.mv-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.08);
    border-color: rgba(0, 102, 255, 0.2);
}

.mv-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.mv-item h3 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.mv-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
}

/* Responsive Overrides for About */
@media (max-width: 992px) {

    .about-flex,
    .about-flex.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .about-media {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .mission-vision-row {
        grid-template-columns: 1fr;
    }

    .about-text p {
        font-size: 1rem;
    }

    .mv-item {
        padding: 2rem 1.5rem;
    }
}

/* =============================================
   MOBILE OVERRIDES (MAX 600PX)
   ============================================= */
@media (max-width: 768px) {
    .services-title-wrapper {
        margin: 2rem 0 1.5rem !important;
        /* Reduced from 5rem to pull content up */
        width: 100%;
        display: block !important;
        position: relative !important;
        z-index: 1002 !important;
    }

    .section-title-sm-2 {
        font-size: 2.2rem !important;
        margin: 0 !important;
        text-align: center !important;
        width: 100%;
        display: block !important;
    }

    .home-services-row {
        margin: 0 auto 3rem !important;
        padding: 0 1rem !important;
        min-height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        background: transparent !important;
        backdrop-filter: none !important;
    }

    .services-scroller {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem !important;
        width: 100% !important;
        animation: none !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        overflow-x: visible !important;
        justify-items: center !important;
    }

    .services-scroller>.service-feature:nth-child(n+7),
    .loop-duplicate {
        display: none !important;
    }

    .service-feature {
        width: 100% !important;
        height: auto !important;
        background: white !important;
        padding: 1.5rem 0.8rem !important;
        border-radius: 15px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(0, 102, 255, 0.05) !important;
    }

    .service-icon {
        width: 100%;
        height: 110px;
        margin-bottom: 0.8rem !important;
        flex-shrink: 0;
        border-radius: 12px;
    }

    .service-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .service-text h3 {
        font-size: 1.1rem;
        margin: 0 0 0.4rem 0;
        line-height: 1.2;
        font-weight: 800;
        color: #0066ff;
    }

    .service-text p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
        color: #475569;
    }

    .work-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .work-item {
        max-width: 100%;
    }

    .home-bottom-cta {
        padding: 3.5rem 1.5rem;
    }

    .home-bottom-cta h3 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .home-work-section {
        padding: 3rem 1.2rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        margin-bottom: 0.6rem;
    }

    .section-title-sm {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .section-title-sm::after {
        margin-top: 1rem;
        height: 4px;
        width: 50px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
        gap: 1.8rem;
    }

    .page-indicator {
        padding: 0.8rem 1.6rem;
        gap: 0.8rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}