/* public/assets/css/about.css */

:root {
    --bg-page: #ffffff;
    --bg-off: #f4f4f5;
    --element-black: #000000;
    --text-main: #000000;
    --text-muted: #52525b;
    --border-light: #e4e4e7;
}

/* --- RESET & GLOBALS --- */
body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- ANIMATION CLASSES --- */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}
.delay-200 {
    transition-delay: 0.2s;
}
.delay-300 {
    transition-delay: 0.3s;
}

/* --- HERO SECTION --- */
.about-hero {
    position: relative;
    padding: 180px 20px 100px;
    background: var(--bg-page);
    text-align: center; /* Hero looks best centered, not justified */
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #000;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(180deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-wrap: break-word;
}

/* --- CONTENT SECTIONS --- */
.content-section {
    padding: 100px 20px;
    position: relative;
    border-bottom: 1px solid var(--border-light);
}

.bg-off {
    background-color: var(--bg-off);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--element-black);
    line-height: 1.2;
    text-align: left; /* Titles usually look best left aligned */
}

/* --- JUSTIFIED BODY TEXT --- */
.text-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 25px;

    /* Justify Settings */
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto; /* Prevents large gaps between words */
}

.text-body strong {
    color: var(--element-black);
    font-weight: 700;
}

/* --- VISION (Split Layout) --- */
.vision-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.vision-visual {
    height: 100%;
    min-height: 400px;
    background: var(--element-black);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vision-visual::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

/* --- EVOLUTION (Timeline Feel) --- */
.evolution-box {
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.evolution-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--element-black);
    border-radius: 4px 0 0 4px;
}

/* --- PHILOSOPHY --- */
.quote-box {
    border-left: 4px solid var(--element-black);
    padding-left: 30px;
    margin: 40px 0;
    font-style: italic;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.2rem;

    /* Justify Quote */
    text-align: justify;
    hyphens: auto;
}

/* --- APPROACH (Black Cards) --- */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.approach-card {
    background: var(--element-black);
    padding: 40px;
    border-radius: 16px;
    transition: all 0.4s ease;
    color: white;
}

.approach-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    text-align: left;
}

.approach-card .text-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 0;
    /* Maintain Justify for cards too */
    text-align: justify;
    hyphens: auto;
}

/* --- DIFFERENCE SECTION --- */
.difference-section {
    text-align: center;
    background: var(--bg-off);
}

.difference-list {
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    list-style: none;
    padding: 0;
}

.difference-list li {
    padding: 20px 0;
    border-bottom: 1px solid #d4d4d8;
    font-size: 1.1rem;
    color: var(--text-main);
    position: relative;
    padding-left: 30px;

    /* Justify List Items */
    text-align: justify;
    hyphens: auto;
}

.difference-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--element-black);
    font-weight: bold;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.2;
    }
}

/* =========================================
   RESPONSIVE MEDIA QUERIES (Updated)
   ========================================= */

/* CHANGED: Increased from 992px to 1100px to fix Laptop/Tablet overlap */
@media (max-width: 1100px) {
    .about-hero {
        padding: 150px 20px 80px;
    }

    /* --- 1. HERO ALIGNMENT FIX --- */
    /* Force vertical stacking using Flexbox */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* 2. Badge Styling - Force it to the top */
    .hero-badge {
        order: -1; /* visually moves it to the top */
        margin-bottom: 25px;
        display: inline-block;
        width: auto;
        position: static; /* Reset any absolute positioning */
    }

    /* 3. Safety Check: If Badge is INSIDE the Title tag */
    .hero-title .hero-badge {
        display: block;
        width: fit-content;
        margin: 0 auto 20px auto;
        line-height: normal;
    }

    /* 4. Title Styling - Ensure clean centering */
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
        line-height: 1.2;
        width: 100%;
        margin-top: 0;
        text-align: center;
    }

    /* --- Vision Section Stack (Keep this for tablets) --- */
    .vision-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vision-visual {
        min-height: 350px;
        order: -1;
    }

    .container-narrow {
        padding: 0 10px;
    }
}

/* Mobile Devices (Max 768px) - Stays the same */
@media (max-width: 768px) {
    .content-section {
        padding: 60px 20px;
    }
    .section-header {
        margin-bottom: 40px;
    }
    .hero-title {
        font-size: 2.4rem;
    }
    .evolution-box {
        padding: 30px;
    }
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Small Mobile (Max 480px) - Stays the same */
@media (max-width: 480px) {
    .about-hero {
        padding: 120px 20px 60px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .text-body {
        font-size: 1rem;
    }
    .evolution-box {
        padding: 25px;
    }
    .quote-box {
        padding-left: 20px;
        font-size: 1.1rem;
        margin: 30px 0;
    }
    .vision-visual {
        min-height: 250px;
    }
    .approach-card {
        padding: 30px 25px;
    }
}
