/* ==========================================================================
   THE PEARL HORIZON - PROJECTS (NEO-CORPORATE FLOATING TABS)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --project-font-display: 'Outfit', sans-serif;
    --project-font-body: 'Inter', sans-serif;
    
    --project-navy: #0F172A;
    --project-indigo: #4F46E5;
    --project-pink: #EC4899;
    --project-white: #FFFFFF;
    --project-slate-50: #F8FAFC;
    --project-slate-100: #F1F5F9;
    --project-slate-200: #E2E8F0;
    --project-slate-600: #475569;
    --project-slate-800: #1E293B;
    --project-slate-900: #0F172A;
    
    --project-radius: 24px;
}

.projects-redesign-wrapper {
    background: #FAFAFA;
    font-family: var(--project-font-body);
    color: var(--project-slate-600);
    padding: 140px 0 100px;
    overflow-x: hidden;
}

@media (max-width: 1024px) {
    .projects-redesign-wrapper {
        padding: 60px 0 40px;
    }
}

/* Hero */
.projects-hero-modern {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.editorial-header-pro { display: flex; flex-direction: column; gap: 15px; }
.editorial-tag-pro { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: var(--project-indigo); margin-bottom: 5px; }
.editorial-title-pro { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; color: var(--project-slate-900); margin: 0; }
.editorial-accent-pro { height: 4px; width: 60px; background: linear-gradient(135deg, var(--project-indigo) 0%, var(--project-pink) 100%); margin-top: 10px; border-radius: 2px; }

/* ==========================================================================
   Vertical Tabs Layout
   ========================================================================== */
.projects-tabs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: start;
}

/* Left: Floating Pill Tabs */
.projects-sidebar {
    position: sticky;
    top: 120px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-tab-btn {
    width: 100%;
    text-align: left;
    background: var(--project-white);
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 20px 30px;
    border-radius: 100px; /* Pill shape */
    font-family: var(--project-font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--project-slate-600);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.project-tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    color: var(--project-slate-900);
    border-color: rgba(79, 70, 229, 0.15);
}

.project-tab-btn.active {
    background: linear-gradient(135deg, var(--project-indigo) 0%, var(--project-pink) 100%);
    color: var(--project-white);
    border: none;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
    transform: translateX(10px);
}

.tab-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: all 0.3s ease;
    stroke-width: 2;
}

.project-tab-btn.active .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Right: Content Panels */
.projects-content-area {
    position: relative;
    min-height: 500px;
}

.project-panel {
    display: none;
    background: var(--project-white);
    border-radius: var(--project-radius);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.04);
    overflow: hidden;
    animation: fadeUpScale 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.project-panel.active {
    display: block;
}

@keyframes fadeUpScale {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Integrated Top Banner */
.panel-banner {
    background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
    padding: 60px;
    position: relative;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.panel-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: repeating-radial-gradient(
        circle at 100% 50%,
        transparent,
        transparent 30px,
        rgba(79, 70, 229, 0.04) 30px,
        rgba(79, 70, 229, 0.04) 31px
    );
    pointer-events: none;
    z-index: 0;
}

img.panel-banner-watermark {
    position: absolute;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 350px;
    height: auto;
    opacity: 0.12;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

.panel-banner-icon {
    width: 64px;
    height: 64px;
    background: var(--project-white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--project-indigo);
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.1);
    position: relative;
    z-index: 2;
}

.panel-banner-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.panel-title {
    font-family: var(--project-font-display);
    font-size: 42px;
    font-weight: 900;
    color: var(--project-slate-900);
    letter-spacing: -0.02em;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Reading Zone */
.panel-body {
    padding: 60px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--project-slate-600);
    background: var(--project-white);
}

.panel-body p {
    margin-bottom: 24px;
}

.panel-body p:last-child {
    margin-bottom: 0;
}

.panel-body strong {
    font-weight: 800;
    color: var(--project-slate-900);
    font-size: 20px;
    display: block;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .projects-hero-modern {
        padding: 0 5% 30px;
    }

    .projects-tabs-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .projects-sidebar {
        position: sticky;
        top: 0;
        z-index: 100;
        background: #FAFAFA;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        padding: 10px 5%;
        margin: 0 -5%;
        gap: 6px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
        overflow: hidden;
    }
    
    .projects-sidebar::-webkit-scrollbar { 
        display: none; 
    }
    
    .project-tab-btn {
        flex: 1;
        justify-content: center;
        width: auto;
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 11px;
        border-radius: 50px;
        gap: 8px;
    }

    .tab-icon {
        width: 14px;
        height: 14px;
    }
    
    .project-tab-btn.active {
        transform: scale(1.02);
    }
}

/* ==========================================================================
   3. Animated Construction Banner (Ethereal Glass Light Theme)
   ========================================================================== */
.projects-construction-pattern {
    width: 100%;
    max-width: none;
    margin: 0 0 60px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 0;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

/* Background Animation: Ethereal Building Construction */
.light-building-anim {
    position: absolute;
    bottom: -20px;
    left: 0;
    transform: none;
    width: 100%;
    min-width: 1400px;
    height: 100%;
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.anim-framework {
    animation: fadeInOut 8s infinite;
}

.anim-drop {
    opacity: 0;
    transform: translateY(-100px);
    animation: blockDrop 8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.anim-drop.drop-1 { animation-delay: 0.5s; }
.anim-drop.drop-2 { animation-delay: 1.0s; }
.anim-drop.drop-3 { animation-delay: 1.5s; }
.anim-drop.drop-4 { animation-delay: 2.0s; }
.anim-drop.drop-5 { animation-delay: 2.5s; }
.anim-drop.drop-6 { animation-delay: 3.0s; }

.anim-crane {
    transform-origin: 300px 280px;
}

.anim-hook {
    animation: hookMove 8s ease-in-out infinite;
}

@keyframes blockDrop {
    0% { opacity: 0; transform: translateY(-150px); }
    15% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(50px); }
}

@keyframes hookMove {
    0% { transform: translate(-150px, 0); }
    20% { transform: translate(-150px, 0); }
    30% { transform: translate(0, 0); }
    80% { transform: translate(0, 0); }
    90%, 100% { transform: translate(-150px, 0); }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 80% { opacity: 0.4; }
}

/* Center Campus Scanning Animation */
.anim-fade-in {
    opacity: 0;
    animation: simpleFade 8s ease-in-out infinite;
}
.anim-fade-in.delay-1 { animation-delay: 1s; }
.anim-fade-in.delay-2 { animation-delay: 2s; }
.anim-fade-in.delay-3 { animation-delay: 3s; }
.anim-fade-in.delay-4 { animation-delay: 4s; }

.anim-scan-line {
    animation: scanMove 8s linear infinite;
}

/* Right Campus Growing Animation */
.anim-grow {
    animation: scaleGrow 8s ease-in-out infinite;
}
.anim-grow.delay-1 { animation-delay: 0.5s; }
.anim-grow.delay-2 { animation-delay: 1.5s; }
.anim-grow.delay-3 { animation-delay: 2.5s; }

@keyframes simpleFade {
    0%, 10% { opacity: 0; }
    30%, 80% { opacity: 0.8; }
    90%, 100% { opacity: 0; }
}

@keyframes scanMove {
    0% { transform: translateY(-50px); opacity: 0; }
    10% { opacity: 1; }
    80% { transform: translateY(200px); opacity: 1; }
    90%, 100% { transform: translateY(200px); opacity: 0; }
}

@keyframes scaleGrow {
    0%, 10% { transform: scaleY(0); opacity: 0; }
    40%, 80% { transform: scaleY(1); opacity: 0.8; }
    90%, 100% { transform: scaleY(0); opacity: 0; }
}

/* Central Message Styling */
.construction-message {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px 60px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
}

.construction-message h3 {
    font-family: var(--project-font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin: 0 0 10px 0;
    letter-spacing: -0.02em;
    background: linear-gradient(270deg, var(--project-indigo), var(--project-pink), #3B82F6, var(--project-indigo));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.construction-message p {
    font-size: 1.2rem;
    color: var(--project-slate-600);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.construction-message p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--project-pink);
    animation: expandLine 1s ease forwards 1.5s;
}

/* Animations */
@keyframes slideUpFade {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 60px; }
}

@media (max-width: 768px) {
    .projects-construction-pattern {
        padding: 30px 15px;
        min-height: 180px;
    }

    .construction-message {
        padding: 20px 30px;
        width: 90%;
    }

    .construction-message h3 {
        font-size: 1.5rem;
        white-space: nowrap;
        letter-spacing: -0.01em;
    }

    .construction-message p {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .panel-banner {
        padding: 30px 20px;
    }

    .panel-banner-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 15px;
    }

    .panel-banner-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .panel-title {
        font-size: 28px;
    }
    
    .panel-body {
        padding: 30px 20px;
        font-size: 15px;
    }
    
    img.panel-banner-watermark {
        width: 180px;
        right: 5px;
        top: 50%;
    }
}
