/* Card Component Styles */
.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 0;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.card:hover .card__image img {
    transform: scale(1.05);
}

.card__content {
    padding: 1.5rem;
}

.card__content h3 {
    color: #e4e4e7;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card__content p {
    color: #a1a1aa;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.card__tag {
    background: #2a2d3a;
    color: #646cff;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.card .btn {
    margin-top: 0.5rem;
}
/* Home.css */
/* General Layout */
* {
    font-family: "Poppins", sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Post-Hero Sections - Initially hidden, shown after animation */
.post-hero-sections {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.post-hero-sections.loaded {
    opacity: 1;
}

.capabilities-intro-section {
    padding: 3rem 0 1rem;
    background: transparent;
}

.capabilities-intro-section .section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.capabilities-intro-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.capabilities-intro-section .section-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.capabilities-intro-section .learn-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.capabilities-intro-section .learn-more-link:hover {
    text-decoration: underline;
}

/* SDLC System Section */
.sdlc-system-section {
    background: linear-gradient(135deg,
            rgba(249, 250, 251, 0.9) 0%,
            rgba(243, 244, 246, 0.9) 100%);
    padding: 1.5rem 0 4rem;
    padding-top: max(1.5rem, env(safe-area-inset-top) + 0.5rem);
    padding-bottom: max(4rem, env(safe-area-inset-bottom) + 2rem);
    position: relative;
    overflow: hidden;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
    box-shadow: none;
    min-height: 100vh;
    min-height: 100dvh;
    /* Dynamic viewport height */
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    filter: brightness(0.25);
}

/* Ensure video plays on load */
.hero-video-background::-webkit-media-controls {
    display: none !important;
}

.hero-video-background::-webkit-media-controls-enclosure {
    display: none !important;
}

html[data-theme="dark"] .sdlc-system-section {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.85) 0%,
            rgba(30, 41, 59, 0.85) 100%);
    border: none;
    box-shadow: none;
}

/* Section Header */
.section-header {
    text-align: center;
    position: relative;
    z-index: 1;
}

.text-red {
    color: #dc2626 !important;
    font-weight: 700 !important;
    font-size: inherit;
}

.text-normal {
    color: inherit;
    font-weight: 600;
    font-size: inherit;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
}

html[data-theme="dark"] .section-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff !important;
    letter-spacing: -0.02em;
    max-width: 1100px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-top: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

html[data-theme="dark"] .hero-title {
    color: #ffffff !important;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: #000000 !important;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
    margin-top: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Home hero subtitle - unique class for home page subtitle */
.home-hero-subtitle {
    font-size: 1.35rem !important;
    color: #ffffff !important;
    line-height: 1.6 !important;
    max-width: 1300px;
    margin: 0 auto 3rem auto !important;
    font-weight: 400 !important;
    margin-top: 2rem !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
}

html[data-theme="dark"] .home-hero-subtitle {
    color: #ffffff !important;
}

/* Additional specificity for home hero subtitle */
.sdlc-system-section .home-hero-subtitle {
    color: #ffffff !important;
}

html[data-theme="dark"] .sdlc-system-section .home-hero-subtitle {
    color: #ffffff !important;
}

/* Subtitle Sequence Animation Styles */
.subtitle-sequence {
    margin-bottom: 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 0.5rem 0;
}

.animated-subtitle {
    font-size: 3.8rem !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    max-width: 100vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9) !important;
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(40px);
    text-align: center !important;
    position: relative;
    margin: 0 !important;
    padding: 1.5rem 0 !important;
    letter-spacing: 1px !important;
}

.animated-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
    color: #ffffff !important;
}

.animated-subtitle.completed {
    opacity: 0.4;
    transform: translateY(-10px) scale(0.95);
    color: #ffffff !important;
}

/* Force white color and large size for all subtitle states */
.sdlc-system-section .animated-subtitle {
    color: #ffffff !important;
    font-size: 3.1rem !important;
    max-width: 90vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
}

.sdlc-system-section .animated-subtitle.visible {
    color: #ffffff !important;
    font-size: 3.1rem !important;
    max-width: 90vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
}

.sdlc-system-section .animated-subtitle.completed {
    color: #ffffff !important;
    font-size: 3.1rem !important;
    max-width: 90vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
}

/* Typing cursor effect */
.animated-subtitle.typing::after {
    content: '|';
    color: #3b82f6;
    font-weight: 700;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Terminal Container Styles */
.terminal-container {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    padding: 0;
    margin: 1rem auto 1.5rem auto;
    max-width: 1000px;
    width: 95%;
    min-height: 250px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.terminal-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.terminal-container.completed {
    opacity: 1;
    transform: translateY(0);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.terminal-header {
    position: relative;
    top: 0;
    left: 0;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-dot.red {
    background-color: #ff5f56;
}

.terminal-dot.yellow {
    background-color: #ffbd2e;
}

.terminal-dot.green {
    background-color: #27ca3f;
}

/* Terminal Content Area */
.terminal-content {
    padding: 1.5rem;
    min-height: 180px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.4rem;
    color: #ffffff;
    line-height: 1.8;
    text-align: left;
}

.completed-sentences {
    margin-bottom: 0;
}

.completed-sentence {
    margin-bottom: 1rem;
    display: block;
    color: #ffffff;
    opacity: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.4rem;
    line-height: 1.8;
}

.typed-subtitle {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.4rem;
    color: #ffffff;
    line-height: 1.8;
    min-height: 30px;
    text-align: left;
}

html[data-theme="dark"] .completed-sentences,
html[data-theme="dark"] .completed-sentence,
html[data-theme="dark"] .typed-subtitle {
    color: #ffffff;
}

html[data-theme="dark"] .completed-sentences {
    color: #ffffff;
}

html[data-theme="dark"] .completed-sentence {
    color: #ffffff;
}

.terminal-line {
    margin-bottom: 1rem !important;
    display: block !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.4rem !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
}

/* Protect completed lines from any changes */
.terminal-line[data-completed="true"] {
    margin-bottom: 1rem !important;
    display: block !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 1.4rem !important;
    color: #ffffff !important;
    line-height: 1.8 !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.terminal-line span {
    color: #ffffff !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 1.4rem !important;
    display: inline !important;
}

/* Protect completed line spans from any changes */
.terminal-line span[data-completed="true"] {
    color: #ffffff !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace !important;
    font-size: 1.4rem !important;
    display: inline !important;
}

/* Terminal typing cursor */
.typed-cursor {
    color: #ffffff !important;
    font-weight: bold !important;
    animation: typedjsBlink 1s infinite;
}

@keyframes typedjsBlink {
    50% {
        opacity: 0.0;
    }
}

html[data-theme="dark"] .typed-cursor {
    color: #ffffff !important;
}

html[data-theme="dark"] .terminal-line {
    color: #ffffff !important;
}

html[data-theme="dark"] .terminal-line span {
    color: #ffffff !important;
}

/* Ultra-specific selectors to ensure styles apply */
.sdlc-system-section .subtitle-sequence .animated-subtitle {
    font-size: 3.1rem !important;
    max-width: 90vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
}

.sdlc-system-section .subtitle-sequence p.animated-subtitle {
    font-size: 3.1rem !important;
    max-width: 90vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
}

.subtitle-sequence p.animated-subtitle.subtitle-1 {
    font-size: 3.1rem !important;
    max-width: 90vw !important;
    width: 100vw !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    color: #ffffff !important;
}

.hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title-highlight {
    color: #60a5fa;
    font-weight: 800;
}

.hero-secondary-text {
    font-size: 1.2rem;
    color: #ffffff;
    text-align: center;
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-secondary-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Load All Button - Positioned in the normal flow, not fixed */
.load-all-btn {
    position: relative;
    z-index: 10;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
    margin-top: 1rem;
}

/* Only show Load All button on home page */
body.homepage .load-all-btn {
    display: inline-flex;
}

/* Permanently hide Load All button when clicked */
.load-all-btn.permanently-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.load-all-btn:hover {
    background: rgba(59, 130, 246, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.hero-cta {
    margin-top: 2rem;
}

.btn-hero {
    padding: 1.125rem 2.25rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 0;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(31, 41, 55, 0.2);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.3);
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

html[data-theme="dark"] .btn-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .btn-hero:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1f2937;
    letter-spacing: 0.8em;
}

html[data-theme="dark"] .section-header h2 {
    color: #ffffff;
}

.highlight {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 0.2em 0.6em;
    display: inline-block;
    margin: 0 0.1em;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

html[data-theme="dark"] .highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4);
}

/* Specific styling for highlighted text in about section */
.about-content h3 .highlight {
    font-size: 2.8rem;
    padding: 0.1em 0.4em;
    display: inline-block;
    margin: 0 0.05em;
    color: #3b82f6 !important;
}

html[data-theme="dark"] .about-content h3 .highlight {
    font-size: 2.8rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

html[data-theme="dark"] .section-header p {
    color: #d1d5db;
}

/* Connecting Line Animation */
.connecting-line {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    z-index: 2;
    pointer-events: none;
}

.connector-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 4px;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.3), rgba(59, 130, 246, 0.3));
    border-radius: 2px;
    filter: blur(8px);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scaleX(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scaleX(1.2);
    }
}

.dotted-line {
    filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.3));
    position: relative;
    z-index: 1;
}

.arrow-indicator {
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-50%) translateX(5px);
        opacity: 1;
    }
}

html[data-theme="dark"] .dotted-line {
    filter: drop-shadow(0 2px 8px rgba(96, 165, 250, 0.4));
}

html[data-theme="dark"] .connector-glow {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.4), rgba(96, 165, 250, 0.4));
}

.animated-path {
    animation: dash-animation 3s linear infinite;
}

@keyframes dash-animation {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 20;
    }
}

.moving-dot {
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.4));
}

html[data-theme="dark"] .moving-dot {
    filter: drop-shadow(0 2px 4px rgba(96, 165, 250, 0.5));
}

/* Problem & Solution Section */
.problem-solution-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    padding: 1rem 0;
}

.problem-side,
.solution-side {
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

.problem-side {
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.05) 0%,
            rgba(185, 28, 28, 0.02) 100%);
    border: 2px solid rgba(220, 38, 38, 0.1);
}

/* .solution-side {
    background: linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.05) 0%,
            rgba(29, 78, 216, 0.02) 100%
        );
        border: 2px solid rgba(59, 130, 246, 0.1);
} */

html[data-theme="dark"] .problem-side {
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.1) 0%,
            rgba(185, 28, 28, 0.05) 100%);
    border-color: rgba(220, 38, 38, 0.2);
}

html[data-theme="dark"] .solution-side {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(29, 78, 216, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.2);
}

.problem-side:hover,
.solution-side:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.danger-tag {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.success-tag {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .danger-tag {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border-color: rgba(220, 38, 38, 0.3);
}

html[data-theme="dark"] .success-tag {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #1f2937;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.problem-side .section-title {
    color: #dc2626;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.solution-side .section-title {
    color: #3b82f6;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

html[data-theme="dark"] .section-title {
    color: #ffffff;
}

html[data-theme="dark"] .problem-side .section-title {
    color: #f87171;
    text-shadow: 0 2px 4px rgba(248, 113, 113, 0.2);
}

html[data-theme="dark"] .solution-side .section-title {
    color: #60a5fa;
    text-shadow: 0 2px 4px rgba(96, 165, 250, 0.2);
}

.section-description {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

html[data-theme="dark"] .section-description {
    color: #d1d5db;
}

.warning-visual,
.solution-visual {
    margin-top: 2rem;
}

.chaos-indicator {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

html[data-theme="dark"] .chaos-indicator {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
}

.chaos-bars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bar {
    width: 8px;
    border-radius: 4px;
    background: #dc2626;
    animation: chaosAnimation 2s ease-in-out infinite;
}

.bar-1 {
    height: 20px;
    animation-delay: 0s;
}

.bar-2 {
    height: 35px;
    animation-delay: 0.2s;
}

.bar-3 {
    height: 25px;
    animation-delay: 0.4s;
}

.bar-4 {
    height: 40px;
    animation-delay: 0.6s;
}

@keyframes chaosAnimation {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

.chaos-label {
    font-size: 1rem;
    font-weight: 600;
    color: #dc2626;
}

html[data-theme="dark"] .chaos-label {
    color: #f87171;
}

.productivity-indicator {
    display: flex;
    gap: 1rem;
}

.metric-card {
    flex: 1;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.08) 0%,
            rgba(29, 78, 216, 0.03) 100%);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

html[data-theme="dark"] .metric-card {
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.15) 0%,
            rgba(29, 78, 216, 0.08) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .metric-number {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(96, 165, 250, 0.4);
}

.metric-label {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

html[data-theme="dark"] .metric-label {
    color: #e5e7eb;
}

/* Solution Categories Section */
.solution-categories-section {
    position: relative;
}

/* Solution Categories - Vertical Stack */
.solution-categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.category-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.card-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    min-height: 500px;
}

.card-layout.reverse {
    grid-template-columns: 1fr 1fr;
}

.card-layout.reverse .demo-section {
    order: 1;
}

.card-layout.reverse .card-content-right {
    order: 2;
}

.card-content-left,
.card-content-right {
    padding: 0;
}

.startup-card .card-content-left {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.startup-card .warning-text {
    margin-top: 0;
    margin-bottom: 1rem;
}

.startup-card .features-grid {
    align-self: flex-start;
    margin-top: 0;
}

.startup-card .card-content-right {
    display: flex;
    align-items: flex-start;
    padding-top: 0;
}

.card-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.startup-card .card-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.startup-card .card-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.card-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.badge-text {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.1);
    }
}

html[data-theme="dark"] .badge-text {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes subtle-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.3);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(96, 165, 250, 0.15);
    }
}

.card-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1f2937;
    text-align: center;
}

html[data-theme="dark"] .card-title {
    color: #ffffff;
}

.card-title .highlight {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .card-title .highlight {
    color: #ffffff;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
}

.card-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.warning-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.startup-card .warning-text {
    margin-top: 0;
    margin-bottom: 1rem;
}

.warning-text .text-red {
    font-size: inherit;
    font-weight: 700 !important;
    color: #dc2626 !important;
}

.warning-text .remaining-text {
    font-size: 1.125rem;
    color: #3b82f6;
    font-weight: 500;
}

html[data-theme="dark"] .warning-text .remaining-text {
    color: #60a5fa;
}

html[data-theme="dark"] .card-subtitle {
    color: #d1d5db;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-content: center;
    height: 100%;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    min-height: 80px;
}

.feature-card.light-card {
    background: rgba(241, 245, 249, 0.8);
    border: 1px solid rgba(226, 232, 240, 1);
    padding: 2rem 1.5rem;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.light-card .feature-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.feature-card.light-card h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}

.feature-description {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.feature-card.light-card::after {
    content: "Learn more →";
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.feature-card.light-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.feature-card.light-card:hover .feature-description {
    opacity: 1;
}

.feature-card.light-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.light-card:hover {
    background: rgba(248, 250, 252, 1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

html[data-theme="dark"] .feature-card.light-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .feature-card.light-card .feature-icon {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

html[data-theme="dark"] .feature-card.light-card h4 {
    color: #ffffff;
}

html[data-theme="dark"] .feature-description {
    color: #e2e8f0;
}

html[data-theme="dark"] .feature-card.light-card::after {
    color: #60a5fa;
}

html[data-theme="dark"] .feature-card.light-card:hover .feature-icon {
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

html[data-theme="dark"] .feature-card.light-card:hover {
    background: rgba(30, 41, 59, 1);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.25);
}

html[data-theme="dark"] .feature-card {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.feature-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

html[data-theme="dark"] .feature-card:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-icon {
    flex-shrink: 0;
}

.feature-card h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

html[data-theme="dark"] .feature-card h4 {
    color: #ffffff;
}

.features-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);

    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.feature-item .feature-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-item h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.feature-item p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

html[data-theme="dark"] .feature-item {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .feature-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

html[data-theme="dark"] .feature-item h4 {
    color: #ffffff;
}

html[data-theme="dark"] .feature-item p {
    color: #d1d5db;
}

.demo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ai-demo {
    text-align: center;
    max-width: 300px;
}

.ai-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
}

.startup-gradient {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3) !important;
}

.ai-avatar-large:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.4);
}

.startup-gradient:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4) !important;
}

.ai-demo h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

html[data-theme="dark"] .ai-demo h4 {
    color: #ffffff;
}

.ai-demo p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1.125rem;
}

html[data-theme="dark"] .ai-demo p {
    color: #d1d5db;
}

.action-button {
    text-align: left;
}

.try-free-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 1.25rem 2.5rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.try-free-btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 40%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 60%);
    transform: translateX(-100%) translateY(-100%);
    transition: all 0.6s ease;
}

.try-free-btn::after {
    content: "→";
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.try-free-btn:hover::before {
    transform: translateX(100%) translateY(100%);
}

.try-free-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.try-free-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

/* Light Blue Secondary Button Style for Startups/Enterprises */
.btn-secondary-light {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.3);
    padding: 0.875rem 1.75rem;
    border-radius: 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: none;
}

html[data-theme="dark"] .btn-secondary-light {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}

.btn-secondary-light:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateY(-2px);
    text-decoration: none;
    color: #1d4ed8;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

html[data-theme="dark"] .btn-secondary-light:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #60a5fa;
    color: #3b82f6;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

html[data-theme="dark"] .feature-marker {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.step-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #3b82f6;
}

html[data-theme="dark"] .step-number {
    color: #60a5fa;
}

.feature-item p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

html[data-theme="dark"] .feature-item p {
    color: #d1d5db;
}

.category-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.btn {
    padding: 0.875rem 1.5rem;

    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 45%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 55%);
    transform: translateX(-100%) translateY(-100%);
    transition: all 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%) translateY(100%);
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .btn-secondary {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

html[data-theme="dark"] .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.2);
}

.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.3),
            transparent);
    margin: 3rem 0;
}

/* About Section styles */
.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 3rem 2rem;
    background: transparent;
    border-radius: 0;
    border: none;
    backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
}

.about-tag {
    display: block;
    margin: 0 auto 1.5rem auto;
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.15),
            rgba(99, 102, 241, 0.1));
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-align: center;
    width: fit-content;
}

.about-tag:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.2),
            rgba(99, 102, 241, 0.15));
}

html[data-theme="dark"] .about-tag {
    color: #60a5fa;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.2),
            rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.about-content h2 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

html[data-theme="dark"] .about-content h2 {
    color: #ffffff;
}

.about-content p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

html[data-theme="dark"] .about-content p {
    color: #ffffff;
}

.about-description {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    min-width: 160px;
}

.stat-item:hover {
    transform: translateY(-8px) scale(1.05);
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.15);
}

html[data-theme="dark"] .stat-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .stat-item:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
    animation: number-pulse 3s ease-in-out infinite;
}

html[data-theme="dark"] .stat-number {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #3b82f6;
}

html[data-theme="dark"] .stat-label {
    color: #9ca3af;
}

html[data-theme="dark"] .stat-item:hover .stat-label {
    color: #60a5fa;
}

/* Contact CTA Section */
.contact-cta-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

html[data-theme="dark"] .contact-cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
}

.contact-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

html[data-theme="dark"] .contact-cta-content h2 {
    color: #ffffff;
}

.contact-cta-content .highlight {
    color: #3b82f6;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="dark"] .contact-cta-content .highlight {
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-cta-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.6;
}

html[data-theme="dark"] .contact-cta-content p {
    color: #d1d5db;
}

.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-buttons .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-buttons .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: 2px solid #3b82f6;
}

.contact-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.contact-buttons .btn-secondary {
    background: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.contact-buttons .btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .contact-buttons .btn-secondary {
    color: #60a5fa;
    border-color: #60a5fa;
}

html[data-theme="dark"] .contact-buttons .btn-secondary:hover {
    background: #60a5fa;
    color: #0f172a;
}

/* Responsive design for CTA section */
@media (max-width: 768px) {
    .contact-cta-section {
        padding: 6rem 0 4rem;
    }

    .contact-cta-content h2 {
        font-size: 2.5rem;
    }

    .contact-cta-content p {
        font-size: 1.125rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-cta-section {
        padding: 4rem 0 3rem;
    }

    .contact-cta-content h2 {
        font-size: 2rem;
    }

    .contact-cta-content p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes number-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .alert-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .solution-categories {
        gap: 2rem;
    }

    .card-layout,
    .card-layout.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .card-layout.reverse .demo-section {
        order: 0;
    }

    .card-layout.reverse .card-content-right {
        order: 1;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .card-title {
        font-size: 2rem;
    }

    .ai-avatar-large {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .alert-cards {
        grid-template-columns: 1fr;
    }

    .warning-card,
    .solution-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .solution-categories {
        gap: 3rem;
    }

    .solution-categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .glass-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }

    .glass-card__title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .glass-card__content {
        padding: 1rem 0;
    }

    .glass-card__warning,
    .glass-card__subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .card-layout,
    .card-layout.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: auto;
    }

    .card-content-left,
    .card-content-right {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ai-avatar-large {
        width: 80px;
        height: 80px;
    }

    .ai-demo {
        max-width: 250px;
    }

    .demo-section {
        padding: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .about-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .card-title {
        font-size: 1.5rem;
    }

    .card-subtitle {
        font-size: 1rem;
    }

    .ai-avatar-large {
        width: 60px;
        height: 60px;
    }

    .ai-demo h4 {
        font-size: 1rem;
    }

    .ai-demo p {
        font-size: 0.875rem;
    }

    .try-free-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* Mobile responsive styles for hero section */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        max-width: 100%;
        margin-top: max(4rem, 10vh);
        text-align: center;
        padding: 0 1rem;
        color: #ffffff !important;
        margin-bottom: 2rem;
    }

    .home-hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem !important;
        text-align: center;
        max-width: 100% !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem;
    }

    .animated-subtitle {
        font-size: 1.4rem !important;
        padding: 0.8rem 1rem !important;
        max-width: 90vw !important;
        width: 90vw !important;
        line-height: 1.5 !important;
        color: #ffffff !important;
        margin: 1.5rem auto !important;
        display: block !important;
        font-weight: 500 !important;
        letter-spacing: 0.3px !important;
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
    }

    /* Override the more specific selectors for mobile */
    .subtitle-sequence p.animated-subtitle.subtitle-1,
    .sdlc-system-section .subtitle-sequence p.animated-subtitle {
        font-size: 1.4rem !important;
        max-width: 90vw !important;
        width: 90vw !important;
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        letter-spacing: 0.2px !important;
    }

    .subtitle-sequence {
        min-height: max(400px, 50vh);
        margin-bottom: max(6rem, 15vh);
        gap: 3rem;
        padding: 0 0.5rem;
        margin-top: max(4rem, 10vh);
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }

    .load-all-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        border-radius: 30px;
        margin-top: 1.5rem;
        /* Use margin instead of fixed positioning */
    }

    .load-all-btn svg {
        width: 14px;
        height: 14px;
    }

    .section-header {
        padding: max(3rem, 8vh) 1rem max(2rem, 5vh);
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: max(2.5rem, 6vh);
        order: -1;
        /* Ensure badge appears first */
    }

    .sdlc-system-section {
        padding: max(4rem, 10vh) 0 max(4rem, 10vh);
        min-height: 100vh;
        min-height: 100dvh;
        /* Dynamic viewport height */
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-video-background {
        object-fit: cover;
        object-position: center center;
    }

    .btn-hero {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .problem-solution-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .problem-side,
    .solution-side {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .productivity-indicator {
        flex-direction: column;
        gap: 1rem;
    }

    .connecting-line {
        display: none;
    }

    /* Improved container spacing for mobile */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
}

/* Extra small screens and safe area handling */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
        margin-top: max(2.5rem, 6vh);
        padding: 0 0.5rem;
    }

    .animated-subtitle {
        font-size: 2.5rem !important;
        padding: 0.8rem 0.3rem !important;
        margin: 2rem auto !important;
        max-width: 100vw !important;
        width: 100vw !important;
        line-height: 1.2 !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
    }

    .subtitle-sequence {
        min-height: max(300px, 35vh);
        margin-bottom: max(4rem, 10vh);
        gap: 2rem;
        margin-top: max(2.5rem, 6vh);
    }

    .section-header {
        padding: max(2rem, 6vh) 0.5rem max(1.5rem, 4vh);
    }

    .container {
        padding: 0 0.75rem;
    }

    .animated-text-container {
        font-size: 1.6rem;
        min-height: 2.4rem;
        padding: 0.5rem 0;
    }
}

/* Mobile responsive animated text */
@media (max-width: 768px) {
    .animated-text-container {
        font-size: 2.2rem;
        height: auto;
        min-height: 3.5rem;
        margin-top: max(2rem, 5vh);
        line-height: 1.2;
        padding: 1rem 0;
    }

    .load-all-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 25px;
        margin-top: 1.2rem;
        /* Use margin instead of fixed positioning */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        margin-top: max(3rem, 8vh);
        padding: 0 0.75rem;
        color: #ffffff !important;
        line-height: 1.3;
        margin-bottom: max(2rem, 5vh);
    }

    .home-hero-subtitle {
        font-size: 0.9rem !important;
        padding: 0 0.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem;
    }

    .animated-subtitle {
        font-size: 1.2rem !important;
        padding: 0.6rem 1rem !important;
        line-height: 1.5 !important;
        color: #ffffff !important;
        margin: 1.2rem auto !important;
        max-width: 85vw !important;
        width: 85vw !important;
        font-weight: 500 !important;
        letter-spacing: 0.2px !important;
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
    }

    /* Override the more specific selectors for smaller mobile screens */
    .subtitle-sequence p.animated-subtitle.subtitle-1,
    .sdlc-system-section .subtitle-sequence p.animated-subtitle {
        font-size: 1.2rem !important;
        max-width: 85vw !important;
        width: 85vw !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        text-align: center !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
        letter-spacing: 0.1px !important;
    }

    .subtitle-sequence {
        min-height: max(340px, 40vh);
        margin-bottom: max(5rem, 12vh);
        gap: 2.5rem;
        padding: 0 0.5rem;
        margin-top: max(3rem, 8vh);
    }

    .animated-text-container {
        font-size: 1.8rem;
        height: auto;
        min-height: 2.8rem;
        margin-top: max(1.5rem, 4vh);
        padding: 0.75rem 0;
    }

    .load-all-btn {
        position: absolute;
        top: 125px;
        right: 10px;
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        border-radius: 20px;
    }

    .load-all-btn svg {
        width: 12px;
        height: 12px;
    }

    .solution-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .glass-card {
        padding: 1rem;
        margin: 0;
    }

    .glass-card__title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .glass-card__warning,
    .glass-card__subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .glass-card__btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .load-all-btn {
        top: 70px !important;
        right: 8px !important;
        font-size: 0.65rem !important;
        padding: 0.4rem 0.8rem !important;
        z-index: 999999999 !important;
        background: rgba(59, 130, 246, 0.95) !important;
        backdrop-filter: blur(8px) !important;
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4) !important;
        color: white !important;
        border-radius: 16px !important;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .sdlc-system-section {
        padding: 2rem 0 2rem;
        min-height: 100vh;
    }

    .section-header {
        padding: 1.5rem 0.5rem 1rem;
    }

    .problem-side,
    .solution-side {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .metric-number {
        font-size: 1.5rem;
    }

    /* Better spacing for very small screens */
    .container {
        padding: 0 0.5rem;
    }
}

/* Extra small screens - 380px and below */
@media (max-width: 380px) {
    .animated-subtitle {
        font-size: 2.8rem !important;
        padding: 0.8rem 0.3rem !important;
        line-height: 1.2 !important;
        margin: 1rem 0 !important;
        font-weight: 600 !important;
        letter-spacing: 0.3px !important;
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .subtitle-sequence {
        min-height: 200px;
        gap: 1.2rem;
        margin-bottom: 2.5rem;
        margin-top: 2rem;
    }

    .hero-title {
        font-size: 1.6rem;
        margin-top: 3rem;
    }

    .animated-text-container {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.floating-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 60px;
    height: 60px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: inherit;
    margin-left: auto;
    /* Transitions for smooth scroll-triggered animations */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Initially hidden - will be shown by scroll */
    visibility: hidden;
    opacity: 0;
    transform: translateX(100px);
}

/* Animation states for scroll-triggered appearance */
.floating-btn.show {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    animation: slideInFromRight 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hidden state for scroll control */
.floating-btn.hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auto-expanded state for scroll-triggered opening */
.floating-btn.auto-expanded {
    width: 180px;
    border-radius: 0;
    padding: 1rem 1.5rem;
    justify-content: flex-start;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframes for slide-in animation */
@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }

    60% {
        opacity: 0.8;
        transform: translateX(-10px) scale(1.05);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.floating-btn.auto-expanded .btn-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: scale(1.1);
}

.floating-btn.auto-expanded .btn-icon svg {
    color: white !important;
}

.floating-btn.auto-expanded .btn-text {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

html[data-theme="dark"] .floating-btn {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover {
    width: 180px;
    border-radius: 0;
    padding: 1rem 1.5rem;
    justify-content: flex-start;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.95);
    transform: translateX(0);
}

/* Ensure hover state works even when auto-expanded */
.floating-btn.auto-expanded:hover {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 1);
}

html[data-theme="dark"] .floating-btn:hover {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.9);
}

html[data-theme="dark"] .btn-courses:hover {
    background: rgba(59, 130, 246, 0.9);
}

html[data-theme="dark"] .btn-testimonials:hover {
    background: rgba(59, 130, 246, 0.9);
}

html[data-theme="dark"] .btn-articles:hover {
    background: rgba(59, 130, 246, 0.9);
}

/* Icon positioning - separate logic for normal vs hover state */
.btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.1s ease;
    opacity: 1;
    visibility: visible;
    /* Normal state: centered in circular button */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-icon svg {
    width: 24px;
    height: 24px;
    color: #3b82f6;
    transition: all 0.1s ease;
    opacity: 1;
    display: block;
    visibility: visible;
}

/* Hover state: position icon on left side of expanded button */
.floating-btn:hover .btn-icon {
    position: relative;
    top: auto;
    left: auto;
    transform: scale(1.1);
}

.floating-btn:hover .btn-icon svg {
    color: white !important;
}

.btn-text {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.1s ease;
}

html[data-theme="dark"] .btn-text {
    color: #f8fafc;
}

.floating-btn:hover .btn-text {
    opacity: 1;
    transform: translateX(0);
    color: white;
}

/* Individual button colors */
.btn-courses .btn-icon svg {
    color: #3b82f6 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-courses:hover {
    background: rgba(59, 130, 246, 0.95);
}

.btn-courses:hover .btn-icon svg {
    color: white;
}

.btn-testimonials .btn-icon svg {
    color: #3b82f6 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-testimonials:hover {
    background: rgba(59, 130, 246, 0.95);
}

.btn-testimonials:hover .btn-icon svg {
    color: white;
}

.btn-articles .btn-icon svg {
    color: #3b82f6;
    opacity: 1;
}

.btn-articles:hover {
    background: rgba(59, 130, 246, 0.95);
}

.btn-articles:hover .btn-icon svg {
    color: white;
}

/* Dark theme adjustments */
html[data-theme="dark"] .btn-icon svg {
    color: #93c5fd;
}

html[data-theme="dark"] .btn-courses .btn-icon svg {
    color: #93c5fd;
}

html[data-theme="dark"] .btn-testimonials .btn-icon svg {
    color: #93c5fd;
}

html[data-theme="dark"] .btn-articles .btn-icon svg {
    color: #93c5fd;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .floating-actions {
        right: 1rem;
    }

    .floating-btn {
        padding: 0.75rem 1rem;
    }

    .btn-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 768px) {

    /* Hide floating buttons completely on mobile */
    .floating-actions {
        display: none !important;
    }

    .floating-btn {
        display: none !important;
    }

    /* But keep Load All button visible on mobile */
    .load-all-btn {
        display: inline-flex !important;
        position: fixed !important;
        top: 80px !important;
        right: 15px !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.7rem !important;
        z-index: 999999999 !important;
        border-radius: 20px !important;
        min-height: 32px !important;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
        background: rgba(59, 130, 246, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        color: white !important;
    }
}

/* COMMENTED OUT: Hide ALL content after hero until animation completes */
/* .post-hero-content {
        display: none !important;
    } */

/* COMMENTED OUT: Show content after animation completes */
/* .post-hero-content.section-visible {
        display: block !important;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.8s ease-out forwards;
    }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    } */

/* Dark theme highlighting for animated text */
html[data-theme="dark"] .animated-text.highlighted {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.4) !important;
}

/* Orientation and viewport handling */
@media (orientation: landscape) and (max-height: 500px) {
    .sdlc-system-section {
        min-height: 100vh;
        height: auto;
        padding: max(2rem, env(safe-area-inset-top) + 1rem) 0 max(2rem, env(safe-area-inset-bottom) + 1rem);
    }

    .subtitle-sequence {
        min-height: auto;
        margin-bottom: 2rem;
        margin-top: 1rem;
        gap: 1rem;
    }

    .hero-title {
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-size: 1.8rem;
    }

    .animated-text-container {
        font-size: 1.5rem;
        min-height: 2rem;
        margin-top: 0.5rem;
    }
}

/* Animated Text Styles */
.animated-text-container {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    height: 4.5rem;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    position: relative;
}

/* Mobile responsive animated text */
@media (max-width: 768px) {
    .animated-text-container {
        font-size: 2.2rem;
        height: 3rem;
        min-height: 3rem;
        margin-top: 3rem;
        line-height: 1.2;
    }

    .animated-text {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .animated-text-container {
        font-size: 1.8rem;
        height: 2.5rem;
        min-height: 2.5rem;
        margin-top: 2.5rem;
        line-height: 1.3;
    }

    .animated-text {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    }

    /* Make Load All button even smaller on very small screens */
    .load-all-btn {
        top: 70px !important;
        right: 10px !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.65rem !important;
        border-radius: 16px !important;
        min-height: 28px !important;
        background: rgba(59, 130, 246, 0.95) !important;
        backdrop-filter: blur(8px) !important;
        box-shadow: 0 3px 10px rgba(59, 130, 246, 0.4) !important;
    }
}

.animated-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    color: #3b82f6;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    line-height: 1.2;
    display: inline-block;
    margin: 0 0.1em;
}

.animated-text.zoom-in {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.animated-text.zoom-out {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
}

.animated-text.final-state {
    transform: translate(-50%, -50%) rotate(-1deg) scale(1) !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: white !important;
    padding: 0.2em 0.6em !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
    border-radius: 0 !important;
}

/* Typed.js fade out effect styles */
.typed-fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Typed.js cursor styles - Comprehensive coverage */
.typed-cursor,
.typed-cursor-blink,
#animatedText .typed-cursor,
.animated-text-container .typed-cursor,
span.typed-cursor,
.typed-cursor::before,
.typed-cursor::after,
[class*="typed"] [class*="cursor"],
[id="animatedText"]>*:last-child {
    color: #3b82f6 !important;
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
    border-left-color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

/* Universal cursor override */
* {
    --typed-cursor-color: #3b82f6;
}

@keyframes typedjsBlink {
    50% {
        opacity: 0.0;
    }
}

.animated-text.fade {
    opacity: 0;
    transform: rotate(-1deg) scale(0.9);
}

html[data-theme="dark"] .animated-text {


    color: #60a5fa;
}

html[data-theme="dark"] .typed-cursor,
html[data-theme="dark"] .typed-cursor-blink,
html[data-theme="dark"] #animatedText .typed-cursor,
html[data-theme="dark"] .animated-text-container .typed-cursor,
html[data-theme="dark"] span.typed-cursor,
html[data-theme="dark"] .typed-cursor::before,
html[data-theme="dark"] .typed-cursor::after,
html[data-theme="dark"] [class*="typed"] [class*="cursor"],
html[data-theme="dark"] [id="animatedText"]>*:last-child {
    color: #60a5fa !important;
    border-left-color: #60a5fa !important;
    border-color: #60a5fa !important;
}

/* Dark theme cursor override */
html[data-theme="dark"] * {
    --typed-cursor-color: #60a5fa;
}

/* Hero Secondary Text */
.hero-secondary {
    font-size: 1.25rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 1200px;
    margin: 3rem auto 0;
    font-weight: 400;
}

html[data-theme="dark"] .hero-secondary {
    color: #d1d5db;
}

/* Learn More Text Styles */
.learn-more-text {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.learn-more-text:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

html[data-theme="dark"] .learn-more-text {
    color: #60a5fa;
}

html[data-theme="dark"] .learn-more-text:hover {
    color: #93c5fd;
}

/* Updated Solution Categories Grid */
.solution-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.category-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 0;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: none;
}

.category-card .card-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.category-card .card-content {
    text-align: left;
}

.category-card .warning-text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.category-card .card-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.category-card .action-button {
    text-align: center;
    margin-top: 2rem;
}

html[data-theme="dark"] .category-card {
    background: transparent;
    border: none;
}

html[data-theme="dark"] .category-card:hover {
    box-shadow: none;
}

/* Update hero section spacing */
.section-header {
    padding: 4rem 0;
}

.hero-title {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 1200px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .solution-categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
        /* Remove forced visibility to allow animations to work on mobile */
        margin: 1.5rem auto !important;
        line-height: 1.3 !important;
        max-width: 95% !important;
        text-align: center !important;
        clear: both !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .hero-title-highlight {
        color: #60a5fa !important;
        font-weight: 800 !important;
    }

    .hero-secondary-text {
        font-size: 0.9rem !important;
        color: #ffffff !important;
        text-align: center;
        margin: 1rem auto 2rem auto !important;
        max-width: 90% !important;
        line-height: 1.4 !important;
        font-weight: 500;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
        /* Remove forced visibility to allow animations to work on mobile */
        clear: both !important;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .sdlc-system-section {
        min-height: 160vh;
        height: auto;
        padding: 6rem 0;
    }

    .section-header {
        padding: 2rem 1rem;
        text-align: center;
        position: relative;
        z-index: 1;
    }

    .subtitle-sequence {
        min-height: auto;
        margin-bottom: 1rem;
        padding: 1rem 0;
    }

    .animated-subtitle {
        opacity: 1 !important;
        transform: translateY(0) !important;
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
        color: #ffffff !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
        max-width: 95% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    .category-card {
        padding: 2rem 1.5rem;
    }

    .category-card .card-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .solution-categories-section {
        margin-top: 3rem;
        padding: 2rem 0;
    }

    .glass-card {
        margin-bottom: 2rem;
    }

    .glass-card__inner {
        padding: 1.5rem;
    }

    .glass-card__title {
        margin-bottom: 1rem;
        font-size: 1.5rem !important;
    }

    .glass-card__warning,
    .glass-card__subtitle {
        margin-bottom: 1rem;
        line-height: 1.6 !important;
    }

    .load-all-btn {
        margin: 2rem auto;
        display: block;
    }

    /* Prevent animated text overlapping on mobile */
    .animated-text-container {
        margin: 0.5rem 0 !important;
        display: block !important;
        text-align: center !important;
    }

    .animated-text {
        display: inline-block !important;
        margin: 0.5rem 0 !important;
    }

    /* Ensure proper stacking order */
    .hero-title,
    .hero-secondary-text,
    .animated-subtitle {
        position: relative !important;
        z-index: 2 !important;
    }
}

/* Glass Morphism Solution Categories for Home */
.glass-card {
    /* Perfect glass morphism effect */
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 2rem;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.glass-card__inner {
    padding: 2.5rem;
    position: relative;
}

.glass-card__badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.glass-card__badge-text {
    background: rgba(59, 130, 246, 0.8);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: none;
}

.glass-card__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.glass-card__highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 0.2em 0.6em;
    display: inline-block;
    margin: 0 0.1em;
    font-weight: 800;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.glass-card__content {
    text-align: center;
}

.glass-card__warning {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

.glass-card__warning .text-red {
    color: #dc2626 !important;
    font-weight: 700 !important;
    text-shadow: none;
}

.glass-card__subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.text-red {
    color: #dc2626 !important;
    font-weight: 700 !important;
}

.glass-card__learn-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.glass-card__learn-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.glass-card__action {
    margin-top: 2rem;
    text-align: center;
}

.glass-card__btn {
    background: rgba(59, 130, 246, 0.8);
    color: #ffffff;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-shadow: none;
}

.glass-card__btn:hover {
    background: rgba(59, 130, 246, 0.9);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

@media (max-width: 768px) {
    .glass-card__title {
        font-size: 2rem;
    }

    .glass-card__warning {
        font-size: 1.1rem;
    }

    .glass-card__subtitle {
        font-size: 1rem;
    }
}.terminal-container[data-astro-cid-xhaoqxbd]{background:rgba(255,255,255,0.15);border:1px solid rgba(255,255,255,0.2);border-radius:15px;padding:2rem;box-shadow:0 8px 32px rgba(0,0,0,0.1),0 2px 16px rgba(0,0,0,0.05);backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px);max-width:900px;margin:0 auto 2rem;position:relative;min-height:120px;display:flex;align-items:center;justify-content:center;opacity:0;transform:translateY(30px);transition:all 0.8s cubic-bezier(0.4,0,0.2,1)}.terminal-container[data-astro-cid-xhaoqxbd].visible{opacity:1;transform:translateY(0)}.terminal-container[data-astro-cid-xhaoqxbd].removing{opacity:0;transform:translateY(-30px);transition:all 0.5s ease}html[data-theme=dark] .terminal-container[data-astro-cid-xhaoqxbd]{background:rgba(15,23,42,0.25);border:1px solid rgba(255,255,255,0.1);box-shadow:0 8px 32px rgba(0,0,0,0.3),0 2px 16px rgba(59,130,246,0.1)}.terminal-header[data-astro-cid-xhaoqxbd]{position:absolute;top:0.8rem;left:1rem;display:flex;gap:0.5rem}.terminal-dot[data-astro-cid-xhaoqxbd]{width:12px;height:12px;border-radius:50%}.terminal-dot[data-astro-cid-xhaoqxbd].red{background:#ff5f56}.terminal-dot[data-astro-cid-xhaoqxbd].yellow{background:#ffbd2e}.terminal-dot[data-astro-cid-xhaoqxbd].green{background:#27ca3f}.typed-subtitle[data-astro-cid-xhaoqxbd]{color:#ffffff!important;font-size:1.8rem;line-height:1.6;font-family:"Courier New","Monaco",monospace;font-weight:700;text-align:left;width:100%;padding-top:1rem;text-shadow:2px 2px 4px rgba(0,0,0,0.8)}.terminal-line[data-astro-cid-xhaoqxbd]{color:#ffffff!important;font-size:1.8rem;line-height:1.6;font-family:"Courier New","Monaco",monospace;font-weight:700;text-align:left;margin-bottom:0.5rem;text-shadow:2px 2px 4px rgba(0,0,0,0.8);display:block;width:100%}html[data-theme=dark] .typed-subtitle[data-astro-cid-xhaoqxbd]{color:#ffffff!important}html[data-theme=dark] .terminal-line[data-astro-cid-xhaoqxbd]{color:#ffffff!important}.typed-cursor[data-astro-cid-xhaoqxbd]{color:#ffffff!important;opacity:1;animation:typedjsBlink 0.7s infinite;font-weight:bold;font-size:1.8rem}@keyframes typedjsBlink{50%{opacity:0.0}}html[data-theme=dark] .typed-cursor[data-astro-cid-xhaoqxbd]{color:#ffffff!important}.final-subtitle-container[data-astro-cid-xhaoqxbd]{max-width:900px;margin:0 auto 2rem;opacity:0!important;transform:translateY(30px);transition:all 0.8s cubic-bezier(0.4,0,0.2,1);display:none!important}.final-subtitle-container[data-astro-cid-xhaoqxbd].visible{opacity:1!important;transform:translateY(0);display:block!important}.final-subtitle[data-astro-cid-xhaoqxbd]{font-size:1.6rem;color:#ffffff;line-height:1.7;font-weight:500;text-shadow:1px 1px 3px rgba(0,0,0,0.8);text-align:center;padding:1rem 0;margin:0}.final-subtitle[data-astro-cid-xhaoqxbd] .highlight[data-astro-cid-xhaoqxbd]{background:linear-gradient(135deg,#3b82f6 0%,#1d4ed8 100%);color:white;padding:0.2em 0.6em;display:inline-block;margin:0 0.1em;font-weight:800;border-radius:8px;box-shadow:0 4px 15px rgba(59,130,246,0.3);transform:rotate(-1deg);transition:all 0.3s ease;text-shadow:none}html[data-theme=dark] .final-subtitle[data-astro-cid-xhaoqxbd]{color:#ffffff}html[data-theme=dark] .final-subtitle[data-astro-cid-xhaoqxbd] .highlight[data-astro-cid-xhaoqxbd]{background:linear-gradient(135deg,#60a5fa 0%,#3b82f6 100%);color:white;box-shadow:0 4px 15px rgba(96,165,250,0.4)}.load-all-container[data-astro-cid-xhaoqxbd]{margin-top:5rem;margin-bottom:3rem;text-align:center;padding:0 2rem}.subtitle-sequence[data-astro-cid-xhaoqxbd]{display:none!important}.animated-subtitle[data-astro-cid-xhaoqxbd]{display:none!important}