/*!
 * CSEC Design System v2.0
 * Copyright (c) 2026 Civil and Structural Engineering Consultants (Pvt) Ltd.
 * All Rights Reserved.
 */

/* --- GOOGLE FONTS & BOOTSTRAP ICONS IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css');

/* --- RESET & ELIMINATE BROWSER MARGIN GAPS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background-color: var(--fern-deep-forest) !important;
    color: var(--text-warm-white);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: var(--font-primary);
}

/* Enforce Primary Font on All Headings, Paragraphs and Links */
h1, h2, h3, h4, h5, h6, p, a, span, button, input {
    font-family: var(--font-primary);
}

/* --- CSS VARIABLES (Based on the FERN palette) --- */
:root {
    --fern-dark-green-rgb: 55, 74, 56; 
    --fern-dark-green: #374a38;
    --fern-deep-forest: #1a261b;
    --fern-spec-forest: #1d2d1f;
    --fern-darkest-forest: #121b13;
    --fern-sage-green: #7d9178;
    --fern-light-green: #b9c7b9;
    --fern-taupe: #b3a998;
    --lime-green: #a4d65e;
    --lime-neon-glow: rgba(164, 214, 94, 0.8);
    --danger-red: #ff4d4d;
    
    /* Warm Text Notes & Warm Bay */
    --text-warm-white: #f4f2ec;
    --text-warm-muted: #d5d1c5;
    --text-warm-taupe: #b3a998;
    --warm-bay-bg: #f4f2ec;
    --warm-muted-bay-bg: #d5d1c5;
    --card-dark-brown: #28211b;
    --card-beige: #F5F5DC;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Playfair Display', Didot, Garamond, serif;
}

/* --- GLOBAL TEXT SELECTION HIGHLIGHT --- */
::selection {
    background-color: var(--lime-green);
    color: var(--fern-dark-green);
}

::-moz-selection {
    background-color: var(--lime-green);
    color: var(--fern-dark-green);
}

/* --- CLEAN SLEEK SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--lime-green);
}

/* --- GLOWING LIME GREEN LOADING SPARK --- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent !important;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: var(--lime-green);
    position: relative;
    box-shadow: 0 0 12px var(--lime-neon-glow);
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-spark {
    position: absolute;
    right: -4px;
    top: -3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #ffffff, 0 0 20px var(--lime-green);
}

/* --- HERO SLIDER CONTAINER --- */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
}

.hero-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--fern-deep-forest);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

/* --- SLIDES --- */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
    transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 1;
    will-change: opacity, transform;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    transition: opacity 0.9s cubic-bezier(0.65, 0, 0.35, 1),
                transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 2;
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    filter: brightness(0.45);
}

.slide:nth-child(1) { background-color: var(--fern-sage-green); }
.slide:nth-child(2) { background-color: var(--fern-taupe); }
.slide:nth-child(3) { background-color: var(--fern-dark-green); }
.slide:nth-child(4) { background-color: var(--fern-light-green); }
.slide:nth-child(5) { background-color: var(--fern-taupe); }

/* Desktop Slide Content */
.slide-content {
    position: absolute;
    bottom: 14%;
    left: 4rem;
    color: var(--text-warm-white);
    z-index: 3;
    max-width: 800px;
    cursor: pointer;
    transform-origin: left bottom;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s linear;
}

.slide-content:hover {
    transform: scale(1.04);
}

.slide-subtitle {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0.85;
    font-weight: 400;
    position: relative;
    display: inline-block;
}

.slide-subtitle::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--lime-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-content:hover .slide-subtitle::after {
    transform: scaleX(1);
}

.slide-title {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--lime-green) 50%, var(--text-warm-white) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide-content:hover .slide-title {
    background-position: 0 0;
}

.slide-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* --- SLIDER CONTROLS --- */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    right: 4rem;
    display: flex;
    gap: 1rem;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.4s ease;
}

.dot:hover { background-color: rgba(255, 255, 255, 0.7); }

.dot.active {
    background-color: var(--lime-green);
    transform: scale(1.5);
    box-shadow: 0 0 8px var(--lime-neon-glow);
}

.play-pause-btn {
    position: absolute;
    bottom: 3rem;
    left: 4rem;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-warm-white);
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0.7;
}

.play-pause-btn:hover {
    color: var(--lime-green);
    opacity: 1;
    transform: scale(1.05);
}

.play-pause-btn .text {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

.play-pause-btn .icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- HEADING ZOOM WRAPPER & APPROACHING ACCENT LINES --- */
.heading-zoom-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: pointer;
    width: fit-content;
}

.heading-zoom-text {
    display: inline-block;
    font-family: var(--font-primary);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease, text-shadow 0.4s ease;
}

.heading-zoom-wrapper:hover .heading-zoom-text {
    transform: scale(1.04);
    color: var(--lime-green);
    text-shadow: 0 0 12px rgba(164, 214, 94, 0.3);
}

.lime-accent-line {
    width: 90px;
    height: 4px;
    background-color: var(--lime-green);
    box-shadow: 0 0 10px var(--lime-neon-glow);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s ease;
}

.lime-accent-line.approached {
    transform: scaleX(1);
}

.heading-zoom-wrapper:hover .lime-accent-line {
    transform: scaleX(1.35);
    box-shadow: 0 0 18px var(--lime-neon-glow);
}

/* --- SECTION 2: WELCOME TO CSEC & 4S ETHIC --- */
.about-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 3.5rem 4rem 5rem 4rem;
    background-color: var(--fern-deep-forest);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(55, 74, 56, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(164, 214, 94, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, rgba(35, 50, 36, 0.6) 0%, rgba(26, 38, 27, 1) 100%);
    display: flex;
    align-items: center;
    z-index: 20;
}

.about-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-heading {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-warm-white);
    line-height: 1.1;
}

.about-text-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--fern-taupe);
    padding: 2.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: border-left-color 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.about-text-card:hover {
    border-left-color: var(--lime-green);
    transform: scale(1.02) translateY(-4px);
}

.paragraph-lead {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-warm-white);
    font-weight: 300;
    letter-spacing: 0.015em;
}

.paragraph-lead .drop-cap {
    font-family: var(--font-serif);
    font-size: 3rem;
    float: left;
    line-height: 0.8;
    padding-right: 0.6rem;
    padding-top: 0.2rem;
    color: var(--lime-green);
}

.paragraph-secondary {
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--text-warm-muted);
    font-weight: 300;
    letter-spacing: 0.01em;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 0.5rem;
}

.ethic-header {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    cursor: pointer;
    width: fit-content;
}

.ethic-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-warm-taupe);
    font-weight: 400;
    display: inline-block;
    transition: transform 0.4s ease, color 0.4s ease;
}

.ethic-header:hover .ethic-subtitle {
    transform: scale(1.05);
    color: var(--lime-green);
}

.ethic-words-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.ethic-words-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--lime-green), rgba(255, 255, 255, 0.1));
    opacity: 0.4;
}

.ethic-item {
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ethic-item-num {
    position: absolute;
    left: 0;
    top: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-warm-taupe);
    font-weight: 500;
    transition: color 0.4s ease;
}

.ethic-word {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--lime-green) 50%, var(--text-warm-white) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background-position 0.5s cubic-bezier(0.77, 0, 0.175, 1), transform 0.4s ease;
}

.ethic-item:hover {
    transform: translateX(8px);
}

.ethic-item:hover .ethic-word {
    background-position: 0 0;
}

.ethic-item:hover .ethic-item-num {
    color: var(--lime-green);
}

/* --- SECTION 3: OUR RECENT PROJECTS --- */
.projects-section {
    position: relative;
    width: 100%;
    padding: 6rem 4rem;
    background-color: var(--warm-bay-bg);
    color: var(--fern-dark-green);
    z-index: 20;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.projects-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.projects-left {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.projects-left:hover {
    transform: scale(1.02);
}

.projects-heading {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--fern-dark-green);
    line-height: 1.1;
}

.projects-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(55, 74, 56, 0.85);
    font-weight: 300;
    max-width: 750px;
}

.projects-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.about-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Image-Matched "EXPLORE ALL" Button */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.view-all-text {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--lime-green);
    transition: transform 0.4s ease, color 0.4s ease;
}

.big-arrow-circle {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--lime-green);
    box-shadow: 0 0 15px rgba(164, 214, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--fern-dark-green);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s ease;
    font-size: 1.4rem;
}

.big-arrow-circle i {
    position: relative;
    z-index: 2;
    color: #223223;
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.view-all-btn:hover {
    transform: scale(1.08);
}

.view-all-btn:hover .big-arrow-circle {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(164, 214, 94, 0.7);
}

.view-all-btn:hover .big-arrow-circle i {
    transform: translateX(4px);
}

/* --- SECTION 4: OUR SPECIALIZATION --- */
.specialization-section {
    position: relative;
    width: 100%;
    padding: 6rem 4rem;
    background-color: var(--fern-spec-forest);
    color: var(--text-warm-white);
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.specialization-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.specialization-heading {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-warm-white);
    line-height: 1.1;
}

.specialization-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-warm-muted);
    font-weight: 300;
    max-width: 900px;
}

.specialization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 4rem;
    margin-top: 1rem;
}

.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 2.2rem;
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, background-color 0.4s ease;
}

.spec-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: rgba(164, 214, 94, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

.spec-icon-box {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lime-green);
    font-size: 1.8rem;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.spec-title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-warm-white);
    letter-spacing: -0.01em;
}

.spec-desc {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-warm-taupe);
    font-weight: 300;
}

/* --- SECTION 5: INTERLUDE STATEMENT OF PURPOSE --- */
.statement-interlude {
    position: relative;
    width: 100%;
    padding: 6rem 4rem;
    background-color: var(--fern-sage-green);
    color: var(--fern-dark-green);
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.statement-container {
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    cursor: pointer;
    margin: 0 auto;
}

.lime-accent-line.line-center {
    width: 100px;
    height: 4px;
    background-color: var(--lime-green);
    box-shadow: 0 0 10px var(--lime-neon-glow);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), box-shadow 0.4s ease;
}

.lime-accent-line.line-center.approached {
    transform: scaleX(1);
}

.statement-text {
    font-size: 2.3rem;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.01em;
    font-family: var(--font-primary);
    text-align: center;
    background: linear-gradient(to right, var(--lime-green) 50%, var(--fern-dark-green) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
                background-position 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.statement-container:hover .statement-text,
.statement-container:focus-within .statement-text {
    transform: scale(1.05);
    background-position: 0 0;
}

.statement-container:hover .lime-accent-line.line-center,
.statement-container:focus-within .lime-accent-line.line-center {
    transform: scaleX(1.6);
    box-shadow: 0 0 18px var(--lime-neon-glow);
}

/* --- SECTION 6: BOARD MEMBERS --- */
.board-section {
    position: relative;
    width: 100%;
    padding: 6rem 4rem;
    background-color: var(--fern-taupe);
    color: var(--fern-dark-green);
    z-index: 20;
}

.board-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.board-heading {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--fern-dark-green);
    line-height: 1.1;
}

.board-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.member-card {
    background-color: var(--card-dark-brown);
    border-radius: 16px;
    padding: 2.2rem;
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 1.8rem;
    align-items: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.member-card:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: var(--lime-green);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.member-name {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-warm-white);
    letter-spacing: -0.01em;
}

.member-role {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lime-green);
    font-weight: 500;
}

.member-quals {
    font-family: var(--font-primary);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-warm-muted);
    font-weight: 300;
    margin-top: 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.8rem;
}

.member-image-box {
    width: 130px;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(164, 214, 94, 0.3);
    flex-shrink: 0;
    background-color: var(--fern-dark-green);
}

.member-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s ease;
}

.member-card:hover .member-image-box img {
    transform: scale(1.06);
}

/* --- SECTION 7: INDUSTRY ENDORSEMENT & PULL-QUOTE --- */
/* --- UPDATED SAGE GREEN INDUSTRY ENDORSEMENT SECTION --- */
.industry-quote-section {
    position: relative;
    width: 100%;
    padding: 7rem 4rem;
    background-color: var(--fern-sage-green); /* Light Sage Green (#7d9178) */
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(26, 38, 27, 0.12) 0%, transparent 50%);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 20;
}

.industry-quote-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark Card for High Contrast Over Light Sage Green */
.quote-card-glass {
    background: var(--card-dark-brown); /* Dark Warm Brown (#28211b) */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--lime-green);
    border-radius: 20px;
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
}

.quote-card-glass:hover {
    transform: scale(1.015) translateY(-4px);
    border-color: var(--lime-green);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 25px rgba(164, 214, 94, 0.2);
}

.quote-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quote-icon {
    font-size: 2.4rem;
    color: var(--lime-green);
    line-height: 1;
    filter: drop-shadow(0 0 8px var(--lime-neon-glow));
}

.quote-kicker {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--lime-green);
    font-weight: 600;
}

.quote-text {
    font-size: 1.55rem;
    line-height: 1.75;
    font-weight: 300;
    color: var(--text-warm-white);
    letter-spacing: -0.01em;
}

.quote-highlight {
    color: var(--lime-green);
    font-weight: 400;
    text-shadow: 0 0 10px rgba(164, 214, 94, 0.25);
}

.quote-attribution-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-name {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-warm-white);
    letter-spacing: -0.01em;
}

.author-role {
    font-size: 0.88rem;
    color: var(--text-warm-muted);
    font-weight: 300;
}

.source-citation-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.citation-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-warm-taupe);
    font-weight: 500;
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--lime-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(164, 214, 94, 0.1);
    border: 1px solid rgba(164, 214, 94, 0.25);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.source-link:hover {
    background: rgba(164, 214, 94, 0.2);
    border-color: var(--lime-green);
    transform: translateY(-2px);
}

.source-link i {
    font-size: 0.8rem;
}

/* Center any odd last child in 2-column member grids (index.php & about.php) */
.board-grid > .member-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1.25rem);
    margin: 0 auto;
    width: 100%;
}

/* Center any odd last child in 2-column project grids (projects.php) */
.projects-grid-container > .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 1.5rem);
    margin: 0 auto;
    width: 100%;
}

/* --- MEDIUM SCREEN BREAKPOINT (1200px & BELOW) --- */
@media (max-width: 1200px) {
    .slide-content { 
        left: 2.5rem; 
        bottom: 5rem; 
        max-width: calc(100% - 5rem); 
    }
    .slide-title { font-size: 2.4rem; }
    .slider-controls { right: 2.5rem; bottom: 2rem; }
    .play-pause-btn { left: 2.5rem; bottom: 2rem; }
    
    .about-section { padding: 4rem 2.5rem; }
    .about-container { grid-template-columns: 1fr; gap: 3.5rem; }
    .about-heading { font-size: 2.8rem; }
    .ethic-word { font-size: 3.2rem; }

    .projects-section { padding: 5rem 2.5rem; }
    .projects-container { grid-template-columns: 1fr; gap: 3rem; }
    .projects-heading { font-size: 2.8rem; }
    .projects-right { justify-content: flex-start; }

    .specialization-section { padding: 5rem 2.5rem; }
    .specialization-grid { grid-template-columns: 1fr; gap: 2rem; }
    .specialization-heading { font-size: 2.8rem; }

    .board-section { padding: 5rem 2.5rem; }
    .board-grid { grid-template-columns: 1fr; }
    .board-heading { font-size: 2.8rem; }
    .statement-text { font-size: 1.8rem; }

    .industry-quote-section { padding: 5rem 2.5rem; }
    .quote-card-glass { padding: 3rem 2.5rem; }
    .quote-text { font-size: 1.35rem; }

    .board-grid > .member-card:last-child:nth-child(odd),
    .projects-grid-container > .project-card:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: 100%;
        margin: 0;
    }
}

/* --- MOBILE SPECIFIC FIXES (BALANCED BOTTOM SLIDE TEXT & UNCLUTTERED CENTER) --- */
@media (max-width: 600px) {
    /* Fixed: Anchored close to bottom controls to leave video focal area completely clear */
    .slide-content { 
        left: 1.5rem;
        bottom: 3.8rem; /* Sits snugly right above the pause button */
        max-width: calc(100% - 3rem);
    }

    .slide-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
        margin-bottom: 0.4rem;
    }

    .slide-title { 
        font-size: clamp(1.35rem, 5.5vw, 1.7rem);
        line-height: 1.22;
        margin-bottom: 0.2rem;
        letter-spacing: -0.01em;
    }

    .slider-controls { 
        right: 1.5rem; 
        bottom: 1.4rem; 
        gap: 0.6rem;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    .play-pause-btn { 
        left: 1.5rem; 
        bottom: 1.4rem; 
        gap: 0.5rem;
    }

    .play-pause-btn .text {
        font-size: 0.75rem;
        letter-spacing: 0.12em;
    }
    
    .about-section { padding: 3.5rem 1.5rem; }
    .about-heading { font-size: 2.2rem; }
    .about-text-card { padding: 1.5rem; }
    .ethic-word { font-size: 2.4rem; }

    .projects-section { padding: 4rem 1.5rem; }
    .projects-heading { font-size: 2.2rem; }

    .specialization-section { padding: 4rem 1.5rem; }
    .specialization-heading { font-size: 2.2rem; }
    .spec-card { padding: 1.5rem; flex-direction: column; gap: 1rem; }

    .board-section { padding: 4rem 1.5rem; }
    .board-heading { font-size: 2.2rem; }
    .member-card { grid-template-columns: 1fr; padding: 1.5rem; text-align: center; justify-items: center; }
    .member-image-box { order: -1; }
    .statement-text { font-size: 1.4rem; }

    .industry-quote-section { padding: 4rem 1.25rem; }
    .quote-card-glass { padding: 2rem 1.4rem; gap: 1.5rem; }
    .quote-text { font-size: 1.15rem; line-height: 1.65; }
    .quote-attribution-row { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
    .source-citation-badge { align-items: flex-start; }
}

/* ==========================================================================
   FRONT-END SECURITY & ANTI-THEFT (REVISED)
   ========================================================================== */

/* Prevent text highlighting while leaving form inputs usable */
.protected-content,
.protected-content p,
.protected-content h1,
.protected-content h2,
.protected-content h3,
.protected-content span,
.protected-content blockquote {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow input typing in forms */
input, textarea, select {
    -webkit-user-select: text !important;
    user-select: text !important;
}

/* Allow normal clicking on video controls and buttons */
video {
    pointer-events: auto !important; /* CRITICAL: Must be auto for controls to respond! */
    -webkit-user-drag: none;
    user-select: none;
}

img {
    pointer-events: auto !important;
    -webkit-user-drag: none;
    user-select: none;
}

/* Re-enable pointer events on interactive UI */
.play-pause-btn,
.expand-video-btn,
.expand-media-btn,
.slider-controls,
.big-x-btn,
button,
a {
    pointer-events: auto !important;
    cursor: pointer;
}

/* --- ANTI-SNIPPING / PRINTSCREEN SHIELD --- */
body.screen-shield-active * {
    filter: blur(60px) brightness(0) !important;
    opacity: 0 !important;
    transition: none !important;
}

body.screen-shield-active {
    background: #0a0f0b !important;
    overflow: hidden !important;
}

body.screen-shield-active::before {
    content: "Protected Content — Capture Disabled";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary, sans-serif);
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--lime-green, #a4d65e);
    background-color: #0d120e;
    z-index: 2147483647 !important; /* Maximum 32-bit Integer z-index */
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}

/* Print Guard */
@media print {
    body {
        display: none !important;
    }
}