/*
Theme Name: Ugoki-04
Author: Creotopi
*/
/* --- Base & Variables --- */
:root {
    --bg-dark: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #414AFF;
    --accent-glow: rgba(65, 74, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Funnel Display', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 15% 15%, rgba(65, 74, 255, 0.08) 0px, transparent 40%),
        radial-gradient(at 85% 15%, rgba(65, 74, 255, 0.05) 0px, transparent 45%),
        radial-gradient(at 50% 80%, rgba(65, 74, 255, 0.06) 0px, transparent 50%),
        radial-gradient(at 80% 90%, rgba(65, 74, 255, 0.04) 0px, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-full {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 72px;
    /* Dribbble uses wider padding on edges */
}

@media (max-width: 768px) {
    .container-full {
        padding: 0 24px;
    }
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* --- Typography & Buttons --- */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(to right, #8D81FF 0%, #7BA7FF 48%, #414AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-secondary);
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: opacity 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    opacity: 0.9;
}

.cta-btn-small {
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.cta-btn-small:hover {
    opacity: 0.9;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

/* --- 1. Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nav-height) 5% 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(1.2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.rotator-fade-out {
    animation: rotFadeOut 0.5s forwards ease-in-out;
}

.rotator-fade-in {
    animation: rotFadeIn 0.5s forwards ease-in-out;
}

@keyframes rotFadeOut {
    to {
        opacity: 0;
        transform: translateY(-15px);
    }
}

@keyframes rotFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-reviews {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.hero-avatars {
    display: flex;
}

.hero-avatars img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    margin-left: -16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-avatars img:first-child {
    margin-left: 0;
}

.hero-reviews-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #6A5ACD;
    /* Deep purple/blue */
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-subtext {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Hero Visuals (Background/Floating elements) */
.perspective-grid {
    position: absolute;
    bottom: -30%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(800px) rotateX(65deg);
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
    mask-image: radial-gradient(ellipse at center, black 10%, transparent 60%);
}

.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    perspective: 1000px;
}

.glass-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(5, 5, 5, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    animation: floatOrb 10s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes floatOrb {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        transform: translate(-50%, -60%) scale(1.1);
    }
}

/* Abstract Floating Shapes */
.dots-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

/* 3D Shapes (Spline Style) */
.parallax-wrapper {
    position: absolute;
    z-index: 2;
    transform: translate(var(--tx, 0px), var(--ty, 0px));
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.shape-dark-particle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #1a1a2e;
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.8);
    transform: rotate(20deg);
    animation: floatFast 4s ease-in-out infinite alternate;
}

.shape-pink-cube {
    width: 60px;
    height: 54px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 30%, #FF66CC, #B20066);
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(-10deg);
    animation: floatSlow 6s ease-in-out infinite alternate;
}

.shape-yellow-cube {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: radial-gradient(circle at 30% 30%, #FFD700, #996600);
    box-shadow: inset -5px -5px 10px rgba(0, 0, 0, 0.5), 0 10px 20px rgba(0, 0, 0, 0.3);
    transform: rotate(15deg);
    animation: floatFast 4s ease-in-out infinite alternate 1s;
}

.shape-blue-cube {
    width: 78px;
    height: 66px;
    border-radius: 18px;
    background: radial-gradient(circle at 30% 30%, #6666FF, #000099);
    box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotate(20deg);
    animation: floatMedium 5s ease-in-out infinite alternate 0.5s;
}

.shape-dark-blue-cube {
    width: 96px;
    height: 72px;
    border-radius: 24px;
    background: radial-gradient(circle at 30% 30%, #3333CC, #000033);
    box-shadow: inset -15px -15px 30px rgba(0, 0, 0, 0.8), 0 30px 50px rgba(0, 0, 0, 0.5);
    transform: rotate(-15deg);
    animation: floatBlob 7s ease-in-out infinite alternate 2s;
}

.shape-green-triangle {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, #00FF66, #006633);
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M 50 5 C 55 5 57 10 59 13 L 95 75 C 98 80 95 90 88 90 L 12 90 C 5 90 2 80 5 75 L 41 13 C 43 10 45 5 50 5 Z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M 50 5 C 55 5 57 10 59 13 L 95 75 C 98 80 95 90 88 90 L 12 90 C 5 90 2 80 5 75 L 41 13 C 43 10 45 5 50 5 Z"/></svg>');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transform: rotate(15deg);
    filter: drop-shadow(-10px 10px 20px rgba(0, 0, 0, 0.5));
    animation: floatSlow 8s ease-in-out infinite alternate 1s;
}

.shape-purple-cube {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #9966FF, #330099);
    box-shadow: inset -5px -5px 15px rgba(0, 0, 0, 0.6), 0 15px 30px rgba(0, 0, 0, 0.4);
    transform: rotate(45deg);
    animation: floatFast 5s ease-in-out infinite alternate 1.5s;
}

/* Depth of field */
.blur-sm {
    filter: blur(4px);
}

.blur-md {
    filter: blur(8px);
}

.blur-lg {
    filter: blur(15px);
}

@keyframes floatFast {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatMedium {
    0% {
        transform: translateY(0) rotate(-5deg);
    }

    100% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes floatSlow {
    0% {
        transform: translateY(0) rotate(-15deg);
    }

    100% {
        transform: translateY(-40px) rotate(-10deg);
    }
}

@keyframes floatBlob {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        transform: translateY(-30px) scale(1.05) rotate(15deg);
        border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
    }
}

/* --- 2. Infinite Slider --- */
.slider-section {
    padding: 100px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    /* Soft fade on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0;
}

.slider-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: scrollX 120s linear infinite;
    will-change: transform;
}

.track-reverse {
    animation: scrollXReverse 130s linear infinite;
    transform: translateX(calc(-50% - 12px));
    will-change: transform;
}

.slider-track:hover,
.track-reverse:hover {
    animation-play-state: paused;
}

.slider-card {
    width: 320px;
    height: 320px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.slider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-card:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-inner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    height: 100%;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.slider-card:hover .card-inner-overlay {
    opacity: 1;
}

.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-card:hover::before {
    opacity: 1;
}

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

    100% {
        transform: translateX(calc(-50% - 12px));
    }

    /* -50% because we duplicate items */
}

@keyframes scrollXReverse {
    0% {
        transform: translateX(calc(-50% - 12px));
    }

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

/* --- 3. Latest Component Section --- */
.latest-component {
    padding-top: 100px;
    padding-bottom: 100px;
}

.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.latest-card {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 18;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.latest-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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


/* Fancy Toggle UI inside showcase */
.toggle-container {
    position: relative;
}

.fancy-toggle-input {
    display: none;
}

.fancy-toggle-label {
    display: block;
    width: 120px;
    height: 60px;
    background: #2a2a2a;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.4), 0 0 0 2px var(--glass-border);
    transition: background 0.4s ease;
}

.fancy-toggle-label::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fancy-toggle-input:checked+.fancy-toggle-label {
    background: var(--accent-color);
}

.fancy-toggle-input:checked+.fancy-toggle-label::after {
    transform: translateX(60px);
}


/* --- 3.5 How it works --- */
.how-it-works-section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.hiw-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    margin-top: 60px;
}

.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.hiw-steps::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 0;
}

.hiw-step {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.hiw-step.active,
.hiw-step:hover {
    opacity: 1;
}

.step-indicator {
    position: relative;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    flex-shrink: 0;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.ring-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 2;
    stroke-dasharray: 100.5;
    stroke-dashoffset: 100.5;
}

.hiw-step.active .ring-progress {
    animation: fillRing 5s linear forwards;
}

@keyframes fillRing {
    0% {
        stroke-dashoffset: 100.5;
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.step-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-family: var(--font-main);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hiw-visual {
    width: 100%;
}

.hiw-image-container {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
}

.hiw-image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.hiw-image-container:hover img {
    transform: scale(1.02);
}


/* --- 4. Testimonials (Vertical Scroll) --- */
.testimonials-section {
    padding: 100px 0;
    overflow: hidden;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    height: 600px;
    max-width: 1200px;
    margin: 0 auto;
    /* The magic bottom/top fade */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.test-col {
    position: relative;
    height: 100%;
}

.test-track {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: absolute;
    width: 100%;
}

.track-up {
    animation: scrollUp 40s linear infinite;
}

.track-down {
    animation: scrollDown 45s linear infinite;
    /* Start further up so it can scroll down seamlessly */
    top: -100%;
}

.test-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.test-text {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.test-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.test-stars {
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.author-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-50% - 12px));
    }

    /* Based on duplicated content */
}

@keyframes scrollDown {
    0% {
        transform: translateY(calc(-50% - 12px));
    }

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


/* --- 5. Secondary Hero --- */
.secondary-hero {
    position: relative;
    padding: 80px 5%;
    text-align: center;
    aspect-ratio: 21 / 9;
    min-height: 400px;
    max-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 24px;
    margin-bottom: 80px;
}

.sh-bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    border-radius: 20px;
    /* if container has rounding, or 0 if full bleed within container */
}

.sh-overlay-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Fade ONLY top and bottom to pure black */
    background:
        linear-gradient(to bottom, #000 0%, transparent 20%, transparent 80%, #000 100%),
        /* Stronger center dark overlay for text readability */
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 35%, transparent 65%);
    backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
}

.sec-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.secondary-hero h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.secondary-hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Simple Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}


/* --- 6. Footer --- */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 5%;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 24px;
}

.socials a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.socials svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}


/* --- Responsive & Mobile Menu --- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    text-decoration: none;
    height: 40px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-btn-text {
    padding: 0 16px;
    gap: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-btn-icon {
    width: 40px;
    padding: 0;
}

.mobile-menu-btn {
    display: none;
}

.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

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

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px 32px;
        gap: 32px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Layouts stacking for mobile */
    .latest-layout,
    .latest-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card {
        min-height: 300px;
    }

    .hiw-layout {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
    }

    .hiw-image-container {
        position: relative;
        top: 0;
        height: 300px;
        margin-top: 0;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
        height: 500px;
    }

    .test-col:nth-child(2),
    .test-col:nth-child(3) {
        display: none;
    }

    /* Show only 1 col on mobile */

    .hero {
        min-height: 80vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .secondary-hero {
        aspect-ratio: auto;
        min-height: 350px;
        padding: 60px 5%;
        border-radius: 16px;
    }

    .secondary-hero h2 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .secondary-hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}


/* --- Component Library Page --- */
.lib-header {
    padding: 120px 0 60px;
    text-align: center;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-border-effect {
    position: absolute;
    inset: -1px;
    border-radius: 100px;
    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.search-border-effect::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1500px;
    height: 1500px;
    background: conic-gradient(from 0deg, transparent 0%, transparent 70%, rgba(255, 255, 255, 0.8) 85%, transparent 100%);
    animation: rotateBorderLightSearch 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes rotateBorderLightSearch {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.search-container:focus-within .search-border-effect::before {
    opacity: 1;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    z-index: 10;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(65, 74, 255, 0.2);
}

.lib-main {
    min-height: calc(100vh - 350px);
}

.lib-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    opacity: 0.9;
}

.filter-btn.active {
    background: var(--text-primary);
    color: var(--bg-dark);
    border-color: var(--text-primary);
}

.comp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(373px, 1fr));
    gap: 32px;
    margin-bottom: 100px;
}


.comp-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
}

.comp-card:hover {
    transform: translateY(-5px);
}

.comp-card-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.comp-card:hover .comp-card-img-wrapper {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

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

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

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comp-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.comp-badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(65, 74, 255, 0.4);
}

.comp-badge-green {
    background: #10B981 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    border: none !important;
    color: white !important;
}

.comp-card-info {
    padding: 16px 4px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comp-card-views {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lib-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 16px;
    }
}

/* --- Component Detail Page --- */
.detail-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    padding-top: 160px;
    padding-bottom: 100px;
    align-items: center;
}

.detail-preview-col {
    width: 100%;
}

.detail-preview-box {
    background: var(--glass-bg);
    border: 3px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.detail-preview-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #000;
}

.detail-preview-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.5);
}

.preview-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.preview-actions {
    color: var(--text-secondary);
    cursor: pointer;
}

.preview-actions:hover {
    color: var(--text-primary);
}

.detail-action-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
}

.detail-lower {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    padding-bottom: 160px;
}

.meta-card {
    padding: 32px;
    border-radius: 24px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-pill:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

@media (max-width: 992px) {

    .detail-hero,
    .detail-lower {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-hero {
        padding-top: 100px;
    }

    .detail-action-buttons {
        max-width: 100%;
    }
}

/* --- FAQ Section --- */
.faq-section {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.faq-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    position: relative;
    background: var(--glass-border);
    border: none;
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
}

.faq-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0.5) 85%, rgba(255, 255, 255, 0.05) 100%);
    animation: rotateBorderLight 4s linear infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.faq-item::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #09090b;
    /* premium dark background */
    border-radius: 23px;
    z-index: -1;
}

.faq-item:hover {
    transform: translateY(-4px);
}

.faq-item:hover::before,
.faq-item[open]::before {
    opacity: 1;
}

.faq-item[open] {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.faq-item summary {
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    /* Hide default arrow */
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    animation: faqFadeIn 0.3s ease forwards;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- About Page --- */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 160px;
    padding-bottom: 100px;
    align-items: center;
}

.about-hero-image img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

.about-features {
    padding-bottom: 100px;
}

.about-feature-box {
    padding: 64px 0;
    border-radius: 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.feature-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    border-radius: 24px;
    background: var(--glass-border);
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 255, 255, 0.5) 85%, rgba(255, 255, 255, 0.05) 100%);
    animation: rotateBorderLight 4s linear infinite;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: #09090b;
    /* matches dark theme, slightly lighter than #050505 bg */
    border-radius: 23px;
    z-index: -1;
}

@keyframes rotateBorderLight {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(65, 74, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.about-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    padding-bottom: 160px;
}

@media (max-width: 992px) {

    .about-hero,
    .about-lower,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }

    .about-hero-text {
        order: 2;
    }

    .about-hero-image {
        order: 1;
        transform: scale(0.8);
        height: 400px !important;
    }

    .about-feature-box {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    /* About Hero Image */
    .about-hero-image {
        transform: scale(0.65);
        height: 320px !important;
    }

    /* Reduce Gaps Universally */
    .bento-grid,
    .comp-grid,
    .feature-grid,
    .hiw-steps,
    .hiw-layout,
    .component-detail-grid,
    .hiw-step,
    .glass-panel,
    .about-hero,
    .about-lower {
        gap: 24px !important;
    }

    /* Grid Layout Stacking */
    .comp-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Vertical Spacings */
    .about-hero, 
    .about-features, 
    .about-lower, 
    .detail-hero, 
    .detail-lower {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Override large inline margins/paddings from PHP templates */
    section[style*="margin-bottom: 120px"] {
        margin-bottom: 60px !important;
    }
    section[style*="padding-top: 160px"] {
        padding-top: 80px !important;
    }

    /* Header Spacings */
    .lib-header,
    .detail-hero,
    .about-hero {
        padding-top: 120px !important;
    }
    
    /* Filters Scaling */
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* Founder Section Stacking */
    .about-founder .glass-panel {
        flex-direction: column;
    }
}