/* ==================================================================== */
/* Garagum Games - Hakkımızda Sayfası Stilleri (style.css)              */
/* ==================================================================== */

/* ------------------------------------ */
/* 1. Renk Değişkenleri ve Fontlar      */
/* ------------------------------------ */
:root {
    --default-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --heading-font: "Jost", sans-serif;
    
    --background-color: #171a21;  
    --default-color: #ffffff;
    --accent-color: #324761;     
    --page-bg: #1A212E;           
    --section-bg: #131821;        
    --accent-main: #00A6FF;       
    --accent-secondary: #47B2E4;  
    --text: #F0F8FF;              
    --muted: #A3B3C8;             
    --border: rgba(255,255,255,0.08); 
}

/* ------------------------------------ */
/* 2. Genel Stil (Reset & Tipografi)    */
/* ------------------------------------ */
body {
    font-family: var(--default-font);
    color: var(--default-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden; 
}

a { text-decoration: none; color: var(--accent-main); }
main#about-us { padding: var(--section-pad-y) 0; max-width: 1100px; margin: auto; }

/* ------------------------------------ */
/* 3. Header ve Banner Stilleri         */
/* ------------------------------------ */
.page-header {
    background: var(--page-bg) url('/assets/about/bg.jpg') no-repeat center center; 
    background: var(--page-bg) image-set(url('/assets/about/bg.avif') type('image/avif'), url('/assets/about/bg.webp') type('image/webp'), url('/assets/about/bg.jpg') type('image/jpeg')) no-repeat center center;
    background-size: cover;
    background-attachment: fixed; 
    height: 350px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    border-bottom: 5px solid var(--accent-main);
    z-index: 1; 
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.header-content {
    z-index: 3;
    color: #fff;
    max-width: 800px;
    padding: 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.header-content h1 {
    font-family: var(--heading-font);
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--accent-main);
    font-weight: 800;
    text-shadow: var(--hero-text-shadow);
}

.header-content .subtitle {
    font-size: 1.25rem;
    color: var(--hero-text-strong, var(--muted));
    text-align: center; 
    text-shadow: var(--hero-text-shadow);
}

/* ------------------------------------ */
/* 4. SECTION Blok Stilleri             */
/* ------------------------------------ */
.section-block {
    background-color: var(--section-bg);
    padding: 50px 75px; 
    margin-bottom: var(--section-gap); 
    border-radius: 12px; 
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5); 
    border: 1px solid var(--border);
    scroll-margin-top: 100px; 

    display: flex;
    flex-direction: row; 
    gap: 40px; 
    align-items: flex-start; 

    opacity: 0;
    transform: translateY(60px);
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out, 
                opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.section-block:target {
    box-shadow: 0 0 0 4px var(--accent-main); 
    border-color: var(--accent-main);
}

.section-content { flex-grow: 1; }

.section-image {
    width: 200px; 
    flex-shrink: 0; 
    height: 350px; 
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: #000;
}

.section-image img {
    width: 100%;       
    height: 100%;     
    object-fit: cover;
    display: block;    
}

#New-2025 {
    max-width: 200px;       
    flex-direction: column; 
    align-items: center;
}
#New-2025 .section-image {
    width: 100%;           
    height: 200px;        
    object-fit: contain;   
    background-color: #f0f0f0; 
    order: -1;
}

/* ------------------------------------ */
/* 5. Typography & Paragraphs           */
/* ------------------------------------ */
h2 {
    font-family: var(--heading-font);
    color: var(--accent-main); 
    font-size: 2.5rem; 
    margin-top: 0; margin-bottom: 30px; 
    padding-bottom: 12px; font-weight: 700;
    position: relative; 
    border-bottom: none; 
}

h2::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-main));
    width: 0%; 
    transition: width 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.section-block.in-view h2::after {
    width: 100%;
}

p {
    font-family: var(--default-font);
    color: var(--text);
    font-size: 1.15rem; 
    line-height: 1.8; 
    margin-bottom: 25px; 
    font-weight: 300; 
    text-align: start; 
}
p strong { color: var(--accent-secondary); font-weight: 700; }
.section-intro p { font-size: 1.1rem; line-height: 1.7; font-weight: 400; }

/* ------------------------------------ */
/* 6. Para-Items (Text + Image Row)     */
/* ------------------------------------ */
.para-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
}
.para-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.para-text {
    flex: 1;
    min-width: 0;
}
.para-text p {
    margin-bottom: 20px !important;
    width: 100%;
}

.images-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ------------------------------------ */
/* 7. Картинки Para-Image и Анимация    */
/* ------------------------------------ */
@keyframes skeleton-loading {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.para-image {
    flex: 0 0 320px;
    width: 220px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    background: linear-gradient(90deg, #1a212e 25%, #2a3447 50%, #1a212e 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    flex-shrink: 0;
}

.images-column .para-image {
    margin-bottom: 0 !important; 
}

.para-image::before {
    content: "Loading...";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--muted);
    font-size: 0.8rem;
    z-index: 0;
}

.para-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0; 
    transform: scale(1.1);
    transition: transform 0.8s ease-out, opacity 0.6s ease-in-out;
}

.para-image img.loaded,
.para-image img { 
    opacity: 1;
    transform: scale(1);
}

/* ------------------------------------ */
/* 8. Global Animations (In-View)       */
/* ------------------------------------ */
.header-content.in-view,
.section-block.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-block.in-view .section-image img {
    transform: scale(1);
    filter: grayscale(0%) brightness(1) blur(0);
}

/* ==================================================================== */
/* 9. RESPONSIVE DESIGN (Media Queries)                                 */
/* ==================================================================== */

/* --- Tablet Landscape (max 1200px) --- */
@media (max-width: 1200px) {
    main#about-us { padding: 40px 20px; }
}

/* --- Tablet Portrait (max 992px) --- */
@media (max-width: 992px) {
    .section-block {
        padding: 30px; margin-bottom: 25px; scroll-margin-top: 80px; gap: 30px;
    }
    h2 { font-size: 2rem; margin-bottom: var(--heading-block-space); }
    p { font-size: 1.05rem; line-height: 1.75; }
    .section-intro p { font-size: 1rem; }
}

/* --- Small Tablet / Large Mobile (max 900px) --- */
@media (max-width: 900px) {
    .page-header {
        background-attachment: scroll;
    }

    .para-item {
        flex-direction: column;
    }
    .images-column {
        width: 100%;
        flex: none;
        order: -1;
    }
    
    .para-image {
        width: 100% !important;
        flex: none !important;
        height: 250px !important;
    }
}

/* --- Mobile Devices (max 768px) --- */
@media (max-width: 768px) {
    .page-header { height: 200px; }
    .header-content h1 { font-size: 2.2rem; }
    .header-content .subtitle { font-size: 1rem; }
    
    .section-block {
        padding: 20px; scroll-margin-top: 60px; flex-direction: column;
    }
    .section-image {
        width: 100%; height: 150px; order: -1;
    }
    
    h2 { font-size: 1.6rem; padding-bottom: 8px; margin-bottom: var(--heading-block-space); }
    p { font-size: 1rem; line-height: 1.6; }
    
    .para-item {
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        align-items: stretch !important;
    }
    .para-item p {
        margin-bottom: 10px !important; 
        font-size: 1rem !important;
    }

    .para-image {
        width: 100% !important;
        max-width: 100% !important;
        height: 200px !important;
        order: -1;
        margin: 0 !important;
    }

    .para-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

@media (max-width: 480px) {
    main#about-us {
        padding: 20px 10px;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .section-block {
        padding: 16px;
        border-radius: 10px;
    }

    .section-image {
        height: 130px;
    }

    h2 {
        font-size: 1.35rem;
    }
}

/* =====================================================
   RU ABOUT REDESIGN (SCOPED)
   ===================================================== */
.about-ru-page {
    background:
        radial-gradient(980px 540px at 12% 8%, rgba(66, 236, 255, 0.1), transparent 58%),
        radial-gradient(860px 500px at 88% 86%, rgba(83, 255, 191, 0.09), transparent 54%),
        linear-gradient(180deg, #050f19, #061723 42%, #06111d);
    color: #eaf5ff;
}

.about-ru-page .page-header {
    width: min(1360px, calc(100% - 32px));
    margin: 16px auto 0;
    height: clamp(260px, 38vw, 400px);
    border-radius: 22px;
    border: 1px solid rgba(114, 212, 255, 0.3);
    border-bottom: 1px solid rgba(114, 212, 255, 0.3);
    background-attachment: scroll;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

.about-ru-page .page-header::before {
    background:
        radial-gradient(circle at 12% 8%, rgba(66, 236, 255, 0.2), transparent 54%),
        linear-gradient(185deg, rgba(4, 13, 24, 0.45), rgba(4, 13, 24, 0.76));
}

.about-ru-page .header-content {
    max-width: 920px;
}

.about-ru-page .header-kicker {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(114, 212, 255, 0.5);
    background: rgba(6, 22, 36, 0.75);
    color: #d3f8ff;
    padding: 6px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    margin-bottom: 10px;
}

.about-ru-page .header-content h1 {
    color: #f0fbff;
    font-size: clamp(1.9rem, 4.1vw, 3.1rem);
    line-height: 1.12;
    margin-bottom: 10px;
}

.about-ru-page .header-content .subtitle {
    color: #b5d0e5;
    max-width: 780px;
    margin: 0 auto;
}

.about-ru-page .header-chips {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.about-ru-page .header-chips span {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(114, 212, 255, 0.32);
    background: rgba(8, 29, 46, 0.72);
    color: #d7f3ff;
    font-size: 0.74rem;
    font-weight: 600;
}

.about-ru-page main#about-us {
    max-width: 1280px;
    padding: 24px 16px 56px;
}

.about-ru-page .section-block {
    border-radius: 18px;
    border: 1px solid rgba(114, 212, 255, 0.24);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    background:
        linear-gradient(170deg, rgba(8, 27, 43, 0.9), rgba(7, 19, 31, 0.94)),
        radial-gradient(circle at 92% 8%, rgba(114, 212, 255, 0.1), transparent 38%);
    padding: 28px 24px;
    gap: 24px;
    align-items: center;
}

.about-ru-page .section-block:nth-of-type(even) {
    background:
        linear-gradient(170deg, rgba(8, 30, 47, 0.9), rgba(7, 21, 34, 0.94)),
        radial-gradient(circle at 10% 8%, rgba(83, 255, 191, 0.11), transparent 38%);
}

.about-ru-page .section-content h2 {
    color: #e8f8ff;
    font-size: clamp(1.45rem, 2.8vw, 2.25rem);
    margin-bottom: 16px;
}

.about-ru-page .section-content h2::after {
    height: 3px;
    background: linear-gradient(90deg, #43ecff, #57ffbe);
}

.about-ru-page .section-content p {
    color: #b6cde0;
    font-size: 1rem;
    line-height: 1.72;
    margin-bottom: 16px;
}

.about-ru-page .section-content p strong {
    color: #dcf9ff;
}

.about-ru-page .section-image,
.about-ru-page .para-image {
    border-radius: 12px;
    border: 1px solid rgba(114, 212, 255, 0.28);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.about-ru-page .section-image {
    width: min(320px, 34vw);
    height: 300px;
}

.about-ru-page .section-image img {
    transition: transform 0.5s ease;
}

.about-ru-page .section-block:hover .section-image img {
    transform: scale(1.06);
}

.about-ru-page .section-2025 .para-item {
    gap: 24px;
}

.about-ru-page .section-2025 .para-text p {
    margin-bottom: 14px !important;
}

.about-ru-page .images-column {
    gap: 14px;
}

.about-ru-page .images-column .para-image {
    width: 210px;
    height: 246px;
    flex: none;
}

@media (max-width: 980px) {
    .about-ru-page .page-header {
        width: calc(100% - 20px);
        border-radius: 16px;
        margin-top: 10px;
    }

    .about-ru-page main#about-us {
        max-width: 100%;
        padding: 18px 10px 40px;
    }

    .about-ru-page .section-block {
        padding: 18px 16px;
        border-radius: 14px;
    }
}

@media (max-width: 768px) {
    .about-ru-page .header-content h1 {
        font-size: 1.9rem;
    }

    .about-ru-page .section-image {
        width: 100%;
        height: 180px;
    }

    .about-ru-page .images-column .para-image {
        width: 100%;
        height: 210px;
    }
}

@media (max-width: 520px) {
    .about-ru-page .header-kicker {
        font-size: 0.62rem;
        padding: 5px 9px;
    }

    .about-ru-page .header-chips span {
        font-size: 0.66rem;
        padding: 4px 7px;
    }
}
