:root {
    /* --- STERILE LIGHT PALETTE --- */
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-tech: #f0f9ff;
    /* Very faint blue tint */

    /* Accents - Brand Lime Green */
    --accent-core: #C6F432;
    --accent-glow: rgba(198, 244, 50, 0.2);

    /* Text - No Pure Black */
    --text-header: #334155;
    /* Slate 700 (Dark Grey) */
    --text-body: #64748b;
    /* Slate 500 (Medium Grey) */

    --border-light: #e2e8f0;

    --font-main: "Montserrat", sans-serif;
    --font-heading: "Poppins", sans-serif;
    --font-button: "Comfortaa", "Gamriya", sans-serif;
    --font-code: "JetBrains Mono", monospace;

    /* Global Variables for Practice Ecosystem */
    --primary: #000000;
    --accent: #C6F432;
    --dark: #000000;
    --gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global Responsive Fix for Images/Videos */
img,
video,
svg {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
    /* Prevents horizontal scroll on small devices */
    width: 100%;
    font-family: var(--font-main);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
}

@keyframes panGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

/* --- TYPOGRAPHY --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.code-font {
    font-family: var(--primary);
    font-size: 0.85rem;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #000000, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* --- UI ELEMENTS (White & Blue) --- */

/* 1. Tech Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Centered for mobile */
    gap: 8px;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-button);
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.8rem;
}

.btn-primary {
    background: #000000;
    color: white;
    border: 1px solid var(--primary);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    background: transparent;
    color: #000000;
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
}

/* 2. Glass Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

/* 3. The "Scanner" Animation */
@keyframes scanLight {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--accent-core);
    animation: scanLight 3s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
}

/* 4. Typing Effect */
.typing {
    border-right: 2px solid var(--primary);
    white-space: nowrap;
    overflow: hidden;
    animation: blinkCursor 0.75s step-end infinite;
    display: inline-block;
    padding-right: 5px;
    color: #000000 !important;
    max-width: 100%;
    /* Prevent overflow on small screens */
}

@keyframes blinkCursor {
    50% {
        border-color: transparent;
    }
}

/* --- HEADER --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    /* Added explicit padding */
}

.logo {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-header);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    font-size: 0.6rem;
    background: var(--bg-tech);
    color: var(--accent-core);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.dynamic-text {
    color: var(--primary-black);
}

.input-cursor {
    display: inline-block;
    width: 2px;
    color: var(--primary-black);
    animation: blink 0.75s step-end infinite;
    margin-left: 2px;
}


/* =========================================================================================================
   6. Why Choose Fission Monster? (Compact Version)
   ========================================================================================================= */
.why-section {
    margin-top: 40px;
}

.grid-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    background-color: #fff;
    width: 100%;
}

.grid-row {
    display: grid;
    width: 100%;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-item {
    position: relative;
    padding: 25px 20px;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 180px;
    overflow: hidden;
    background: #fff;
    z-index: 1;
}

.grid-item:hover {
    background-color: #f8fafc;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.grid-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.grid-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.grid-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    max-width: 90%;
}

.dot-h {
    position: absolute;
    bottom: -1px;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 50%, var(--accent) 100%);
    animation: runHorizontal 3s linear infinite;
    pointer-events: none;
    z-index: 5;
}

.dot-v {
    position: absolute;
    top: -100%;
    right: -1px;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, transparent 30%, var(--accent) 100%);
    animation: runVertical 3s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes runHorizontal {
    0% {
        left: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes runVertical {
    0% {
        top: -100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

/* RESPONSIVE GRID UPDATES */
/* Tablet: 2 Columns */
@media (max-width: 992px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 Column */
@media (max-width: 600px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .grid-item {
        min-height: auto;
        padding: 30px;
    }
}

/* --- FEATURES --- */
.feature-section {
    padding: 100px 0;
    background: white;
}

/* Responsive Feature Section Padding */
@media (max-width: 768px) {
    .feature-section {
        padding: 60px 0;
    }
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

/* Responsive Feature Rows */
@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        /* Stack vertically on tablet/mobile */
        gap: 30px;
        margin-bottom: 60px;
        text-align: center;
    }

    .feature-text {
        order: 2;
        /* Text below image */
    }

    .visual-card {
        order: 1;
        width: 100%;
        /* Full width image */
    }
}

.tag {
    font-family: var(--font-code);
    color: var(--accent-core);
    font-size: 0.8rem;
    background: var(--bg-tech);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.feature-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    /* Fluid font size */
    color: var(--text-header);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Visual Cards */
.visual-card {
    flex: 1;
    height: 350px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-core);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.15);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

/* ========================================================================================
   TECH BUSINESS SECTION (Dark Theme)
   ======================================================================================= */
/* ========================================================================================
   TECH BUSINESS SECTION (Light Theme)
   ======================================================================================= */
.tech-business-section {
    position: relative;
    padding: 120px 20px;
    background-color: #ffffff;
    /* Match the Our Digital Services section */
    overflow: hidden;
    margin-top: 0;
    border-top: 1px solid #e2e8f0;
}

.tech-business-header {
    margin-bottom: 60px;
}

.tech-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.tech-dash {
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: #111;
}

.tech-business-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.editorial-step {
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-num {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    font-family: var(--font-code, monospace);
    transform: rotate(-90deg);
    display: inline-block;
    transform-origin: center;
}

.step-line {
    width: 30px;
    height: 1px;
    background: #111;
}

.editorial-step p {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

@media (max-width: 900px) {
    .tech-business-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ====================================================================================
   SECTION: CLIENT-CENTRIC UNIVERSE & THE FUTURE
   ==================================================================================== */
.universe-section,
.future-section {
    background-color: #000000 !important;
    color: #ffffff !important;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
}

.home-section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #ffffff;
}

.home-lead-text {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #a3a3a3;
    margin-bottom: 10px;
    max-width: 800px;
}

.home-lead-text strong {
    color: #ffffff;
    font-weight: 600;
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

/* --- UNIVERSE ORBITAL ANIMATION --- */
.universe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.orbital-wrapper {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.client-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--accent-core, #C6F432);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000000;
    z-index: 10;
    box-shadow: 0 0 30px rgba(198, 244, 50, 0.5);
    font-size: 1.2rem;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: rotateOrbit linear infinite;
}

.orbit-1 {
    width: 150px;
    height: 150px;
    animation-duration: 20s;
}

.orbit-2 {
    width: 250px;
    height: 250px;
    animation-duration: 35s;
    animation-direction: reverse;
}

.orbit-3 {
    width: 350px;
    height: 350px;
    animation-duration: 50s;
    opacity: 0.5;
}

.orbit::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-core, #C6F432);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(198, 244, 50, 0.8);
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Bullet Points */
.result-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-item {
    border-left: 3px solid var(--accent-core, #C6F432);
    padding-left: 20px;
    font-size: 0.8rem;
    color: #e0e0e0;
}

/* ====================================================================================
   FUTURE SECTION (Light Theme)
   ==================================================================================== */

.future-section {
    background-color: #ffffff;
    color: #000000;
    border-top: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.future-section .home-section-title {
    color: #000000;
}

.future-section .home-lead-text {
    color: #52525b;
}

.future-section .home-lead-text strong {
    color: #000000;
}

.future-section .home-cta-btn {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.future-section .home-cta-btn:hover {
    background: #333333;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.cta-wrapper {
    margin-top: 50px;
}

.home-cta-btn {
    display: inline-block;
    padding: 18px 45px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px; /* Increased corners */
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .home-cta-btn {
        padding: 14px 25px;
        font-size: 0.9rem;
        border-radius: 10px;
        white-space: nowrap;
    }
}

.home-cta-btn:hover {
    background: #e0e0e0;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* --- RESPONSIVE ADJUSTMENTS (Universe & Future) --- */
@media (max-width: 900px) {
    .universe-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .orbital-wrapper {
        height: 350px;
        order: -1;
        /* Show visual first on mobile */
        margin-bottom: 40px;
    }

    .orbit-1 {
        width: 180px;
        height: 180px;
    }

    .orbit-2 {
        width: 300px;
        height: 300px;
    }

    .orbit-3 {
        display: none;
    }

    /* Hide large orbit on mobile to prevent overflow */

    .result-list {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-section-title {
        font-size: 2.5rem;
    }
}

/* =========================================
   FIX FOR TABLETS & MOBILE (770px and Below)
   ========================================= */
@media (max-width: 770px) {

    /* --- 1. HERO SECTION FIX (Intelligent AI...) --- */
    /* Target the hero container seen in your screenshot (.bw-hero) */
    .bw-hero {
        padding: 100px 20px 60px 20px !important;
        /* Add breathing room top/bottom */
        text-align: center !important;
        height: auto !important;
        /* Allow it to grow if text wraps */
    }

    /* Force the Main Title to shrink */
    .bw-hero h1,
    .bw-hero .hero-title {
        font-size: 2.2rem !important;
        /* Reduced from Desktop size */
        line-height: 1.2 !important;
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
        word-wrap: break-word;
        /* Prevents cutoff */
    }

    /* Center the description text */
    .bw-hero p {
        font-size: 1rem !important;
        max-width: 90%;
        margin: 0 auto 30px auto !important;
        text-align: center !important;
    }

    /* --- Global: Center all section heading paragraphs on mobile --- */
    .section-header p,
    .section-header-highlight p,
    .hero-subtitle,
    .model-subtitle,
    .step-box p,
    .model-desc {
        text-align: center !important;
    }

    /* Fix Button Group (Stack them) */
    .bw-hero div[style*="flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
    }

    .btn-group {
        margin: 0 auto;
        justify-content: center !important;
        align-items: center;
    }

    /* --- 2. CLIENT-CENTRIC UNIVERSE FIX --- */
    .universe-section {
        padding: 60px 20px !important;
        text-align: center !important;
    }

    /* Force Single Column Stack */
    .universe-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }

    /* Ensure Orbit Visual is on TOP and Centered */
    .orbital-wrapper {
        order: -1;
        /* Moves it above text */
        margin: 0 auto 20px auto;
        transform: scale(0.85);
        /* Slightly smaller to fit width */
    }

    /* Center the Text Block */
    .universe-section .home-section-title {
        font-size: 2rem !important;
        margin-bottom: 15px;
        text-align: left;
        padding-left: 25px;
    }

    .universe-section .home-lead-text {
        text-align: center !important;
        margin: 0 auto 25px auto !important;
        font-size: 0.95rem;
        padding: 10px;
    }

    /* Fix the Bullet List Alignment */
    /* We center the CONTAINER, but keep text LEFT aligned so bullets look right */
    .result-list {
        text-align: left !important;
        margin: 0 auto !important;
        padding-left: 35px;
        /* Minor indent */
        grid-template-columns: 1fr !important;
        /* Stack bullets vertically */
        gap: 12px;
    }

    .result-item {
        font-size: 0.9rem;
        padding-left: 15px;
        /* Space between border and text */
    }
}

/* ====================================================================================
   SECTION: TESTIMONIALS
   ==================================================================================== */
.testimonials-section {
    background-color: #ffffff;
    color: #000000;
    padding: 100px 20px;
    border-top: 1px solid #e5e7eb;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    border-color: var(--accent-core, #C6F432);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.testimonial-card .stars {
    color: #000000;
    /* Slightly darker lime green for better contrast on white */
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    gap: 5px;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #3f3f46;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-core, #C6F432);
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.client-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: #000000;
}

.client-info span {
    font-size: 0.85rem;
    color: #52525b;
}

/* Responsive */
@media (max-width: 768px) {
    /* Justify long-form content paragraphs on mobile, but NOT hero/header subtitles */
    p {
        text-align: justify;
    }
    /* Keep hero/section heading paragraphs centered */
    .bw-hero p,
    .section-header p,
    .section-header-highlight p,
    .hero-subtitle,
    .hero-content p,
    .model-subtitle,
    .text-center p,
    .home-lead-text,
    .testimonials-header p,
    .who-we-are-content p,
    .grid-item p {
        text-align: center !important;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 30px 20px;
    }
}
