/* ==========================================================================
   AETHER COMMUNICATION DESIGN - MONOCHROME EDITORIAL STYLESHEET
   ========================================================================== */

/* --- 1. CSS Custom Properties --- */
:root {
    --shape-bg-warm: #F4F1EA;
    --shape-bg-white: #FFFFFF;
    --shape-bg-light: #EBE7DF;
    
    --shape-text-black: #0B0B0C;
    --shape-text-muted: #666660;
    --shape-border: rgba(11, 11, 12, 0.12);
    --shape-border-strong: rgba(11, 11, 12, 0.35);

--shape-font-display: 'Archivo', sans-serif;
--shape-font-body: 'DM Sans', sans-serif;
--shape-font-mono: 'DM Sans', sans-serif;
--shape-font-serif: 'DM Serif Display', serif;

    --shape-transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --shape-transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shape-max-width: 1440px;
}

/* --- 2. CSS Reset & Global Settings --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--shape-bg-warm);
    color: var(--shape-text-black);
}

body {
    font-family: var(--shape-font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Base */
h1, h2, h3, h4 {
    font-family: var(--shape-font-display);
    font-weight: 400;
    color: var(--shape-text-black);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

p {
    font-size: 1.05rem;
    color: var(--shape-text-muted);
    font-weight: 400;
}

em {
    font-style: italic;
    font-family: var(--shape-font-display);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--shape-transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shape-container {
    max-width: var(--shape-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.shape-section-num {
    font-family: var(--shape-font-mono);
    font-size: 0.8rem;
    color: var(--shape-text-muted);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* --- 3. Custom Cursor --- */
.shape-cursor, .shape-cursor-dot {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.15s ease-out;
}

.shape-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--shape-text-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--shape-text-black);
}

.shape-cursor-text {
    font-family: var(--shape-font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--shape-bg-warm);
    display: none;
}

.shape-cursor.active {
    width: 75px;
    height: 75px;
    background-color: var(--shape-text-black);
    border-color: var(--shape-text-black);
}

.shape-cursor.active .shape-cursor-text {
    display: block;
}

@media (max-width: 992px) {
    .shape-cursor, .shape-cursor-dot { display: none !important; }
}

/* --- 4. Scroll To Top Button --- */
.shape-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--shape-text-black);
    color: var(--shape-bg-warm);
    border: none;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--shape-transition-smooth);
}

.shape-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.shape-scroll-top:hover {
    transform: translateY(-4px);
    background-color: #252528;
}

/* --- 5. Navigation Bar --- */
.shape-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--shape-transition-smooth);
}

.shape-navbar.scrolled {
    padding: 1.2rem 0;
    background: rgba(244, 241, 234, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--shape-border);
}

.shape-nav-container {
    max-width: var(--shape-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shape-logo {
    font-family: var(--shape-font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--shape-text-black);
    letter-spacing: -1px;
}

.shape-logo-dot {
    color: var(--shape-text-black);
}

.shape-nav-menu {
    display: flex;
    gap: 3rem;
}

.shape-nav-link {
    font-family: var(--shape-font-mono);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--shape-text-black);
    position: relative;
    padding: 0.2rem 0;
}

.shape-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--shape-text-black);
    transition: var(--shape-transition-fast);
}

.shape-nav-link:hover::after {
    width: 100%;
}

.shape-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.shape-burger span {
    width: 28px;
    height: 1.5px;
    background-color: var(--shape-text-black);
    transition: var(--shape-transition-fast);
}

/* --- 6. Hero Section --- */
.shape-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 140px 1.5rem 80px 1.5rem;
    overflow: hidden;
}

.shape-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/shape-hero.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(110%);
    opacity: 0.12;
    z-index: 1;
}

.shape-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, var(--shape-bg-warm) 90%);
    z-index: 2;
}

.shape-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    margin: auto;
}

.shape-meta-tag {
    font-family: var(--shape-font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--shape-text-muted);
    display: block;
    margin-bottom: 2rem;
}

.shape-hero-title {
    font-size: clamp(3rem, 7.5vw, 6.8rem);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.shape-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
    color: var(--shape-text-muted);
}

/* Rotating Circle CTA */
.shape-circle-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.shape-circle-text {
    width: 100%;
    height: 100%;
    animation: shapeRotate 18s linear infinite;
    fill: var(--shape-text-black);
    font-family: var(--shape-font-mono);
}

.shape-circle-arrow {
    position: absolute;
    font-size: 1.5rem;
    color: var(--shape-text-black);
    transition: var(--shape-transition-fast);
}

.shape-circle-cta:hover .shape-circle-arrow {
    transform: translateY(4px);
}

@keyframes shapeRotate {
    100% { transform: rotate(360deg); }
}

/* Hero Marquee Bar */
.shape-marquee-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid var(--shape-border);
    border-bottom: 1px solid var(--shape-border);
    padding: 0.8rem 0;
    overflow: hidden;
    background: var(--shape-bg-warm);
    z-index: 3;
}

.shape-marquee-track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: shapeMarquee 25s linear infinite;
    font-family: var(--shape-font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--shape-text-black);
}

@keyframes shapeMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- 7. About Section --- */
.shape-about {
    padding: 140px 0;
    background-color: var(--shape-bg-warm);
    border-bottom: 1px solid var(--shape-border);
}

.shape-about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.shape-about-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-top: 1rem;
}

.shape-lead-p {
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--shape-text-black);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.shape-body-p {
    margin-bottom: 3rem;
}

/* Kinetic Vertical Text Box */
.shape-text-scroll-box {
    height: 60px;
    overflow: hidden;
    border-left: 2px solid var(--shape-text-black);
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.shape-text-scroll-track {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.shape-kinetic-item {
    height: 60px;
    display: flex;
    align-items: center;
    font-family: var(--shape-font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--shape-text-black);
}

/* --- 8. Portfolio Section --- */
.shape-portfolio {
    padding: 140px 0;
    background-color: var(--shape-bg-white);
}

.shape-portfolio-header {
    margin-bottom: 4rem;
}

.shape-portfolio-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

/* 4 Column Image Grid */
.shape-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.shape-portfolio-item {
    cursor: pointer;
}

.shape-portfolio-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background-color: var(--shape-bg-light);
    margin-bottom: 1.2rem;
}


.shape-portfolio-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.shape-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 12, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--shape-transition-fast);
}

.shape-overlay-icon {
    font-size: 2.5rem;
    color: var(--shape-bg-white);
    font-weight: 300;
}

.shape-portfolio-item:hover img {
    transform: scale(1.08);
    filter: grayscale(0%);
}

.shape-portfolio-item:hover .shape-portfolio-overlay {
    opacity: 1;
}

/* NGO / CSR grid: square boxes, whole image visible, no visible gap
   (blurred cover copy fills the space behind the full, uncropped image) */
.shape-portfolio-square .shape-portfolio-img-box {
    aspect-ratio: 1 / 1;
    line-height: 0; /* removes any inline gap below the image */
    position: relative;
}

.shape-portfolio-square .shape-portfolio-img-box img {
    display: block;
}

.shape-portfolio-square .shape-portfolio-img-box .shape-portfolio-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) grayscale(20%) brightness(0.85);
    transform: scale(1.15); /* hides blur edge softening */
}

.shape-portfolio-square .shape-portfolio-img-box img:not(.shape-portfolio-bg) {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain; /* full image, never cropped */
    z-index: 1;
}

.shape-item-title {
    font-family: var(--shape-font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.shape-item-cat {
    font-size: 0.75rem;
    color: var(--shape-text-muted);
    font-family: var(--shape-font-mono);
}

/* Lightbox Modal */
.shape-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(11, 11, 12, 0.92);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--shape-transition-smooth);
    padding: 2rem;
}

.shape-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.shape-lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--shape-bg-warm);
    cursor: pointer;
    line-height: 1;
}

.shape-lightbox-content {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.shape-lightbox-content img {
    max-height: 70vh;
    margin: 0 auto 1.5rem auto;
    border-radius: 2px;
}

.shape-lightbox-caption h3 {
    color: var(--shape-bg-warm);
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.shape-lightbox-caption span {
    font-family: var(--shape-font-mono);
    color: rgba(244, 241, 234, 0.6);
    font-size: 0.85rem;
}

/* --- 9. Why Us Section --- */
.shape-why {
    padding: 140px 0;
    background-color: var(--shape-bg-warm);
    border-top: 1px solid var(--shape-border);
    border-bottom: 1px solid var(--shape-border);
}

.shape-why-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.shape-why-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.shape-why-graphic {
    margin-top: 4rem;
}

.shape-geo-circle {
    width: 180px;
    height: 180px;
    border: 1px dashed var(--shape-border-strong);
    border-radius: 50%;
    animation: shapeRotate 30s linear infinite;
}

.shape-reason-item {
    display: flex;
    gap: 2rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--shape-border);
    opacity: 0.4;
    transition: var(--shape-transition-smooth);
}

.shape-reason-item.active {
    opacity: 1;
}

.shape-reason-num {
    font-family: var(--shape-font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.shape-reason-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.shape-reason-content p {
    font-size: 0.95rem;
}

/* --- 10. Final CTA Section --- */
.shape-final-cta {
    position: relative;
    padding: 160px 0;
    background-color: var(--shape-bg-white);
    text-align: center;
    overflow: hidden;
}

.shape-cta-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border: 1px solid var(--shape-border);
    border-radius: 50%;
    pointer-events: none;
}

.shape-cta-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.shape-cta-title {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    margin-bottom: 1.5rem;
}

.shape-cta-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.shape-btn-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 3rem;
    background-color: var(--shape-text-black);
    color: var(--shape-bg-warm);
    font-family: var(--shape-font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--shape-transition-smooth);
}

.shape-btn-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(11, 11, 12, 0.2);
}

/* --- 11. Contact Section (Details Only Grid) --- */
.shape-contact {
    position: relative;
    padding: 140px 0;

    background-color: var(--shape-bg-warm);
    background-image: url("../img/contact-bg.png");

    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;

    border-top: 1px solid var(--shape-border);

    overflow: hidden;
}

.shape-contact::before {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(244, 241, 234, 0.68);

    pointer-events: none;
}

.shape-contact > * {
    position: relative;
    z-index: 1;
}

.shape-contact-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    margin-bottom: 5rem;
}

.shape-contact-editorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    border-top: 1px solid var(--shape-border-strong);
    padding-top: 3.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.shape-contact-col {
    display: flex;
    flex-direction: column;
}

.shape-contact-heading {
    font-family: var(--shape-font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0.8rem 0 1.2rem 0;
}

.shape-val-link a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--shape-text-black);
    border-bottom: 1px solid var(--shape-border);
    padding-bottom: 0.2rem;
    display: inline-block;
    margin-bottom: 0.6rem;
}

.shape-val-link a:hover {
    border-bottom-color: var(--shape-text-black);
}

/* --- 12. Footer --- */
.shape-footer {
    background-color: var(--shape-text-black);
    color: var(--shape-bg-warm);
    padding: 100px 0 40px 0;
}

.shape-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(244, 241, 234, 0.15);
}

.shape-footer-logo {
    font-family: var(--shape-font-display);
    font-size: 2rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
}

.shape-footer-desc {
    color: rgba(244, 241, 234, 0.6);
    font-size: 0.9rem;
    max-width: 320px;
}

.shape-footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.shape-footer-nav a {
    color: rgba(244, 241, 234, 0.7);
    font-size: 0.9rem;
}

.shape-footer-nav a:hover {
    color: var(--shape-bg-warm);
}

.shape-footer-contact p {
    color: rgba(244, 241, 234, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.shape-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-family: var(--shape-font-mono);
    font-size: 0.75rem;
    color: rgba(244, 241, 234, 0.5);
}

.shape-footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* --- 13. Responsive Breaks --- */
@media (max-width: 1200px) {
    .shape-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .shape-about-grid,
    .shape-why-grid,
    .shape-contact-editorial-grid,
    .shape-footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .shape-burger {
        display: flex;
    }

    .shape-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--shape-bg-warm);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--shape-transition-smooth);
    }

    .shape-nav-menu.active {
        right: 0;
    }

    .shape-nav-link {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .shape-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .shape-footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}