/* Font Display Swapping Overrides */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-display: swap;
    src: local('Font Awesome 6 Free');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-display: swap;
    src: local('Font Awesome 6 Brands');
}

/* ==========================================================================
   FishiFox Official Brand Palette & Base Resets (Permanent White Theme)
   ========================================================================== */
:root {
    --primary: #e62e72;
    --primary-light: #f76840;
    --primary-gold: #fcaa28;
    --accent-gradient: linear-gradient(90deg, #e62e72 0%, #f76840 50%, #fcaa28 100%);

    --deep-blue: #f8fafc;
    --ocean-blue: #f1f5f9;
    --page-bg: #ffffff;
    /* Pure white background anchor */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(15, 23, 42, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: clip;
    width: 100%;
}

/* ==========================================================================
   Light-Theme Neon Canvas Stacking Architecture 
   ========================================================================== */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Locked behind text layouts */
    pointer-events: none;
    /* Click events fall through to buttons natively */
}

#fluid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    opacity: 0.6;
}

.snap-container {
    width: 100%;
    position: relative;
    z-index: 2;
    /* Pushes your copy content safely above the WebGL frame layer */
}

section {
    width: 100%;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
    scroll-margin-top: 100px;
}

#hero {
    min-height: 100vh;
    padding-top: 120px;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--deep-blue);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 4px;
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-gradient);
    width: 0%;
    z-index: 2000;
}

/* ==========================================================================
   UI Components (Navbar Framework Layouts)
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    gap: 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: var(--nav-bg);
    padding: 16px 50px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9999;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 250px;
}

.logo-img {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    object-position: left;
    display: block;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

/* Desktop CTA */
.desktop-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    color: #fff;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

/* Mobile CTA hidden on desktop */
.mobile-cta {
    display: none;
}

/* ==========================================================================
   Mobile Menu (Hamburger) Styles
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    /* Keep it above the dropdown menu */
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary, #333);
    /* Fallback to dark color if variable is missing */
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Responsive Breakpoints for Navbar
   ========================================================================== */
@media (max-width:768px) {

    .nav {
        padding: 15px 20px;
    }

    .desktop-cta {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 1101;
    }

    /* Full Screen Menu */
    .nav-links {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100vh;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;

        list-style: none;

        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transition: all .35s ease;

        z-index: 1100;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        width: auto;
        padding: 0;
    }

    .nav-links a {
        font-size: 24px;
        font-weight: 600;
        color: var(--text-primary);
    }

    .mobile-cta {
        display: block;
        margin-top: 20px;
    }

    .mobile-cta .nav-cta {
        display: inline-flex;
        padding: 14px 34px;
        font-size: 16px;
        color: #fff;
    }

    /* Hide logo when menu opens (optional) */
    .nav-links.active~.desktop-cta {
        display: none;
    }
}

/* ==========================================================================
   Content Layout Sections Framework
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.portfolio-layout-wrapper {
    display: flex;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
    padding: 0 20px;
}

.portfolio-header-side {
    flex: 0 0 350px;
    padding-top: 20px;
}

.portfolio-grid-mask {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

}

.portfolio-grid-mask::-webkit-scrollbar {
    display: none;
}

.portfolio-grid-side {
    display: flex;
    gap: 30px;
    flex-wrap: nowrap;
    width: max-content;
    /* GSAP will handle the translation */
}

.portfolio-grid-side .portfolio-card {
    flex: 0 0 330px;
    /* Fixed width for smooth horizontal translation */
    max-width: 85vw;
    /* Ensure it fits on smaller screens */
    scroll-snap-align: start;
}

.hero-cta i {
    display: inline-block;
    animation: arrowMove 1.2s ease-in-out infinite;
}

@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }

    100% {
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .portfolio-layout-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;
    }

    .portfolio-header-side {
        flex: 1;
        max-width: 100%;
    }

    .portfolio-grid-mask {
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        width: 100%;
        max-width: 100%;
    }

    .portfolio-grid-side {
        width: max-content;
    }

    .portfolio-grid-side .portfolio-card {
        flex: 0 0 300px;
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .portfolio-grid-side {
        gap: 16px !important;
        padding: 0 20px !important;
    }
    .portfolio-grid-side .portfolio-card {
        flex: 0 0 78vw !important;
    }
}

.section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-family: 'Lora', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Hero Section Settings */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 950px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(32px, 7vw, 80px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 20px;
    overflow: hidden;
}

.home-page .hero-title {
    opacity: 0;
}

.hero-title .line {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0;
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px);
}

.gradient-text {
    display: inline;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    vertical-align: baseline;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 24px;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-gradient);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.hero .hero-cta {
    opacity: 0;
    transform: translateY(20px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.5;
        transform: scaleY(0.5);
    }
}

/* Stats Matrix Layout */
.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.stat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 46, 114, 0.3);
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    color: var(--primary);
}

/* Grid Framework lists */
.services-grid,
.tools-grid,
.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.service-card,
.tool-card,
.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover,
.tool-card:hover,
.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 46, 114, 0.35);
}

.service-icon {
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.service-icon i {
    font-size: 54px;
    line-height: 1;
    background: linear-gradient(90deg, #e62e72 0%, #f76840 50%, #fcaa28 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: .35s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.12) rotate(-8deg);
}

.service-title,
.tool-title,
.portfolio-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-desc,
.tool-desc,
.portfolio-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Short description (landing page preview) */
.service-short-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Long description (services page full detail) */
.service-long-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    padding-top: 8px;
    border-top: 1px solid var(--glass-border);
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Allow HTML formatting (bold/underline) from rich editor */
.service-short-desc b,
.service-short-desc strong,
.service-long-desc b,
.service-long-desc strong,
.service-desc b,
.service-desc strong {
    font-weight: 700;
    color: var(--text-primary);
}

.service-short-desc u,
.service-long-desc u,
.service-desc u {
    text-decoration: underline;
}

.service-link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.services-view-btn {
    width: 100%;
    text-align: center;
    margin-top: 50px;
}

.services-view-btn .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    opacity: 1;
    transform: translateY(0);

    animation: floatButton 3s ease-in-out infinite;
    transition: all .35s ease;
}

.services-view-btn .hero-cta:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 35px rgba(230, 46, 114, .35);
}

.services-view-btn .hero-cta i {
    display: inline-block;
    animation: arrowMove 1.2s ease-in-out infinite;
}

@keyframes arrowMove {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===============================
   Service Details Mobile
================================== */
@media (max-width: 768px) {

    .service-details-section {
        padding: 110px 15px 50px !important;
    }

    .service-details-section h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 18px !important;
    }

    .service-content {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .service-content h2 {
        font-size: 22px !important;
    }

    .service-content h3 {
        font-size: 20px !important;
    }

    .service-content h4 {
        font-size: 18px !important;
    }

    .service-content p,
    .service-content li {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .service-content ul,
    .service-content ol {
        padding-left: 20px;
    }

    .service-details-section img {
        height: 250px !important;
    }
}

@media (max-width: 480px) {

    .service-details-section h1 {
        font-size: 1.7rem !important;
    }

    .service-content {
        font-size: 14px !important;
    }

    .service-content p,
    .service-content li {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .service-details-section img {
        height: 200px !important;
    }
}

/* Tools Adjustments */
.tool-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(230, 46, 114, 0.2), rgba(252, 170, 40, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.tool-card {
    text-align: center;
}

/* Portfolio Overlays */
.portfolio-card {
    padding: 0;
    overflow: hidden;
}

.portfolio-img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, rgba(230, 46, 114, 0.15) 0%, rgba(247, 104, 64, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--glass-border);
    font-size: 32px;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.portfolio-view-btn {
    text-align: center;
    margin-top: 30px;
}

.desktop-btn {
    display: block;
}

.mobile-btn {
    display: none;
}

@media(max-width:768px) {
    .portfolio-layout-wrapper {
        padding: 0 !important;
    }

    .portfolio-header-side {
        padding: 0 20px !important;
    }

    .portfolio-grid-mask {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        padding-bottom: 8px !important;
    }

    .portfolio-grid-mask::-webkit-scrollbar {
        display: none;
    }

    .portfolio-card {
        flex: 0 0 78vw !important;
        scroll-snap-align: start !important;
    }

    .portfolio-slider-ui {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 8px !important;
    }

    .portfolio-dots {
        display: flex;
        gap: 8px;
        margin-bottom: 4px !important;
    }

    .portfolio-dots span {
        width: 8px;
        height: 8px;
        background: #ddd;
        border-radius: 50%;
        transition: .3s;
    }

    .portfolio-dots span.active {
        width: 28px;
        border-radius: 20px;
        background: var(--accent-gradient);
    }
}

@media (min-width:769px) {
    .portfolio-header-side .portfolio-view-btn {
        display: block;
    }

    .portfolio-layout-wrapper>.portfolio-view-btn {
        display: none;
    }
}

@media (max-width:768px) {
    .desktop-btn {
        display: none;
    }

    .mobile-btn {
        display: block;
        margin-top: 8px !important;
    }
}

/* ==========================
   NEWS PREVIEW
========================== */

.news-preview-grid {
    max-width: 1200px;
    width: 100%;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.news-preview-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 22px;
    box-shadow:
        0 15px 40px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: all .35s ease;
}

.news-preview-card:hover {
    transform: translateY(-8px);
}

.news-preview-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-preview-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    color: #999;
    font-size: 13px;
}

.news-preview-content h3 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.news-preview-content p {
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.7em * 4);
}

.news-btn-wrapper {
    text-align: center;
    margin-top: 50px;
}

.news-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.news-btn .arrow {
    display: inline-block;
    animation: arrowFloat 1.5s ease-in-out infinite;
}

.news-btn:hover .arrow {
    transform: translateX(10px);
}

@keyframes arrowFloat {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

@media(max-width:768px) {
    .news-preview-section {
        background: rgba(255, 255, 255, 0.4) !important;
        background-color: rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
    }

    .news-preview-grid {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 20px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .news-preview-grid::-webkit-scrollbar {
        display: none;
    }

    .news-preview-card {
        flex: 0 0 85%;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
    }

    .news-preview-card img {
        height: 160px;
    }

    .news-preview-content {
        padding: 16px;
    }

    .news-preview-content h3 {
        font-size: 17px;
    }

    .news-preview-content p {
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
        min-height: calc(1.6em * 2);
    }

    /* ---------- Slider UI ---------- */

    .news-slider-ui {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .news-dots {
        display: flex;
        gap: 8px;
        margin-bottom: 12px;
    }

    .news-dots span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        transition: .3s;
    }

    .news-dots span.active {
        width: 28px;
        border-radius: 30px;
        background: var(--accent-gradient);
    }

    .swipe-hint {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #888;
        animation: swipeHint 1.8s infinite;
    }

    .swipe-hint svg {
        color: var(--primary);
    }
}

@keyframes swipeHint {

    0%,
    100% {
        transform: translateX(0);
        opacity: .6;
    }

    50% {
        transform: translateX(8px);
        opacity: 1;
    }

}

/* Infinite Client Marquee */
.clients-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 25px 0;
    position: relative;

    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
    mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

.clients-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.clients-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.clients-marquee-track img {
    height: 65px;
    /* <-- වැඩි කළා */
    width: auto;
    flex-shrink: 0;
    margin: 0 50px;
    filter: grayscale(100%);
    opacity: .6;
    transition: .35s ease;
}

.clients-marquee-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.12);
}

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width:768px) {

    .clients-marquee-wrapper {
        padding: 20px 0;
    }

    .clients-marquee-track img {
        height: 58px;
        /* Mobile size */
        margin: 0 28px;
        /* Gap අඩු කළා */
    }

}

/* Partners Marquee UI */
.partners-marquee-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScrollReverse 25s linear infinite;
}

.partners-marquee-wrapper::before,
.partners-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partners-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.partners-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.partners-marquee-track a {
    display: inline-block;
    margin: 0 50px;
    flex-shrink: 0;
}

.partners-marquee-track img {
    height: 65px;
    width: auto;
    filter: grayscale(100%);
    opacity: .6;
    transition: .35s ease;
}

.partners-marquee-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.12);
}

@keyframes marqueeScrollReverse {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (max-width:768px) {
    .partners-marquee-wrapper {
        padding: 20px 0;
    }
    .partners-marquee-track a {
        margin: 0 28px;
    }
    .partners-marquee-track img {
        height: 58px;
    }
}

/* Lifecyle Timeline */
.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: var(--glass-border);
    z-index: 0;
}

.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 60px;
    height: 60px;
    background: var(--ocean-blue);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 auto 16px;
}

.process-step.active .process-number {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.process-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.process-step.active .process-title {
    color: var(--primary-light);
}

.process-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0 8px;
}

/* Responsive */
@media(max-width:992px) {
    .news-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width:768px) {
    .news-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* Clientele Segments */
.client-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

.client-category {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: 20px;
}

.client-cat-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: white;
}

.client-cat-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.client-cat-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.client-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.client-logo {
    background: rgba(120, 120, 120, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* FAQ Accordion UI */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.faq-header {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.faq-icon-wrapper {
    transition: transform 0.3s ease;
    color: var(--primary-light);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active {
    border-color: rgba(230, 46, 114, 0.35);
}

.faq-item.active .faq-icon-wrapper {
    transform: rotate(180deg);
}

.faq-item.active .faq-content {
    max-height: 300px;
    padding-bottom: 20px;
    transition: max-height 0.3s cubic-bezier(0.86, 0, 0.07, 1), padding 0.3s ease;
}

.contact-wrapper {
    max-width: 1180px;
    margin: auto;
    padding: 0 20px;
}

.contact-main-card {
    position: relative;
    display: grid;
    grid-template-columns: 42fr 58fr;
    align-items: stretch;
    border-radius: 32px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

/* Left Card (Dark slate) */
.contact-info-panel {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 24px;
    position: relative;
}

.contact-info-panel h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: 50px;
    background: linear-gradient(90deg, #e62e72, #fcaa28);
}

/* Right Card (Clean white) */
.contact-form-panel {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
}

.contact-form-panel h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 24px;
    position: relative;
}

.contact-form-panel h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    margin-top: 10px;
    border-radius: 50px;
    background: linear-gradient(90deg, #e62e72, #fcaa28);
}

/* Contact Items */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #e62e72;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-detail-icon {
    background: #e62e72;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 46, 114, 0.3);
}

.contact-detail-text h5 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 4px;
}

.contact-detail-text p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0;
}

/* Connect With Us */
.contact-social {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 15px;
}

.contact-social h5 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 15px;
}

.contact-social .social-icons {
    display: flex;
    gap: 12px;
}

.contact-social .social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-social .social-icons a:hover {
    transform: translateY(-4px);
    background: #e62e72;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(230, 46, 114, 0.3);
    border-color: #e62e72;
}

/* Form */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 12px;
}

.contact-form-panel input {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    outline: none;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

.contact-form-panel input:focus,
.contact-form-panel textarea:focus {
    border-color: #e62e72;
    box-shadow: 0 0 0 3px rgba(230, 46, 114, 0.1);
    background: #ffffff;
}

.contact-form-panel textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    outline: none;
    background: #f8fafc;
    resize: vertical;
    min-height: 110px;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
}

.contact-form-panel button {
    width: fit-content;
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    background: var(--accent-gradient);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(230, 46, 114, 0.15);
    transition: all 0.3s ease;
}

.contact-form-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(230, 46, 114, 0.25);
}

@media (max-width: 992px) {
    .contact-main-card {
        grid-template-columns: 1fr;
    }
    .contact-info-panel {
        border-radius: 32px 32px 0 0;
        padding: 40px;
    }
    .contact-form-panel {
        border-radius: 0 0 32px 32px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .contact-info-panel,
    .contact-form-panel {
        padding: 30px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Footers */
.footer {
    padding: 70px 50px 30px;
    border-top: 1px solid var(--glass-border);
    background: var(--footer-bg);
    position: relative;
    z-index: 3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    margin-top: 15px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Modern Layout & Animation Enhancements
   ========================================================================== */

/* Asymmetric Sticky Services */
.services-split-layout {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.services-sticky-sidebar {
    flex: 0 0 35%;
    position: sticky;
    top: 150px;
    /* Sticks to the viewport while scrolling */
}

.services-scroll-content {
    flex: 1;
}

.services-grid-asymmetric {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.services-grid-asymmetric .service-card {
    width: 100%;
}

/* Stagger every even card slightly */
.services-grid-asymmetric .service-card:nth-child(even) {
    transform: translateX(-40px);
}

/* Parallax About Section */
.parallax-section {
    position: relative;
    overflow: hidden;
    min-height: 80vh !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg-image {
    position: absolute;
    top: -30%;
    left: 0;
    width: 100%;
    height: 160%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 100px 20px;
    width: 100%;
}

.glass-panel {
    position: relative;
    overflow: hidden;

    background: linear-gradient(135deg,
            rgba(230, 46, 114, .22) 0%,
            rgba(247, 104, 64, .18) 50%,
            rgba(252, 170, 40, .16) 100%);

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 24px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .18),
        inset 0 1px 0 rgba(255, 255, 255, .4);
}

.glass-panel::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, .35),
            transparent 40%),
        radial-gradient(circle at bottom right,
            rgba(252, 170, 40, .18),
            transparent 45%);

    pointer-events: none;
}

.glass-panel p {
    color: #1f2937 !important;
}

/* Horizontal Scroll Portfolio */
#portfolio-container {
    padding: 0 !important;
    display: block;
    height: auto !important;
}

.horizontal-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    display: flex;
    align-items: center;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.horizontal-scroll-content {
    display: flex;
    flex-wrap: nowrap;
    padding: 80px 10vw;
    align-items: center;
    gap: 40px;
}

.horizontal-scroll-item {
    flex: 0 0 400px;
    height: auto;
    min-height: 450px;
    opacity: 1;
}

.intro-item {
    flex: 0 0 350px;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Responsive Intercept rules
   ========================================================================== */
.reveal {
    opacity: 1;
    transform: none;
}

@media (max-width: 1024px) {

    .services-grid,
    .tools-grid,
    .portfolio-grid,
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer {
        padding: 60px 30px 30px;
    }

    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        /* Desktop layout එකම */
        gap: 20px;
        align-items: start;
    }
}

@media (max-width: 768px) {

    .services-grid,
    .tools-grid,
    .stats-container,
    .portfolio-grid,
    .client-categories {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .process-timeline::before {
        display: none;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .footer-container > :first-child {
        grid-column: span 2;
    }
    .footer-container > :last-child:nth-child(even) {
        grid-column: span 2;
    }
}

/* ==========================================================================
   BBC News Style Redesign
   ========================================================================== */
.bbc-page-title {
    font-family: Arial, Helvetica, sans-serif !important;
}

.bbc-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.bbc-news-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 22px;
    box-shadow:
        0 12px 35px rgba(15, 23, 42, .08),
        inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: all .35s ease;
}

.bbc-news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bbc-news-card:hover .bbc-news-title {
    text-decoration: underline;
    color: #B80000;
}

.bbc-img-wrapper {
    width: 100%;
    overflow: hidden;
}

.bbc-news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bbc-news-card:hover .bbc-news-img {
    transform: scale(1.02);
}

.bbc-news-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bbc-news-title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px 0;
    color: #222222;
    transition: color 0.2s;
}

.bbc-news-desc {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #444444;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bbc-news-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    color: #B80000;
    margin-top: auto;
    border-left: 2px solid #B80000;
    padding-left: 8px;
}

.bbc-featured-story {
    grid-column: span 2;
    grid-row: span 2;
}

.bbc-featured-story .bbc-news-img {
    height: 100%;
    max-height: 400px;
}

.bbc-featured-story .bbc-news-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.bbc-featured-story .bbc-news-desc {
    font-size: 1.1rem;
    -webkit-line-clamp: 4;
}

@media (max-width: 992px) {
    .bbc-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bbc-featured-story {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .bbc-news-grid {
        grid-template-columns: 1fr;
    }

    .bbc-featured-story {
        grid-column: span 1;
    }

    .bbc-featured-story .bbc-news-img {
        height: 200px;
    }

    .bbc-featured-story .bbc-news-title {
        font-size: 1.5rem;
    }
}/* Solutions Pages Custom CSS */

.full-width-page-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #ffffff;
}

/* ----------------------------------
   1. Enterprise Solutions (Current)
----------------------------------- */
.sol-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(circle at center, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.sol-hero-content { max-width: 800px; }

.sol-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.sol-hero p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #475569;
    line-height: 1.6;
}

.sol-horizontal-section {
    padding: 100px 0;
    background: #fafafa;
    position: relative;
    overflow: hidden;
}

.sol-section-title {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 60px;
}

.sol-cards-wrapper {
    display: flex;
    gap: 30px;
    padding: 0 5vw;
    width: max-content;
}

.sol-card {
    width: 400px;
    height: 500px;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.sol-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.sol-card-img-wrap {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f8fafc;
    position: relative;
}

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

.sol-card:hover .sol-card-img-wrap img { transform: scale(1.05); }

.sol-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.sol-card p {
    font-family: 'Inter', sans-serif;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.sol-gallery-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.sol-gallery-track {
    display: flex;
    gap: 20px;
    padding: 0 5vw;
    width: max-content;
}

.sol-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.sol-gallery-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
}

.sol-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.sol-gallery-item.tall { height: 400px; }
.sol-gallery-item.short { height: 250px; }
.sol-gallery-item.medium { height: 320px; }

.sol-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #ffffff);
    pointer-events: none;
    z-index: 5;
}

/* ----------------------------------
   2. Startup Solutions (Agile/Sticky)
----------------------------------- */
.startup-page {
    background: #000000;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.startup-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 120%, #ff4b4b 0%, #000 60%);
    position: relative;
}

.startup-title {
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 900;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
    text-transform: uppercase;
    text-align: center;
    background: -webkit-linear-gradient(#fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.startup-sticky-wrapper {
    position: relative;
    padding-bottom: 20vh;
}

.startup-card {
    position: sticky;
    top: 15vh;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto 10vh auto;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    gap: 40px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.5);
    transform-origin: top center;
}

.startup-card-img {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
}

.startup-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.startup-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.startup-card h2 {
    font-size: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    color: #ff4b4b;
}

.startup-card p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.7;
}

/* ----------------------------------
   3. Cloud Solutions (Floating/Glass)
----------------------------------- */
.cloud-page {
    background: #ffffff;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.cloud-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.cloud-floating-obj {
    position: absolute;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50%;
    filter: blur(8px);
}

.cloud-title {
    font-family: 'Space Grotesk', sans-serif;
    z-index: 2;
    text-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cloud-glass-section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;
    position: relative;
    z-index: 2;
}

.cloud-glass-card {
    width: 90%;
    max-width: 800px;
    background: rgba(240, 244, 248, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.cloud-glass-card h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

/* ----------------------------------
   4. AI Solutions (Cyber/Neon)
----------------------------------- */
.ai-page {
    background: #020617;
    color: #38bdf8;
    font-family: 'Space Grotesk', sans-serif;
}

.ai-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: 
      linear-gradient(rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.9)),
      url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
}

.ai-hero h1 {
    font-size: clamp(3rem, 6vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 10px;
    text-shadow: 0 0 20px rgba(56,189,248,0.5);
}

.ai-features {
    padding: 100px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ai-feature-card {
    border: 1px solid rgba(56,189,248,0.2);
    background: rgba(15, 23, 42, 0.5);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.ai-feature-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56,189,248,0.2);
}

.ai-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: #38bdf8;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.ai-feature-card:hover::before {
    transform: scaleX(1);
}

.ai-feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.ai-feature-card p {
    font-family: 'Inter', sans-serif;
    color: #94a3b8;
    line-height: 1.6;
}

/* ----------------------------------
   5. Light Theme (Startup & AI overrides)
----------------------------------- */
.light-theme-page {
    background: #ffffff;
    color: #333;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.light-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 150px 20px 80px;
    background: #fafafa;
}

.light-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

.light-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
}

/* Curved Carousel */
.curved-carousel-section {
    padding: 100px 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
}

.curved-carousel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px; /* Increased height */
    position: relative;
    perspective: 1500px; /* 3D space */
    transform-style: preserve-3d;
    margin-bottom: 40px; /* Space for text below */
}

.curved-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.curved-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Positioning the 3D cards */
.curved-card.center {
    width: 300px;
    height: 400px;
    z-index: 5;
    top: 50%; margin-top: -200px;
    left: 50%; margin-left: -150px;
    transform: translateZ(0);
}

.curved-card.left-1 {
    width: 250px;
    height: 350px;
    z-index: 4;
    top: 50%; margin-top: -175px;
    left: 50%; margin-left: -125px;
    transform: translateX(-280px) translateZ(-100px) rotateY(15deg);
}

.curved-card.left-2 {
    width: 200px;
    height: 300px;
    z-index: 3;
    top: 50%; margin-top: -150px;
    left: 50%; margin-left: -100px;
    transform: translateX(-500px) translateZ(-200px) rotateY(25deg);
}

.curved-card.right-1 {
    width: 250px;
    height: 350px;
    z-index: 4;
    top: 50%; margin-top: -175px;
    left: 50%; margin-left: -125px;
    transform: translateX(280px) translateZ(-100px) rotateY(-15deg);
}

.curved-card.right-2 {
    width: 200px;
    height: 300px;
    z-index: 3;
    top: 50%; margin-top: -150px;
    left: 50%; margin-left: -100px;
    transform: translateX(500px) translateZ(-200px) rotateY(-25deg);
}

/* Hover effects for carousel */
.curved-carousel-container:hover .curved-card.center {
    transform: translateZ(50px);
}

/* Light Masonry (similar to enterprise gallery but adapted) */
.light-masonry-section {
    padding: 60px 0 0;
    background: #ffffff;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
}

.light-masonry-track {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.light-masonry-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 190px;
    flex-shrink: 0;
}

/* Offset alternate columns slightly for a staggered look */
.light-masonry-column:nth-child(even) {
    margin-top: 40px;
}

.light-masonry-item {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.light-masonry-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.light-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.light-masonry-item:hover img {
    transform: scale(1.05);
}

.light-masonry-item.tall { height: 260px; }
.light-masonry-item.short { height: 160px; }
.light-masonry-item.medium { height: 210px; }

.light-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 240px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,1) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Responsiveness for table & mobile views */
@media (max-width: 1024px) {
    .light-masonry-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .light-masonry-column:nth-child(even) {
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .light-masonry-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Responsiveness for Enterprise Solutions Core Services */
@media (max-width: 768px) {
    .sol-horizontal-section {
        padding: 60px 0;
        overflow: visible;
    }
    .sol-cards-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100% !important;
        padding: 0 20px;
        max-width: 500px;
        margin: 0 auto;
        transform: none !important;
    }
    .sol-card {
        width: 100% !important;
        height: auto !important;
        min-height: 420px;
        padding: 30px 24px;
    }
}

.sub-page #canvas-container {
    z-index: 1 !important;
}

/* Ensure the page sections on subpages have the premium blurred frosted-glass look showing the fluid animation */
.sub-page section {
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Semi-transparent section backgrounds so the WebGL fluid canvas shows through clearly on all subpages */
.sub-page #hero,
.sub-page .hero,
.sub-page .products-hero {
    background: rgba(250, 248, 245, 0.45) !important;
    background-color: rgba(250, 248, 245, 0.45) !important;
}

.sub-page .article-section,
.sub-page .products-grid-section,
.sub-page .positions-section {
    background: rgba(255, 255, 255, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
}

.sub-page .benefits-section,
.sub-page .spontaneous-section,
.sub-page .about-split-section {
    background: rgba(250, 248, 245, 0.45) !important;
    background-color: rgba(250, 248, 245, 0.45) !important;
}

.sub-page .about-hero-section::before {
    background: linear-gradient(to bottom, rgba(250, 248, 245, 0.45) 0%, rgba(250, 248, 245, 0.65) 100%) !important;
}

/* Ensure images within rich text content never exceed their container */
.article-content img,
.service-content img,
.jodit-wysiwyg img {
    max-width: 100% !important;
    height: auto !important;
}

/* Ensure text inside paragraphs or divs in rich content wraps properly */
.article-content p,
.article-content div,
.service-content p,
.service-content div {
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}
