/* 
 * Masterpiece Home Styles
 * Loaded ONLY on front page 
 */

/* -------------------------------------------------------------------
   SECTION 1: HERO (Infinite Text Zoom MP1)
------------------------------------------------------------------- */
.hero-zoom-wrap {
    height: 300vh;
    position: relative;
    background: #ffffff;
}

.hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.zoom-bg {
    position: absolute;
    inset: 0;
    background: #ffffff;
    opacity: 0;
    z-index: -1;
}

.zoom-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    transform-origin: 50% 50%;
    z-index: 5;
}

.zoom-line-1 {
    font-family: 'Outfit', sans-serif;
    font-size: 15vw;
    font-weight: 900;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 2px #002B2B;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.zoom-line-2 {
    font-family: 'Outfit', sans-serif;
    font-size: 15vw;
    font-weight: 900;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 2px #D4AF37;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: -2vw;
}

.hero-content-inside {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    text-align: center;
}

/* ===== CREATIVE ANIMATIONS LAYER ===== */

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    border: 1.5px solid;
    opacity: 0;
    animation: floatShape 20s infinite ease-in-out;
}

.geo-circle { border-radius: 50%; }
.geo-diamond { transform: rotate(45deg); }

.geo-hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: none;
    background: transparent;
    outline: 1.5px solid;
    outline-offset: -1.5px;
}

.geo-ring {
    border-radius: 50%;
    border-width: 1px;
}

.geo-cross::before,
.geo-cross::after {
    content: '';
    position: absolute;
    background: currentColor;
}

.geo-cross::before {
    width: 100%;
    height: 1.5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.geo-cross::after {
    width: 1.5px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.geo-cross { border: none; }

@keyframes floatShape {
    0% { opacity: 0; transform: translateY(40px) rotate(0deg) scale(0.7); }
    10% { opacity: 0.35; }
    50% { transform: translateY(-60px) rotate(180deg) scale(1); opacity: 0.2; }
    90% { opacity: 0.35; }
    100% { opacity: 0; transform: translateY(40px) rotate(360deg) scale(0.7); }
}

/* Aurora gradient blobs */
.aurora-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    mix-blend-mode: normal;
}

.aurora-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #D4AF37, transparent 70%);
    top: -10%;
    right: -5%;
    animation: auroraMove1 12s infinite ease-in-out alternate;
}

.aurora-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #006d5b, transparent 70%);
    bottom: -15%;
    left: -5%;
    animation: auroraMove2 15s infinite ease-in-out alternate;
}

.aurora-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #D4AF37, transparent 70%);
    top: 40%;
    left: 30%;
    animation: auroraMove3 18s infinite ease-in-out alternate;
}

@keyframes auroraMove1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-80px, 60px) scale(1.3); }
}

@keyframes auroraMove2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, -50px) scale(1.2); }
}

@keyframes auroraMove3 {
    0% { transform: translate(0, 0) scale(0.8); }
    100% { transform: translate(-60px, -80px) scale(1.1); }
}

/* Animated dot grid */
.dot-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(0, 43, 43, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridPulse 8s infinite ease-in-out;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* Glow line accents */
.glow-line {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    height: 1px;
    animation: glowSweep 6s infinite ease-in-out;
}

.glow-line-1 {
    width: 60%;
    top: 25%;
    left: -10%;
    animation-delay: 0s;
}

@keyframes glowSweep {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(200%); opacity: 0; }
}

/* Beautiful Scroll Indicator */
.scroll-prompt {
    position: absolute;
    bottom: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    gap: 0.5rem;
    pointer-events: none;
}

.scroll-text-label {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #002B2B;
    letter-spacing: 1px;
    animation: pulseText 2s infinite;
}

.scroll-chevrons {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chevron-icon {
    width: 14px;
    height: 14px;
    border-right: 2.5px solid #D4AF37;
    border-bottom: 2.5px solid #D4AF37;
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
    margin-top: -6px;
}

.chevron-icon:nth-child(1) { animation-delay: 0s; }
.chevron-icon:nth-child(2) { animation-delay: 0.15s; }
.chevron-icon:nth-child(3) { animation-delay: 0.3s; }

@keyframes scrollBounce {
    0% { opacity: 0; transform: translateY(-8px) rotate(45deg) scale(0.8); }
    50% { opacity: 1; transform: translateY(0) rotate(45deg) scale(1); }
    100% { opacity: 0; transform: translateY(8px) rotate(45deg) scale(0.8); }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* -------------------------------------------------------------------
   SECTION 2: BRAND MESSAGE (Spotlight MP8) 
------------------------------------------------------------------- */
.hero-spotlight {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #002B2B;
    z-index: 20;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.02);
}

.spotlight-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 21;
    background: radial-gradient(circle 300px at var(--x, 50vw) var(--y, 50vh), rgba(212, 175, 55, 0.15) 0%, transparent 100%);
    transition: background 0.1s;
}

.base-content {
    position: relative;
    z-index: 20;
    text-align: center;
}

.carved-text {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 900;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.15);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35);
    letter-spacing: -2px;
}

.reveal-layer {
    position: absolute;
    inset: 0;
    z-index: 22;
    background: linear-gradient(135deg, #003d3d, #004a3a);
    pointer-events: none;
    clip-path: circle(150px at var(--x, 50vw) var(--y, 50vh));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: inset 0 0 60px rgba(212, 175, 55, 0.15);
}

.gold-text {
    font-size: clamp(4rem, 10vw, 10rem);
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(135deg, #D4AF37, #f5d76e, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.4));
    letter-spacing: -2px;
}

.sub-reveal {
    color: #D4AF37;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.hero-spotlight.moving .sub-reveal {
    opacity: 1;
}

/* Mobile & iPad Overrides for Spotlight */
@media (max-width: 1024px) {
    .reveal-layer, 
    .spotlight {
        display: none !important;
    }
    .sub-reveal {
        opacity: 1 !important;
    }
}

/* -------------------------------------------------------------------
   SECTION 3: METHODOLOGY (MP2: Sticky 3D Stack)
------------------------------------------------------------------- */
.stack-wrapper {
    position: relative;
    z-index: 30;
    background: #fdfdfd;
    padding-top: 5vh;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.05);
    margin-top: -40px;
}

.card-container {
    height: 300vh;
    position: relative;
}

.pinned-cards {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;
    perspective: 1500px;
    overflow: hidden;
}

.stack-card {
    position: absolute;
    top: 25vh;
    width: 90vw;
    max-width: 1100px;
    height: 60vh;
    border-radius: 40px;
    display: flex;
    transform-origin: top center;
    overflow: hidden;
    border: 1px solid rgba(0, 43, 43, 0.05);
}
@media (max-width: 768px) {
    .stack-card {
        top: 15vh;
        height: 75vh;
        border-radius: 30px;
    }
}

.sc-1 {
    background: #002B2B;
    z-index: 1;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 175, 55, 0.1);
}
.sc-2 {
    background: #002B2B;
    z-index: 2;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(212, 175, 55, 0.1);
}
.sc-3 {
    background: #002B2B;
    z-index: 3;
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.1);
}
.sc-4 {
    background: #002B2B;
    color: white;
    border-color: rgba(212, 175, 55, 0.2);
    z-index: 4;
    box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.5);
}

.stack-card-content {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 4rem;
    gap: 4rem;
}

.sc-text { flex: 1; }
.sc-img {
    flex: 1;
    height: 100%;
    border-radius: 24px;
    background: rgba(0, 43, 43, 0.03);
    overflow: hidden;
    position: relative;
}
.sc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -------------------------------------------------------------------
   SECTION 4: SERVICES (MP8: Horizontal Scroll Track)
------------------------------------------------------------------- */
.services-horizon {
    overflow: hidden;
    background: #ffffff;
    position: relative;
    z-index: 40;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -50px;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.02);
}

.services-track {
    display: flex;
    gap: 4rem;
    padding: 5rem 4rem 10rem;
    width: fit-content;
}

.st-card {
    width: 450px;
    height: 500px;
    border-radius: 40px;
    background: #fdfdfd;
    border: 1px solid rgba(0, 43, 43, 0.05);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
}

.st-card:hover {
    transform: translateY(-20px);
    box-shadow: 0 40px 80px rgba(0, 43, 43, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.st-num {
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 43, 43, 0.03);
    position: absolute;
    top: -20px;
    right: 20px;
    transition: color 0.4s;
}

.st-card:hover .st-num { color: rgba(212, 175, 55, 0.1); }

.st-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-dark);
    position: relative;
    z-index: 10;
}

.st-desc {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.8;
    position: relative;
    z-index: 10;
}

.st-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.4s;
}

.st-card:hover .st-btn {
    background: var(--brand-gold);
    transform: scale(1.1) rotate(-45deg);
}

/* -------------------------------------------------------------------
   SECTION 5: WORK GALLERY (Concept 11: Horizontal Pinned Projects)
------------------------------------------------------------------- */
.work-section {
    background: #f8f9fa;
    position: relative;
    z-index: 50;
}

.work-pin {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0 4rem;
    position: sticky;
    top: 0;
}

.work-track {
    display: flex;
    gap: 4vw;
    padding: 4rem 0;
    width: fit-content;
}

.wt-card {
    width: 60vw;
    max-width: 900px;
    height: 60vh;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transform-origin: left center;
}

.wt-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

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

.wt-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0, 43, 43, 0.9), transparent);
    color: white;
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.wt-cat {
    font-size: 0.875rem;
    font-weight: bold;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}

.wt-title { font-size: 2.5rem; font-weight: 900; }
