/* ──────────────────────────────────────────────────────────
   FictionX – Sultan Qaboos Biography Section
   Scope: #portfolio.fx-qaboos-section on the home page.
   Adds elegant typography, a framed historical photo,
   a decorative pattern, drop-cap, and a "read more" CTA.
   ────────────────────────────────────────────────────────── */

/* ===== Section wrapper ===== */
.fx-qaboos-section{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    padding:60px 0 70px;
    background:
        radial-gradient(1200px 600px at 100% 0%, rgba(165,19,19,.04) 0%, transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(15,23,42,.04) 0%, transparent 60%),
        #f4f5f7;
}

/* Subtle Omani-inspired geometric watermark */
.fx-qaboos-section::before{
    content:"";
    position:absolute;
    inset:auto -120px -120px auto;          /* bottom-end corner */
    width:520px;height:520px;
    background:
        radial-gradient(closest-side, rgba(165,19,19,.06) 0%, transparent 70%),
        repeating-conic-gradient(
            from 0deg,
            rgba(165,19,19,.05) 0deg 6deg,
            transparent 6deg 18deg);
    border-radius:50%;
    z-index:0;
    pointer-events:none;
    opacity:.85;
}
.fx-qaboos-section > .container{position:relative;z-index:1;}

/* Align row vertically */
.fx-qaboos-section .fx-qaboos-row{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
}
.fx-qaboos-section .fx-qaboos-row > [class^="col-"]{float:none;}

/* ===== Image side ===== */
.fx-qaboos-image-wrap{
    position:relative;
    padding:10px;
}
.fx-qaboos-image-frame{
    position:relative;
    border-radius:4px;
    overflow:hidden;
    box-shadow:
        0 8px 20px rgba(15,23,42,.10),
        0 24px 60px rgba(15,23,42,.18);
    transform:translateZ(0);
    transition:transform .5s cubic-bezier(.22,.61,.36,1),
               box-shadow .5s ease;
}
.fx-qaboos-image-frame:hover{
    transform:translateY(-4px);
    box-shadow:
        0 12px 28px rgba(15,23,42,.14),
        0 32px 80px rgba(15,23,42,.24);
}
.fx-qaboos-image-frame img,
.fx-qaboos-image-wrap img{
    display:block;
    width:100%;height:auto;
    border-radius:4px;
    filter:saturate(.95) contrast(1.02);
    transition:filter .5s ease,transform .8s ease;
}
.fx-qaboos-image-frame:hover img{
    filter:saturate(1.08) contrast(1.04);
    transform:scale(1.02);
}

/* Soft top→bottom gradient overlay for cinematic feel */
.fx-qaboos-image-frame::after{
    content:"";
    position:absolute;inset:0;
    background:linear-gradient(180deg,
        transparent 55%,
        rgba(0,0,0,.18) 100%);
    pointer-events:none;
}

/* Decorative corner accents */
.fx-qaboos-image-corner{
    position:absolute;
    width:38px;height:38px;
    border:2px solid #a51313;
    pointer-events:none;
    transition:width .35s ease,height .35s ease,opacity .35s ease;
    z-index:2;
}
.fx-qaboos-image-corner--tl{
    top:-8px;inset-inline-start:-8px;
    border-inline-end:0;border-bottom:0;
    border-top-left-radius:4px;
}
[dir="rtl"] .fx-qaboos-image-corner--tl{
    border-top-left-radius:0;
    border-top-right-radius:4px;
}
.fx-qaboos-image-corner--br{
    bottom:-8px;inset-inline-end:-8px;
    border-inline-start:0;border-top:0;
    border-bottom-right-radius:4px;
}
[dir="rtl"] .fx-qaboos-image-corner--br{
    border-bottom-right-radius:0;
    border-bottom-left-radius:4px;
}
.fx-qaboos-image-wrap:hover .fx-qaboos-image-corner{
    width:48px;height:48px;
}

/* Years caption beneath the photo */
.fx-qaboos-years{
    margin:18px 0 0;
    text-align:center;
    font-size:14px;
    font-weight:600;
    letter-spacing:1.5px;
    color:#7a7a7a;
    direction:ltr;
}
.fx-qaboos-years span{
    color:#a51313;
    font-weight:700;
    margin:0 4px;
}

/* ===== Text side ===== */
.fx-qaboos-content{
    padding-inline-start:18px;
    padding-inline-end:10px;
}
.fx-qaboos-eyebrow{
    display:inline-flex;align-items:center;gap:10px;
    margin-bottom:14px;
    font-size:12px;
    font-weight:700;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#a51313;
}
.fx-qaboos-eyebrow::before{
    content:"";
    width:28px;height:2px;
    background:#a51313;
    border-radius:4px;
}

.fx-qaboos-heading{margin:0 0 18px !important;}
.fx-qaboos-heading h3{
    font-size:34px !important;
    font-weight:700 !important;
    line-height:1.3 !important;
    margin:0 !important;
}
.fx-qaboos-heading h3 .main-color{
    position:relative;
    display:inline-block;
}

/* Paragraphs */
.fx-qaboos-paragraph{
    font-size:15.5px;
    line-height:2;
    color:#3a3a3a;
    margin:0 0 14px;
    text-align:justify;
}
.fx-qaboos-paragraph--lead{
    font-size:16.5px;
    color:#1f2937;
}

/* Drop-cap on first letter of the lead paragraph */
.fx-qaboos-dropcap{
    float:inline-start;
    margin:6px 8px 0 0;
    font-size:54px;
    line-height:.9;
    font-weight:800;
    color:#a51313;
    padding:4px 10px 0;
    background:rgba(165,19,19,.06);
    border-radius:4px;
}
[dir="rtl"] .fx-qaboos-dropcap{
    float:right;
    margin:6px 0 0 10px;
}

/* Read-more CTA — flat, no shadow (per project rule) */
.fx-qaboos-readmore{
    display:inline-flex;align-items:center;gap:10px;
    margin-top:18px;
    padding:12px 24px;
    background:linear-gradient(135deg,#a51313 0%,#7d0f0f 100%);
    color:#fff !important;
    border:0;
    border-radius:4px;
    font-size:14px;
    font-weight:600;
    text-decoration:none !important;
    box-shadow:none;
    transition:transform .3s ease,
               background .3s ease,
               padding .3s ease;
}
.fx-qaboos-readmore i{
    transition:transform .3s ease;
    font-size:12px;
}
.fx-qaboos-readmore:hover{
    transform:translateY(-2px);
    padding-inline-end:30px;
    background:linear-gradient(135deg,#b91612 0%,#8c1010 100%);
    color:#fff !important;
}
.fx-qaboos-readmore:hover i{
    transform:translateX(-4px);
}
[dir="rtl"] .fx-qaboos-readmore:hover i{
    transform:translateX(4px);
}

/* ===== Responsive ===== */
@media (max-width:991px){
    .fx-qaboos-section{padding:50px 0 56px;}
    .fx-qaboos-section .fx-qaboos-row{flex-direction:column-reverse;}
    .fx-qaboos-content,.fx-qaboos-image-wrap{padding:0;width:100%;}
    .fx-qaboos-image-wrap{margin-bottom:28px;max-width:480px;margin-inline:auto;}
    .fx-qaboos-heading h3{font-size:28px !important;}
}
@media (max-width:600px){
    .fx-qaboos-section{padding:40px 0 46px;}
    .fx-qaboos-heading h3{font-size:24px !important;}
    .fx-qaboos-paragraph{font-size:14.5px;line-height:1.9;}
    .fx-qaboos-paragraph--lead{font-size:15px;}
    .fx-qaboos-dropcap{font-size:42px;padding:2px 8px 0;}
    .fx-qaboos-image-corner{width:28px;height:28px;}
    .fx-qaboos-image-wrap:hover .fx-qaboos-image-corner{width:34px;height:34px;}
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion:reduce){
    .fx-qaboos-image-frame,
    .fx-qaboos-image-frame img,
    .fx-qaboos-image-corner,
    .fx-qaboos-readmore,
    .fx-qaboos-readmore i{
        transition:none !important;
    }
}
