/* SOCO EXPLORE OVERLAY BUTTON */
.soco-explore-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    padding: 14px 28px;
    background: rgba(14, 34, 57, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.soco-explore-btn:hover {
    background: #0E2239;
    border-color: #0E2239;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* WORK PAGE STYLES */
:root {
    --bg-dark: #0A0A0A;
    --card-bg: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --accent: #3A78C9;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

.work-page {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-snap-type: y mandatory; /* Mandatory for strict centering */
}

/* HERO */
.work-hero {
    padding: clamp(100px, 12vh, 140px) 0 80px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.work-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    width: 100%;
}

/* PREVIEW PANEL (LEFT) */
.work-preview-panel {
    position: relative;
    border-radius: 24px;
    min-height: 480px;
    background: #0D0D0D;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.panel-static {
    position: absolute;
    inset: 0;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.panel-static .label-small {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 24px;
    display: inline-block;
    align-self: flex-start;
}

.panel-static h1 {
    font-size: clamp(2.5rem, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #fff;
}

.panel-static p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 440px;
}

.panel-dynamic {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.preview-active .panel-static {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.preview-active .panel-dynamic {
    opacity: 1;
    transform: translateY(0);
}

.preview-media-container {
    height: 100%; width: 100%;
    position: relative;
}

.preview-media-container img, 
.preview-media-container video {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.4s ease;
}

.preview-carousel {
    display: flex;
    height: 100%; width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090b10;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(10,10,10,0.4) 60%, rgba(10,10,10,0.9) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    z-index: 5;
}

.preview-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.preview-text-block {
    max-width: 70%;
}

.preview-name {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.preview-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.preview-cta {
    padding: 12px 24px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.preview-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 0 20px rgba(58, 120, 201, 0.4);
}

/* NAV LIST (RIGHT) */
.work-hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.work-nav-item {
    padding: 16px 0;
    font-size: clamp(1.2rem, 1.8vw, 24px);
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    border-bottom: 1px solid transparent;
}

.work-nav-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.5;
}

.work-nav-item:hover, 
.work-nav-item.active {
    color: #fff;
    opacity: 1;
    transform: translateX(12px);
}

.work-nav-item.active span {
    opacity: 1;
}

.work-nav-item:hover { opacity: 0.8; }

.work-nav-item.active { 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

/* FEATURED PROJECT */
.featured-work {
    padding: 100px 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.featured-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}

.featured-visual:hover {
    transform: scale(1.01);
}

.featured-visual iframe, 
.featured-visual img {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    border: none;
}

.featured-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.featured-content .desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.highlights {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.highlights li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* GRID */
.work-grid-section {
    padding: 100px 0;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    transition: all 0.4s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.project-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.project-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-weight: 600;
}

.view-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

/* CASE STUDY PREVIEW */
.depth-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-subtle);
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* RHINOBORE FEATURED SECTION */
.featured-rhinobore {
    padding: 120px 0;
    background: radial-gradient(circle at left bottom, rgba(58, 120, 201, 0.05), transparent 40%);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.rhino-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: stretch;
}

.rhino-visual-container, .rhino-content-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rhino-content-container {
    height: 100%;
}

.featured-project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.25rem, 2.5vw, 24px);
    font-weight: 700;
    margin-bottom: 40px; /* Space before grid */
    color: #fff;
    text-align: left;
    letter-spacing: -0.01em;
    width: 100%;
}

#soco .featured-project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 56px); /* Reduced max from 78px to help fit in one line */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 50px;
    background: linear-gradient(to bottom, #fff 40%, rgba(154, 216, 223, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#rhinobore .featured-project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 48px); /* Reduced max from 64px to help fit in one line */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 50px;
    background: linear-gradient(to bottom, #fff 50%, rgba(255,255,255,0.3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rhino-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: stretch;
    width: 100%;
}

#websites {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(58, 120, 201, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(154, 216, 223, 0.03) 0%, transparent 50%);
}

#websites .websites-split {
    display: grid;
    grid-template-columns: 0.3fr 0.7fr; /* 30/70 Split as requested */
    gap: 60px;
    align-items: center;
    width: 100%;
}

#websites .websites-grid-side {
    width: 100%;
}

#websites .work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

#websites .project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 16px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#websites .project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
    transform: translateY(-8px);
}

#websites .project-card-image {
    aspect-ratio: 16/9;
    border-radius: 10px;
    margin-bottom: 12px;
}

#websites .project-name {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

#websites .project-tags {
    gap: 6px;
}

#websites .tag {
    font-size: 9px;
    padding: 2px 8px;
}

#websites .websites-title-side {
    position: relative;
    padding-left: 0;
    padding-right: 40px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

#websites .websites-title-side::before {
    display: none;
}

#websites .featured-project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 6vw, 72px); /* Large Typography */
    line-height: 0.95;
    font-weight: 800;
    background: linear-gradient(to bottom, #fff 40%, rgba(255,255,255,0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

#websites .featured-project-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    #websites .websites-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    #websites .websites-title-side {
        padding-right: 0;
        border-right: none;
        text-align: center;
        margin-bottom: 20px;
    }

    #websites .featured-project-title {
        font-size: 3rem;
        margin-bottom: 8px;
    }
}

.rhino-visual {
    position: relative;
    border-radius: 20px;
    background: #111;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    overflow: hidden;
    flex: 1; /* Stretch to fill vertically if parent is stretched */
    min-height: 380px;
}

#soco .rhino-visual {
    min-height: 320px; /* Reduced Height for SoCo carousel */
}

.rhino-carousel {
    display: flex;
    height: 100%; width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.rhino-carousel img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background: transparent;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 6px; height: 6px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

/* Rhino Navigation Buttons */
.rhino-visual {
    position: relative;
    overflow: hidden;
}

.rhino-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.rhino-visual:hover .rhino-nav {
    opacity: 1;
}

.rhino-prev { left: 20px; }
.rhino-next { right: 20px; }

.rhino-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.rhino-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.rhino-item {
    margin-bottom: 30px;
}

.rhino-item h4 {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.rhino-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 968px) {
    .rhino-grid { grid-template-columns: 1fr; gap: 40px; }
}
.depth-item {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 0.8fr 1.25fr;
    gap: 60px;
}

.depth-item:last-child {
    border-bottom: none;
}

.depth-item h3 {
    font-size: 2rem;
    font-weight: 700;
}

.depth-content {
    display: grid;
    gap: 32px;
}

.depth-block h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.depth-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* PROCESS */
.process-section {
    padding: 100px 0;
    background: #0D0D0D;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.process-card {
    padding: 32px;
}

.process-num {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

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

/* FINAL CTA */
.final-cta {
    padding: 160px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(58, 120, 201, 0.05) 0%, transparent 70%);
    scroll-snap-align: center;
    scroll-snap-stop: always;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.final-cta h2 {
    font-size: clamp(2.5rem, 5vw, 64px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .work-hero-split { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .featured-card { grid-template-columns: 1fr; padding: 40px; }
    .work-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }
    .depth-item { grid-template-columns: 1fr; gap: 32px; }
    .panel-static p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
    .work-hero { padding-top: 140px; }
    .featured-project-title { font-size: 2rem; }
}
