/* Modern React/Tailwind Variables mapped to Custom CSS */
:root {
  --background: #ffffff;
  --foreground: #09090b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --border: #e4e4e7;
  --card: #ffffff;
  /* --secondary: #f2f6fa; */
  --secondary-foreground: #18181b;
  --accent: #F7931E;
  --accent-light: rgba(247, 147, 30, 0.1);
  --destructive: #ef4444;
}

body .ts-wrapper {
  background-color: var(--background);
  color: var(--foreground);
  overflow-x: hidden;
}

/* Utilities */
.ts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.aspect-video { aspect-ratio: 16 / 9; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }

/* typography */
.text-muted-foreground { color: var(--muted-foreground); }
.text-foreground { color: var(--foreground); }

/* Buttons */
.btn-ui {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-ui-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}
.btn-ui-primary {
    background: var(--foreground);
    color: var(--background);
}
.btn-ui-primary:hover {
    background: rgba(9,9,11,0.9);
    color: var(--background);
}
.btn-ui-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}
.btn-ui-outline:hover {
    background: var(--secondary);
}

/* Sections */
.ts-hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}
.ts-bg-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background: linear-gradient(to bottom right, var(--accent), transparent);
    pointer-events: none;
}
.ts-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.ts-badge-primary {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--accent-light);
    color: var(--accent);
}
.ts-badge-secondary {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.ts-hero-title-container {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.ts-hero-icon-box {
    padding: 1rem;
    border-radius: 1rem;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.ts-hero-title {
    font-size: 3.75rem; /* 60px */
    line-height: 1;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ts-hero-tagline {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 500;
}
.ts-hero-desc {
    font-size: 1.25rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}
.ts-hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.ts-hero-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}
.ts-hero-info-item i {
    font-size: 1.25rem;
}

.ts-hero-image-wrapper {
    padding-bottom: 6rem;
}
.ts-hero-img-box {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: var(--muted);
}
.ts-hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ts-hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, var(--accent), transparent);
    opacity: 0.1;
    pointer-events: none;
}

/* Shared Titles */
.ts-section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}
.ts-section-subtitle {
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Results */
.ts-results {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: #f2f6fa;
}
.ts-results-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media(min-width: 640px) { .ts-results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(min-width: 1024px) { .ts-results-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ts-result-card {
    background: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    text-align: center;
}
.ts-result-icon {
    display: inline-flex;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
.ts-result-val {
    font-size: 3rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.ts-result-label {
    font-weight: 500;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}
.ts-result-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Challenge & Solution */
.ts-chal-sol {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: #f2f6fa;
}
.ts-chal-grid {
    display: grid;
    gap: 3rem;
}
@media(min-width: 1024px) { .ts-chal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }
.ts-chal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.ts-chal-num-1 {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--destructive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}
.ts-chal-num-2 {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}
.ts-chal-title {
    font-size: 1.875rem;
    font-weight: 700;
}
.ts-chal-text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--muted-foreground);
}

/* Approach */
.ts-approach {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ts-approach-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ts-approach-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f2f6fa;
}
.ts-approach-icon {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}
.ts-approach-text {
    color: var(--foreground);
}

/* Timeline */
.ts-timeline {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ts-timeline-wrapper {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
}
.ts-timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    display: none;
}
@media (min-width: 768px) { .ts-timeline-line { display: block; } }
.ts-timeline-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.ts-timeline-item {
    display: flex;
    gap: 1.5rem;
}
@media (min-width: 768px) { .ts-timeline-item { gap: 2rem; } }
.ts-timeline-n {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.ts-timeline-card {
    flex: 1;
    background: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
}
.ts-timeline-c-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.ts-timeline-c-title {
    font-size: 1.25rem;
    font-weight: 700;
}
.ts-timeline-c-dur {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: #f2f6fa;
    color: var(--secondary-foreground);
    font-size: 0.875rem;
    font-weight: 500;
}
.ts-timeline-c-desc {
    color: var(--muted-foreground);
}

/* Features */
.ts-features {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: #f2f6fa;
}
.ts-features-grid {
    display: grid;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}
@media(min-width: 640px) { .ts-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(min-width: 1024px) { .ts-features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ts-feature-item {
    background: var(--card);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.ts-feature-item:hover {
    border-color: rgba(247, 147, 30, 0.5);
}
.ts-feature-item p {
    font-weight: 500;
    color: var(--foreground);
    margin: 0;
}

/* Gallery */
.ts-gallery {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ts-gal-grid {
    display: grid;
    gap: 1.5rem;
}
@media(min-width: 768px) { .ts-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ts-gal-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}
.ts-gal-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.ts-gal-item:hover img {
    transform: scale(1.05);
}
.ts-gal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.ts-gal-item:hover .ts-gal-overlay {
    opacity: 0.4;
}

/* Tech Stack */
.ts-tech {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ts-tech-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 48rem;
    margin: 0 auto;
}
.ts-tech-item {
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 1.125rem;
    background: var(--accent-light);
    color: var(--accent);
}

/* Testimonial */
.ts-testimonial {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ts-test-card {
    position: relative;
    background: var(--card);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
    max-width: 56rem;
    margin: 0 auto;
}
@media(min-width: 1024px) { .ts-test-card { padding: 3rem; } }
.ts-test-quote-ic {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.5rem;
    display: flex;
}
[dir="rtl"] .ts-test-quote-ic { left: auto; right: 2rem; }

.ts-test-text {
    font-size: 1.25rem;
    color: var(--foreground);
    font-weight: 500;
    line-height: 1.75;
    margin-bottom: 2rem;
    padding-top: 1rem;
}
@media(min-width: 1024px) { .ts-test-text { font-size: 1.5rem; } }
.ts-test-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.ts-test-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}
.ts-test-name {
    font-weight: 700;
    color: var(--foreground);
    font-size: 1.125rem;
    margin: 0;
}
.ts-test-role {
    color: var(--muted-foreground);
    margin: 0;
}

/* CTA */
.ts-cta {
    padding-top: 6rem;
    padding-bottom: 6rem;
}
.ts-cta-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--foreground);
}
@media(min-width: 1024px) { .ts-cta-title { font-size: 2.25rem; } }
.ts-cta-desc {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}
.ts-cta-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

