/*
Theme Name: Samiran Dewan Portfolio
Theme URI: https://chomotkar.com
Author: Rocky
Description: Custom dark portfolio theme with red rounded borders, built for Samiran Dewan's personal site.
Version: 4.5
*/

/* ===== RESET ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
    background-color: #000000;
    background-image: none;
    color: #ffffff;
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 20px clamp(16px, 2vw, 30px);
}

/* ===== RED ROUNDED BOX (reused everywhere) ===== */
.red-box {
    --box-pad-x: 26px;
    position: relative;
    border: 2px solid #cc2b2b;
    border-radius: 40px;
    background-color: #141414;
    padding: 34px var(--box-pad-x) 20px var(--box-pad-x);
    overflow: visible;
}

.red-box h2 {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    text-align: center;
    font-weight: 400;
    font-size: 1.3em;
    background-color: #141414;
    border: 2px solid #cc2b2b;
    border-radius: 30px;
    padding: 8px 30px;
    z-index: 2;
}

.red-box ul {
    list-style: none;
}

.red-box ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
}

.red-box ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 9px;
    height: 9px;
    background: #cc2b2b;
    border-radius: 50%;
}

/* ===== STICKY TOP BAR (header + sub-menu) ===== */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: clamp(8px, 1.5vh, 16px) clamp(16px, 2vw, 30px) 0 clamp(16px, 2vw, 30px);
}

/* ===== HEADER ===== */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-pill {
    border: 2px solid #cc2b2b;
    border-radius: 30px;
    padding: clamp(5px, 0.8vh, 8px) 22px;
    font-size: clamp(1em, 1.3vw, 1.1em);
    background: #141414;
}

.site-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo-photo {
    width: clamp(44px, 6vh, 70px);
    height: clamp(44px, 6vh, 70px);
    border-radius: 50%;
    border: 1.5px solid #cc2b2b;
    object-fit: cover;
    flex-shrink: 0;
}

.site-title-wrap h1 {
    color: #cc2b2b;
    font-weight: 400;
    font-size: clamp(1.1em, 2.4vw, 1.7em);
}

/* ===== SUB MENU BAR ===== */
.sub-menu-bar {
    border: 2px solid #cc2b2b;
    border-radius: 30px;
    background: #141414;
    padding: clamp(8px, 1.2vh, 12px) 30px;
    text-align: center;
    margin: clamp(8px, 1.5vh, 16px) 0;
    font-size: clamp(0.9em, 1.1vw, 1em);
}

.sub-menu-bar a {
    margin: 0 6px;
}

.sub-menu-bar .dot {
    color: #cc2b2b;
    margin: 0 8px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    display: flex;
    gap: 25px;
    align-items: center;
    min-height: 0;
}
.profile-column {
    flex: 0 0 320px;
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
}
.profile-box { flex: 0 0 auto; min-height: 0; }
.about-text { flex: 1; min-height: 0; }

.profile-box {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.photo-frame {
    border: 2px solid #cc2b2b;
    border-radius: 40px;
    overflow: hidden;
    background: #141414;
    flex: 1;
    min-height: 0;
    display: flex;
}

.photo-frame img {
    width: 100%;
    flex: 1;
    min-height: 0;
    object-fit: cover;
}

.profile-box .caption {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    text-align: center;
    font-size: 1.1em;
    background-color: #141414;
    border: 2px solid #cc2b2b;
    border-radius: 30px;
    padding: 8px 30px;
    z-index: 2;
}

.about-text p {
    margin-bottom: 8px;
}

/* ===== TWO COLUMN SECTIONS (Education & Experience, below the fold) ===== */
.two-col {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
}
.two-col > div { flex: 1; }

@media (max-width: 900px) {
    .about-section, .two-col {
        flex-direction: column;
    }
    .profile-box { flex: none; }
}

.section-anchor {
    scroll-margin-top: 30px;
}

/* ===== HOMEPAGE: page itself never scrolls; body is locked to one screen ===== */
body.slides-lock, html.slides-lock {
    height: 100vh;
    overflow: hidden;
    overscroll-behavior: none;
}

.slides-wrapper {
    position: relative;
    height: calc(100vh - var(--topbar-h, 140px));
    min-height: 320px;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    transform: translateY(60px) scale(0.98);
    opacity: 0;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.6s ease;
    pointer-events: none;
}

.slide .container { width: 100%; }

.slide .profile-column,
.slide .profile-box,
.slide .about-text,
.slide .two-col > div,
.slide > .container > .red-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide.active-slide .profile-column { transition-delay: 0.15s; }
.slide.active-slide .profile-box { transition-delay: 0.15s; }
.slide.active-slide .about-text { transition-delay: 0.25s; }
.slide.active-slide .two-col > div:nth-child(1) { transition-delay: 0.15s; }
.slide.active-slide .two-col > div:nth-child(2) { transition-delay: 0.28s; }
.slide.active-slide > .container > .red-box { transition-delay: 0.4s; }

.slide.active-slide .profile-column,
.slide.active-slide .profile-box,
.slide.active-slide .about-text,
.slide.active-slide .two-col > div,
.slide.active-slide > .container > .red-box {
    opacity: 1;
    transform: translateY(0);
}

.slide.active-slide {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.slide.slide-out-up {
    transform: translateY(-60px) scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.5s ease;
}

.slide-about .container {
    height: 100%;
    display: flex;
    align-items: flex-start;
}

.slide-about .about-section {
    margin-bottom: 0;
    height: calc(100% - 30px);
    max-height: calc(100% - 30px);
}

.slide-about .red-box {
    max-height: 100%;
    overflow: visible;
}

.slide-about .about-text-inner {
    overflow-y: auto;
    max-height: 100%;
    min-height: 0;
}

.profile-buttons {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.about-btn {
    border: 2px solid #cc2b2b;
    border-radius: 24px;
    background-color: #1c1c1c;
    padding: 8px 22px;
    font-size: 0.9em;
    color: #fff;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.about-btn:hover {
    background-color: #cc2b2b;
}

.slide .red-box h2 {
    font-size: clamp(1.25em, 2vh, 1.6em);
    margin-bottom: clamp(8px, 1.5vh, 15px);
}

.slide-about .about-text p {
    font-size: calc(clamp(0.95em, 1.6vh, 1.05em) * var(--about-text-scale, 1));
    margin-bottom: clamp(4px, 0.8vh, 10px);
}

.slide-about .profile-box .caption {
    font-size: clamp(0.95em, 1.8vh, 1.15em);
    padding: clamp(6px, 1vh, 8px) 26px;
}

.slide-info .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(28px, 4vh, 40px);
}

.slide-info .two-col {
    margin-bottom: 0;
    min-height: 0;
}

.slide-info .two-col > div {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.slide-info .red-box {
    max-height: none;
}

.slide-info .red-box h2 {
    font-size: clamp(1.1em, 2vh, 1.3em);
}

.slide-info .red-box ul {
    overflow-y: visible;
}

.slide-info .red-box ul li {
    font-size: calc(clamp(0.9em, 1.6vh, 1.05em) * var(--section-text-scale, 1));
    margin-bottom: clamp(6px, 1vh, 14px);
    line-height: 1.35;
    padding-left: 18px;
}

.slide-info .red-box p {
    font-size: calc(clamp(0.9em, 1.6vh, 1.05em) * var(--section-text-scale, 1));
    margin-bottom: clamp(6px, 1vh, 14px);
    line-height: 1.35;
}

.slide-info .red-box ul li::before {
    top: 6px;
    width: 7px;
    height: 7px;
}

.slide-info > .container > .red-box {
    flex: none;
    max-height: none;
    margin-top: 20px;
}

/* Dots indicator showing which slide is active, and clickable to jump */
.slide-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #cc2b2b;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot-indicator.active {
    background: #cc2b2b;
}

/* Mobile-only 3-dot menu button + dropdown: hidden on desktop by default */
.mobile-menu-toggle,
.mobile-menu-panel {
    display: none;
}

/* ===== SUB-MENU PAGES (Training, Video Editing, etc. — edited via WP block editor) ===== */
.page-content {
    padding-top: 40px;
    padding-bottom: 60px;
}

.page-box {
    --box-pad-x: clamp(20px, 4vw, 42px);
    padding-left: var(--box-pad-x);
    padding-right: var(--box-pad-x);
    padding-bottom: clamp(20px, 3.5vw, 36px);
}

.page-body {
    text-align: left;
    line-height: 1.7;
}

.page-body p { margin-bottom: 1em; }
.page-body h2, .page-body h3, .page-body h4 { margin: 1em 0 0.5em; font-weight: 400; color: #fff; }
.page-body a { color: #ff6b6b; text-decoration: underline; }

.page-body img { max-width: 100%; height: auto; border-radius: 16px; }

.page-body .wp-block-gallery { margin: 1.5em 0; }

.page-body .wp-block-button__link {
    background: #cc2b2b;
    border-radius: 30px;
    padding: 12px 30px;
    color: #fff;
    text-decoration: none;
    display: inline-block;
}

.page-body figure { margin: 1.5em 0; }
.page-body iframe, .page-body video { max-width: 100%; border-radius: 16px; }

.page-body .wp-block-columns { gap: 20px; }

/* =====================================================================
   MOBILE REDESIGN (≤900px)
   Keeps the desktop visual identity while using a compact, touch-friendly
   mobile composition. Desktop slide behaviour remains unchanged.
   ===================================================================== */
@media (max-width: 900px) {

    html, body {
        height: auto !important;
        min-height: 100%;
    }

    body.slides-lock, html.slides-lock {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: auto !important;
    }

    .slides-wrapper {
        position: static !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        touch-action: auto !important;
    }

    .slide {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        transition: none !important;
    }

    .slide .profile-column,
    .slide .profile-box,
    .slide .about-text,
    .slide .two-col > div,
    .slide > .container > .red-box {
        opacity: 1 !important;
        transform: none !important;
    }

    .slide-dots { display: none !important; }

    /* ---------- HEADER / NORMAL MOBILE MENU ---------- */
    .site-topbar {
        position: sticky !important;
        top: 0;
        padding: 9px 12px 10px !important;
        background: rgba(10,10,10,.97) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(204,43,43,.30);
    }

    .site-header {
        position: relative;
    }

    .site-title-wrap {
        position: relative;
    }

    .site-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        align-items: center;
        gap: 10px;
        padding: 0 !important;
        min-height: 54px;
    }

    /* Home and Contact are moved completely into the mobile menu. */
    .desktop-home-link,
    .desktop-contact-link {
        display: none !important;
    }

    .site-title-wrap {
        grid-column: 1;
        justify-self: start;
        display: flex;
        align-items: center;
        flex-direction: row;
        gap: 9px;
        min-width: 0;
        padding-left: 2px;
    }

    .site-logo-photo {
        width: 46px;
        height: 46px;
        border-width: 2px;
    }

    .site-title-wrap h1 {
        font-size: .92rem;
        line-height: 1.1;
        white-space: nowrap;
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 112px);
    }

    .mobile-menu-toggle {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 5px 4px;
        border: 1.5px solid #cc2b2b;
        border-radius: 12px;
        background: #141414;
        color: #fff;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 20px;
    }

    .hamburger-icon span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
        transition: transform .2s ease, opacity .2s ease;
    }

    .menu-label {
        font-size: .55rem;
        line-height: 1;
        margin-top: 1px;
        color: #fff;
    }

    .mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-topbar > .sub-menu-bar,
    .site-header .sub-menu-bar {
        display: none !important;
    }

    .mobile-menu-panel {
        display: none;
        flex-direction: column;
        max-height: calc(100vh - 78px);
        overflow-y: auto;
        margin: 10px 0 0;
        border: 1.5px solid #cc2b2b;
        border-radius: 16px;
        background: #141414;
        overflow: hidden;
        box-shadow: 0 12px 30px rgba(0,0,0,.45);
    }

    .mobile-menu-panel.is-open {
        display: flex;
    }

    .mobile-menu-panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 11px 16px;
        border-bottom: 1px solid rgba(204,43,43,.25);
        font-size: .9rem;
        line-height: 1.25;
    }

    .mobile-menu-panel a::before {
        content: '';
        width: 6px;
        height: 6px;
        margin-right: 10px;
        border-radius: 50%;
        background: #cc2b2b;
        flex: 0 0 auto;
    }

    .mobile-menu-panel a:last-child {
        border-bottom: none;
    }

    /* ---------- GENERAL MOBILE CONTAINER ---------- */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
    }

    /* ---------- ABOUT: compact portrait + full-width text ---------- */
    .slide-about .container {
        height: auto !important;
        display: block !important;
        padding-top: 20px !important;
        padding-bottom: 28px !important;
    }

    .slide-about .about-section {
        height: auto !important;
        max-height: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 70px !important;
    }

    .profile-column {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        align-items: center !important;
    }

    .profile-box {
        flex: none !important;
        width: min(72vw, 250px) !important;
        height: auto !important;
        aspect-ratio: 3 / 4 !important;
        margin: 0 auto !important;
    }

    .photo-frame {
        width: 100%;
        height: 100%;
        border-radius: 28px;
        border-width: 1.5px;
    }

    .photo-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .profile-box .caption {
        bottom: -18px;
        font-size: .95rem;
        line-height: 1.1;
        padding: 7px 20px;
        border-width: 1.5px;
        border-radius: 22px;
    }

    .slide-about .about-text {
        width: 100%;
        max-width: 680px;
        max-height: none !important;
        overflow: visible !important;
        padding: 28px 17px 18px !important;
        border-radius: 26px;
        border-width: 1.5px;
    }

    .slide .red-box h2 {
        top: -17px;
        font-size: 1rem;
        padding: 6px 20px;
        border-width: 1.5px;
        border-radius: 22px;
    }

    .slide-about .about-text-inner {
        max-height: none !important;
        overflow: visible !important;
    }

    .slide-about .about-text p {
        font-size: calc(.92rem * var(--about-text-scale, 1)) !important;
        line-height: 1.58;
        margin-bottom: 11px !important;
    }

    .profile-buttons {
        margin-top: 34px;
        padding-top: 0;
        gap: 8px;
    }

    .about-btn {
        border-width: 1.5px;
        padding: 7px 14px;
        font-size: .82rem;
    }

    /* ---------- INFO CARDS ---------- */
    .slide-info .container {
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        padding: 24px 14px 38px !important;
    }

    .two-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px !important;
        margin-bottom: 24px !important;
    }

    .slide-info .two-col > div,
    .slide-info > .container > .red-box {
        width: 100%;
        max-width: none !important;
        margin: 0 !important;
        padding: 28px 18px 18px !important;
        border-width: 1.5px;
        border-radius: 26px;
    }

    .slide-info .red-box h2 {
        font-size: .98rem !important;
    }

    .slide-info .red-box ul li {
        font-size: calc(.9rem * var(--section-text-scale, 1)) !important;
        line-height: 1.48;
        margin-bottom: 9px;
        padding-left: 17px;
    }

    .slide-info .red-box ul li::before {
        top: 7px;
        width: 7px;
        height: 7px;
    }

    /* ---------- NORMAL CONTENT PAGES ---------- */
    .page-content {
        padding-top: 26px !important;
        padding-bottom: 40px !important;
    }

    .page-box {
        padding: 30px 17px 22px !important;
        border-radius: 26px;
        border-width: 1.5px;
    }

    .page-body {
        font-size: .92rem;
        line-height: 1.65;
    }
}

/* Extra-small phones */
@media (max-width: 380px) {
    .site-header > .nav-pill {
        font-size: .76rem;
        padding: 5px 11px;
    }

    .site-logo-photo {
        width: 48px;
        height: 48px;
    }

    .site-title-wrap h1 {
        font-size: .86rem;
    }

    .profile-box {
        width: min(70vw, 220px) !important;
    }

    .slide-about .about-text p {
        font-size: calc(.88rem * var(--about-text-scale, 1)) !important;
    }
}


/* ===== v2.1 DESKTOP: compact profile card ===== */
/* Keep the About Me panel unchanged, while reducing the portrait footprint so
   the first desktop viewport shows more of the page at once. */
@media (min-width: 901px) {
    .slide-about .profile-column {
        flex: 0 0 320px;
        width: 320px;
        align-self: center;
        justify-content: center;
    }

    .slide-about .profile-box {
        flex: 0 0 380px;
        width: 320px;
        height: 380px;
        min-height: 380px;
        max-height: 380px;
    }

    .slide-about .photo-frame {
        width: 100%;
        height: 100%;
    }

    .slide-about .profile-box .caption {
        bottom: -18px;
    }

    .slide-about .profile-buttons {
        margin-top: 42px;
    }
}

/* ===== v2.7 SOLID BLACK BACKGROUND ===== */
/* Intentional solid black background on both desktop and mobile. */
body {
    background: #000000 !important;
    background-image: none !important;
}

/* Show the complete uploaded portrait instead of cropping its left/right edges. */
.photo-frame img {
    object-fit: contain;
    object-position: center bottom;
    background: #141414;
}

@media (max-width: 768px) {
    .photo-frame img {
        object-fit: contain !important;
        object-position: center bottom !important;
    }
}


/* ===== v2.3 DESKTOP HOMEPAGE LAYOUT ===== */
/* Keep the portrait visually centered against the About Me card, while the
   social buttons sit independently underneath the portrait. The About Me
   card is narrower and taller to match the intended balanced composition. */
@media (min-width: 901px) {
    .slide-about .container {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .slide-about .about-section {
        align-items: stretch;
        justify-content: center;
        gap: 28px;
    }

    .slide-about .profile-column {
        flex: 0 0 320px;
        width: 320px;
        align-self: stretch;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .slide-about .profile-box {
        width: 320px;
        height: 380px;
        min-height: 380px;
        max-height: 380px;
        flex: 0 0 380px;
    }

    .slide-about .profile-buttons {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(50% + 208px);
        margin: 0;
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .slide-about .about-text {
        flex: 0 1 880px;
        width: min(880px, 100%);
        max-width: 880px;
        min-height: 500px;
        max-height: 500px;
        align-self: center;
        padding: 34px 26px 24px;
    }

    .slide-about .about-text-inner {
        max-height: 100%;
        overflow-y: auto;
    }
}


/* ===== v2.5 DESKTOP: ZOOM-INVARIANT REFERENCE COMPOSITION =====
   The desktop composition uses viewport-relative dimensions so it keeps the
   same visual proportions at 100%, 90%, 80%, etc. The 100% laptop viewport
   therefore resembles the approved 80% reference without overflowing. */
@media (min-width: 901px) {
    .slide-about .container {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2vh 1.5vw 4vh !important;
    }

    .slide-about .about-section {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: grid !important;
        grid-template-columns: 19vw 52vw !important;
        align-items: center !important;
        justify-content: center !important;
        column-gap: 2.5vw !important;
        margin: 0 !important;
    }

    .slide-about .profile-column {
        width: 19vw !important;
        flex: none !important;
        align-self: center !important;
        justify-content: center !important;
        align-items: center !important;
        min-height: 0 !important;
        position: static !important;
    }

    .slide-about .profile-box {
        width: 19vw !important;
        height: 50vh !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: none !important;
    }

    .slide-about .photo-frame {
        width: 100% !important;
        height: 100% !important;
        flex: none !important;
        border-radius: 3vw !important;
    }

    .slide-about .photo-frame img {
        width: 100% !important;
        height: 100% !important;
        flex: none !important;
        object-fit: contain !important;
        object-position: center bottom !important;
    }

    .slide-about .profile-box .caption {
        bottom: -2.5vh !important;
        font-size: clamp(12px, 1vw, 16px) !important;
        padding: .7vh 2vw !important;
    }

    .slide-about .profile-buttons {
        position: static !important;
        width: 100% !important;
        margin-top: 5.5vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: .8vw !important;
        flex-wrap: wrap !important;
    }

    .slide-about .about-text {
        width: 52vw !important;
        max-width: 52vw !important;
        min-width: 0 !important;
        height: 63vh !important;
        min-height: 0 !important;
        max-height: none !important;
        align-self: center !important;
        padding: 4.5vh 2vw 2.5vh !important;
        overflow: visible !important;
        border-radius: 3vw !important;
    }

    .slide-about .about-text-inner {
        width: 100% !important;
        height: auto !important;
        max-height: calc(63vh - 8vh) !important;
        overflow-y: auto !important;
        padding-right: .3vw;
    }

    .slide-about .about-text p {
        font-size: calc(1vw * var(--about-text-scale, 1)) !important;
        line-height: 1.45 !important;
        margin-bottom: .7vh !important;
    }

    .slide-about .about-text h2 {
        top: -3.2vh !important;
        font-size: clamp(16px, 1.5vw, 23px) !important;
        padding: .9vh 2vw !important;
    }
}

/* For very short desktop viewports, reduce vertical dimensions slightly while
   preserving the same proportions and keeping the full composition visible. */
@media (min-width: 901px) and (max-height: 650px) {
    .slide-about .about-text { height: 61vh !important; }
    .slide-about .about-text-inner { max-height: calc(61vh - 8vh) !important; }
    .slide-about .profile-box { height: 47vh !important; }
    .slide-about .profile-buttons { margin-top: 5vh !important; }
}


/* ===== v2.6 DESKTOP REFINEMENT: single-row navigation + tighter About card ===== */
@media (min-width: 901px) {
    .desktop-main-menu {
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap !important;
        white-space: nowrap;
        gap: 0;
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: clamp(.72rem, .82vw, .92rem) !important;
    }

    .desktop-main-menu a {
        margin: 0 5px !important;
    }

    .desktop-main-menu .dot {
        margin: 0 4px !important;
        flex: 0 0 auto;
    }

    .desktop-main-menu .nowrap-pair {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .site-logo-photo {
        border-width: 1.5px !important;
    }

    .slide-about .about-text {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-top: 4.2vh !important;
        padding-bottom: 2.2vh !important;
    }

    .slide-about .about-text-inner {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .slide-about .about-text p {
        margin-bottom: .85vh !important;
    }
}


/* ===== v2.8: NORMAL DESKTOP PAGE SCROLL + MOBILE LOGO STROKE =====
/* The homepage is a normal document now: users scroll naturally to the
   Education / Experience / Skills content instead of the mouse-wheel being
   converted into slide changes. */
@media (min-width: 901px) {
    html.slides-lock,
    body.slides-lock {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: auto !important;
    }

    .slides-wrapper {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        overscroll-behavior: auto !important;
        touch-action: auto !important;
    }

    .slides-wrapper .slide {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        transition: none !important;
    }

    .slides-wrapper .slide .profile-column,
    .slides-wrapper .slide .profile-box,
    .slides-wrapper .slide .about-text,
    .slides-wrapper .slide .two-col > div,
    .slides-wrapper .slide > .container > .red-box {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .slide-about .container {
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 46px 1.5vw 56px !important;
    }

    .slide-about .about-section {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .slide-info .container {
        height: auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 70px 1.5vw 90px !important;
        gap: 50px !important;
    }

    .slide-info .two-col {
        min-height: 0 !important;
    }

    .slide-info .red-box {
        max-height: none !important;
    }

    .slide-dots {
        display: none !important;
    }
}

/* Mobile logo: match the slim desktop logo stroke. */
@media (max-width: 900px) {
    .site-logo-photo {
        border-width: 1.5px !important;
    }
}


/* ===== v2.9: EDITABLE FOOTER CREDIT ===== */
.site-footer {
    text-align: center;
    padding: 30px 20px 36px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: .9em;
    line-height: 1.5;
}

.site-footer p {
    margin: 0;
}

.site-footer .footer-credit-link {
    color: var(--footer-credit-color, #f4c430);
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s ease;
}

.site-footer .footer-credit-link:hover,
.site-footer .footer-credit-link:focus {
    opacity: .82;
    text-decoration: underline;
}

/* ===== v3.0: PROFESSIONAL CONTACT PAGE ===== */
.contact-page-wrap {
    min-height: calc(100vh - 170px);
    padding: 48px 0 60px;
}

.contact-hero {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.contact-eyebrow {
    display: inline-block;
    color: #cc2b2b;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    margin-bottom: 8px;
}

.contact-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.12;
    margin-bottom: 12px;
}

.contact-hero p {
    color: rgba(255,255,255,.72);
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
    gap: 28px;
    align-items: stretch;
    max-width: 1180px;
    margin: 0 auto;
}

.contact-form-box,
.contact-info-box {
    height: 100%;
    padding: 38px clamp(22px, 3vw, 38px) 30px;
}

.contact-form-box h2,
.contact-info-box h2 {
    font-size: 1.25rem;
}

.samiran-contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.samiran-contact-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.samiran-contact-form label > span {
    font-size: .88rem;
    color: rgba(255,255,255,.78);
}

.samiran-contact-form input,
.samiran-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(204,43,43,.8);
    border-radius: 13px;
    background: #090909;
    color: #fff;
    padding: 12px 14px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.samiran-contact-form input:focus,
.samiran-contact-form textarea:focus {
    border-color: #ef3b3b;
    box-shadow: 0 0 0 3px rgba(204,43,43,.12);
}

.samiran-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-row.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-submit,
.whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 2px solid #cc2b2b;
    border-radius: 28px;
    background: #141414;
    color: #fff;
    padding: 10px 24px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.contact-submit:hover,
.whatsapp-button:hover {
    background: #cc2b2b;
    transform: translateY(-1px);
}

.contact-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid #cc2b2b;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    color: #fff;
    font-size: 1.05rem;
}

.whatsapp-icon {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
}

.contact-method small {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: .75rem;
    margin-bottom: 3px;
}

.contact-method a {
    color: #fff;
    word-break: break-word;
}

.contact-method a:hover {
    color: #f4c430;
}

.whatsapp-button {
    width: 100%;
    margin-top: 3px;
}

.contact-response-note {
    border-left: 2px solid #cc2b2b;
    padding: 6px 0 6px 18px;
    color: rgba(255,255,255,.68);
}

.contact-response-note strong {
    display: block;
    color: #fff;
    font-weight: 500;
    margin-bottom: 5px;
}

.contact-response-note p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
}

.contact-notice {
    max-width: 1180px;
    margin: 0 auto 22px;
    border: 1.5px solid #cc2b2b;
    border-radius: 16px;
    background: #141414;
    padding: 14px 18px;
    text-align: center;
}

.contact-success { color: #f4c430; }
.contact-error { color: #ff8c8c; }

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 900px) {
    .contact-page-wrap {
        padding: 34px 0 46px;
        min-height: 0;
    }

    .contact-hero {
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .contact-hero h1 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 680px;
    }

    .contact-form-box,
    .contact-info-box {
        padding: 34px 20px 24px;
    }

    .form-row.two-fields {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

/* ===== v3.1: PROFESSIONAL GRAPHICS & SET DESIGN GRID ===== */
.graphics-page { padding: 48px 0 80px; }
.graphics-page .container { max-width: 1180px; margin: 0 auto; }
.graphics-page .page-hero { max-width: none; margin: 0 auto 38px; text-align: center; padding: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.graphics-page .page-hero h2 { display: inline-block; margin: 0; padding: 10px 28px; border: 1.5px solid #cc2b2b; border-radius: 999px; background: #0b0b0b; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.25; font-weight: 400; }
.graphics-page .page-hero p { display: none; }
.graphics-page .media-section { margin: 0 auto 58px; }
.graphics-page .media-section h3 { text-align: center; font-size: 1.25rem; font-weight: 500; margin: 0 0 24px; color: #fff; }
.graphics-page .media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.graphics-page .media-card { border: 1.5px solid #cc2b2b; border-radius: 18px; overflow: hidden; background: #0b0b0b; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.graphics-page .video-card { padding: 0; }
.graphics-page .video-wrap { position: relative; aspect-ratio: 16 / 9; background: #050505; }
.graphics-page .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.graphics-page .photo-card { display: block; aspect-ratio: 4 / 3; }
.graphics-page .photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.graphics-page .photo-card:hover img { transform: scale(1.025); }
.graphics-page .empty-media { max-width: 760px; margin: 40px auto; text-align: center; padding: 28px; }
@media (max-width: 900px) {
  .graphics-page { padding: 30px 0 55px; }
  .graphics-page .container { width: min(94%, 680px); }
  .graphics-page .page-hero { margin-bottom: 30px; padding: 0; }
  .graphics-page .page-hero h2 { padding: 9px 20px; font-size: 1.1rem; }
  .graphics-page .media-grid { grid-template-columns: 1fr; gap: 18px; }
  .graphics-page .media-section { margin-bottom: 42px; }
}
/* Customizer repeater */
.samiran-url-repeater .samiran-url-list { margin-top: 10px; }
.samiran-url-repeater .samiran-url-row { display:flex; gap:6px; margin-bottom:8px; align-items:center; }
.samiran-url-repeater .samiran-url-input { flex:1; min-width:0; width:100%; }
.samiran-url-repeater .samiran-remove-url { width:32px; min-width:32px; padding:0; font-size:18px; line-height:28px; }
.samiran-url-repeater .samiran-add-url { margin-top:4px; }

/* ===== Thoughts & Journal / Photos title treatment ===== */
.page-box.special-menu-page {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-top: 18px;
}
.page-box.special-menu-page > h2 {
    position: static;
    display: table;
    transform: none;
    margin: 0 auto 28px;
    white-space: normal;
    background: #0b0b0b;
    border: 1.5px solid #cc2b2b;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: clamp(1.1rem, 1.8vw, 1.45rem);
    line-height: 1.25;
    font-weight: 400;
}
.page-box.special-menu-page .page-body {
    max-width: 1180px;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .page-box.special-menu-page { padding-top: 8px !important; }
    .page-box.special-menu-page > h2 { font-size: 1.05rem; padding: 8px 18px; margin-bottom: 22px; }
}

/* ===== v4.3: THOUGHTS & JOURNAL (BLOG) ===== */
.thoughts-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
.thought-card { border: 1.5px solid #cc2b2b; border-radius: 16px; background: #0b0b0b; padding: 26px 28px; }
.thought-card h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 500; }
.thought-card h3 a { color: #fff; text-decoration: none; }
.thought-card h3 a:hover { color: #f4c430; }
.thought-meta { font-size: .85rem; color: #a98a90; margin-bottom: 12px; }
.thought-excerpt { color: #e6d6d9; line-height: 1.6; margin-bottom: 14px; }
.thought-readmore { color: #f4c430; text-decoration: none; font-size: .9rem; font-weight: 600; }
.thought-readmore:hover { text-decoration: underline; }

.single-thought-page .single-thought { max-width: 780px; margin: 0 auto; }
.thought-back { display: inline-block; margin-bottom: 26px; color: #e6d6d9; text-decoration: none; font-size: .9rem; }
.thought-back:hover { color: #f4c430; }
.single-thought-title { font-size: 1.6rem; font-weight: 500; margin: 0 0 8px; color: #fff; }
.single-thought-content { color: #e6d6d9; line-height: 1.75; margin-top: 20px; }
.single-thought-content p { margin: 0 0 20px; }
.single-thought-content img { max-width: 100%; border-radius: 12px; }

/* ===== v4.3: PHOTOS GRID + LIGHTBOX ===== */
.photos-lightbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.photos-lightbox-item {
    display: block;
    padding: 0;
    border: 1.5px solid #cc2b2b;
    border-radius: 14px;
    overflow: hidden;
    background: #0b0b0b;
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
}
.photos-lightbox-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.photos-lightbox-item:hover img { transform: scale(1.05); }

.photos-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,5,5,.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.photos-lightbox.is-open { display: flex; }
.photos-lightbox-img { max-width: 88vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.photos-lightbox-close, .photos-lightbox-prev, .photos-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photos-lightbox-close:hover, .photos-lightbox-prev:hover, .photos-lightbox-next:hover { background: rgba(255,255,255,.18); }
.photos-lightbox-close { top: 22px; right: 22px; }
.photos-lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.photos-lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
    .photos-lightbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .thought-card { padding: 20px; }
    .single-thought-title { font-size: 1.3rem; }
}
@media (max-width: 520px) {
    .photos-lightbox-grid { grid-template-columns: 1fr; }
}

/* ===== v4.5: WEBSITE DEVELOPMENT CARD GRID ===== */
.webdev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}
.webdev-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    border: 1.5px solid #cc2b2b;
    border-radius: 16px;
    background: #0b0b0b;
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.webdev-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,.35);
    border-color: #f4c430;
    color: #fff;
}
.webdev-card-icon { color: #f4c430; margin-bottom: 4px; }
.webdev-card-title { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.webdev-card-url { font-size: .78rem; color: #a98a90; word-break: break-all; }

@media (max-width: 900px) {
    .webdev-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .webdev-card { padding: 22px 14px; }
}
@media (max-width: 480px) {
    .webdev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
