/* Custom Vanilla CSS Design System for Shahid Studio - Light Theme */

:root {
    /* Color Palette - White/Light Theme */
    --bg-dark: #ffffff; /* Main bright white background */
    --bg-darker: #f8fafc; /* Alternate section light slate background */
    --surface-dark: rgba(255, 255, 255, 0.8); /* Glassmorphic light cards */
    --surface-dark-solid: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08); /* Soft slate border */
    
    --primary: #f97316; /* Warm Orange */
    --primary-hover: #ea580c;
    --secondary: #6366f1; /* Royal Indigo */
    --secondary-hover: #4f46e5;
    
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 700 */
    --text-muted: #64748b; /* Slate 500 */
    
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.06);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.06);
    
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
    --shadow-glow: 0 10px 30px rgba(249, 115, 22, 0.12);
    
    /* Animation Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

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

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.text-orange { color: var(--primary); }
.text-purple { color: var(--secondary); }
.text-red { color: var(--danger); }
.text-green { color: var(--success); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-md {
    padding: 12px 24px;
    font-size: 15px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #f97316 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 32px;
    width: auto;
    display: block;
    transition: transform var(--transition-fast);
}

.nav-logo-img:hover {
    transform: scale(1.03);
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

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

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

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

/* Mobile Menu Modal Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section Refactoring for Two Columns */
.hero {
    position: relative;
    padding: 160px 0 0; /* 0 bottom padding so the image touches the section below */
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: stretch;
}

.hero-container {
    max-width: 1350px;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, rgba(249, 115, 22, 0.02) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-flex-wrapper {
    display: flex;
    align-items: flex-end; /* Align the columns to the bottom */
    justify-content: space-between;
    gap: 48px;
    width: 100%;
}

.hero-content {
    flex: 1; /* Left column has equal flex weight */
    max-width: 600px;
    text-align: left;
    padding-bottom: 120px; /* Increase bottom padding so text is centered relative to the taller image */
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.tagline-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.tagline-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(34px, 5.5vw, 56px);
    line-height: 1.15;
    margin-bottom: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(135deg, #0f172a 30%, #ea580c 70%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.trust-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

/* Hero Portrait Image Column */
.hero-image-wrapper {
    flex: 1.2; /* Make the right column larger to fit a bigger image */
    height: 850px; /* Much taller container to fill the upper space */
    position: relative;
    display: flex;
    align-items: flex-end; /* Push image to the bottom */
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hero-portrait-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 10%);
    width: 600px; /* Larger glow behind larger image */
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: slowPulse 8s ease-in-out infinite alternate;
}

@keyframes slowPulse {
    0% { transform: translate(-50%, 10%) scale(0.95); opacity: 0.8; }
    100% { transform: translate(-50%, 10%) scale(1.05); opacity: 1; }
}

.hero-portrait-img {
    position: relative;
    z-index: 2;
    height: 850px; /* Large photo size to occupy the blank space above */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    display: block;
    margin-bottom: -5px; /* Sit flush on the bottom edge and overlap bottom section border seamlessly */
    vertical-align: bottom;
}

/* Animated Stats Slider Section (Dark Theme Accent Banner) */
.stats-slider-section {
    padding: 24px 0;
    background-color: #0c0d14; /* Pure dark slate background */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-slider-wrapper {
    position: relative;
    width: 100%;
}

.stats-slider {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.stats-slide-track {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scrollStats 25s linear infinite;
    flex-shrink: 0;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stats-label {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.stats-divider {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.15);
    font-weight: 300;
}

@keyframes scrollStats {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Technology Logo Slider styling (Moved Below Case Study) */
.tech-slider-section {
    padding: 30px 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.tech-slider-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.tech-slider-wrapper {
    position: relative;
    width: 100%;
}

.tech-slider {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
}

.tech-slide-track {
    display: flex;
    gap: 40px;
    animation: scroll 25s linear infinite;
    flex-shrink: 0;
}

.tech-slide {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--surface-dark-solid);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
}

.tech-slide span {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.tech-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Comparison Section Styles */
.comparison-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.comparison-detail-card {
    position: relative;
    overflow: hidden;
}

.premium-shadow-border {
    border: 2px solid var(--primary) !important;
    box-shadow: var(--shadow-glow) !important;
}

.badge-premium-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comp-title {
    font-size: 22px;
    margin-bottom: 24px;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comp-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comp-item::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    margin-top: 8px;
    flex-shrink: 0;
}

.comp-item.fail::before {
    content: "✕";
    color: var(--danger);
    font-size: 11px;
    font-weight: 800;
    background-color: transparent;
    border-radius: 0;
    margin-top: 2px;
}

.comp-item.success {
    color: var(--text-primary);
    font-weight: 600;
}

.comp-item.success::before {
    content: "✓";
    color: var(--success);
    font-size: 13px;
    font-weight: 800;
    background-color: transparent;
    border-radius: 0;
    margin-top: 1px;
}

/* Technology Comparison Table Styles */
.tech-comparison-wrapper {
    margin-top: 80px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    background-color: var(--bg-darker);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.tech-table-title {
    font-size: 20px;
    margin-bottom: 32px;
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
}

.tech-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.tech-table th {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    padding: 16px 24px;
    border-bottom: 2px solid var(--border-color);
}

.tech-table td {
    padding: 18px 24px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.metric-name {
    font-weight: 600;
    color: var(--text-primary);
}

.metric-fail {
    color: var(--danger);
    font-weight: 500;
}

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

.metric-success {
    color: var(--success);
    font-weight: 600;
}

.highlight-th {
    color: var(--primary) !important;
}

.highlight-cell {
    background-color: rgba(249, 115, 22, 0.02);
    font-weight: 700 !important;
    border-left: 1px solid rgba(249, 115, 22, 0.1);
    border-right: 1px solid rgba(249, 115, 22, 0.1);
}

/* About Section Styles */
.about-section {
    padding: 60px 0;
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-content {
    flex: 1.2;
}

.about-title {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 20px;
}

.about-lead {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-item {
    display: flex;
    gap: 16px;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.about-feature-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.about-feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.about-visual {
    flex: 0.8;
    background-color: var(--surface-dark-solid);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.about-stat-box {
    text-align: center;
    padding: 32px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.02) 0%, rgba(99, 102, 241, 0.02) 100%);
    border: 1px dashed rgba(249, 115, 22, 0.3);
}

.about-stat-number {
    font-family: 'Outfit';
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 12px;
}

.about-stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stacking Portfolio Showcase Section (Sticky Stack Deck) */
.portfolio-stacking-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
}

.portfolio-stack-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
    padding-bottom: 60px;
}

.project-stack-card {
    position: sticky;
    top: calc(100px + 24px * var(--index));
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-premium);
    min-height: 480px;
    display: flex;
    align-items: center;
    gap: 48px;
    transform-origin: top center;
    transition: transform var(--transition-medium);
}

.project-stack-info {
    flex: 1;
    max-width: 450px;
}

.project-stack-title {
    font-size: 26px;
    margin-bottom: 16px;
}

.project-stack-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.project-stack-metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.stack-metric strong {
    font-family: 'Outfit';
    font-size: 22px;
    color: var(--text-primary);
    display: block;
}

.stack-metric span {
    font-size: 11px;
    color: var(--text-muted);
}

.project-stack-mockup {
    flex: 1.2;
    background-color: #0f1015;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.mockup-img-container {
    height: 300px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.mockup-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(0);
    /* Super premium interactive scroll on hover! */
    transition: transform 15s ease-in-out;
}

.mockup-img-container:hover img {
    /* Translate image upwards based on hover to scroll the screenshot */
    transform: translateY(calc(-100% + 300px));
}

/* Staggered Vertical Scrolling Testimonials Section */
.testimonials {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 60px 0;
}

.testimonials-grid-container {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    height: 680px; /* Fixed viewport window height */
    overflow: hidden;
    position: relative;
    /* Elegant gradient fade for upper and lower bounds */
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.testimonials-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: scrollVertical 18s linear infinite;
}

.testimonials-col.reverse {
    animation: scrollVerticalReverse 22s linear infinite;
}

.testimonials-col.slow {
    animation: scrollVertical 28s linear infinite;
}

.testimonial-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05); /* Match props: shadow-lg shadow-primary/10 */
    transition: all var(--transition-fast);
}

.testimonial-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1);
}

.test-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
}

.test-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.test-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    font-family: 'Outfit';
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-meta h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.test-meta span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

@keyframes scrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scrollVerticalReverse {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

/* Section General */
section {
    padding: 60px 0;
    position: relative;
}

.section-badge {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    margin-bottom: 20px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 36px;
}

/* Cards & Styling */
.card {
    background-color: var(--surface-dark-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.card:hover {
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: var(--shadow-premium);
    transform: translateY(-4px);
}

.card-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all var(--transition-medium);
}

.card:hover .card-icon-wrapper {
    border-color: rgba(15, 23, 42, 0.15);
    background: rgba(15, 23, 42, 0.04);
}

.card-icon {
    width: 28px;
    height: 28px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Problem Cards Special Styling */
.problem-card {
    border-top: 3px solid transparent;
}

.problem-card:nth-child(1) { border-top-color: var(--primary); }
.problem-card:nth-child(2) { border-top-color: var(--secondary); }
.problem-card:nth-child(3) { border-top-color: var(--danger); }

/* Case Study / Slider */
.case-study {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.slider-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
}

.slider-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-before {
    z-index: 1;
}

.slider-after {
    z-index: 2;
    width: 50%; /* JS will control this */
    border-right: 1px solid transparent;
}

.mockup-content {
    width: 1200px; /* Force width matching container size for seamless layering */
    height: 100%;
    background-color: #f8fafc; /* Very light slate for premium contrast comparison */
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
}

/* Before mockup styling */
.mockup-content.header-red {
    background-color: #ffffff;
}

.mockup-browser-header {
    background-color: #f1f5f9;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.browser-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.browser-dot.red { background-color: #ef4444; }
.browser-dot.yellow { background-color: #f59e0b; }
.browser-dot.green { background-color: #10b981; }

.browser-url {
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 4px;
    padding: 4px 16px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
    flex-grow: 1;
    max-width: 500px;
    text-align: center;
}

.mockup-img-wrapper {
    height: calc(100% - 39px); /* Height minus browser header */
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
}

.slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Slider Handle styling */
.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--primary);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    transform: translateX(-50%);
}

.slider-handle-line {
    width: 1px;
    background-color: rgba(249, 115, 22, 0.4);
    flex-grow: 1;
}

.slider-handle-circle {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.slider-arrows {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 0 8px;
    align-items: center;
}

.label-before-tag { color: var(--danger); }
.label-after-tag { color: var(--success); }
.label-drag-hint {
    color: var(--text-muted);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* The Process Timeline styling */
.timeline {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item {
    position: relative;
    padding-top: 50px;
}

.timeline-num {
    position: absolute;
    top: -20px;
    left: 32px;
    font-size: 72px;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    background: linear-gradient(180deg, rgba(249, 115, 22, 0.15) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.cta-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.cta-banner-content {
    flex-grow: 1;
    max-width: 600px;
}

.cta-banner-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.cta-banner-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* FAQ Section styling */
.faq {
    padding: 60px 0;
    background-color: var(--bg-dark);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--surface-dark-solid);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.02);
}

.faq-item:hover {
    border-color: rgba(15, 23, 42, 0.15);
    box-shadow: var(--shadow-premium);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    gap: 24px;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 32px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    border-top-color: var(--border-color);
}

/* Footer Section styling */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
}

.footer-cta {
    max-width: 800px;
    margin: 0 auto 60px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.03) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
}

.footer-cta h2 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-cta p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.footer-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 32px;
    width: auto;
    display: block;
    margin-bottom: 20px;
    transition: transform var(--transition-fast);
}

.footer-logo-img:hover {
    transform: scale(1.03);
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 420px;
}

.footer-perf-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--success-bg);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--success);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

.footer-col-links {
    display: flex;
    flex-direction: column;
}

.footer-header {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-item {
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-link-item:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-col-profile {
    display: flex;
    flex-direction: column;
}

.profile-card {
    background-color: rgba(15, 23, 42, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    transition: all var(--transition-fast);
}

.profile-card:hover {
    background-color: #ffffff;
    box-shadow: var(--shadow-premium);
    border-color: rgba(15, 23, 42, 0.12);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header h4 {
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.profile-header span {
    font-size: 11px;
    color: var(--text-muted);
}

.profile-bio {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0077b5; /* LinkedIn Blue */
    font-size: 12px;
    font-weight: 600;
}

.profile-link:hover {
    color: #008cd7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-link {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-legal-link:hover {
    color: var(--text-secondary);
}

.legal-separator {
    color: var(--border-color);
    font-size: 10px;
}

/* Modal styling */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-medium);
}

.modal-wrapper.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-medium);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.modal-wrapper.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-flex-wrapper {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .hero-content {
        text-align: center;
        padding-bottom: 24px !important;
    }
    .hero-ctas {
        justify-content: center;
    }
    .trust-bar {
        justify-content: center;
    }
    .hero-image-wrapper {
        flex: 0 0 auto;
        height: auto;
        width: 100%;
        max-width: 480px;
        margin-top: 24px;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    .hero-portrait-img {
        width: 100% !important;
        height: auto !important;
        max-width: 450px;
        margin: 0 auto -5px auto !important;
        display: block;
    }
    .hero-portrait-glow {
        width: 320px;
        height: 320px;
    }
    .about-grid {
        flex-direction: column;
        gap: 40px;
    }
    .about-content {
        width: 100%;
    }
    .about-visual {
        width: 100%;
        max-width: 480px;
    }
    .project-stack-card {
        position: relative !important;
        top: auto !important;
        min-height: auto !important;
        flex-direction: column;
        padding: 24px !important;
        gap: 24px !important;
        transform: none !important;
    }
    .project-stack-info {
        max-width: 100%;
    }
    .mockup-img-container {
        height: 200px !important;
    }
    .mockup-img-container:hover img {
        transform: translateY(calc(-100% + 200px)) !important;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .testimonials-col, .testimonials-col.reverse, .testimonials-col.slow {
        animation: none;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
    
    .nav-links, .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 0 !important;
    }
    
    .slider-comparison {
        height: auto; /* Allow aspect-ratio to control height on mobile */
    }
    
    .mockup-browser-header {
        padding: 6px 12px;
    }
    
    .browser-url {
        padding: 2px 8px;
        font-size: 10px;
    }
    
    .slider-labels {
        font-size: 11px;
    }
    
    .project-stack-card {
        padding: 20px !important;
        gap: 16px !important;
    }
    
    .mockup-img-container {
        height: 160px !important;
    }
    
    .mockup-img-container:hover img {
        transform: translateY(calc(-100% + 160px)) !important;
    }
    
    .faq-question {
        padding: 20px 24px;
        font-size: 16px;
    }
    .faq-answer {
        padding: 0 24px 20px;
        font-size: 13px;
    }
    
    .cta-banner {
        padding: 24px;
        text-align: center;
        justify-content: center;
    }
    
    .cta-banner-content {
        max-width: 100%;
    }
    .tech-comparison-wrapper {
        padding: 24px;
    }
    
    /* Global mobile optimization rules */
    section {
        padding: 40px 0 !important;
    }
    
    .section-subtitle {
        margin-bottom: 24px !important;
    }
    
    .stats-slider-section {
        padding: 16px 0 !important;
    }
    
    .stats-value {
        font-size: 20px !important;
    }
    
    .stats-label {
        font-size: 10px !important;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-logo-img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* Scroll Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delayed {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up-delayed {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
