/* css/features.css */

/* ========================================== */
/* ===== FEATURED PROJECTS SECTION STYLES ===== */
/* ========================================== */
.recent-visuals-section {
    background-image: url('../images/banner_3.webp');
    background-attachment: scroll; /* Parallax disabled on mobile */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--black); /* Fallback */
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

/* Overlay for text readability */
.recent-visuals-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(10, 10, 10, 0.6);
    z-index: 1;
    pointer-events: none;
}

/* Ensure content is above the overlay */
.recent-visuals-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header Specifics for Featured In */
#recent-visuals .section-header {
    margin-bottom: var(--space-lg);
    position: relative; /* Keep relative positioning */
    z-index: 3;
    text-align: left; /* Ensure parent is left aligned */
}
/* Explicit styles for the heading itself (#recent-visuals h2) are handled in layout.css */
/* Explicit styles for the underline ::after (#recent-visuals h2::after) are handled in layout.css */

/* --- Featured Showcase Grid & Cards --- */
.featured-showcase {
    display: grid;
    grid-template-columns: 1fr; /* Single column mobile */
    gap: 20px; /* Reduced from 25px */
    position: relative;
    z-index: 3;
    justify-content: center; /* Center the grid content */
    max-width: 1200px; /* Add max width for desktop centering */
    margin: 0 auto; /* Center the entire grid */
    padding: 0 20px; /* Add some padding for better centering */
}

.feature-card {
    position: relative;
    border-radius: 8px; /* Reduced from 12px */
    overflow: hidden;
    background-color: var(--dark-gray);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Reduced shadow */
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    width: 280px; /* Fixed width for consistency */
    height: 440px; /* Increased to match desktop */
    margin: 0 auto; /* Center individual cards */
}
.feature-card:hover {
    transform: translateY(-4px); /* Reduced from -8px */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25); /* Reduced shadow */
}

.feature-media {
    position: relative;
    overflow: hidden;
    height: 280px; /* Same as desktop */
    flex-shrink: 0; /* Don't allow shrinking */
}
.feature-media.poster-ratio { /* Remove aspect ratio - use fixed height */
    aspect-ratio: unset; /* Remove aspect ratio */
}
.feature-media img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    background-color: var(--black);
    filter: saturate(60%);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1),
                filter 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}
.feature-card:hover .feature-media img {
    transform: scale(1.03); /* Reduced from 1.05 */
    filter: saturate(100%);
}

.feature-overlay { /* Gradient over image */
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient( to bottom, transparent 40%, rgba(0, 0, 0, 0.9) 100% );
    z-index: 1;
}

.feature-content {
    position: relative;
    padding: 16px; /* Consistent padding */
    z-index: 2;
    background-color: var(--dark-gray);
    display: flex;
    flex-direction: column;
    height: 160px; /* Increased to match desktop */
    flex-shrink: 0; /* Don't allow shrinking */
}

.feature-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 8px;
    background-color: var(--accent);
    color: var(--black);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 8px;
    flex-shrink: 0;
    height: 20px; /* Fixed height for consistency */
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.feature-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
    line-height: 1.2;
    margin: 0 0 8px 0; /* Consistent margin */
    height: 26px; /* Fixed height for title */
    display: flex;
    align-items: flex-start;
    overflow: hidden; /* Hide overflow if title is too long */
}

.feature-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin: 0 0 12px 0; /* Consistent margin */
    min-height: 40px; /* Minimum height for details */
}

.feature-details p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    color: var(--light-gray);
    opacity: 0.8;
}

.feature-year {
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: auto; /* Push to bottom of details area */
}

.feature-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    transition: all 0.3s ease;
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: auto; /* Always position at bottom */
    height: 20px; /* Fixed height for link */
    line-height: 1;
}

.feature-link svg {
    margin-left: 6px;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.feature-link:hover { color: var(--white); }
.feature-link:hover svg { transform: translate(4px, -4px); }


/* ================================================ */
/* ===== WORK TIMELINE/SLIDER/VIDEO SECTION ===== */
/* ================================================ */
.work-section {
    background-color: var(--black);
    padding: var(--space-lg) 0;
}

/* --- Slider --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto var(--space-md) auto;
    overflow: hidden;
}
.slider-track {
    display: flex;
    width: 100%;
    height: 90px;
    position: relative;
}
.slider-item {
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    background-color: var(--dark-gray);
    margin: 0 1px;
    border-radius: 6px;
    overflow: hidden;
    transition: flex 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
                background-color 0.3s ease,
                transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid transparent;
}
.slider-item:first-child { margin-left: 0; }
.slider-item:last-child { margin-right: 0; }
.slider-item.active {
    flex: 2.5;
    background-color: var(--accent);
    transform: scale(1.01);
}
.slider-item:hover:not(.active) {
    background-color: #2a2a2a;
    transform: scale(1.015);
}
.slider-item:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 3px rgba(255, 184, 0, 0.4);
}
.item-year {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 3px;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}
.item-label {
    font-size: 0.75rem;
    color: var(--light-gray);
    transition: color 0.3s ease;
    padding: 0 4px;
    letter-spacing: 0.3px;
    font-weight: 400;
    opacity: 0.9;
}
.slider-item.active .item-year,
.slider-item.active .item-label {
    color: var(--black);
}

/* --- Video Player --- */
.video-player-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--black);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
#main-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: var(--black);
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}
#main-player iframe,
#main-player #youtube-player-wrapper,
#main-player .custom-player-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
.video-info {
    padding: var(--space-sm) var(--space-md);
    background-color: var(--dark-gray);
    border-top: 1px solid var(--gray);
    border-radius: 0 0 12px 12px;
}
.video-info h3 {
    margin-bottom: var(--space-xs);
    font-size: 1.4rem;
    color: var(--white);
}
.video-info p {
    margin: 0;
    color: var(--light-gray);
    font-size: 0.95rem;
    max-width: 800px;
}

/* --- Custom Video Controls (Vimeo) --- */
.custom-video-controls {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    padding: 10px 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: center;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    box-sizing: border-box;
}
:fullscreen .custom-video-controls,
:-webkit-full-screen .custom-video-controls,
:-moz-full-screen .custom-video-controls {
  opacity: 1 !important;
  z-index: 9999 !important;
}
.play-pause-btn {
    background: none; border: none; color: white;
    font-size: 1.2rem; cursor: pointer; padding: 5px;
    margin-right: 15px; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; transition: transform 0.2s ease, color 0.2s ease;
}
.play-pause-btn:hover { transform: scale(1.1); color: var(--accent); }
.progress-container {
    flex-grow: 1; height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px; cursor: pointer; position: relative;
}
.progress-bar {
    width: 0%; height: 100%;
    background-color: var(--accent);
    border-radius: 4px; transition: width 0.1s linear;
}
.volume-controls {
    display: flex;
    align-items: center;
    margin: 0 15px;
}
.volume-btn {
    background: none; border: none; cursor: pointer;
    margin-right: 8px; font-size: 16px; color: white;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center; padding: 0;
}
.volume-slider {
    width: 60px; height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px; cursor: pointer;
    position: relative; overflow: hidden;
}
.volume-level {
    height: 100%; width: 100%;
    background-color: var(--white);
    border-radius: 2px; transition: width 0.2s ease;
}
.fullscreen-btn {
    background: none; border: none; cursor: pointer; color: white;
    font-size: 1.2rem;
    margin-left: 10px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}
.fullscreen-btn:hover { transform: scale(1.1); color: var(--accent); }
.fullscreen-btn.minimize-mode { color: var(--accent); }
.time-display {
    color: white; font-size: 0.9rem; min-width: 45px;
    text-align: right; font-variant-numeric: tabular-nums;
}


/* ================================================= */
/* ===== START: REDESIGNED WEB DESIGN SECTION ===== */
/* ================================================= */
.web-design-section.redesigned {
  background-color: var(--black);
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}
.web-design-section.redesigned::before,
.web-design-section.redesigned::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,184,0,0.2) 50%, rgba(255,255,255,0) 100%);
}
.web-design-section.redesigned::before { top: 0; }
.web-design-section.redesigned::after { bottom: 0; }

/* Section Header Alignment */
.web-design-section.redesigned .section-header {
  text-align: left; /* Align parent left */
  margin-bottom: var(--space-md);
}
/* --- Ensure Web Design H2 has necessary styles for underline --- */
.web-design-section.redesigned .section-header h2 {
  text-align: left;
  display: block; /* Make it block for alignment */
  position: relative; /* Required for ::after positioning */
  padding-bottom: 15px; /* Space for underline */
  margin-bottom: 0; /* Adjust margin */
}
/* --- Define Web Design underline ::after completely --- */
.web-design-section.redesigned .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0; /* Align left */
    transform: translateX(0); /* Override centering */
    width: 0; /* Initial state */
    height: 3px;
    background-color: var(--accent);
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
/* --- Define Web Design underline .in-view animation --- */
.web-design-section.redesigned .section-header h2.in-view::after {
    width: 60px; /* Animate width */
}

/* Web Content Layout */
.web-design-section.redesigned .web-content {
  display: flex;
  flex-direction: column;
}
.web-design-section.redesigned .web-intro {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin-bottom: var(--space-lg);
  max-width: 800px;
  opacity: 0.9;
}

/* Subsection Styles */
.web-design-section.redesigned .web-subsection {
    margin-top: var(--space-lg);
}
.web-design-section.redesigned .web-subsection:first-of-type {
    margin-top: 0;
}
.web-design-section.redesigned .web-subsection-title {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--accent);
    margin-bottom: var(--space-xs);
    text-align: left;
    position: relative;
    padding-bottom: 10px;
    font-weight: 600;
}
.web-design-section.redesigned .web-subsection-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--light-gray);
}
.web-design-section.redesigned .web-subsection-intro {
    font-size: clamp(0.9rem, 1.4vw, 1.0rem);
    color: var(--light-gray);
    margin-bottom: var(--space-md);
    max-width: 70ch;
    text-align: left;
}

/* --- Services Grid --- */
.web-design-section.redesigned .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}
.web-design-section.redesigned .service-card {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--gray);
}
.web-design-section.redesigned .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.web-design-section.redesigned .service-icon-wrapper {
    background-color: var(--accent);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}
.web-design-section.redesigned .service-icon {
    font-size: 32px;
    color: var(--black);
}
.web-design-section.redesigned .service-card .service-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    width: 100%;
    padding: 0;
    transition: none;
}
.web-design-section.redesigned .service-card .service-details-text {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* --- Redesigned Team Grid --- */
.web-design-section.redesigned .redesigned-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  padding-top: 8px;
}
.web-design-section.redesigned .redesigned-team-card {
  background-color: var(--dark-gray);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid var(--gray);
}
.web-design-section.redesigned .redesigned-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}
.web-design-section.redesigned .redesigned-team-card .card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin: 0 0 var(--space-sm) 0;
  border-radius: 0;
  flex-shrink: 0;
}
.web-design-section.redesigned .redesigned-team-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}
.web-design-section.redesigned .redesigned-team-card:hover .card-image img {
  transform: scale(1.05);
}
.web-design-section.redesigned .redesigned-team-card .card-content {
  padding: 0 var(--space-sm) var(--space-md) var(--space-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.web-design-section.redesigned .redesigned-team-card .team-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}
.web-design-section.redesigned .redesigned-team-card .team-role {
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}
.web-design-section.redesigned .redesigned-team-card .team-bio {
  font-size: 0.85rem;
  color: var(--light-gray);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* ================================================= */
/* ===== END: REDESIGNED WEB DESIGN SECTION ===== */
/* ================================================= */

/* ========================================== */
/* ===== STANDALONE TEAM SECTION ===== */
/* ========================================== */

.team-section.standalone-team {
    background-color: var(--black);
    padding: var(--space-md) 0;
    position: relative;
    overflow: hidden;
}

.team-section.standalone-team::before,
.team-section.standalone-team::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,184,0,0.2) 50%, rgba(255,255,255,0) 100%);
}

.team-section.standalone-team::before {
    top: 0;
}

.team-section.standalone-team::after {
    bottom: 0;
}

.team-section.standalone-team .section-header {
    text-align: left;
}

.team-section.standalone-team .section-header h2 {
    text-align: left;
    display: block;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.team-section.standalone-team .section-header h2::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    transform: translateX(0);
    width: 0;
    height: 3px;
    background-color: var(--accent);
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-section.standalone-team .section-header h2.in-view::after {
    width: 60px;
}

.team-section.standalone-team .team-content {
    padding: 0;
    position: relative;
}

.team-section.standalone-team .team-intro {
    margin-bottom: var(--space-md);
}

.team-section.standalone-team .standalone-team-grid {
    display: flex;
    grid-template-columns: none;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 25px 10px 0;
    position: relative;
    width: 100%;
}

.team-section.standalone-team .standalone-team-card {
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 0;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1),
                box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid var(--gray);
    position: relative;
}

.team-section.standalone-team .standalone-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.team-section.standalone-team .standalone-team-card .card-image {
    width: 100%;
    height: 280px; /* Consistent height for all headshots */
    overflow: hidden;
    margin: 0;
    border-radius: 0;
    flex-shrink: 0;
    position: relative;
}

.team-section.standalone-team .standalone-team-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 70%,
        rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-section.standalone-team .standalone-team-card:hover .card-image::after {
    opacity: 1;
}

.team-section.standalone-team .standalone-team-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.team-section.standalone-team .standalone-team-card:hover .card-image img {
    transform: scale(1.05);
}

.team-section.standalone-team .standalone-team-card .card-content {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--dark-gray);
    position: relative;
    z-index: 1;
}

.team-section.standalone-team .standalone-team-card .team-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.team-section.standalone-team .standalone-team-card .team-role {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
    font-weight: 500;
    transition: color 0.3s ease;
}

.team-section.standalone-team .standalone-team-card .team-bio {
    font-size: 0.85rem;
    color: var(--light-gray);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.team-section.standalone-team .standalone-team-card:hover .team-name {
    color: var(--accent);
}

/* Mobile adjustments for team cards */
@media (max-width: 767px) {
    .team-section.standalone-team .standalone-team-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .team-section.standalone-team .standalone-team-card .card-image {
        height: 260px; /* Slightly smaller on mobile */
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .team-section.standalone-team .standalone-team-card .card-image {
        height: 240px;
    }
}

/* Medium desktop adjustments */
@media (max-width: 1199px) and (min-width: 992px) {
    .team-section.standalone-team .standalone-team-card .card-image {
        height: 260px;
    }
}

.team-section.standalone-team .container {
    position: relative;
    overflow: hidden;
}

/* ============================================ */
/* ===== END: STANDALONE TEAM SECTION ===== */
/* ============================================ */

/* ===== FEATURES MEDIA QUERIES ===== */

/* --- Mobile (up to 767px) --- */
@media (max-width: 767px) {
    /* Convert to horizontal scrolling layout for mobile */
    .featured-showcase { 
        display: flex;
        grid-template-columns: none; /* Override grid */
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth; /* Ensure smooth scrolling */
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
        scrollbar-width: none; /* Firefox - hide scrollbar */
        -ms-overflow-style: none; /* IE/Edge - hide scrollbar */
        padding-bottom: 10px; /* Space for scroll indicators on some browsers */
        padding-right: 25px; /* Extra padding to account for fade effect */
        justify-items: unset; /* Remove centering for horizontal scroll */
        max-width: unset; /* Remove max width for mobile */
        margin: 0; /* Remove auto margin for mobile */
    }
    
    /* Hide scrollbar in webkit browsers */
    .featured-showcase::-webkit-scrollbar {
        display: none;
    }
    
    /* Make each movie card fixed width for horizontal scroll */
    .feature-card {
        flex: 0 0 280px; /* Fixed width, no grow/shrink - same as desktop */
        min-width: 280px; /* Ensure minimum width */
        max-width: 280px; /* Prevent overflow */
        width: 280px; /* Consistent with desktop */
        height: 440px; /* Increased to match desktop */
    }
    
    /* Maintain consistent media height on mobile */
    .feature-media {
        height: 280px; /* Same as desktop */
    }
    
    /* Maintain consistent content height on mobile */
    .feature-content {
        height: 160px; /* Increased to match desktop */
    }
    
    /* Reduce section padding on mobile */
    .recent-visuals-section {
        padding: var(--space-md) 0;
    }
    
    /* Container for horizontal scroll with fade indicator */
    .recent-visuals-section .container {
        position: relative;
    }
    
    /* Add a subtle fade effect on the right to indicate more content */
    .recent-visuals-section .container::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 20px;
        height: 100%;
        background: linear-gradient(to left, rgba(10, 10, 10, 0.8), transparent);
        pointer-events: none;
        z-index: 4;
    }

    /* Timeline/Slider */
    .slider-track { height: 70px; }
    .item-year { font-size: 1.2rem; }
    .item-label { display: none; }
    .slider-item .item-year { margin-bottom: 0; }

    .video-info h3 { font-size: 1.2rem; }
    .video-info p { font-size: 0.9rem; }

    /* Custom Controls Adjustments */
    .custom-video-controls { padding: 8px 10px; }
    .play-pause-btn { font-size: 1rem; margin-right: 10px; }
    .volume-slider { display: none; }
    .volume-controls { margin: 0 8px; }
    .fullscreen-btn { font-size: 1rem; margin: 0 5px; }
    .time-display { font-size: 0.85rem; min-width: 40px; }

    /* === START: Web Design Section Mobile === */
    .web-design-section.redesigned .web-content { padding: 0; }
    .web-design-section.redesigned .web-intro { margin-bottom: var(--space-md); }
    .web-design-section.redesigned .web-subsection { margin-top: var(--space-md); }
    .web-design-section.redesigned .web-subsection:first-of-type { margin-top: 0; }
    .web-design-section.redesigned .web-subsection-intro { margin-bottom: var(--space-sm); }
    
    /* Services Grid Mobile - Convert to horizontal scroll */
    .web-design-section.redesigned .services-grid {
        display: flex;
        grid-template-columns: none; /* Override grid */
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth; /* Ensure smooth scrolling */
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
        scrollbar-width: none; /* Firefox - hide scrollbar */
        -ms-overflow-style: none; /* IE/Edge - hide scrollbar */
        padding-bottom: 10px; /* Space for scroll indicators */
        padding-right: 25px; /* Extra padding for fade effect */
    }
    
    /* Hide scrollbar in webkit browsers for services grid */
    .web-design-section.redesigned .services-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Fixed width service cards for horizontal scroll */
    .web-design-section.redesigned .service-card {
        flex: 0 0 260px; /* Fixed width, no grow/shrink */
        min-width: 260px; /* Ensure minimum width */
        max-width: 260px; /* Prevent overflow */
        padding: var(--space-sm);
    }
    /* === END: Web Design Section Mobile === */

    /* === START: Standalone Team Section Mobile === */
    .team-section.standalone-team .team-content { padding: 0; }
    .team-section.standalone-team .team-intro { margin-bottom: var(--space-md); }
    
    /* Team Grid Mobile - Convert to horizontal scroll */
    .team-section.standalone-team .standalone-team-grid {
        display: flex;
        grid-template-columns: none; /* Override grid */
        gap: 15px;
        overflow-x: auto;
        scroll-behavior: smooth; /* Ensure smooth scrolling */
        -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
        scrollbar-width: none; /* Firefox - hide scrollbar */
        -ms-overflow-style: none; /* IE/Edge - hide scrollbar */
        padding-bottom: 10px; /* Space for scroll indicators */
        padding-right: 25px; /* Extra padding for fade effect */
    }
    
    /* Hide scrollbar in webkit browsers for team grid */
    .team-section.standalone-team .standalone-team-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Fixed width team cards for horizontal scroll */
    .team-section.standalone-team .standalone-team-card {
        flex: 0 0 260px; /* Fixed width, no grow/shrink */
        min-width: 260px; /* Ensure minimum width */
        max-width: 260px; /* Prevent overflow */
    }
    
    .team-section.standalone-team .standalone-team-card .card-image {
        height: 260px; /* Slightly smaller on mobile */
    }
    .team-section.standalone-team .standalone-team-card .card-image img {
        object-position: center 25%; /* Adjust this percentage as needed */
    }
    /* === END: Standalone Team Section Mobile === */
}

/* --- Tablet (600px - 991px) --- */
@media (min-width: 600px) {
    /* Featured Showcase */
    .featured-showcase { 
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        gap: 30px;
    }
}

/* --- Medium Mobile (480px - 576px) --- */
@media (max-width: 480px) {
    /* Adjust section padding for medium mobile */
    .recent-visuals-section {
        padding: calc(var(--space-sm) + var(--space-xs)) 0;
    }
    
    /* Optimize horizontal scroll for medium mobile */
    .featured-showcase { 
        gap: 12px; 
    }
    
    /* Smaller card width for medium mobile screens */
    .feature-card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
    
    /* Intermediate poster ratio */
    .feature-media.poster-ratio {
        aspect-ratio: 4 / 4.65;
    }
    
    /* Intermediate content padding */
    .feature-content {
        padding: 13px;
    }
    
    /* Intermediate text sizes */
    .feature-content h3 {
        font-size: 1.05rem;
    }
    
    .feature-tag {
        font-size: 0.62rem;
        padding: 3px 7px;
    }
    
    .feature-details p {
        font-size: 0.77rem;
    }
    
    /* Team Grid Medium Mobile */
    .web-design-section.redesigned .redesigned-team-grid {
        gap: 12px;
    }
    
    .web-design-section.redesigned .redesigned-team-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    .web-design-section.redesigned .redesigned-team-card .card-image {
        height: 200px;
    }
    
    /* Services Grid Medium Mobile */
    .web-design-section.redesigned .services-grid {
        gap: 12px;
    }
    
    .web-design-section.redesigned .service-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Timeline/Slider */
    .slider-track { height: 80px; }
    .item-year { font-size: 1.3rem; }
    .item-label { font-size: 0.7rem; }

    /* === START: Web Design Section Tablet === */
    .web-design-section.redesigned .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .web-design-section.redesigned .redesigned-team-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-top: 8px;
    }
    /* === END: Web Design Section Tablet === */
    
    /* === START: Standalone Team Section Tablet === */
    .team-section.standalone-team .standalone-team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        padding-top: 10px;
    }
    
    .team-section.standalone-team .standalone-team-card .card-image {
        height: 200px;
    }
    
    .team-section.standalone-team .standalone-team-card .team-name {
        font-size: 1.1rem;
    }
    
    .team-section.standalone-team .standalone-team-card .team-role {
        font-size: 0.85rem;
    }
    
    .team-section.standalone-team .standalone-team-card .team-bio {
        font-size: 0.8rem;
    }
    /* === END: Standalone Team Section Tablet === */
}


/* --- Desktop (>= 992px) --- */
@media (min-width: 992px) {
    /* Featured Showcase */
    .recent-visuals-section { background-attachment: fixed; }
    .featured-showcase { 
        grid-template-columns: repeat(3, 1fr); /* Changed back to 3 columns for better spacing */
        gap: 30px; /* Increased gap for desktop */
        justify-content: center;
        max-width: 1000px; /* Reduced max width for better centering */
    }

    /* === START: Web Design Section Desktop === */
     .web-design-section.redesigned .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
     .web-design-section.redesigned .redesigned-team-grid {
        grid-template-columns: repeat(4, 1fr);
        padding-top: 8px;
    }
    /* === END: Web Design Section Desktop === */
}

/* --- Large Desktop (>= 1200px) --- */
@media (min-width: 1200px) {
    /* === START: Standalone Team Section Large Desktop === */
    .team-section.standalone-team .standalone-team-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: var(--space-md);
        padding-top: 10px;
    }
    /* === END: Standalone Team Section Large Desktop === */
}

@media (max-width: 1199px) and (min-width: 992px) {
    /* === START: Standalone Team Section Medium Desktop === */
    .team-section.standalone-team .standalone-team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-sm);
        padding-top: 10px;
    }
    
    .team-section.standalone-team .standalone-team-card .card-image {
        height: 200px;
    }
    
    .team-section.standalone-team .standalone-team-card .team-name {
        font-size: 1.1rem;
    }
    
    .team-section.standalone-team .standalone-team-card .team-role {
        font-size: 0.85rem;
    }
    
    .team-section.standalone-team .standalone-team-card .team-bio {
        font-size: 0.8rem;
    }
    /* === END: Standalone Team Section Medium Desktop === */
}

/* --- Small Mobile (< 576px) --- */
@media (max-width: 576px) {
    /* Further reduce section padding on very small screens */
    .recent-visuals-section {
        padding: var(--space-sm) 0;
    }
    
    /* Optimize horizontal scroll for small mobile */
    .featured-showcase { 
        gap: 10px; 
    }
    
    /* Even smaller card width for small mobile screens */
    .feature-card {
        flex: 0 0 240px;
        min-width: 240px;
        max-width: 240px;
    }
    
    /* Make posters even more compact on very small screens */
    .feature-media.poster-ratio {
        aspect-ratio: 4 / 4.5; /* Even more compact ratio for small mobile */
    }
    
    /* Further reduce content padding */
    .feature-content {
        padding: 12px;
    }
    
    /* Smaller text on very small screens */
    .feature-content h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .feature-tag {
        font-size: 0.6rem;
        padding: 3px 6px;
        margin-bottom: 8px;
    }
    
    .feature-details {
        margin-bottom: 12px;
    }
    
    .feature-details p {
        font-size: 0.75rem;
    }

    /* Team Grid Small Mobile */
    .web-design-section.redesigned .redesigned-team-grid {
        gap: 10px;
        padding-top: 8px;
    }
    
    .web-design-section.redesigned .redesigned-team-card {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }
    
    .web-design-section.redesigned .redesigned-team-card .card-image {
        height: 180px;
    }
    
    /* Services Grid Small Mobile */
    .web-design-section.redesigned .services-grid {
        gap: 10px;
    }
    
    .web-design-section.redesigned .service-card {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

/* Navigation arrows for horizontal scroll sections on desktop at mobile resolutions */
.scroll-nav-container {
    position: relative;
    overflow: hidden; /* Ensure gradient overlays don't leak outside */
}

.scroll-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 184, 0, 0.9);
    border: none;
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scroll-nav-arrow:hover {
    background: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.scroll-nav-arrow.left {
    left: 10px;
    transform: translateY(-50%) translateX(-10px);
}

.scroll-nav-arrow.right {
    right: 10px;
    transform: translateY(-50%) translateX(10px);
}

/* Show arrows ONLY at mobile resolutions on desktop devices (non-touch) AND when hovering over the section */
@media (max-width: 767px) and (pointer: fine) {
    /* Hide arrows by default - completely invisible */
    .scroll-nav-arrow {
        opacity: 0 !important;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-50%) scale(0.9);
    }
    
    .scroll-nav-arrow.left {
        transform: translateY(-50%) translateX(-15px) scale(0.9);
    }
    
    .scroll-nav-arrow.right {
        transform: translateY(-50%) translateX(15px) scale(0.9);
    }
    
    /* Show arrows when hovering over the sections - completely visible */
    .recent-visuals-section:hover .scroll-nav-arrow,
    .web-design-section.redesigned:hover .scroll-nav-arrow,
    .team-section.standalone-team:hover .scroll-nav-arrow {
        opacity: 1 !important;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(-50%) scale(1);
    }
    
    .recent-visuals-section:hover .scroll-nav-arrow.left,
    .web-design-section.redesigned:hover .scroll-nav-arrow.left,
    .team-section.standalone-team:hover .scroll-nav-arrow.left {
        transform: translateY(-50%) translateX(0) scale(1);
    }
    
    .recent-visuals-section:hover .scroll-nav-arrow.right,
    .web-design-section.redesigned:hover .scroll-nav-arrow.right,
    .team-section.standalone-team:hover .scroll-nav-arrow.right {
        transform: translateY(-50%) translateX(0) scale(1);
    }
    
    /* Add a subtle delay for smoother appearance */
    .scroll-nav-arrow.left {
        transition-delay: 0ms;
    }
    
    .scroll-nav-arrow.right {
        transition-delay: 50ms;
    }
}

/* Hide arrows completely on actual mobile devices (touch capability detection) */
@media (pointer: coarse) {
    .scroll-nav-arrow {
        display: none !important;
    }
}

/* Make movie posters less tall on mobile but more compact for horizontal layout */
.featured-marquee .feature-media.poster-ratio,
.feature-media.poster-ratio {
    aspect-ratio: 4 / 4.8; /* Slightly shorter aspect ratio for mobile */
}

/* Reduce feature content padding on mobile */
.featured-marquee .feature-content,
.feature-content {
    padding: 15px;
}

/* Optimize feature text sizes for mobile */
.featured-marquee .feature-content h3,
.feature-content h3 {
    font-size: 1.1rem;
}

.featured-marquee .feature-tag,
.feature-tag {
    font-size: 0.65rem;
    padding: 4px 8px;
}

.featured-marquee .feature-details p,
.feature-details p {
    font-size: 0.8rem;
}

.featured-marquee .feature-link,
.feature-link {
    font-size: 0.8rem;
}

/* Reduce section padding on mobile */
.recent-visuals-section {
    padding: var(--space-md) 0;
}

/* Container for horizontal scroll with fade indicator */
.recent-visuals-section .container {
    position: relative;
}

/* Add a subtle fade effect on the right to indicate more content (fallback only) */
.recent-visuals-section .container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to left, rgba(10, 10, 10, 0.8), transparent);
    pointer-events: none;
    z-index: 4;
}

/* Hide the fallback fade effect when marquee is enabled */
.featured-showcase.marquee-enabled + .recent-visuals-section .container::after {
    display: none;
}

/* ========================================== */
/* ===== AUTO-SCROLL MARQUEE STYLES (Mobile Only) ===== */
/* ========================================== */

/* Explicitly remove fade overlays on desktop */
@media (min-width: 768px) {
    .featured-showcase[data-auto-scroll-initialized]::before,
    .web-design-section.redesigned .services-grid[data-auto-scroll-initialized]::before,
    .team-section.standalone-team .standalone-team-grid[data-auto-scroll-initialized]::before {
        display: none !important;
        content: none !important;
    }
}

/* Mobile styles for auto-scrolling sections */
@media (max-width: 767px) {
    /* Ensure proper container positioning for all scrollable sections */
    .featured-showcase,
    .web-design-section.redesigned .services-grid,
    .team-section.standalone-team .standalone-team-grid {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 10px;
    }

    /* Hide scrollbars */
    .featured-showcase::-webkit-scrollbar,
    .web-design-section.redesigned .services-grid::-webkit-scrollbar,
    .team-section.standalone-team .standalone-team-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ensure parent containers have proper positioning context */
    .recent-visuals-section .container,
    .web-design-section.redesigned .container,
    .team-section.standalone-team .container {
        position: relative;
        overflow: hidden;
    }
}

/* ========================================== */
/* ===== FADE OVERLAYS FOR CAROUSELS (Mobile Only) ===== */
/* ========================================== */

/* Add fade overlays for carousel sections on mobile */
@media (max-width: 767px) {
    /* Ensure carousel containers have proper positioning context and overflow */
    .featured-showcase,
    .web-design-section.redesigned .services-grid,
    .team-section.standalone-team .standalone-team-grid,
    .scroll-nav-container .featured-showcase,
    .scroll-nav-container .services-grid,
    .scroll-nav-container .standalone-team-grid {
        position: relative;
        overflow-x: auto; /* Allow horizontal scrolling */
        overflow-y: hidden; /* Hide vertical overflow for fade effect */
    }

    /* Featured In section - fade overlay on the carousel only */
    .featured-showcase::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, 
            rgba(10, 10, 10, 1) 0%, 
            rgba(10, 10, 10, 1) 1%,
            rgba(10, 10, 10, 0.9) 3%,
            rgba(10, 10, 10, 0.5) 5%,
            rgba(10, 10, 10, 0) 7%, 
            rgba(10, 10, 10, 0) 93%, 
            rgba(10, 10, 10, 0.5) 95%,
            rgba(10, 10, 10, 0.9) 97%,
            rgba(10, 10, 10, 1) 99%,
            rgba(10, 10, 10, 1) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    /* When navigation arrows are present, move overlay to navigation container */
    .scroll-nav-container.has-featured-showcase::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, 
            rgba(10, 10, 10, 1) 0%, 
            rgba(10, 10, 10, 1) 1%,
            rgba(10, 10, 10, 0.9) 3%,
            rgba(10, 10, 10, 0.5) 5%,
            rgba(10, 10, 10, 0) 7%, 
            rgba(10, 10, 10, 0) 93%, 
            rgba(10, 10, 10, 0.5) 95%,
            rgba(10, 10, 10, 0.9) 97%,
            rgba(10, 10, 10, 1) 99%,
            rgba(10, 10, 10, 1) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    /* Hide the child overlay when parent has the navigation wrapper */
    .scroll-nav-container.has-featured-showcase .featured-showcase::before {
        display: none;
    }

    /* Web Design Services section - fade overlay on the services grid only */
    .web-design-section.redesigned .services-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, 
            var(--black) 0%, 
            var(--black) 1%,
            rgba(10, 10, 10, 0.9) 3%,
            rgba(10, 10, 10, 0.5) 5%,
            rgba(10, 10, 10, 0) 7%, 
            rgba(10, 10, 10, 0) 93%, 
            rgba(10, 10, 10, 0.5) 95%,
            rgba(10, 10, 10, 0.9) 97%,
            var(--black) 99%,
            var(--black) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    /* When navigation arrows are present, move overlay to navigation container */
    .scroll-nav-container.has-services-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, 
            var(--black) 0%, 
            var(--black) 1%,
            rgba(10, 10, 10, 0.9) 3%,
            rgba(10, 10, 10, 0.5) 5%,
            rgba(10, 10, 10, 0) 7%, 
            rgba(10, 10, 10, 0) 93%, 
            rgba(10, 10, 10, 0.5) 95%,
            rgba(10, 10, 10, 0.9) 97%,
            var(--black) 99%,
            var(--black) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    /* Hide the child overlay when parent has the navigation wrapper */
    .scroll-nav-container.has-services-grid .services-grid::before {
        display: none;
    }

    /* Team section - fade overlay on the team grid only */
    .team-section.standalone-team .standalone-team-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, 
            var(--black) 0%, 
            var(--black) 1%,
            rgba(10, 10, 10, 0.9) 3%,
            rgba(10, 10, 10, 0.5) 5%,
            rgba(10, 10, 10, 0) 7%, 
            rgba(10, 10, 10, 0) 93%, 
            rgba(10, 10, 10, 0.5) 95%,
            rgba(10, 10, 10, 0.9) 97%,
            var(--black) 99%,
            var(--black) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    /* When navigation arrows are present, move overlay to navigation container */
    .scroll-nav-container.has-team-grid::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, 
            var(--black) 0%, 
            var(--black) 1%,
            rgba(10, 10, 10, 0.9) 3%,
            rgba(10, 10, 10, 0.5) 5%,
            rgba(10, 10, 10, 0) 7%, 
            rgba(10, 10, 10, 0) 93%, 
            rgba(10, 10, 10, 0.5) 95%,
            rgba(10, 10, 10, 0.9) 97%,
            var(--black) 99%,
            var(--black) 100%);
        pointer-events: none;
        z-index: 10;
    }
    
    /* Hide the child overlay when parent has the navigation wrapper */
    .scroll-nav-container.has-team-grid .standalone-team-grid::before {
        display: none;
    }

    /* Ensure parent containers still have proper positioning for layout */
    .recent-visuals-section .container,
    .web-design-section.redesigned .container,
    .team-section.standalone-team .container {
        position: relative;
    }

    /* Remove the old fallback fade effect */
    .recent-visuals-section .container::after {
        display: none;
    }
}

/* Hide fade overlays on desktop */
@media (min-width: 768px) {
    .featured-showcase::before,
    .web-design-section.redesigned .services-grid::before,
    .team-section.standalone-team .standalone-team-grid::before {
        display: none !important;
        content: none !important;
    }
}

/* ================================================ */
/* ===== VISUAL MEDIA SECTION STYLES ===== */
/* ================================================ */

/* ================================================ */
/* ===== COMBINED SERVICES SECTION STYLES ===== */
/* ================================================ */

.services-section.redesigned {
    background-color: var(--black);
    padding: var(--space-lg) 0;
    position: relative;
}

.services-section.redesigned::before,
.services-section.redesigned::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,184,0,0.2) 50%, rgba(255,255,255,0) 100%);
}

.services-section.redesigned::before { top: 0; }
.services-section.redesigned::after { bottom: 0; }

/* Section Header - Now handled in layout.css for consistency */

/* Content Layout */
.services-section.redesigned .services-content {
    padding: 0;
}

.services-section.redesigned .services-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light-gray);
    margin-bottom: var(--space-md);
    text-align: left;
}

/* Service Category Tabs */
.services-tabs-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto var(--space-md) auto;
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 4px;
    border: 1px solid var(--gray);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.services-tabs-track {
    display: flex;
    width: 100%;
    height: 50px;
    position: relative;
    gap: 2px;
}

.service-tab {
    flex: 1;
    min-width: 0;
    position: relative;
    cursor: pointer;
    background-color: transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
}

.service-tab.active {
    background-color: var(--accent);
}

.service-tab:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

.service-tab:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent);
}

.tab-category {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1px;
    transition: color 0.3s ease;
}

.tab-subtitle {
    font-size: 0.7rem;
    color: var(--light-gray);
    transition: color 0.3s ease;
    font-weight: 400;
}

.service-tab.active .tab-category,
.service-tab.active .tab-subtitle {
    color: var(--black);
    font-weight: 600;
}

/* Services Display Container */
.services-display-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gray);
}



/* Services Grid */
.services-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--dark-gray);
}

.services-grid.active {
    display: grid;
    animation: fadeInUp 0.4s ease forwards;
}

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

.services-section.redesigned .service-card {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: 1px solid var(--gray);
}

.services-section.redesigned .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.services-section.redesigned .service-icon-wrapper {
    background-color: var(--accent);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.services-section.redesigned .service-icon {
    font-size: 32px;
    color: var(--black);
}

.services-section.redesigned .service-card .service-title {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    width: 100%;
    padding: 0;
    transition: none;
}

.services-section.redesigned .service-card .service-description {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Responsive Design */
@media (max-width: 767px) {
    .services-section.redesigned .container {
        padding: 0 8px;
    }
    
    .services-section.redesigned .services-content { 
        padding: 0; 
    }
    
    .services-section.redesigned .services-intro { 
        margin-bottom: var(--space-md);
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Clean Mobile Layout - No Sticky */
    .services-tabs-container {
        max-width: 100% !important;
        margin: 0 auto var(--space-sm) auto !important;
        padding: 4px !important;
        background-color: var(--dark-gray) !important;
        border-radius: 8px !important;
        border: 1px solid var(--gray) !important;
        display: block !important;
        overflow: visible !important;
        position: relative !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    .services-tabs-track { 
        height: 50px !important;
        gap: 2px !important;
        display: flex !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .service-tab {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        cursor: pointer !important;
        background-color: transparent !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        border: none !important;
        min-height: 46px !important;
        position: relative !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
    
    .service-tab.active {
        background-color: var(--accent) !important;
    }
    
    .service-tab:hover:not(.active) {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
    
    .tab-category { 
        font-size: clamp(0.75rem, 2.5vw, 0.85rem) !important;
        font-weight: 600 !important;
        color: var(--white) !important;
        line-height: 1.1 !important;
        margin-bottom: 2px !important;
        transition: color 0.3s ease !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 2px !important;
    }
    
    .tab-subtitle { 
        font-size: clamp(0.6rem, 2vw, 0.65rem) !important;
        color: var(--light-gray) !important;
        transition: color 0.3s ease !important;
        font-weight: 400 !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        padding: 0 2px !important;
    }
    
    .service-tab.active .tab-category,
    .service-tab.active .tab-subtitle {
        color: var(--black) !important;
        font-weight: 600 !important;
    }



    /* Services Display Container on Mobile */
    .services-display-container {
        margin: 0;
        border-radius: 12px;
        background-color: var(--dark-gray);
    }

    /* Services Grid on Mobile - Responsive 2-Column Layout */
    .services-grid {
        display: none;
        padding: var(--space-sm);
    }
    
    .services-grid.active {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding: 0;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }

    .services-section.redesigned .service-card {
        width: 100%;
        padding: 8px;
        background-color: var(--dark-gray);
        border-radius: 8px;
        border: 1px solid var(--gray);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 150px;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-sizing: border-box;
    }

    .services-section.redesigned .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .services-section.redesigned .service-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
        background-color: var(--accent);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .services-section.redesigned .service-icon {
        font-size: 24px;
        color: var(--black);
    }

    .services-section.redesigned .service-card .service-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 8px;
        line-height: 1.2;
        color: var(--white);
    }

    .services-section.redesigned .service-card .service-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
        color: var(--light-gray);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .services-section.redesigned .container {
        padding: 0 4px;
    }
    
    .services-grid.active {
        gap: 4px;
        padding: 0;
    }

    .services-section.redesigned .service-card {
        padding: 6px;
        min-height: 140px;
    }

    .services-section.redesigned .service-icon-wrapper {
        width: 36px;
        height: 36px;
        margin-bottom: 6px;
    }

    .services-section.redesigned .service-icon {
        font-size: 18px;
    }

    .services-section.redesigned .service-card .service-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .services-section.redesigned .service-card .service-description {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .services-grid.active {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
     .services-grid.active {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        gap: 12px;
        padding-right: 15px;
    }

    .services-section.redesigned .service-card {
        min-width: 200px;
        padding: 14px;
    }
}
