* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Portfolio Section */
.portfolio-section {
    min-height: auto;
    background: linear-gradient(135deg, #000428, #004e92);
    position: relative;
    padding-bottom: 100px;
}

.portfolio-header {
    padding: 80px 0 60px;
    position: relative;
    z-index: 10;
}

.portfolio-title {
    font-family: 'Six Caps', sans-serif;
    font-size: 7.4rem;
    font-weight: 400;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #f4f1f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #c2c1c1;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0;
    font-weight: 400;
}

/* Portfolio Container */
.portfolio-container {
    position: relative;
    padding: 0;
}

/* Portfolio Items - Exact positioning */
.portfolio-item {
    position: absolute;
    width: 100%;
}

.item-1 {
    top: 0;
}

.item-2 {
    top: 45vh;
}

.item-3 {
    top: 155vh;
}

.item-4 {
    top: 200vh;
}

/* Image Section */
.image-section {
    position: relative;
    width: 40vw;
    height: 110vh;
}

.left-side {
    margin-left: 8vw;
}

.right-side {
    margin-left: 52vw;
}

/* Image Container - FIXED HEIGHT with proper parallax setup */
.image-container {
    position: relative;
    width: 100%;
    height: 95vh;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.portfolio-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
    object-fit: cover;
    object-position: center;
    filter: grayscale(10%) contrast(115%) brightness(98%);
    transition: filter 0.6s ease;
    will-change: transform;
}

.portfolio-image:hover {
    filter: grayscale(0%) contrast(125%) brightness(105%);
}

/* Content Section - MATCHING IMAGE WIDTH */
.content-section {
    position: absolute;
    top: calc(95vh + 20px);
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 1;
}

/* Grid layout that exactly matches image container width */
.content-info {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    column-gap: 50px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* Name - aligned to left border of image */
.name {
    grid-column: 1;
    grid-row: 1 / 3;
    font-family: 'Six Caps', sans-serif;
    font-size: 7.8rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    color: #fff;
    letter-spacing: 1px;
    align-self: center;
    justify-self: start;
}

/* Role positioned at top right - aligned to right border of image */
.role {
    grid-column: 2;
    grid-row: 1;
    font-size: 0.92rem;
    text-transform: uppercase;
    margin: 30px 0 12px 0;
    font-weight: 400;
    color: #fff;
    align-self: end;
    text-align: right;
    justify-self: end;
}

/* Description positioned below role - aligned to right border of image */
.description {
    font-family: 'Poppins', sans-serif;
    grid-column: 2;
    grid-row: 2;
    font-size: 0.98rem;
    color: rgb(194, 194, 194);
    line-height: 1.9;
    font-weight: 300;
    margin: 0;
    align-self: start;
    text-align: right;
    justify-self: end;
}

/* Navigation Dots */
.portfolio-navigation {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #555;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.nav-dot:hover {
    border-color: #fff;
    transform: scale(1.1);
}

/* Set proper container height for scrolling */
.portfolio-container::after {
    content: '';
    display: block;
    height: 320vh;
}

/* Z-index layering */
.item-1 { z-index: 4; }
.item-2 { z-index: 3; }
.item-3 { z-index: 2; }
.item-4 { z-index: 1; }

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-1 .content-info { animation-delay: 0.2s; }
.item-2 .content-info { animation-delay: 0.4s; }
.item-3 .content-info { animation-delay: 0.6s; }
.item-4 .content-info { animation-delay: 0.8s; }

.read-more-btn {
  background: none;
  border: none;
  color: #00bfff;
  font-size: 0.9rem;
  cursor: pointer;
  margin-left: 6px;
  text-decoration: underline;
}

.read-more-btn:hover {
  color: #fff;
}

/* === Read More Toggle Styles === */

/* hide full text by default */
.full-text {
  display: none;
}

/* when expanded, hide short text and show full text */
.description.expanded .short-text {
  display: none;
}
.description.expanded .full-text {
  display: inline;
}

/* optional smoothness */
.description {
  transition: max-height 0.28s ease;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .image-section {
        width: 45vw;
    }
    
    .left-side {
        margin-left: 6vw;
    }
    
    .right-side {
        margin-left: 49vw;
    }
    
    .name {
        font-size: clamp(40px, 5.5vw, 65px);
    }
    
    .content-info {
        column-gap: 35px;
    }
}

@media (max-width: 991px) {
    .portfolio-title {
        font-size: 4rem;
        letter-spacing: 4px;
    }
    
    .name {
        font-size: clamp(35px, 5vw, 55px);
        letter-spacing: 1px;
    }
    
    .image-section {
        width: 55vw;
        height: auto;
    }
    
    .image-container {
        height: 80vh;
    }
    
    .portfolio-image {
        height: 95vh;
    }
    
    .content-section {
        top: calc(80vh + 15px);
        height: auto;
    }
    
    .left-side {
        margin-left: 5vw;
    }
    
    .right-side {
        margin-left: 40vw;
    }
    
    .item-2 {
        top: 40vh;
    }
    
    .item-3 {
        top: 130vh;
    }
    
    .item-4 {
        top: 170vh;
    }
    
    .portfolio-container::after {
        height: 270vh;
    }
    
    .content-info {
        column-gap: 25px;
    }
    
    .role {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .description {
        font-size: 0.85rem;
    }
}

@media (max-width: 767px) {
    .portfolio-title {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .image-section {
        width: 90vw;
        height: auto;
        margin: 0 auto !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .image-container {
        height: 55vh;
        width: 100%;
        position: relative;
        overflow: hidden;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: none;
        background: transparent;
    }

    /* Make the gradient MOVE with the image */
.image-container::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:28vh;
  pointer-events:none;
  /* your blue theme gradient (keep it) */
  /* background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    color-mix(in srgb, var(--theme-blue, #004e92) 70%, transparent) 55%,
    color-mix(in srgb, var(--theme-blue, #004e92) 90%, black 15%) 100%
  ); */
  /* NEW: follow the same parallax offset as the image */
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
    
    /* MOBILE PARALLAX FIX - Static positioning */
    .portfolio-image {
  position: absolute;
  left: 0;
  top: -5%;        /* tiny lift so the head is visible and there’s room to slide */
  width: 100%;
  height: 110%;    /* a bit taller than the container to allow movement */
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}
    
    .content-section {
        position: relative;
        top: 0;
        height: auto;
        width: 100%;
        padding: 30px 15px 35px 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 25px;
    }
    
    .content-info {
        display: flex;
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 100%;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }
    
    .name {
        font-size: clamp(48px, 11vw, 65px);
        margin: 0;
        text-align: center;
        width: 100%;
        font-weight: 400;
        letter-spacing: 2px;
    }
    
    .role {
        font-size: 1.1rem;
        letter-spacing: 2.5px;
        text-align: center;
        margin: 0;
        width: 100%;
        text-transform: uppercase;
        font-weight: 400;
    }
    
    .description {
        font-size: 1rem;
        text-align: center;
        margin: 0;
        line-height: 1.6;
        width: 100%;
        font-weight: 300;
    }
    
    .portfolio-item {
        position: relative;
        width: 100%;
        margin-bottom: 45px;
        top: auto !important;
    }
    
    .item-1,
    .item-2,
    .item-3,
    .item-4 {
        position: relative;
        top: auto;
        margin-bottom: 55px;
    }
    
    .portfolio-container {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .portfolio-container::after {
        display: none;
    }
    
    .portfolio-navigation {
        display: none;
    }
}
