/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* CSS Variables for Light Mode (Default) */
:root {
    --bg-color: #ffffff;
    --text-color: #333;
    --text-color-secondary: #64748b;
    --text-color-heading: #1e293b;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --section-bg-alt: #f8fafc;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(35, 35, 35);
    --nav-text: #f2f2f6;
    --nav-hover: #2563eb;
    --mobile-menu-bg: rgba(0, 0, 0, 0.98);
    --problem-solution-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --design-process-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --launch-marketing-bg: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    --business-impact-bg: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    --team-process-bg: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    --recognition-bg: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    --future-vision-bg: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    --what-controls-btn-bg: #dddde1;
    --what-controls-btn-bg-hover: #afcfe1;
    --nav-logo-color: #f2f2f6;
}

/* Dark Mode Variables */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --text-color: #e2e8f0;
        --text-color-secondary: #94a3b8;
        --text-color-heading: #f1f5f9;
        --card-bg: #1e293b;
        --card-shadow: rgba(0, 0, 0, 0.3);
        --section-bg-alt: #1e293b;
        --header-bg: rgba(15, 23, 42, 0.95);
        --header-border: rgba(255, 255, 255, 0.1);
        --nav-text: #e2e8f0;
        --nav-hover: #60a5fa;
        --nav-sublogo-color: #fff;
        --nav-sublogo-color: #fff;
        --mobile-menu-bg: rgba(0, 0, 0, 0.98);
        --problem-solution-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        --design-process-bg: linear-gradient(135deg, #78350f 0%, #92400e 100%);
        --launch-marketing-bg: linear-gradient(135deg, #581c87 0%, #6b21a8 100%);
        --business-impact-bg: linear-gradient(135deg, #14532d 0%, #166534 100%);
        --team-process-bg: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
        --recognition-bg: linear-gradient(135deg, #78350f 0%, #92400e 100%);
        --future-vision-bg: linear-gradient(135deg, #0c4a6e 0%, #075985 100%);
        --what-controls-btn-bg: #fff;
        --what-controls-btn-bg-hover: #c0dff1;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav {
    background-color: var(--nav-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--header-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.25rem;
    color: var(--nav-logo-color);
    font-family: serif;
}
 .sub-logo {
    font-size: 1rem;
    font-weight: 400;
    color: var(--nav-sublogo-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--nav-text);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--nav-hover);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--nav-text);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    /*    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */ /* Purples */
    background: linear-gradient(45deg, rgba(1, 186, 239, 1.0), rgb(11, 79, 108, 1.0));
    color: white;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5rem; 
    margin: 0;
}

.hero-title img { /* hero-icon*/
  max-height: 4rem;
  border: 2.2px solid #fff;
  border-radius: 1.3rem;
  display: block;
  margin-right: 0.5rem;
  margin-bottom: 0.9rem;
}



.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-badge {
    display: inline-block;
    /*  background: rgba(255, 255, 255, 0.2);  */
    background: rgba(220, 240, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-download-button {
    display: inline-block;
    background: rgba(0, 0, 0, 1);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-download-button-wrapper {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    width: 40%;
}

.hero-download-button-wrapper img {
    width: 100%;
}

.case-study-tag-wrapper {
    display: inline-block;
    font-weight: 500;
    backdrop-filter: blur(10px);
    width: 40%;
}

.case-study-tag-wrapper img {
    width: 100%;
}

.phone-mockup {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-screen {
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.app-preview {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.contact-info .name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.contact-info .phone {
    color: #666;
    font-size: 0.9rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

.section:nth-child(even) {
    background: var(--section-bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color-heading);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-color-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color-heading);
}

.content-text p {
    font-size: 1.125rem;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--text-color);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Overview Section */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.overview-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.overview-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color-heading);
}

.overview-card p {
    color: var(--text-color-secondary);
    line-height: 1.6;
}

/* Design Section */
.design-showcase {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.design-element {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: float 3s ease-in-out infinite;
}

.design-element-2 {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.design-element-3 {
    animation-delay: 1s;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Accessibility Section */
.accessibility-showcase {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.accessibility-icon {
    font-size: 4rem;
    animation: pulse 2s ease-in-out infinite;
}

.accessibility-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.accessibility-icon:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Launch Section */
.launch-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.world-map {
    position: relative;
    width: 300px;
    height: 200px;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
    border-radius: 20px;
    margin: 0 auto;
    background-image: url("../../img_store/case-study/known-names/world-map.png");
    background-repeat: no-repeat;
    background-size: 100% 100%; /* formerly: contain; */
    background-position: left top;
}

.map-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    background: red;
    border-radius: 50%;
    animation: mapPulse 2s ease-in-out infinite;
}

.map-dot-01 { top: 29%; left: 20%; animation-delay: 0.25s; } /* en-CA - Canada */
.map-dot-02 { top: 32%; left: 30%; animation-delay: 2.00s; } /* fr-CA - Quebec */

.map-dot-03 { top: 38%; left: 24%; animation-delay: 0.50s; } /* en-US - United States */
.map-dot-04 { top: 44%; left: 20%; animation-delay: 1.75s; } /* es-MX - Mexico */

.map-dot-05 { top: 58%; left: 34%; animation-delay: 0.75s; } /* pt-BR - Brazil*/
.map-dot-06 { top: 24%; left: 62%; animation-delay: 1.50s; } /* ru - Russia */

.map-dot-07 { top: 64%; left: 81%; animation-delay: 1.00s; } /* en-AUS - Australia */
.map-dot-08 { top: 33%; left: 48%; animation-delay: 1.25s; } /* Europe cluster */

.map-dot-09 { top: 30%; left: 46%; animation-delay: 1.25s; } /* Europe cluster */
.map-dot-10 { top: 36%; left: 47%; animation-delay: 1.00s; } /* Europe cluster */

.map-dot-11 { top: 33%; left: 51%; animation-delay: 1.50s; } /* Europe cluster */
.map-dot-12 { top: 23%; left: 50%; animation-delay: 0.75s; } /* Europe cluster: Sweden */

.map-dot-13 { top: 46%; left: 64%; animation-delay: 1.75s; } /* hi - India */
.map-dot-14 { top: 64%; left: 51%; animation-delay: 0.25s; } /* en-SA - South Africa */

.map-dot-15 { top: 41%; left: 57%; animation-delay: 2.00s; } /* ar - Middle East cluster */
.map-dot-16 { top: 39%; left: 71%; animation-delay: 0.50s; } /* zh-hans - China */

.map-dot-17 { top: 44%; left: 77%; animation-delay: 1.75s; } /* zh-hant Taiwan */
.map-dot-18 { top: 38%; left: 80%; animation-delay: 0.75s; } /* ja Japan */

.map-dot-19 { top: 38%; left: 77%; animation-delay: 1.50s; } /* ko Korean */
.map-dot-20 { top: 47%; left: 70%; animation-delay: 1.00; } /* vi Vietnam */

.map-dot-21 { top: 71%; left: 88%; animation-delay: 1.25s; } /* en-NZ New Zealand */
.map-dot-22 { top: 36%; left: 44%; animation-delay: 1.25s; } /* Europe cluster - Spain */

.map-dot-23 { top: 40%; left: 52%; animation-delay: 1.00s; } /* Africa > Egypt*/
.map-dot-24 { top: 39%; left: 47%; animation-delay: 1.50s; } /* Africa > Tunisia */

.map-dot-25 { top: 59%; left: 57%; animation-delay: 0.75s; } /* en/fr > Madagascar */
.map-dot-26 { top: 49%; left: 42%; animation-delay: 1.75s; } /* en/fr > Senegal */

.map-dot-27 { top: 48%; left: 25%; animation-delay: 0.25; } /* es: South America Cluster */
.map-dot-28 { top: 51%; left: 29%; animation-delay: 2.00; } /* es: South America Cluster */

.map-dot-29 { top: 58%; left: 28%; animation-delay: 0.50; } /* es: South America Cluster */
.map-dot-30 { top: 66%; left: 31%; animation-delay: 1.75; } /* es: South America Cluster */


@keyframes mapPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.5); opacity: 1; }
}



/* Web Section */
.browser-mockup {
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.browser-header {
    background: #f1f5f9;
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.browser-buttons {
    display: flex;
    gap: 8px;
}

.browser-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-buttons span:nth-child(1) { background: #ef4444; }
.browser-buttons span:nth-child(2) { background: #f59e0b; }
.browser-buttons span:nth-child(3) { background: #10b981; }

.browser-content {
    padding: 20px;
    height: 200px;
}

.web-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

/* Engineering Section */
.code-showcase {
    display: flex;
    justify-content: center;
}

.code-block {
    background: #1e293b;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.code-line {
    width: 200px;
    height: 8px;
    background: #475569;
    margin-bottom: 1rem;
    border-radius: 4px;
    animation: codeTyping 2s ease-in-out infinite;
}

.code-line:nth-child(2) { width: 150px; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 180px; animation-delay: 1s; }
.code-line:nth-child(4) { width: 120px; animation-delay: 1.5s; }

@keyframes codeTyping {
    0% { width: 0; }
    50% { width: var(--width); }
    100% { width: var(--width); }
}

/* Art Section */
.art-showcase {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.art-piece {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    animation: rotate 4s linear infinite;
}

.art-piece-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.art-piece-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation-delay: 1s;
}

.art-piece-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    animation-delay: 2s;
}

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

/* Conclusion Section */
.conclusion {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.conclusion-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.conclusion-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.conclusion-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.developer-profile-photo {
  width: 20%;
  height: 0;
  padding-bottom: 20%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
  border: 4px solid white;
  position: relative;
  overflow: hidden;
}

.developer-profile-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* Footer */
.footer {
    background: #1e293b;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    opacity: 0.8;
}


/* Mobile Navigation */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--header-border);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--card-shadow);
    z-index: 1001;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-content.reverse {
        direction: ltr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .launch-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .phone-screen {
        width: 240px;
        height: 480px;
    }
    
    .browser-mockup {
        width: 280px;
    }
    
    .world-map {
        /* width: 250px; */
        /* height: 150px; */
        background-size: 100% 100%; /* formerly: contain; */
        background-position: left top;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .content-text h2 {
        font-size: 1.75rem;
    }
}

/* Smooth animations for scroll reveal */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Additional hover effects */
.overview-card:hover .card-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.nav-menu a:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Enhanced animations and effects */
/*.js-enabled .hero-title,
.js-enabled .hero-subtitle,
.js-enabled .hero-badge,
.js-enabled .hero-download-button {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-enabled .hero-title.visible,
.js-enabled .hero-subtitle.visible,
.js-enabled .hero-badge.visible,
.js-enabled .hero-download-button.visible {
    opacity: 1;
    transform: translateY(0);
}
*/
/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Enhanced card interactions */
.overview-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.overview-card:hover::before {
    left: 100%;
}

/* Smooth transitions for all interactive elements */
a, button, .overview-card, .design-element, .accessibility-icon, .art-piece {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
a:focus, button:focus, .overview-card:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Skip link styling */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* ---------- Regional Features Section ------------ */
/* Regional Features Section */
.regional-features {
    margin: 4rem 0;
    padding: 2rem 0;
}

.regional-features-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

/* Left Column: Explanation */
.regional-explanation h3 {
    font-size: 2rem;
    color: var(--text-color-heading);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.regional-explanation p {
    color: var(--text-color)
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Right Column: Carousel */
.regional-carousel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}

.nav-btn {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

.nav-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.profile-counter {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.language-pills {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    padding: 0.25rem;
}

.language-pill {
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 32px;
    text-align: center;
}

.language-pill:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.language-pill.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.language-pill.active:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Profile Display */
.profile-display {
    position: relative;
    min-height: 400px;
}

.profile-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 400px;
}

.profile-slide.active {
    display: grid;
}

.profile-photo {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.profile-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-details h4 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.profile-details .location {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.profile-details .profile-profession {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-btn:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.lang-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* User Story */
.user-story {
    position: relative;
}

.user-story p {
    color: #4b5563;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: opacity 0.3s ease;
}

.user-story p.active {
    opacity: 1;
    position: relative;
}

/* RTL Language Support */
.user-story p[dir="rtl"] {
    text-align: right;
    direction: rtl;
}

.profile-profession[lang="ar"],
.profile-profession[lang="he"],
.profile-name[lang="ar"],
.profile-name[lang="he"],
.profile-location[lang="ar"],
.profile-location[lang="he"] {
    text-align: right;
    direction: rtl;
}

/* Responsive Design */
@media (max-width: 768px) {
    .regional-features-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-slide {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .profile-photo {
        height: 250px;
    }
    
    .profile-details {
        padding: 1.5rem;
    }
    
    .carousel-nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-center {
        order: 2;
    }
    
    .nav-btn {
        order: 1;
    }
    
    .next-btn {
        order: 3;
    }
    
    .language-pills {
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0.5rem;
    }
    
    .language-pill {
        flex-shrink: 0;
    }
}

/* Drop this on anything that's not ready yet, but will be shown soon. */
.hidden {
    display: none !important;
}

/* Rough and dirty mobile fix for wonky photo cropping */
@media (max-width: 768px) {
	.profile-photo {
		height: auto;
		aspect-ratio: 3 / 4;
	}

	.profile-photo img {
		object-fit: cover;
		object-position: 50% 20%;
	}
}
/* ---------------------------------------------- */