/* ========================================
   RSOKH ABOUT PAGE - 100% PIXEL PERFECT
   Based on Figma: 1440px width design
   ======================================== */

:root {
    --color-bg-light: #f5f5f5;
    --color-white: #ffffff;
    --color-text-dark: #090703;
    --color-text-medium: #6a6a6a;
    --color-text-light: #f1f1f1;
    --color-bg-dark: #141414;
    --color-bg-darker: #212121;
    --color-border-dark: #232323;
    --color-overlay: rgba(0, 0, 0, 0.4);
    --color-overlay-dark: rgba(0, 0, 0, 0.8);
    --color-overlay-black: rgba(0, 0, 0, 0.96);
    --color-text-opacity: rgba(255, 255, 255, 0.6);
}

/* Reset */
body {
    overflow-x: hidden;
}
p {
  margin: 0;
}
/* ========================================
   TOP TITLE SECTION (Title FIRST)
   Height: 487px (from y=0 to y=487)
   ======================================== */
.top-title-section {
    background: var(--color-bg-light);
    min-height: 487px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 0;
    border-radius: 20px 20px 0 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-direction: column;
}

.section-badge span {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-medium);
    letter-spacing: 0.18px;
}

.main-hero-title {
    font-family: var(--font-heading);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-dark);
    letter-spacing: 0.72px;
    margin: auto;
    max-width: 1020px;
    text-align: center;
}

/* ========================================
   HERO IMAGE SECTION (Image AFTER title)
   Height: 622px, starts at y=487
   ======================================== */
.hero-image-section {
    width: 100%;
    height: 622px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    transform-origin: center;
    animation: kenburns 30s linear infinite;
}

@keyframes kenburns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    50% {
        transform: scale(1.06) translate(1.5%, -1%);
    }
    100% {
        transform: scale(1) translate(0, 0);
    }
}

/* ========================================
   WHO WE ARE SECTION
   Starts at y=1217, height varies
   ======================================== */
.who-we-are-section {
  background: var(--color-bg-light);
  padding: 108px 0 100px;
  overflow: hidden;
}

.side-image-card {
    width: 363px;
    height: 400px;
    border: 12px solid var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background-color: var(--color-bg-light);
}

.side-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-content {
    padding: 0 40px;
}

.section-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.section-badge-dark span {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-medium);
    letter-spacing: 0.24px;
}

.who-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin-bottom: 24px;
  max-width: 360px;
}

.who-description {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--color-text-medium);
    margin: 0;
}

/* ========================================
   STORY SECTION - WITH GSAP ROTATION
   No gray space on parallax - FIXED
   ======================================== */
.story-section {
    position: relative;
    padding: 180px 0;
    overflow: hidden; /* CRITICAL: Hide overflow */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background wrapper - SCALED to cover parallax area */
.story-bg-image {
    position: absolute;
    top: -20%;    /* Start 10% higher */
    right: -5%;    /* Start 5% left */
    width: 110%;  /* 10% wider */
    height: 120%;  
    z-index: 0;
}

/* Background image - fills scaled wrapper */
.story-bg-image img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.story-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: 1;
    opacity: 0.4;
}

.story-card {
  position: relative;
  z-index: 2;
  background: var(--color-overlay-black);
  border: 6px solid var(--color-border-dark);
  border-radius: 32px;
  padding: 53px 60px 20px 60px;
  width: 550px;
  max-width: 90%;
  margin: 0 auto;
  opacity: 0.9;
  /* GPU acceleration */
  will-change: transform;
  /* Shadow */
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  /* CRITICAL: Rotation pivot at BOTTOM center */
  transform-origin: center bottom;
}

.story-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 30px;
}

.story-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.78;
    color: var(--color-text-light);
    text-align: center;
}

.story-text p {
    margin-bottom: 16px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-signature {
  text-align: center;
  margin-top: 20px;
  opacity: 0.9;
}

  .story-signature img {
    margin: auto;
  }

/* ========================================
   VISION & MISSION SECTION
   Starts at y=2803, height=257
   ======================================== */
.vision-mission-section {
    background: #f5f5f5;
    overflow: hidden;
}

.vm-box {
    padding: 54px 121px;
    min-height: 257px;
    height: 100%;
}

.vision-box {
    background: var(--color-bg-dark);
}

.mission-box {
    background: var(--color-bg-darker);
}

.vm-heading {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.vm-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-opacity);
  margin: 0;
  max-width: 480px;
}

/* ========================================
   EXPERTISE SECTION
   Starts at y=3177
   ======================================== */
.expertise-section {
  background: var(--color-bg-light);
  padding: 100px 0;
  overflow: hidden;
}

.expertise-left {
/*    padding-left: 40px;*/
}

.expertise-main-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-dark);
    max-width: 465px;
}

.expertise-large-image {
  border: 16px solid var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-bg-light);
}

  .expertise-large-image img {
    width: 100%;
    height: auto;
    max-height: 559px;
    display: block;
    border-radius: 12px;
  }

/* Accordion Styles */
.expertise-accordion {
    padding-right: 40px;
}

.acc-item {
    border-bottom: 1px solid #222222;
    /* No transition: see en/about.css for explanation */
}

.acc-item:last-child {
    border-bottom: none;
}

.acc-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    cursor: pointer;
}

.acc-item.active .acc-header {
    padding-bottom: 0;
}

.acc-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-dark);
    min-width: 54px;
    transition: font-size 0.3s ease;
}

.acc-item.active .acc-num {
    font-size: 54px;
}

.acc-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin: 0;
    flex: 1;
}

.acc-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.acc-item.active .acc-btn {
    transform: rotate(-45deg);
}

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    opacity: 0;
}

.acc-item.active .acc-body {
    max-height: 1200px;
    padding-bottom: 32px;
    opacity: 1;
}

.acc-body .row {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.acc-item:not(.active) .acc-body .row {
    opacity: 0;
    transform: translateY(-10px);
}

.acc-desc {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-medium);
  margin-bottom: 20px;
  padding-right:24px;
  max-width: 410px;
}

.acc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.acc-list li {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-dark);
    padding-right: 15px;
    margin-bottom: 12px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.acc-list li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.acc-list li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-text-dark);
    border-radius: 50%;
}

.acc-image {
  border: 12px solid var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  max-width: 292px;
  background-color: var(--color-bg-light);
}

  .acc-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    max-height: 292px;
  }

/* ========================================
   VALUES SECTION
   Starts at y=4328, height=1132
   ======================================== */
.values-section {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
}

.values-bg {
    position: absolute;
    top: -10%;    /* Start 10% higher to accommodate parallax */
    right: -5%;   /* Start 5% right to accommodate parallax (RTL) */
    width: 110%;  /* 10% wider */
    height: 120%; /* 20% taller */
    z-index: 0;
}

.values-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.values-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
    z-index: 1;
}

.values-section .container {
    position: relative;
    z-index: 2;
}

.section-badge-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: column;
}

.section-badge-light span {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-white);
    letter-spacing: 0.24px;
}

.values-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-light);
    max-width: 461px;
    margin: 0 auto;
    text-align: center;
}

.values-grid {
    margin-top: 60px;
}

.value-bottom {
    margin-top: 80px;
}

.value-box {
  background: var(--color-overlay-dark);
  border: 6px solid var(--color-border-dark);
  border-radius: 16px;
  padding: 46px 24px;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 344px;
}

.value-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.value-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-light);
    margin-bottom: 24px;
}

.value-desc {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.46;
    color: var(--color-text-opacity);
    margin: 0;
}

/* ========================================
   INSTAGRAM SECTION
   Starts at y=5741
   ======================================== */
.instagram-section {
  background: var(--color-bg-light);
  padding: 100px 0;
  overflow: hidden;
}

.instagram-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-text-dark);
    max-width: 366px;
    margin: 0 auto;
    text-align: center;
}

.instagram-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content:center;
}

.instagram-carousel::-webkit-scrollbar {
    height: 6px;
}

.instagram-carousel::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.instagram-carousel::-webkit-scrollbar-thumb {
    background: var(--color-text-medium);
    border-radius: 3px;
}

.insta-item {
    flex-shrink: 0;
    width: 192px;
    height: 192px;
    border: 8px solid var(--color-white);
    border-radius: 8px;
    overflow: hidden; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

  .insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktop */
@media (max-width: 1199px) {
    .main-hero-title {
        font-size: 60px;
    }
    
    .who-title {
        font-size: 40px;
    }
    
    .vm-box {
        padding: 40px 80px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .main-hero-title {
        font-size: 48px;
    }

  .who-title {
    font-size: 36px;
    margin: 10px auto;
  }

    .story-title {
        font-size: 34px;
    }

    .expertise-main-title {
        font-size: 32px;
    }

    .values-title {
        font-size: 32px;
    }

    .instagram-title {
        font-size: 32px;
    }

    .top-title-section {
        min-height: 400px;
        padding: 80px 20px 60px;
    }

    .hero-image-section {
        height: 500px;
    }

    .side-image-card {
        width: 100%;
        max-width: 363px;
        margin: 20px auto;
    }

    .who-we-are-section {
        padding: 80px 0;
    }

    .story-section {
        padding: 120px 0;
    }

    .center-content {
        padding: 40px 20px;
        text-align: center;
    }

    .story-card {
        padding: 40px 50px;
    }

    .vm-box {
        padding: 40px 60px;
        min-height: 220px;
    }

    .expertise-left,
    .expertise-accordion {
        padding: 0 20px;
    }

    .expertise-section {
        padding: 80px 0;
    }

    .values-section {
        padding: 100px 0;
    }

    .instagram-section {
        padding: 80px 0;
    }

    .value-bottom {
        margin-top: 0;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-hero-title {
        font-size: 36px;
        letter-spacing: 0.36px;
    }
    
    .section-badge span,
    .section-badge-dark span,
    .section-badge-light span {
        font-size: 16px;
    }
    
    .top-title-section {
        min-height: 350px;
        padding: 140px 15px 40px;
    }
    
    .hero-image-section {
        height: 400px;
    }
    
    .who-title {
        font-size: 32px;
    }
    
    .who-description {
        font-size: 16px;
    }
    
    .story-section {
        padding: 80px 0;
    }
    
    .story-card {
        padding: 30px 35px;
    }
    
    .story-title {
        font-size: 32px;
    }
    
    .story-text {
        font-size: 13px;
    }
    
    .vm-box {
        padding: 30px 40px;
        min-height: 200px;
    }
    
    .vm-heading {
        font-size: 28px;
    }
    
    .vm-text {
        font-size: 13px;
    }
    
    .expertise-main-title {
        font-size: 28px;
    }
    
    .acc-num {
        font-size: 20px;
        min-width: 45px;
    }
    
    .acc-item.active .acc-num {
        font-size: 36px;
    }
    
    .acc-title {
        font-size: 20px;
    }
    
    .acc-body {
        padding-right: 65px;
    }
    
    .values-section {
        padding: 80px 0;
    }
    
    .values-title {
        font-size: 28px;
    }
    
    .value-box {
        min-height: unset;
        padding: 35px 20px;
    }
    
    .value-heading {
        font-size: 24px;
    }
    
    .value-desc {
        font-size: 14px;
    }
    
    .who-we-are-section {
        padding: 60px 0;
    }

    .instagram-title {
        font-size: 28px;
    }

    .instagram-section {
        padding: 60px 0;
    }

    .instagram-carousel {
        gap: 24px;
    }

    .insta-item {
        width: 160px;
        height: 160px;
    }
}

/* Touch devices — no parallax scrub, so release GPU composite layers */
@media (pointer: coarse) {
    .story-bg-image img,
    .story-card,
    .values-bg-img {
        will-change: auto;
    }

    /* Story section on touch: see en/about.css for full explanation */
    .story-section {
        min-height: auto;
        overflow: visible;
    }

    /* AR: bg wrapper uses right-anchoring, reset to zero offset */
    .story-bg-image {
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .main-hero-title {
        font-size: 28px;
    }
    
    .top-title-section {
        min-height: 300px;
        padding-top: 120px;
    }
    
    .hero-image-section {
        height: 350px;
    }

  .who-title {
    font-size: 26px;
  }
    
    .story-card {
        padding: 25px 28px;
        border-width: 4px;
    }
    
    .story-title {
        font-size: 26px;
    }
    
    .vm-box {
        padding: 25px 30px;
    }
    
    .vm-heading {
        font-size: 24px;
    }
    
    .expertise-main-title {
        font-size: 22px;
    }
    
    .acc-num {
        font-size: 18px;
        min-width: 40px;
    }
    
    .acc-item.active .acc-num {
        font-size: 30px;
    }
    
    .acc-title {
        font-size: 18px;
    }
  .acc-desc {
    padding-left: 0;
    padding-bottom: 15px;
    padding-top: 15px;
  }
    .acc-btn {
        width: 24px;
        height: 24px;
    }
    
    .acc-body {
        padding-right: 16px;
    }
    
    .value-box {
        padding: 30px 18px;
        border-width: 4px;
        max-width: 100%;
        min-height: unset;
    }
    
    .value-heading {
        font-size: 20px;
    }
  .instagram-carousel {
    gap: 8px;
    -ms-overflow-style: none; /* IE & Edge */ 
    padding-left: 20px;
    padding-right: 20px;
  }

  .instagram-section .container {
    padding: 0;
  }
    .instagram-title {
        font-size: 24px;
    }
    
    .insta-item {
        width: 140px;
        height: 140px;
        border-width: 6px;
    }

  .acc-num.invisible {
    display: none;
  }
}
