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

html { width: 100%; min-height: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-y: auto; }

body {
    width: 100%; min-height: 100vh; height: auto;
    overflow-x: hidden; overflow-y: auto;
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f6f0; color: #102b52;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */
body { display: block; }

/* =========================================================

   SIDEBAR
========================================================= */
.sidebar {
    position: fixed; top: 0; left: 0;
    width: 280px; height: 100vh; padding: 35px 30px;
    background: #f8f7f2; border-right: 1px solid #dddddd;
    display: flex; flex-direction: column;
    overflow-y: auto; overflow-x: hidden; z-index: 1000;
}

/* =========================================================
   PROFILE
========================================================= */
.profile { text-align: center; margin-bottom: 20px; }
.profile-photo { width: 145px; height: 145px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: #eeeeee; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile h2 { font-size: 20px; line-height: 1.2; color: #102d57; margin-bottom: 8px; }
.profile p { font-size: 14px; color: #61708a; }

/* =========================================================
   SOCIAL ICONS
========================================================= */
.socials, .social-links {
    display: flex; justify-content: center; align-items: center; gap: 10px;
    margin: 22px 0 18px; padding-bottom: 20px; border-bottom: 1px solid #dddddd;
}

.socials a, .socials button, .social-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #d8d8d2; border-radius: 50%;
    background: #ffffff; color: #102d57;
    text-decoration: none; font-size: 16px; font-weight: 700;
    cursor: pointer; transition: 0.25s ease;
}

.socials a:hover, .socials button:hover, .social-icon:hover {
    background: #ff6b16; border-color: #ff6b16; color: #ffffff; transform: translateY(-3px);
}

.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* =========================================================
   THEME TOGGLE
========================================================= */
.theme-toggle {
    width: 42px; height: 42px; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #d8d8d2; border-radius: 50%;
    background: #ffffff; color: #102d57;
    font-size: 19px; cursor: pointer; transition: 0.25s ease;
}

.theme-toggle:hover { background: #ff6b16; border-color: #ff6b16; color: #ffffff; transform: rotate(15deg); }

/* =========================================================
   SIDE NAVIGATION
========================================================= */
.side-nav { display: flex; flex-direction: column; gap: 8px; width: 100%; flex: 1; }

.side-nav a {
    display: flex; align-items: center; gap: 18px;
    width: 100%; min-height: 52px; padding: 14px 18px;
    border-radius: 15px; color: #60708a; text-decoration: none;
    font-size: 16px; font-weight: 600; transition: 0.25s ease;
}

.side-nav a span { width: 25px; flex-shrink: 0; text-align: center; font-size: 22px; }
.side-nav a:hover { background: #ffffff; color: #102d57; transform: translateX(4px); }
.side-nav a.active { background: #ffffff; color: #102d57; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06); }
.side-nav a.active span { color: #ff6b16; }

/* =========================================================
   MAIN CONTENT
========================================================= */
.main-content {
    margin-left: 280px; width: calc(100% - 280px);
    min-height: 100vh; height: auto;
    padding: 55px 55px 30px; overflow: visible;
}

/* =========================================================
   HOME HERO
========================================================= */
.hero { min-height: 155px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.hero > div { min-width: 0; }
.eyebrow { color: #ff6b16; font-size: 13px; font-weight: 800; letter-spacing: 4px; margin-bottom: 12px; }
.hero h1 { color: #102b52; font-size: clamp(42px, 4.2vw, 68px); line-height: 0.95; letter-spacing: -2px; margin-bottom: 14px; }
.hero h1 span { color: #ff6b16; }
.hero-description { max-width: 780px; color: #61718a; font-size: 16px; line-height: 1.45; }

/* =========================================================
   CONTACT BUTTON
========================================================= */
.contact-button {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; padding: 17px 27px; border-radius: 35px;
    background: #102b52; color: #ffffff; text-decoration: none;
    font-size: 15px; font-weight: 700;
    box-shadow: 0 12px 30px rgba(16, 43, 82, 0.15);
    white-space: nowrap; transition: 0.25s ease;
}

.contact-button:hover { background: #ff6b16; transform: translateY(-3px); }
.contact-button span { color: #ff7118; margin-left: 7px; font-size: 18px; }

/* =========================================================
   TOOLS STRIP
========================================================= */
.tools-strip {
    min-height: 78px; margin-bottom: 18px; padding: 10px 18px;
    background: #ffffff; border: 1px solid #d9d9d3; border-radius: 28px;
    display: flex; align-items: center;
    box-shadow: 0 8px 25px rgba(16, 43, 82, 0.04);
}

.tools-title { width: 205px; flex-shrink: 0; padding-left: 4px; border-right: 1px solid #dddcd5; }
.tools-title small { display: block; color: #ff7118; font-size: 11px; font-weight: 800; letter-spacing: 3px; margin-bottom: 4px; }
.tools-title strong { font-size: 18px; color: #102b52; }
.tool-list { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; }

.tool {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; border-right: 1px solid #eeeeea;
    font-size: 14px; font-weight: 700; color: #102b52;
}

.tool:last-child { border-right: none; }

.tool span {
    width: 38px; height: 38px; border-radius: 12px; background: #fff0e6;
    display: flex; align-items: center; justify-content: center;
    color: #ff7118; font-weight: 900; font-size: 16px;
}

/* =========================================================
   DASHBOARD
========================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    grid-template-rows: minmax(250px, 1fr) minmax(250px, 1fr);
    gap: 16px; min-height: 0;
}

/* =========================================================
   DASHBOARD CARDS
========================================================= */
.dashboard-card {
    position: relative; min-width: 0; min-height: 250px; padding: 18px;
    background: #ffffff; border: 1px solid #d8d8d2; border-radius: 24px;
    text-decoration: none; color: #102b52; overflow: hidden; transition: 0.25s ease;
}

.dashboard-card:hover { transform: translateY(-3px); border-color: #ff7118; box-shadow: 0 12px 30px rgba(16, 43, 82, 0.08); }

/* =========================================================
   DASHBOARD CARD POSITIONS
========================================================= */
.projects-card { grid-column: 1 / 3; grid-row: 1; }
.about-card { grid-column: 3; grid-row: 1; }
.tools-card { grid-column: 1; grid-row: 2; }
.skills-card { grid-column: 2; grid-row: 2; }
.services-card { grid-column: 3; grid-row: 2; }
.contact-card { display: none; }

/* =========================================================
   CARD HEADING
========================================================= */
.card-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }

.card-icon {
    width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px;
    background: #ff7118; color: #ffffff;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.card-heading h2 { font-size: 20px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-heading p { color: #66768e; font-size: 13px; line-height: 1.35; }

/* =========================================================
   PROJECT PREVIEW
========================================================= */
.project-preview {
    position: absolute; right: 20px; bottom: 18px; width: 55%; height: 68%;
    display: flex; align-items: flex-end; justify-content: flex-end;
}

.project-image { width: 68%; height: 82%; background: #0f0000; border-radius: 15px; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.project-image.second { width: 58%; height: 68%; margin-right: -20px; margin-bottom: -8px; z-index: 2; }
.project-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================
   ABOUT VISUAL
========================================================= */
.about-visual {
    position: absolute; bottom: -20px; right: 25px; width: 145px; height: 145px;
    border-radius: 50%; background: #f4f1e9;
    display: flex; align-items: center; justify-content: center;
}

.about-circle { font-size: 62px; font-weight: 900; color: #102b52; }

/* =========================================================
   TOOL PILLS
========================================================= */
.tool-pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 9px; }
.tool-pills span { padding: 9px 14px; border: 1px solid #d8d8d2; border-radius: 25px; font-size: 12px; font-weight: 700; color: #102b52; background: #ffffff; }
.tool-pills span::before { content: "•"; color: #ff7118; margin-right: 7px; }

/* =========================================================
   SKILLS
========================================================= */
.skills-list { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.skills-list > div { display: flex; justify-content: space-between; font-size: 12px; padding-bottom: 7px; border-bottom: 1px solid #eeeeea; }
.skills-list b { color: #ff7118; }
.skill-bar { width: 100%; height: 7px; background: #e8e8e8; border-radius: 20px; margin-top: 18px; overflow: hidden; }
.skill-progress { height: 100%; background: #ff6b16; border-radius: 20px; }

/* =========================================================
   SERVICES
========================================================= */
.service-list { list-style: none; margin-top: 14px; }
.service-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eeeeea; font-size: 12px; font-weight: 700; }
.service-list li span { color: #ff7118; }
.dashboard-card small { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; color: #777777; }

/* =========================================================
   FOOTER
========================================================= */
footer { margin-top: 35px; padding: 18px 5px; border-top: 1px solid #dddddd; text-align: center; color: #8994a5; font-size: 12px; }

/* =========================================================
   OTHER PAGE HERO
========================================================= */
.page-hero { max-width: 1000px; margin: 0 auto 35px; }
.page-hero .eyebrow { color: #ff6b16; font-size: 14px; font-weight: 800; letter-spacing: 5px; margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(55px, 6vw, 85px); line-height: 0.95; color: #102d57; margin-bottom: 25px; }
.page-hero h1 span { color: #ff6b16; }
.page-description { max-width: 850px; font-size: 18px; line-height: 1.7; color: #61708a; }

/* =========================================================
   CONTENT CARDS
========================================================= */
.about-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.content-card {
    background: #ffffff; border: 1px solid #d8d8d8; border-radius: 22px;
    padding: 25px; min-height: 250px; transition: 0.25s ease;
}

.content-card:hover { transform: translateY(-4px); border-color: #ff6b16; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06); }
.card-text p { color: #61708a; font-size: 16px; line-height: 1.75; margin-bottom: 15px; }
.goal-box { background: #f8f7f2; border-radius: 18px; padding: 25px; display: flex; flex-direction: column; gap: 12px; }
.goal-box strong { color: #102d57; font-size: 21px; }
.goal-box span { color: #61708a; line-height: 1.6; }
.about-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.about-pills span { padding: 11px 15px; border: 1px solid #dddddd; border-radius: 30px; color: #102d57; background: #ffffff; font-size: 14px; font-weight: 700; }
.about-pills span::before { content: "•"; color: #ff6b16; margin-right: 7px; }

.about-cta {
    max-width: 1000px; margin: 18px auto; padding: 28px 30px;
    border-radius: 22px; background: #102d57; color: #ffffff;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
}

.about-cta .eyebrow { color: #ff6b16; font-size: 12px; font-weight: 800; letter-spacing: 4px; margin-bottom: 8px; }
.about-cta h2 { font-size: 27px; margin-bottom: 8px; }
.about-cta p { color: #dce5f2; line-height: 1.5; }

/* =========================================================
   ADVENTURE PROJECT PAGE
========================================================= */
.adventure-page { width: 100%; max-width: 1200px; min-height: 100vh; height: auto; padding-bottom: 80px; overflow: visible; }

.adventure-back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 35px;
    color: inherit; text-decoration: none; font-size: 14px; font-weight: 600;
    transition: opacity 0.3s ease;
}

.adventure-back:hover { opacity: 0.6; }

/* ADVENTURE HERO */
.adventure-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 55px; }
.adventure-hero .eyebrow { margin-bottom: 18px; }
.adventure-hero h1 { margin: 0; font-size: clamp(42px, 6vw, 78px); line-height: 0.95; letter-spacing: -3px; color: #102d57; }
.adventure-hero h1 span { color: #ff6b16; }
.adventure-description { max-width: 430px; margin-top: 25px; font-size: 16px; line-height: 1.7; color: #777777; }

/* ADVENTURE INFORMATION */
.adventure-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 55px; }
.adventure-info-card { padding: 25px; border: 1px solid rgba(128, 128, 128, 0.2); border-radius: 18px; background: transparent; }

.adventure-info-card small {
    display: block; margin-bottom: 10px; font-size: 11px; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase; color: #888888;
}

.adventure-info-card h3 { margin: 0; font-size: 18px; font-weight: 600; }

/* ADVENTURE GALLERY HEADER */
.adventure-gallery-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.adventure-gallery-heading h2 { margin: 0; font-size: 24px; font-weight: 600; }
.adventure-gallery-heading p { margin: 0; font-size: 14px; color: #888888; }

/* ADVENTURE IMAGE GALLERY */
.adventure-gallery {
    width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px; height: auto; min-height: 0; max-height: none; overflow: visible;
}

.adventure-gallery-item {
    position: relative; width: 100%; min-width: 0; aspect-ratio: 1 / 1;
    overflow: hidden; border-radius: 18px; border: 1px solid rgba(128, 128, 128, 0.15);
    background: #f1f1f1; cursor: pointer;
}

.adventure-gallery-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.5s ease; }
.adventure-gallery-item:hover img { transform: scale(1.06); }

/* IMAGE NUMBER */
.adventure-gallery-item::after {
    content: attr(data-number);
    position: absolute; left: 14px; bottom: 14px; padding: 6px 10px;
    border-radius: 20px; background: rgba(0, 0, 0, 0.65); color: #ffffff;
    font-size: 11px; font-weight: 600; letter-spacing: 1px;
    opacity: 0; transform: translateY(5px); transition: all 0.3s ease;
}

.adventure-gallery-item:hover::after { opacity: 1; transform: translateY(0); }

/* =========================================================
   IMAGE MODAL
========================================================= */
.image-modal {
    display: none; position: fixed; inset: 0; z-index: 9999;
    align-items: center; justify-content: center; padding: 25px;
    background: rgba(0, 0, 0, 0.9);
}

.image-modal.active { display: flex; }
.image-modal img { max-width: 95%; max-height: 90vh; object-fit: contain; border-radius: 10px; }
.image-modal-close { position: absolute; top: 25px; right: 30px; color: #ffffff; font-size: 35px; font-weight: 300; line-height: 1; cursor: pointer; }

/* ADVENTURE FOOTER */
.adventure-page footer { margin-top: 80px; }

/* =========================================================
   DARK MODE
========================================================= */
body.dark { background: #111827; color: #ffffff; }
body.dark .sidebar { background: #151c28; border-color: #2b3442; }
body.dark .main-content { background: #111827; }

body.dark .profile h2, body.dark .hero h1, body.dark .page-hero h1,
body.dark .adventure-hero h1, body.dark .tools-title strong, body.dark .card-heading h2,
body.dark .tool, body.dark .skills-list, body.dark .service-list,
body.dark .tool-pills span { color: #ffffff; }

body.dark .side-nav a { color: #aaaaaa; }
body.dark .side-nav a:hover, body.dark .side-nav a.active { background: #202938; color: #ffffff; }
body.dark .socials, body.dark .social-links { border-color: #303b4d; }

body.dark .socials a, body.dark .socials button, body.dark .social-icon, body.dark .theme-toggle {
    background: #202938; border-color: #374151; color: #ffffff;
}

body.dark .socials a:hover, body.dark .socials button:hover,
body.dark .social-icon:hover, body.dark .theme-toggle:hover { background: #ff6b16; border-color: #ff6b16; }

body.dark .tools-strip, body.dark .dashboard-card, body.dark .content-card { background: #182131; border-color: #303b4d; }
body.dark .tool { border-color: #303b4d; }
body.dark .tool-pills span, body.dark .about-pills span { background: #202938; border-color: #374151; color: #ffffff; }
body.dark .about-visual, body.dark .goal-box { background: #202938; }
body.dark .about-circle, body.dark .goal-box strong { color: #ffffff; }
body.dark .main-content footer { border-color: #303b4d; }

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 1200px) {
    .sidebar { width: 230px; padding: 25px 18px; }
    .profile-photo { width: 110px; height: 110px; }
    .profile h2 { font-size: 18px; }
    .profile p { font-size: 12px; }
    .main-content { margin-left: 230px; width: calc(100% - 230px); padding: 40px 30px 30px; }
    .hero h1 { font-size: clamp(42px, 5vw, 60px); }
    .hero-description { font-size: 14px; }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .projects-card { grid-column: 1 / -1; grid-row: auto; }
    .about-card, .tools-card, .skills-card, .services-card { grid-column: auto; grid-row: auto; min-height: 230px; }
    .adventure-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================================================
   SMALL TABLET
========================================================= */
@media (max-width: 900px) {
    html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }

    .sidebar {
        position: relative; width: 100%; height: auto; min-height: auto;
        padding: 25px 20px; border-right: none; border-bottom: 1px solid #dddddd; overflow: visible;
    }

    .profile { margin-bottom: 15px; }
    .side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .side-nav a { min-height: 48px; padding: 10px 14px; gap: 12px; border-radius: 13px; font-size: 14px; }

    .main-content { margin-left: 0; width: 100%; min-height: auto; height: auto; padding: 30px 25px 30px; overflow: visible; }

    .hero { min-height: auto; padding: 10px 0 25px; flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero h1 { font-size: clamp(42px, 8vw, 58px); }
    .hero-description { max-width: 100%; }
    .contact-button { align-self: flex-start; }

    .tools-strip { height: auto; min-height: 0; flex-direction: column; align-items: stretch; padding: 15px; }
    .tools-title { width: 100%; padding: 0 0 12px; border-right: none; border-bottom: 1px solid #dddcd5; }
    .tool-list { width: 100%; padding-top: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool { min-height: 48px; }

    .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 14px; }
    .projects-card { grid-column: 1 / -1; grid-row: auto; }
    .about-card, .tools-card, .skills-card, .services-card { grid-column: auto; grid-row: auto; min-height: 230px; }

    .about-grid { grid-template-columns: 1fr; }
    .page-hero, .about-grid, .about-cta { max-width: 100%; }

    .adventure-hero { display: block; margin-bottom: 40px; }
    .adventure-hero h1 { font-size: 58px; }
    .adventure-description { margin-top: 20px; max-width: 100%; }
    .adventure-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 600px) {
    .sidebar { padding: 20px 15px; }
    .profile-photo { width: 90px; height: 90px; }
    .profile h2 { font-size: 17px; }
    .profile p { font-size: 12px; }

    .socials, .social-links { gap: 8px; margin: 15px 0; padding-bottom: 15px; }
    .socials a, .socials button, .social-icon { width: 38px; height: 38px; font-size: 14px; }

    .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .side-nav a { min-height: 46px; padding: 9px 11px; gap: 8px; border-radius: 12px; font-size: 13px; }
    .side-nav a span { width: 20px; font-size: 18px; }

    .main-content { padding: 25px 15px 25px; }
    .hero { padding: 5px 0 22px; }
    .eyebrow { font-size: 11px; letter-spacing: 3px; }
    .hero h1 { font-size: clamp(38px, 12vw, 52px); letter-spacing: -1.5px; }
    .hero-description { font-size: 14px; line-height: 1.5; }
    .contact-button { width: 100%; text-align: center; padding: 14px 20px; }

    .tools-strip { border-radius: 20px; padding: 12px; }
    .tools-title strong { font-size: 16px; }
    .tool-list { grid-template-columns: 1fr; }
    .tool { justify-content: flex-start; border-right: none; border-bottom: 1px solid #eeeeea; }
    .tool:last-child { border-bottom: none; }

    .dashboard-grid { grid-template-columns: 1fr; gap: 12px; }
    .projects-card, .about-card, .tools-card, .skills-card, .services-card { grid-column: 1; grid-row: auto; min-height: 230px; }
    .dashboard-card { padding: 15px; border-radius: 19px; }

    .card-heading { gap: 10px; }
    .card-icon { width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
    .card-heading h2 { font-size: 16px; }

    .project-preview { width: 65%; height: 60%; right: 10px; }
    .about-visual { width: 110px; height: 110px; right: 15px; bottom: -15px; }
    .about-circle { font-size: 48px; }

    .page-hero { margin-bottom: 25px; }
    .page-hero .eyebrow { font-size: 11px; letter-spacing: 3px; }
    .page-hero h1 { font-size: clamp(42px, 13vw, 58px); margin-bottom: 18px; }
    .page-description { font-size: 15px; line-height: 1.6; }

    .content-card { padding: 18px; border-radius: 18px; min-height: 0; }
    .content-card .card-heading { margin-bottom: 18px; }
    .card-text p { font-size: 14px; }

    .about-cta { padding: 22px; border-radius: 18px; flex-direction: column; align-items: flex-start; gap: 20px; }
    .about-cta .contact-button { width: 100%; }

    .adventure-page { padding-bottom: 50px; }
    .adventure-back { margin-bottom: 28px; }
    .adventure-hero h1 { font-size: 44px; letter-spacing: -2px; }
    .adventure-description { font-size: 15px; line-height: 1.6; }
    .adventure-info { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
    .adventure-info-card { padding: 20px; }
    .adventure-gallery-heading { display: block; margin-bottom: 20px; }
    .adventure-gallery-heading h2 { font-size: 21px; margin-bottom: 8px; }
    .adventure-gallery-heading p { font-size: 13px; }
    .adventure-gallery { grid-template-columns: 1fr; gap: 16px; }
    .adventure-gallery-item { border-radius: 14px; }
    .adventure-gallery-item::after { opacity: 1; transform: translateY(0); }
    .adventure-page footer { margin-top: 50px; }
    .main-content footer { margin-top: 25px; padding: 15px 5px; }
}

/* =========================================================
   VERY SMALL PHONE
========================================================= */
@media (max-width: 380px) {
    .sidebar { padding: 18px 10px; }
    .side-nav { gap: 5px; }
    .side-nav a { padding: 8px; gap: 6px; font-size: 12px; }
    .side-nav a span { width: 18px; font-size: 16px; }
    .main-content { padding: 20px 12px; }
    .hero h1 { font-size: 38px; }
    .dashboard-card { padding: 13px; }
    .adventure-hero h1 { font-size: 39px; }
}

/* =========================================================
   FINAL SCROLL OVERRIDE
========================================================= */
html, body { height: auto !important; min-height: 100% !important; overflow-x: hidden !important; overflow-y: auto !important; }
.main-content, .adventure-page { height: auto !important; min-height: 100vh !important; max-height: none !important; overflow: visible !important; }
.adventure-gallery { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }

/* =========================================================
   PORTFOLIO LOADING SCREEN
========================================================= */
#loading-screen {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
    background: #102b52; display: flex; align-items: center; justify-content: center;
    z-index: 99999; opacity: 1; visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-content { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.loading-logo {
    width: 140px; height: 140px; object-fit: contain; opacity: 0; transform: scale(0.65);
    animation: loadingLogoAppear 1.1s ease forwards, loadingLogoFloat 2s ease-in-out 1.1s infinite;
}

.loading-line { width: 0; height: 3px; margin-top: 28px; background: #ff6b16; border-radius: 20px; animation: loadingLine 1.8s ease forwards; }

@keyframes loadingLogoAppear {
    0% { opacity: 0; transform: scale(0.65); }
    60% { opacity: 1; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes loadingLogoFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes loadingLine {
    0% { width: 0; opacity: 0; }
    25% { opacity: 1; }
    100% { width: 120px; opacity: 1; }
}

@media (max-width: 600px) {
    .loading-logo { width: 110px; height: 110px; }
    .loading-line { margin-top: 22px; }
}

/* =========================================================
   ABOUT MODERN PAGE
========================================================= */
.about-modern-page { position: relative; }

.about-modern-intro { position: relative; padding: 0 0 28px; z-index: 2; }
.about-modern-intro-text { max-width: 1000px; }
.about-modern-eyebrow { margin-bottom: 12px; color: #ff6b16; font-size: 13px; font-weight: 800; letter-spacing: 4px; }
.about-modern-intro h1 { margin: 0 0 12px; color: #102b52; font-size: clamp(46px, 5vw, 68px); line-height: 0.95; letter-spacing: -3px; }
.about-modern-subtitle { max-width: 760px; color: #61718a; font-size: 17px; line-height: 1.5; }

/* MAIN ABOUT CARD */
.about-modern-card {
    position: relative; width: 100%; min-height: 620px; padding: 42px;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(410px, 0.9fr); gap: 30px;
    overflow: hidden; border: 1px solid #d4dbe8; border-radius: 34px;
    background:
        radial-gradient(circle at 85% 20%, rgba(119, 163, 255, 0.24), transparent 34%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.9), transparent 45%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 45%, #dce9ff 100%);
    box-shadow: 0 25px 60px rgba(16, 43, 82, 0.08);
    z-index: 1;
}

/* BACKGROUND CIRCLES */
.about-modern-circle { position: absolute; border: 1px solid rgba(82, 108, 143, 0.18); border-radius: 50%; pointer-events: none; }
.circle-one { width: 580px; height: 580px; left: -290px; top: 110px; }
.circle-two { width: 420px; height: 420px; right: -150px; top: -210px; }
.circle-three { width: 260px; height: 260px; right: 130px; bottom: -150px; }

/* LEFT CONTENT */
.about-modern-content { position: relative; z-index: 5; min-width: 0; }
.about-modern-content h2 { max-width: 570px; margin: 0 0 18px; color: #102b52; font-size: clamp(32px, 3vw, 45px); line-height: 1.08; letter-spacing: -1.8px; }
.about-modern-content h2 span { color: #61708a; }
.about-modern-description { max-width: 590px; margin-bottom: 10px; color: #61708a; font-size: 15px; line-height: 1.65; }
.about-modern-description strong { color: #102b52; }

/* ROLE ROWS */
.about-modern-roles { width: 100%; max-width: 700px; margin-top: 25px; border-top: 1px solid rgba(91, 110, 137, 0.2); }

.about-modern-role {
    min-height: 62px; display: grid; grid-template-columns: 190px 1fr 35px;
    align-items: center; gap: 12px; border-bottom: 1px solid rgba(91, 110, 137, 0.2);
}

.about-modern-role-icons { display: flex; align-items: center; }

.role-icon {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 11px; background: #ffffff; border: 1px solid #cdd5e1;
    box-shadow: 0 4px 12px rgba(16, 43, 82, 0.08);
    font-size: 11px; font-weight: 900; letter-spacing: 0.5px;
}

.role-icon.orange { color: #ff6b16; }
.role-icon.blue { color: #3678df; }
.role-icon.purple { color: #805ad5; }
.role-icon.dark { color: #102b52; }
.about-modern-role-name { color: #102b52; font-size: 14px; font-weight: 800; }
.about-modern-role-number { color: #a5b0c0; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-align: right; }

/* INFO BOX */
.about-modern-info {
    width: 100%; max-width: 700px; margin-top: 22px; overflow: hidden;
    border: 1px solid #c9d1dc; border-radius: 19px;
    background: rgba(255, 255, 255, 0.82); box-shadow: 0 8px 25px rgba(16, 43, 82, 0.05);
}

.about-modern-info-item { min-height: 66px; display: flex; align-items: center; gap: 13px; padding: 12px 16px; border-bottom: 1px solid #dce1e8; }

.about-modern-info-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px; color: #ff6b16; background: #fff1e8; font-size: 17px; font-weight: 900;
}

.about-modern-info-icon.location { color: #ff6b16; }
.about-modern-info-item strong, .about-modern-info-bottom strong { display: block; color: #102b52; font-size: 13px; margin-bottom: 3px; }
.about-modern-info-item small, .about-modern-info-bottom small { display: block; color: #718097; font-size: 11px; letter-spacing: 0.4px; }
.about-modern-info-bottom { min-height: 65px; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.about-modern-info-bottom > span { color: #9aa6b6; font-size: 22px; }

/* RIGHT VISUAL */
.about-modern-visual { position: relative; min-height: 580px; display: flex; align-items: center; justify-content: center; z-index: 3; }

.about-modern-image-glow {
    position: absolute; width: 440px; height: 440px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(180, 207, 255, 0.55) 50%, transparent 72%);
    filter: blur(2px);
}

.about-modern-image-frame {
    position: relative; width: 390px; height: 490px; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: center;
    border-radius: 195px 195px 35px 35px; border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(180deg, #edf4ff 0%, #cbdcff 100%);
    box-shadow: 0 25px 50px rgba(50, 84, 130, 0.15); z-index: 4;
}

.about-modern-image-frame::before { content: ""; position: absolute; width: 290px; height: 290px; top: 45px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.about-modern-image-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; z-index: 2; }

/* ORBIT LINES */
.about-modern-orbit { position: absolute; border: 1px solid rgba(82, 108, 143, 0.22); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 460px; height: 260px; transform: rotate(-22deg); z-index: 2; }
.orbit-two { width: 500px; height: 330px; transform: rotate(18deg); z-index: 1; }

/* FLOATING CARD */
.about-modern-floating-card {
    position: absolute; right: 15px; bottom: 80px; min-width: 190px; padding: 13px 15px;
    display: flex; align-items: center; gap: 10px;
    border: 1px solid #d2dae5; border-radius: 15px; background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(16, 43, 82, 0.12); z-index: 8;
}

.floating-dot { width: 10px; height: 10px; flex-shrink: 0; border-radius: 50%; background: #25b56f; box-shadow: 0 0 0 5px rgba(37, 181, 111, 0.12); }
.about-modern-floating-card strong { display: block; color: #102b52; font-size: 12px; margin-bottom: 3px; }
.about-modern-floating-card small { color: #718097; font-size: 10px; }

/* BIG M */
.about-modern-initials { position: absolute; right: 30px; top: 25px; color: rgba(16, 43, 82, 0.08); font-size: 150px; line-height: 1; font-weight: 900; z-index: 1; }

/* CTA */
.about-modern-cta {
    margin-top: 18px; padding: 24px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 25px;
    border-radius: 23px; background: #102b52; color: #ffffff;
    box-shadow: 0 15px 35px rgba(16, 43, 82, 0.12);
}

.about-modern-cta p { margin-bottom: 5px; color: #ff7118; font-size: 10px; font-weight: 800; letter-spacing: 3px; }
.about-modern-cta h2 { margin: 0; font-size: 24px; }

.about-modern-cta-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 20px; border-radius: 30px; background: #ffffff; color: #102b52;
    text-decoration: none; font-size: 13px; font-weight: 800; transition: 0.25s ease;
}

.about-modern-cta-button span { color: #ff6b16; font-size: 17px; }
.about-modern-cta-button:hover { background: #ff6b16; color: #ffffff; transform: translateY(-3px); }
.about-modern-cta-button:hover span { color: #ffffff; }

/* ABOUT DARK MODE */
body.dark .about-modern-intro h1 { color: #ffffff; }
body.dark .about-modern-subtitle { color: #aeb9ca; }

body.dark .about-modern-card {
    border-color: #303b4d;
    background:
        radial-gradient(circle at 85% 20%, rgba(69, 111, 190, 0.28), transparent 34%),
        linear-gradient(135deg, #182131 0%, #202c40 100%);
}

body.dark .about-modern-content h2 { color: #ffffff; }
body.dark .about-modern-content h2 span { color: #aeb9ca; }
body.dark .about-modern-description { color: #aeb9ca; }

body.dark .about-modern-description strong, body.dark .about-modern-role-name,
body.dark .about-modern-info-item strong, body.dark .about-modern-info-bottom strong,
body.dark .about-modern-floating-card strong { color: #ffffff; }

body.dark .about-modern-role { border-color: #344155; }
body.dark .about-modern-role-number { color: #7e8ca2; }
body.dark .role-icon { background: #202938; border-color: #3a4659; }
body.dark .about-modern-info { background: rgba(24, 33, 49, 0.9); border-color: #3a4659; }
body.dark .about-modern-info-item { border-color: #344155; }
body.dark .about-modern-info-item small, body.dark .about-modern-info-bottom small, body.dark .about-modern-floating-card small { color: #9aa8bb; }
body.dark .about-modern-floating-card { background: #182131; border-color: #3a4659; }
body.dark .about-modern-image-frame { background: linear-gradient(180deg, #26364f 0%, #172235 100%); }

/* ABOUT TABLET */
@media (max-width: 1200px) {
    .about-modern-card { grid-template-columns: minmax(0, 1.15fr) minmax(350px, 0.85fr); padding: 32px; min-height: 580px; }
    .about-modern-image-frame { width: 330px; height: 430px; }
    .about-modern-image-glow { width: 380px; height: 380px; }
    .about-modern-floating-card { right: 0; }
}

/* ABOUT SMALL TABLET */
@media (max-width: 900px) {
    .about-modern-card { grid-template-columns: 1fr; min-height: auto; padding: 30px; gap: 10px; }
    .about-modern-content { order: 1; }
    .about-modern-visual { order: 2; min-height: 490px; margin-top: 10px; }
    .about-modern-image-frame { width: 310px; height: 400px; }
    .about-modern-image-glow { width: 350px; height: 350px; }
    .about-modern-floating-card { right: 5%; bottom: 50px; }
    .about-modern-role { grid-template-columns: 120px 1fr 30px; }
    .about-modern-cta { flex-direction: column; align-items: flex-start; }
    .about-modern-cta-button { width: 100%; }
}

/* ABOUT MOBILE */
@media (max-width: 600px) {
    .about-modern-intro { padding-bottom: 22px; }
    .about-modern-eyebrow { font-size: 11px; letter-spacing: 3px; }
    .about-modern-intro h1 { font-size: clamp(40px, 12vw, 52px); letter-spacing: -2px; }
    .about-modern-subtitle { font-size: 14px; line-height: 1.5; }
    .about-modern-card { padding: 22px; border-radius: 25px; }
    .about-modern-content h2 { font-size: 30px; letter-spacing: -1px; }
    .about-modern-description { font-size: 14px; line-height: 1.6; }
    .about-modern-role { grid-template-columns: 48px 1fr 25px; min-height: 58px; }
    .role-icon { width: 38px; height: 38px; }
    .about-modern-role-name { font-size: 12px; }
    .about-modern-role-number { font-size: 10px; }
    .about-modern-info { border-radius: 16px; }
    .about-modern-info-item { padding: 11px; gap: 10px; }
    .about-modern-info-item strong, .about-modern-info-bottom strong { font-size: 12px; }
    .about-modern-info-item small, .about-modern-info-bottom small { font-size: 10px; }
    .about-modern-visual { min-height: 440px; }
    .about-modern-image-frame { width: 265px; height: 350px; border-radius: 132px 132px 25px 25px; }
    .about-modern-image-glow { width: 310px; height: 310px; }
    .orbit-one { width: 330px; height: 190px; }
    .orbit-two { width: 360px; height: 240px; }
    .about-modern-floating-card { right: 0; bottom: 25px; min-width: 165px; padding: 10px 12px; }
    .about-modern-initials { right: 5px; top: 15px; font-size: 100px; }
    .about-modern-cta { padding: 21px; border-radius: 19px; }
    .about-modern-cta h2 { font-size: 21px; }
}

/* ABOUT VERY SMALL PHONE */
@media (max-width: 380px) {
    .about-modern-card { padding: 18px; }
    .about-modern-content h2 { font-size: 27px; }
    .about-modern-role { grid-template-columns: 42px 1fr 22px; }
    .role-icon { width: 34px; height: 34px; font-size: 9px; }
    .about-modern-role-name { font-size: 11px; }
    .about-modern-image-frame { width: 235px; height: 310px; }
    .about-modern-image-glow { width: 275px; height: 275px; }
    .about-modern-floating-card { min-width: 150px; }
}

/* =========================================================
   TOOLS SHOWCASE  (prefix kt-)
========================================================= */

.kt-card {
    margin-bottom: 22px;
    padding: 34px;
    border: 1px solid #d4dbe8;
    border-radius: 34px;
    background:
        radial-gradient(circle at 92% 90%, rgba(119, 163, 255, 0.30), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 50%, #e3edff 100%);
    box-shadow: 0 25px 60px rgba(16, 43, 82, 0.08);
    position: relative;
    overflow: hidden;
}

/* ---------- TOP ROW ---------- */
.kt-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid rgba(91, 110, 137, 0.2);
}

.kt-label {
    margin-bottom: 8px;
    color: #ff6b16;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 4px;
}

.kt-title {
    color: #102b52;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.kt-title span { color: #ff6b16; }

.kt-desc {
    max-width: 540px;
    color: #61718a;
    font-size: 15px;
    line-height: 1.6;
}

.kt-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 27px;
    border-radius: 35px;
    background: #102b52;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(16, 43, 82, 0.18);
    transition: 0.25s ease;
}

.kt-btn span { color: #ff7118; font-size: 18px; transition: 0.25s; }
.kt-btn:hover { background: #ff6b16; transform: translateY(-3px); }
.kt-btn:hover span { color: #fff; transform: translate(3px, -3px); }

/* ---------- BROWSER FRAME ---------- */
.kt-browser {
    border-radius: 26px;
    overflow: hidden;
    background: #141c2e;
    box-shadow: 0 25px 55px rgba(16, 43, 82, 0.28);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.kt-browser:hover {
    transform: translateY(-4px);
    box-shadow: 0 35px 70px rgba(16, 43, 82, 0.34);
}

.kt-bar-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    background: #1a2338;
}

.kt-dot { width: 13px; height: 13px; border-radius: 50%; }
.kt-dot.r { background: #ff5f57; }
.kt-dot.y { background: #febc2e; }
.kt-dot.g { background: #28c840; }

.kt-url {
    margin-left: 14px;
    padding: 8px 18px;
    border-radius: 20px;
    background: #232d45;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.kt-url b { color: #ff7118; }

/* ---------- APP LAYOUT ---------- */
.kt-app {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 480px;
    background: #eef2fa;
}

/* sidebar */
.kt-side {
    padding: 20px 16px;
    background: #ffffff;
    border-right: 1px solid #e1e7f2;
}

.kt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #102b52;
    font-size: 17px;
    font-weight: 900;
}

.kt-brand i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #102b52;
    color: #ff7118;
    font-style: normal;
    font-size: 16px;
}

.kt-brand em { color: #3678df; font-style: normal; }

.kt-clock {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e1e7f2;
    border-radius: 14px;
    font-size: 12px;
    color: #61718a;
}

.kt-clock div { display: flex; justify-content: space-between; align-items: baseline; }
.kt-clock div + div { margin-top: 6px; }
.kt-clock b { color: #102b52; font-size: 18px; }

.kt-nav {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding: 9px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #4a5b78;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: 0.25s ease;
}

.kt-nav img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 8px;
}

.kt-nav em {
    margin-left: auto;
    color: #9aa6b6;
    font-size: 11px;
    font-style: normal;
}

.kt-nav:hover { background: #f1f5fc; transform: translateX(4px); }

.kt-nav.on {
    background: #dfeaff;
    color: #2459b8;
}

.kt-nav.on em { color: #2459b8; }

/* main panel */
.kt-main { padding: 22px 26px 26px; min-width: 0; }

.kt-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

.kt-hello { color: #7a879c; font-size: 12px; font-weight: 700; margin-bottom: 4px; }

.kt-tool-name {
    color: #102b52;
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.1;
    transition: opacity 0.25s;
}

.kt-tool-desc {
    max-width: 440px;
    margin-top: 6px;
    color: #61718a;
    font-size: 13px;
    line-height: 1.5;
    min-height: 40px;
}

.kt-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #d8e0ee;
    border-radius: 20px;
    background: #fff;
    color: #102b52;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.kt-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25b56f;
    animation: ktPulse 1.8s infinite;
}

/* stats */
.kt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.kt-stat {
    padding: 14px 16px;
    border: 1px solid #e1e7f2;
    border-radius: 16px;
    background: #fff;
}

.kt-stat small {
    display: block;
    color: #7a879c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.kt-stat b { color: #102b52; font-size: 24px; }
.kt-stat b i { color: #ff6b16; font-style: normal; font-size: 15px; }

/* chart */
.kt-chart-box {
    padding: 18px 18px 14px;
    border: 1px solid #e1e7f2;
    border-radius: 18px;
    background: #fff;
}

.kt-chart-title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #102b52;
    font-size: 13px;
    font-weight: 800;
}

.kt-chart-title span { color: #9aa6b6; font-weight: 700; }

.kt-svg { width: 100%; height: auto; display: block; overflow: visible; }

.kt-grid line { stroke: #e4e9f3; stroke-dasharray: 4 6; }

.kt-bar {
    fill: url(#ktBlue);
    transform-box: fill-box;
    transform-origin: bottom;
    transform: scaleY(0);
    opacity: 0.55;
    transition: opacity 0.3s;
}

.kt-bar.on {
    fill: url(#ktOrange);
    opacity: 1;
    filter: drop-shadow(0 6px 14px rgba(255, 107, 22, 0.45));
}

.kt-go .kt-bar {
    animation: ktGrow 1s cubic-bezier(0.2, 0.9, 0.3, 1.15) forwards;
    animation-delay: calc(var(--i) * 0.12s);
}

.kt-val {
    fill: #102b52;
    font-size: 15px;
    font-weight: 800;
    text-anchor: middle;
    opacity: 0;
}

.kt-go .kt-val { animation: ktFade 0.5s forwards; animation-delay: calc(0.7s + var(--i) * 0.12s); }

.kt-area { fill: url(#ktArea); opacity: 0; }
.kt-go .kt-area { animation: ktFade 1s 1.2s forwards; }

.kt-line {
    fill: none;
    stroke: #3678df;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

.kt-go .kt-line { animation: ktDraw 1.8s 0.5s ease forwards; }

.kt-pt {
    fill: #fff;
    stroke: #3678df;
    stroke-width: 3;
    opacity: 0;
}

.kt-go .kt-pt { animation: ktFade 0.4s forwards; animation-delay: calc(1s + var(--i) * 0.2s); }

.kt-pt.on { stroke: #ff6b16; r: 8; }

/* logo axis */
.kt-axis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 6px;
}

.kt-ax {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: #61718a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.kt-ax img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 12px;
    filter: grayscale(0.6);
    transition: 0.3s ease;
    animation: ktFloat 3.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.6s);
}

.kt-ax:hover img,
.kt-ax.on img {
    filter: none;
    transform: scale(1.18);
    box-shadow: 0 10px 22px rgba(16, 43, 82, 0.22);
}

.kt-ax.on { color: #ff6b16; }

/* ---------- KEYFRAMES ---------- */
@keyframes ktGrow  { to { transform: scaleY(1); } }
@keyframes ktFade  { to { opacity: 1; } }
@keyframes ktDraw  { to { stroke-dashoffset: 0; } }
@keyframes ktFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes ktPulse {
    0%   { box-shadow: 0 0 0 0 rgba(37, 181, 111, 0.5); }
    100% { box-shadow: 0 0 0 9px rgba(37, 181, 111, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .kt-ax img, .kt-pill::before { animation: none; }
}

/* ---------- DARK MODE ---------- */
body.dark .kt-card {
    border-color: #303b4d;
    background:
        radial-gradient(circle at 92% 90%, rgba(69, 111, 190, 0.28), transparent 42%),
        linear-gradient(135deg, #182131 0%, #202c40 100%);
}

body.dark .kt-title { color: #fff; }
body.dark .kt-desc  { color: #aeb9ca; }
body.dark .kt-top   { border-color: #344155; }

body.dark .kt-app { background: #0f1626; }
body.dark .kt-side { background: #151d30; border-color: #2a3550; }
body.dark .kt-brand, body.dark .kt-clock b, body.dark .kt-tool-name,
body.dark .kt-stat b, body.dark .kt-chart-title, body.dark .kt-pill { color: #fff; }
body.dark .kt-clock, body.dark .kt-stat, body.dark .kt-chart-box,
body.dark .kt-pill { background: #182131; border-color: #2a3550; }
body.dark .kt-nav { color: #aeb9ca; }
body.dark .kt-nav:hover { background: #202c40; }
body.dark .kt-nav.on { background: #243a63; color: #fff; }
body.dark .kt-val { fill: #fff; }
body.dark .kt-pt { fill: #182131; }
body.dark .kt-tool-desc, body.dark .kt-ax { color: #aeb9ca; }
body.dark .kt-ax.on { color: #ff6b16; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .kt-top { grid-template-columns: 1fr; gap: 16px; }
    .kt-btn { justify-self: start; }
}

@media (max-width: 760px) {
    .kt-card { padding: 20px; border-radius: 24px; }
    .kt-app { grid-template-columns: 1fr; }
    .kt-side { display: none; }
    .kt-main { padding: 16px; }
    .kt-head { flex-direction: column; }
    .kt-stats { grid-template-columns: 1fr; }
    .kt-btn { width: 100%; justify-content: center; }
    .kt-ax img { width: 34px; height: 34px; }
    .kt-ax { font-size: 10px; }
}

/* =========================================================
   CONTACT PAGE  (prefix ct-)
========================================================= */

.ct-page {
    position: relative;
    max-width: 1280px;
}

/* faint curved lines in the background */
.ct-page::before {
    content: "";
    position: absolute;
    inset: -55px -55px 0 -55px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800' preserveAspectRatio='none' fill='none' stroke='%23b9b6a8' stroke-opacity='.55' stroke-width='1.2'%3E%3Cpath d='M-20 60C60 200 40 420 90 800'/%3E%3Cpath d='M640 -20C700 120 800 140 860 330'/%3E%3Cpath d='M1050 -20C1090 140 1180 200 1220 420'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

.ct-page > * { position: relative; z-index: 1; }

/* ---------- HEADER ---------- */
.ct-eyebrow {
    margin-bottom: 18px;
    color: #c2540a;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.ct-title {
    margin-bottom: 14px;
    color: #0e1f45;
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.ct-sub {
    max-width: 820px;
    margin-bottom: 30px;
    color: #5a6782;
    font-size: 17px;
    line-height: 1.5;
}

/* ---------- BIG CARD ---------- */
.ct-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.65fr);
    gap: 32px;
    padding: 26px;
    border: 1px solid #e3e6f0;
    border-radius: 42px;
    background:
        radial-gradient(circle at 100% 50%, rgba(160, 190, 255, 0.55), transparent 38%),
        #ffffff;
    box-shadow: 0 25px 60px rgba(16, 43, 82, 0.08);
}

/* ---------- LEFT: FAQ PANEL ---------- */
.ct-faq {
    padding: 30px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 107, 22, 0.28), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(54, 120, 223, 0.30), transparent 45%),
        #060b1a;
    display: flex;
    flex-direction: column;
}

.ct-faq-label {
    margin-bottom: 14px;
    color: #ff7118;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.ct-faq h2 {
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.8px;
}

.ct-faq h2 span { color: #8a93a6; }

.ct-faq-list {
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ct-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }

.ct-item summary {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 0;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.ct-item summary::-webkit-details-marker { display: none; }

.ct-item summary b {
    color: #ff7118;
    font-size: 13px;
    font-weight: 800;
}

.ct-item summary i {
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid #c9d0de;
    border-bottom: 2px solid #c9d0de;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.25s ease;
}

.ct-item[open] summary i { transform: rotate(-135deg) translate(-2px, -2px); }

.ct-item p {
    padding: 0 0 18px 47px;
    color: #b6bfce;
    font-size: 14px;
    line-height: 1.65;
}

.ct-faq-foot {
    margin-top: auto;
    padding-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ct-mail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.ct-mail svg { width: 17px; height: 17px; fill: #ff7118; }
.ct-mail:hover { border-color: #ff7118; transform: translateY(-2px); }

.ct-socials { display: flex; gap: 10px; }

.ct-socials a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: 0.25s ease;
}

.ct-socials a svg { width: 19px; height: 19px; fill: currentColor; }
.ct-socials a:hover { background: #ff6b16; border-color: #ff6b16; transform: translateY(-3px); }

/* ---------- RIGHT: FORM ---------- */
.ct-form {
    padding: 30px;
    border: 1px solid #dfe3ee;
    border-radius: 26px;
    background: #fcfcf8;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ct-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ct-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

.ct-field label {
    color: #4a5673;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.ct-field input,
.ct-field textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #cfd5e3;
    border-radius: 14px;
    background: #fff;
    color: #0e1f45;
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.2s ease;
}

.ct-field textarea { min-height: 270px; resize: vertical; }

.ct-field input::placeholder,
.ct-field textarea::placeholder { color: #8d97ab; }

.ct-field input:focus,
.ct-field textarea:focus {
    border-color: #ff6b16;
    box-shadow: 0 0 0 4px rgba(255, 107, 22, 0.12);
}

.ct-send-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ct-send {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 30px;
    border: 0;
    border-radius: 40px;
    background: #102b52;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(16, 43, 82, 0.18);
    transition: 0.25s ease;
}

.ct-send svg { width: 18px; height: 18px; fill: currentColor; }
.ct-send:hover { background: #ff6b16; transform: translateY(-3px); }

.ct-note { color: #4a5673; font-size: 13px; }

/* ---------- FLOATING "HOW CAN I HELP?" ---------- */
.ct-chat {
    position: fixed;
    right: 28px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-decoration: none;
}

.ct-chat-bubble {
    padding: 10px 18px;
    border: 1px solid #e3e6f0;
    border-radius: 18px;
    background: #fff;
    color: #0e1f45;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(16, 43, 82, 0.12);
}

.ct-chat-avatar {
    position: relative;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 3px solid #ff6b16;
    border-radius: 50%;
    background: #fff0e6;
    color: #102b52;
    font-size: 28px;
    font-weight: 900;
    overflow: hidden;
    transition: 0.25s ease;
}

.ct-chat-avatar img { width: 100%; height: 100%; object-fit: cover; }

.ct-chat:hover .ct-chat-avatar { transform: scale(1.06); }

.ct-chat-dot {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #25b56f;
}

/* ---------- DARK MODE ---------- */
body.dark .ct-title { color: #fff; }
body.dark .ct-sub { color: #aeb9ca; }
body.dark .ct-eyebrow { color: #ff7118; }
body.dark .ct-page::before { opacity: 0.25; }

body.dark .ct-shell {
    border-color: #303b4d;
    background:
        radial-gradient(circle at 100% 50%, rgba(69, 111, 190, 0.35), transparent 38%),
        #182131;
}

body.dark .ct-form { background: #111a2b; border-color: #303b4d; }
body.dark .ct-field label { color: #aeb9ca; }
body.dark .ct-field input,
body.dark .ct-field textarea { background: #182131; border-color: #374151; color: #fff; }
body.dark .ct-note { color: #aeb9ca; }
body.dark .ct-chat-bubble { background: #182131; border-color: #303b4d; color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
    .ct-shell { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ct-shell { padding: 14px; border-radius: 28px; gap: 16px; }
    .ct-faq, .ct-form { padding: 20px; border-radius: 20px; }
    .ct-row { grid-template-columns: 1fr; }
    .ct-field textarea { min-height: 200px; }
    .ct-item p { padding-left: 0; }
    .ct-send { width: 100%; justify-content: center; }
    .ct-chat { right: 14px; bottom: 14px; }
    .ct-chat-avatar { width: 60px; height: 60px; font-size: 22px; }
}

/* =========================================================
   DAILY DRIVERS STRIP  (prefix dd-)
========================================================= */

.dd-strip {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 12px 14px 12px 22px;
    border: 1px solid #cfdcf7;
    border-radius: 34px;
    background: linear-gradient(90deg, #ffffff 0%, #f4f7ff 45%, #d9e6ff 100%);
    box-shadow: 0 8px 25px rgba(16, 43, 82, 0.05);
}

.dd-title {
    flex-shrink: 0;
    width: 190px;
    padding-right: 18px;
    border-right: 1px solid #dcdcd5;
}

.dd-title small {
    display: block;
    margin-bottom: 4px;
    color: #ff7118;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.dd-title strong {
    color: #102b52;
    font-size: 19px;
}

/* white pill that holds the sliding icons */
.dd-window {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e1e7f2;
    border-radius: 24px;
    background: #ffffff;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.dd-track {
    display: flex;
    width: max-content;
    animation: ddSlideRight 28s linear infinite;   /* bigger number = slower */
}

.dd-window:hover .dd-track {
    animation-play-state: paused;
}

.dd-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 760px;
}

.dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 34px;
    border-right: 1px solid #eeeeea;
    color: #102b52;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.dd-item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    border-radius: 8px;
}

/* slides to the RIGHT */
@keyframes ddSlideRight {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

/* DARK MODE */
body.dark .dd-strip {
    border-color: #303b4d;
    background: linear-gradient(90deg, #182131 0%, #1b2639 50%, #243a63 100%);
}
body.dark .dd-title { border-color: #344155; }
body.dark .dd-title strong,
body.dark .dd-item { color: #ffffff; }
body.dark .dd-window { background: #182131; border-color: #303b4d; }
body.dark .dd-item { border-color: #303b4d; }

/* TABLET / MOBILE */
@media (max-width: 900px) {
    .dd-strip { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 26px; }
    .dd-title { width: 100%; padding: 0 0 12px; border-right: none; border-bottom: 1px solid #dcdcd5; }
}

@media (max-width: 600px) {
    .dd-group { min-width: 560px; }
    .dd-item { padding: 10px 22px; font-size: 13px; }
    .dd-item img { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .dd-track { animation: none; }
}

/* =========================================================
   HOME CARDS  (prefix hc-)
========================================================= */

/* cards are flex columns so content + "View ... →" line up */
.dashboard-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 16px;
}

.card-bottom {
    margin-top: 12px;
    color: #ff7118;
    font-size: 13px;
    font-weight: 800;
}

/* top row height (Projects + About): change 300px to taste */
@media (min-width: 1201px) {
    .dashboard-grid {
        grid-template-rows: 300px minmax(250px, auto);
    }
}

.projects-card .card-heading,
.about-card .card-heading { margin-bottom: 12px; }

/* ---------- PROJECTS: 3 columns of scrolling images ---------- */
.hc-split {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 0.75fr 1.5fr;
    gap: 18px;
}

.hc-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hc-scroll {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 18px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}

.hc-cols {
    position: absolute;
    inset: 0;
    display: flex;
    gap: 12px;
}

.hc-col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hc-track {
    display: flex;
    flex-direction: column;
    animation: hcUp 50s linear infinite;
}

.hc-track img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(16, 43, 82, 0.15);
}

.hc-scroll:hover .hc-track { animation-play-state: paused; }

/* scrolls UP */
@keyframes hcUp {
    from { transform: translateY(0); }
    to   { transform: translateY(-50%); }
}

/* ---------- ABOUT ---------- */
.hc-about-img {
    flex: 1;
    width: 100%;
    height: 0;
    min-height: 0;
    object-fit: cover;
    object-position: top center;   /* if the face is cropped try: center 20% */
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.about-card:hover .hc-about-img { transform: scale(1.03); }

/* ---------- TOOLS ---------- */
.hc-tools {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
}

.hc-tool {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px 8px 8px;
    border: 1px solid #e1e7f2;
    border-radius: 16px;
    background: #f7faff;
    color: #102b52;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s ease;
}

.hc-tool img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 8px;
}

.hc-tool:hover { transform: translateY(-3px); border-color: #ff7118; }

/* ---------- SKILLS GRAPH ---------- */
.hc-skills {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
}

.hc-skill {
    display: grid;
    grid-template-columns: 104px 1fr 36px;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #102b52;
}

.hc-skill b { color: #ff7118; text-align: right; font-size: 11px; }

.hc-bar {
    height: 8px;
    border-radius: 20px;
    background: #e8edf6;
    overflow: hidden;
}

.hc-bar i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #3678df, #ff6b16);
    transform-origin: left;
    animation: hcFill 1.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

@keyframes hcFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- SERVICES ---------- */
.hc-services { flex: 1; margin-top: 4px; }
.hc-services li { font-size: 13px; padding: 9px 0; }
.hc-services li em { margin-left: auto; color: #aab4c4; font-size: 11px; font-style: normal; }

/* ---------- DARK MODE ---------- */
body.dark .hc-tool { background: #202938; border-color: #374151; color: #fff; }
body.dark .hc-skill { color: #fff; }
body.dark .hc-bar { background: #2a3550; }
body.dark .hc-services li { border-color: #303b4d; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .hc-scroll { min-height: 260px; }
    .hc-about-img { min-height: 220px; }
}

@media (max-width: 760px) {
    .hc-split { grid-template-columns: 1fr; }
    .hc-scroll { min-height: 300px; }
    .hc-col:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .hc-track, .hc-bar i { animation: none; }
}

/* =========================================================
   SKILLS SHOWCASE  (prefix sk-)
========================================================= */

.sk-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1.4fr;
    gap: 34px;
    padding: 26px;
    border: 1px solid #d4dbe8;
    border-radius: 34px;
    background:
        radial-gradient(circle at 92% 90%, rgba(119, 163, 255, 0.30), transparent 42%),
        linear-gradient(135deg, #ffffff 0%, #f7faff 50%, #e3edff 100%);
    box-shadow: 0 25px 60px rgba(16, 43, 82, 0.08);
}

/* ---------- LEFT: IMAGE ---------- */
.sk-photo {
    min-height: 460px;
    overflow: hidden;
    border-radius: 26px;
    background: #eef2fa;
    box-shadow: 0 18px 40px rgba(16, 43, 82, 0.18);
}

.sk-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;   /* if the face is cropped try: center 20% */
    transition: transform 0.6s ease;
}

.sk-photo:hover img { transform: scale(1.04); }

/* ---------- RIGHT: GRAPH ---------- */
.sk-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6px 8px 6px 0;
}

.sk-head { margin-bottom: 26px; }

.sk-head small {
    display: block;
    margin-bottom: 6px;
    color: #ff7118;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
}

.sk-head h2 {
    color: #102b52;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

.sk-head p {
    color: #61718a;
    font-size: 14px;
    line-height: 1.5;
}

.sk-graph { display: flex; flex-direction: column; gap: 20px; }

.sk-row {
    display: grid;
    grid-template-columns: 210px 1fr 46px;
    align-items: center;
    gap: 16px;
}

.sk-info { display: flex; align-items: center; gap: 12px; min-width: 0; }

.sk-info strong {
    color: #102b52;
    font-size: 14px;
    font-weight: 800;
}

.sk-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #fff0e6;
    color: #ff7118;
    font-size: 15px;
    font-weight: 900;
}

.sk-bar {
    height: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: #e3e9f5;
}

.sk-bar i {
    display: block;
    width: var(--w);
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #3678df, #ff6b16);
    transform-origin: left;
    animation: skFill 1.4s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.sk-row:nth-child(2) .sk-bar i { animation-delay: 0.08s; }
.sk-row:nth-child(3) .sk-bar i { animation-delay: 0.16s; }
.sk-row:nth-child(4) .sk-bar i { animation-delay: 0.24s; }
.sk-row:nth-child(5) .sk-bar i { animation-delay: 0.32s; }
.sk-row:nth-child(6) .sk-bar i { animation-delay: 0.40s; }

.sk-row b {
    color: #ff7118;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
}

@keyframes skFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- DARK MODE ---------- */
body.dark .sk-card {
    border-color: #303b4d;
    background:
        radial-gradient(circle at 92% 90%, rgba(69, 111, 190, 0.28), transparent 42%),
        linear-gradient(135deg, #182131 0%, #202c40 100%);
}

body.dark .sk-photo { background: #202938; }
body.dark .sk-head h2,
body.dark .sk-info strong { color: #ffffff; }
body.dark .sk-head p { color: #aeb9ca; }
body.dark .sk-bar { background: #2a3550; }
body.dark .sk-icon { background: #202938; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
    .sk-card { grid-template-columns: 1fr; gap: 24px; }
    .sk-photo { min-height: 380px; max-height: 480px; }
    .sk-content { padding: 0 6px 6px; }
}

@media (max-width: 600px) {
    .sk-card { padding: 16px; border-radius: 24px; }
    .sk-photo { min-height: 320px; border-radius: 20px; }
    .sk-row { grid-template-columns: 1fr 42px; gap: 8px 12px; }
    .sk-info { grid-column: 1 / -1; }
    .sk-bar { grid-column: 1; }
    .sk-row b { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
    .sk-bar i { animation: none; }
    .sk-photo img { transition: none; }
}


/* =====================================================
   SAMURAI LOADING SCREEN — MAEDEIN
   ADD THIS AT THE END OF style.css
===================================================== */

#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(
            ellipse at center,
            #18243a 0%,
            #080b12 48%,
            #020304 100%
        );
    opacity: 1;
    visibility: visible;
    transition:
        opacity 0.8s ease,
        visibility 0.8s ease;
    isolation: isolate;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 420px);
    text-align: center;
    animation: samuraiContentIn 0.9s ease both;
}

.loading-fire {
    position: absolute;
    z-index: 0;
    width: min(80vw, 540px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 72, 0, 0.2) 0%,
        rgba(255, 65, 0, 0.09) 35%,
        transparent 70%
    );
    filter: blur(12px);
    animation: samuraiFirePulse 2.2s ease-in-out infinite;
}

.loading-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, #ff6b16 1px, transparent 2px),
        radial-gradient(circle, #ff3d00 1.5px, transparent 2.5px),
        radial-gradient(circle, #ffc078 1px, transparent 2px);
    background-size: 97px 113px, 151px 173px, 211px 197px;
    background-position: 0 0, 40px 80px, 90px 25px;
    opacity: 0.5;
    animation: samuraiEmbers 9s linear infinite;
}

.loading-kicker {
    margin-bottom: 12px;
    color: #ff792d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 7px;
    animation: samuraiTextIn 1s 0.15s both;
}

.loading-logo {
    display: block;
    width: min(62vw, 310px);
    height: min(62vw, 310px);
    object-fit: contain;
    filter:
        drop-shadow(0 0 8px rgba(255, 74, 0, 0.8))
        drop-shadow(0 0 28px rgba(255, 65, 0, 0.38));
    transform-origin: center;
    animation:
        samuraiLogoReveal 1.35s cubic-bezier(.2,.8,.2,1) both,
        samuraiLogoFloat 3s 1.35s ease-in-out infinite;
}

.loading-title {
    margin-top: -4px;
    color: #fff4e7;
    font-size: clamp(35px, 8vw, 58px);
    font-weight: 1000;
    font-style: italic;
    line-height: 1;
    letter-spacing: 5px;
    text-shadow:
        3px 3px 0 #a72a08,
        0 0 22px rgba(255, 70, 0, 0.35);
    animation: samuraiTextIn 0.8s 0.35s both;
}

.loading-subtitle {
    margin-top: 12px;
    color: #b9c0ce;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    animation: samuraiTextIn 0.8s 0.5s both;
}

.loading-progress {
    width: min(280px, 80%);
    height: 4px;
    margin-top: 32px;
    overflow: hidden;
    border-radius: 10px;
    background: #30313a;
    box-shadow: 0 0 15px rgba(255, 75, 0, 0.12);
}

.loading-progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #a92305,
        #ff4a0b,
        #ffb15c
    );
    box-shadow: 0 0 12px #ff4a0b;
    transition: width 0.15s linear;
}

.loading-status {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: min(280px, 80%);
    margin-top: 12px;
    color: #aeb6c5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

#loading-percent {
    color: #ff792d;
    font-variant-numeric: tabular-nums;
}

/* ANIMATIONS */

@keyframes samuraiLogoReveal {
    0% {
        opacity: 0;
        transform: scale(0.55) rotate(-5deg);
        filter: brightness(0.3);
    }
    65% {
        opacity: 1;
        transform: scale(1.07) rotate(1deg);
        filter: brightness(1.5)
            drop-shadow(0 0 30px rgba(255, 70, 0, 0.8));
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes samuraiLogoFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

@keyframes samuraiFirePulse {
    0%, 100% {
        transform: scale(0.88);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@keyframes samuraiEmbers {
    from {
        background-position: 0 0, 40px 80px, 90px 25px;
        opacity: 0.25;
    }
    to {
        background-position: 0 -450px, 40px -550px, 90px -350px;
        opacity: 0.65;
    }
}

@keyframes samuraiContentIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes samuraiTextIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE */

@media (max-width: 600px) {
    #loading-screen {
        padding: 18px;
    }

    .loading-logo {
        width: min(72vw, 270px);
        height: min(72vw, 270px);
    }

    .loading-kicker {
        font-size: 9px;
        letter-spacing: 5px;
    }

    .loading-title {
        letter-spacing: 3px;
    }

    .loading-subtitle {
        font-size: 8px;
        letter-spacing: 2px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    .loading-content,
    .loading-logo,
    .loading-kicker,
    .loading-title,
    .loading-subtitle,
    .loading-fire,
    .loading-particles {
        animation: none !important;
    }

    .loading-logo {
        opacity: 1;
        transform: none;
    }
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#loading-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* =====================================================
   SAMURAI EMBER BACKGROUND — ALL PORTFOLIO PAGES
   No logo • No name • No loading text
===================================================== */

body {
    background-color: #080b12;
    background-image:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(16, 43, 82, 0.25),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #080b12 0%,
            #101827 50%,
            #080b12 100%
        );

    background-attachment: fixed;
    min-height: 100vh;
    isolation: isolate;
}

/* Animated orange particles */
body.portfolio-particles-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            #ff6b16 1px,
            transparent 2px
        ),
        radial-gradient(
            circle,
            #ff3d00 1px,
            transparent 2px
        ),
        radial-gradient(
            circle,
            #ffc078 1px,
            transparent 2px
        );

    background-size:
        97px 113px,
        151px 173px,
        211px 197px;

    background-position:
        0 0,
        40px 80px,
        90px 25px;

    background-repeat: repeat;
    opacity: 0.45;

    animation: samuraiEmbers 9s linear infinite;
}

/* Particles slowly travel upward */
@keyframes samuraiEmbers {
    0% {
        background-position:
            0 0,
            40px 80px,
            90px 25px;
        opacity: 0.25;
    }

    50% {
        opacity: 0.55;
    }

    100% {
        background-position:
            0 -450px,
            40px -550px,
            90px -350px;
        opacity: 0.65;
    }
}

/* Maintain background when dark mode is enabled */
body.dark {
    background-color: #080b12;
    background-image:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(16, 43, 82, 0.25),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #080b12 0%,
            #101827 50%,
            #080b12 100%
        );
    background-attachment: fixed;
}

/* Mobile performance */
@media (max-width: 850px) {
    body,
    body.dark {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.portfolio-particles-bg::before {
        animation: none;
    }
}
/* =====================================================
   MAEDEIN PORTFOLIO — LIGHT & DARK MODE
   Animated orange particles on every page
===================================================== */

/* ---------- LIGHT MODE ---------- */

body {
    background: #ffffff !important;
    color: #18202c;
    min-height: 100vh;
    isolation: isolate;
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}

/* White background with rising orange particles */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        radial-gradient(circle, #ff6b16 1.2px, transparent 2px),
        radial-gradient(circle, #ff8c42 1px, transparent 2px),
        radial-gradient(circle, #ffc078 1.3px, transparent 2px);

    background-size:
        97px 113px,
        151px 173px,
        211px 197px;

    background-position:
        0 0,
        40px 80px,
        90px 25px;

    background-repeat: repeat;
    opacity: 0.55;

    animation: portfolioEmbers 10s linear infinite;
}

/* ---------- DARK MODE ---------- */

body.dark {
    background-color: #080b12 !important;
    background-image:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(16, 43, 82, 0.25),
            transparent 65%
        ),
        linear-gradient(
            135deg,
            #080b12 0%,
            #101827 50%,
            #080b12 100%
        ) !important;

    color: #f5f5f5;
}

/* ORANGE PARTICLES IN DARK MODE */

body.dark::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        radial-gradient(circle, #ff6b16 1.5px, transparent 2.5px),
        radial-gradient(circle, #ff3d00 1.5px, transparent 2.5px),
        radial-gradient(circle, #ffc078 1.5px, transparent 2.5px);

    background-size:
        97px 113px,
        151px 173px,
        211px 197px;

    background-position:
        0 0,
        40px 80px,
        90px 25px;

    background-repeat: repeat;
    opacity: 0.75;

    animation: portfolioEmbers 10s linear infinite;
}

/* ---------- PARTICLE ANIMATION ---------- */

@keyframes portfolioEmbers {
    0% {
        background-position:
            0 0,
            40px 80px,
            90px 25px;
    }

    50% {
        background-position:
            0 -225px,
            40px -275px,
            90px -175px;
    }

    100% {
        background-position:
            0 -450px,
            40px -550px,
            90px -350px;
    }
}

/* ---------- DARK MODE TEXT READABILITY ---------- */

body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6,
body.dark p,
body.dark li,
body.dark label,
body.dark small,
body.dark strong,
body.dark .section-title,
body.dark .section-subtitle,
body.dark .card-title,
body.dark .description {
    color: #f5f5f5;
}

/* Muted text should remain readable */

body.dark .muted,
body.dark .subtitle,
body.dark .text-muted {
    color: #c5ccd8;
}

/* ---------- NAVIGATION BAR ---------- */

/* Common sidebar and navigation containers */

body #navigation,
body .sidebar,
body .side-nav,
body .sidebar-nav,
body .navigation,
body .navbar {
    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;
}

/* Light navigation */

body:not(.dark) .sidebar,
body:not(.dark) .side-nav,
body:not(.dark) .sidebar-nav,
body:not(.dark) .navbar {
    background-color: #ffffff;
    color: #18202c;
}

/* Dark navigation */

body.dark #navigation,
body.dark .sidebar,
body.dark .side-nav,
body.dark .sidebar-nav,
body.dark .navigation,
body.dark .navbar {
    background-color: #101827;
    color: #f5f5f5;
    border-color: #303b4d;
}

/* Navigation links */

body.dark .side-nav a,
body.dark .sidebar a,
body.dark .sidebar-nav a,
body.dark .navbar a {
    color: #e8edf5;
}

/* Navigation hover and active state */

body.dark .side-nav a:hover,
body.dark .sidebar a:hover,
body.dark .sidebar-nav a:hover,
body.dark .navbar a:hover,
body.dark .side-nav a.active,
body.dark .sidebar a.active,
body.dark .sidebar-nav a.active,
body.dark .navbar a.active {
    color: #ff8a3d;
}

/* Theme button */

body.dark #themeToggle {
    color: #ffffff;
    border-color: #465166;
}

/* ---------- CARDS AND CONTENT ---------- */

body.dark .card,
body.dark .service-card,
body.dark .project-card,
body.dark .skill-card,
body.dark .tool-card,
body.dark .about-card {
    color: #f5f5f5;
    border-color: #303b4d;
}

/* Do not force a new background on cards that
   already have their own design. */

/* ---------- MOBILE ---------- */

@media (max-width: 850px) {
    body::before {
        background-attachment: scroll;
    }
}

/* Respect accessibility preferences */

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}
/* =========================================================
   PROJECTS BOOKS
   projects.html
   adventure.html
   goldenrim.html
   hmom.html
   j&j.html
   mfc.html
========================================================= */


/* =========================================================
   PROJECT PAGE
========================================================= */

.projects-page,
.client-page {

    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 30px 40px 60px;

    box-sizing: border-box;
}


/* =========================================================
   INTRO
========================================================= */

.projects-intro {

    margin-bottom: 28px;
}


.projects-intro h1 {

    margin: 0 0 8px;

    color: #102b52;

    font-size: 36px;

    font-weight: 800;
}


.projects-intro p {

    max-width: 950px;

    margin: 0;

    color: #60728b;

    font-size: 16px;

    line-height: 1.5;
}


/* =========================================================
   PROJECT GRID
========================================================= */

.projects-grid {

    display: grid;

    grid-template-columns:
        1.4fr
        .95fr
        .95fr;

    grid-template-rows:
        285px
        285px;

    gap: 18px;
}


/* =========================================================
   PROJECT BOX
========================================================= */

.project-box {

    position: relative;

    display: block;

    overflow: hidden;

    padding: 23px;

    box-sizing: border-box;

    border: 1px solid #d8dde4;

    border-radius: 26px;

    background: #faf9f5;

    color: inherit;

    text-decoration: none;
}


.project-heading {

    display: flex;

    align-items: flex-start;

    gap: 14px;
}


.project-icon {

    width: 52px;

    height: 52px;

    min-width: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: #ff7118;

    color: #ffffff;

    font-size: 23px;
}


.project-box h2 {

    margin: 1px 0 6px;

    color: #102b52;

    font-size: 24px;

    font-weight: 800;

    line-height: 1.15;
}


.project-box p {

    max-width: 520px;

    margin: 0;

    color: #60728b;

    font-size: 14px;

    line-height: 1.45;
}


/* =========================================================
   CARD POSITIONS

   SOCIAL MEDIA = LARGE LEFT
   LOGO DESIGN = SMALL RIGHT
========================================================= */

.social-box {

    grid-column: 1 / 3;

    grid-row: 1;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.logo-box {

    grid-column: 3;

    grid-row: 1;

    cursor: pointer;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.brand-box {

    grid-column: 1;

    grid-row: 2;
}


.web-box {

    grid-column: 2;

    grid-row: 2;
}


.graphic-box {

    grid-column: 3;

    grid-row: 2;
}


/* =========================================================
   CARD HOVER
========================================================= */

.logo-box:hover,
.social-box:hover {

    transform: translateY(-4px);

    border-color: #ff7118;

    box-shadow:
        0 12px 30px rgba(16, 43, 82, .10);
}


/* =========================================================
   SOCIAL MEDIA
========================================================= */

.social-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;

    width: 48%;

    max-width: 48%;
}


.social-tags span {

    padding: 8px 12px;

    border: 1px solid #d8dde4;

    border-radius: 30px;

    background: #ffffff;

    color: #102b52;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   SOCIAL MEDIA POST PREVIEW
========================================================= */

.social-post-preview {

    position: absolute;

    top: 22px;

    right: 22px;

    width: 235px;

    height: 235px;

    overflow: hidden;

    border-radius: 18px;

    background: #eeeeee;

    border: 1px solid #d8dde4;

    z-index: 10;
}


.social-post-slider {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    transform: translateY(0);
}


.social-post-slide {

    width: 235px;

    height: 235px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   SOCIAL MEDIA IMAGE

   FULL IMAGE
   NO CROP
========================================================= */

.social-post-slide img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 12px;
}


/* =========================================================
   SOCIAL MEDIA OVERLAY

   TINANGGAL ANG COLOR COVER
========================================================= */

.social-post-overlay {

    display: none;
}


/* =========================================================
   SOCIAL MEDIA SCROLL
========================================================= */

.social-box:hover .social-post-slider {

    animation:
        socialPostScroll 22s linear infinite;
}


@keyframes socialPostScroll {

    0% {

        transform: translateY(0);
    }

    100% {

        transform: translateY(-2350px);
    }
}


/* =========================================================
   VIEW DESIGNS
========================================================= */

.view-designs {

    position: absolute;

    left: 23px;

    bottom: 20px;

    color: #ff7118;

    font-size: 14px;

    font-weight: 800;
}


/* =========================================================
   LOGO DESIGN PREVIEW
========================================================= */

.logo-preview {

    position: absolute;

    right: 18px;

    bottom: 18px;

    width: calc(100% - 36px);

    height: 125px;

    overflow: hidden;

    border-radius: 15px;

    background: #eeeeee;
}


.logo-slider {

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 1250px;

    transform: translateY(0);
}


.logo-slide {

    width: 100%;

    height: 125px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 10px;

    box-sizing: border-box;
}


.logo-slide img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    display: block;
}


/* =========================================================
   LOGO SCROLL
========================================================= */

.logo-box:hover .logo-slider {

    animation:
        logoScroll 18s linear infinite;
}


@keyframes logoScroll {

    0% {

        transform: translateY(0);
    }

    100% {

        transform: translateY(-1125px);
    }
}


/* =========================================================
   LOGO OVERLAY

   TINANGGAL ANG COLOR COVER
========================================================= */

.logo-preview-text {

    display: none;
}


/* =========================================================
   BRAND IDENTITY
========================================================= */

.brand-placeholder {

    position: absolute;

    left: 50%;

    bottom: -45px;

    width: 180px;

    height: 180px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #f1efe8;

    color: #102b52;

    font-size: 58px;

    font-weight: 800;
}


/* =========================================================
   WEB DESIGN
========================================================= */

.web-items {

    margin-top: 18px;
}


.web-items div {

    display: flex;

    justify-content: space-between;

    padding: 10px 0;

    border-bottom: 1px solid #e1e3e5;

    color: #102b52;

    font-size: 13px;
}


.web-items strong {

    color: #ff7118;
}


/* =========================================================
   GRAPHIC DESIGN
========================================================= */

.graphic-items {

    margin-top: 18px;
}


.graphic-items div {

    padding: 9px 0;

    border-bottom: 1px solid #e1e3e5;

    color: #102b52;

    font-size: 13px;

    font-weight: 700;
}


/* =========================================================
   SOCIAL MEDIA FOLDERS
========================================================= */

.social-folders {

    margin-top: 40px;

    padding-top: 38px;

    border-top: 1px solid #d8dde4;
}


.social-folder-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}


.small-label {

    display: block;

    margin-bottom: 4px;

    color: #ff7118;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.2px;
}


.social-folder-header h2 {

    margin: 0 0 5px;

    color: #102b52;

    font-size: 29px;
}


.social-folder-header p {

    margin: 0;

    color: #60728b;

    font-size: 14px;
}


/* =========================================================
   CLIENT FOLDERS
========================================================= */

.folders-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;
}


.client-folder {

    position: relative;

    min-height: 230px;

    padding: 22px;

    box-sizing: border-box;

    border: 1px solid #d8dde4;

    border-radius: 23px;

    background: #faf9f5;

    color: inherit;

    text-decoration: none;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.client-folder:hover {

    transform: translateY(-5px);

    border-color: #ff7118;

    box-shadow:
        0 12px 30px rgba(16, 43, 82, .10);
}


.folder-icon {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 17px;

    border-radius: 14px;

    background: #ff7118;

    font-size: 23px;
}


.folder-count {

    position: absolute;

    top: 22px;

    right: 22px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #f0eee8;

    color: #60728b;

    font-size: 11px;

    font-weight: 700;
}


.client-folder h3 {

    margin: 0 0 7px;

    color: #102b52;

    font-size: 20px;
}


.client-folder p {

    margin: 0;

    color: #60728b;

    font-size: 13px;

    line-height: 1.5;
}


.open-folder {

    position: absolute;

    left: 22px;

    bottom: 19px;

    color: #ff7118;

    font-size: 13px;

    font-weight: 800;
}


/* =========================================================
   CLIENT PAGE
========================================================= */

.client-page {

    padding-top: 30px;
}


.back-projects {

    display: inline-block;

    margin-bottom: 20px;

    color: #ff7118;

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;
}


.back-projects:hover {

    text-decoration: underline;
}


.client-header {

    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 20px;

    padding: 25px;

    border: 1px solid #d8dde4;

    border-radius: 24px;

    background: #faf9f5;
}


.client-main-icon {

    width: 62px;

    height: 62px;

    min-width: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background: #ff7118;

    font-size: 26px;
}


.client-header h1 {

    margin: 0 0 6px;

    color: #102b52;

    font-size: 30px;
}


.client-header p {

    max-width: 900px;

    margin: 0;

    color: #60728b;

    font-size: 14px;

    line-height: 1.5;
}


.design-count {

    margin-bottom: 15px;

    color: #102b52;

    font-size: 15px;

    font-weight: 800;
}


/* =========================================================
   DESIGN GALLERY
========================================================= */

.design-gallery {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;
}


.design-item {

    position: relative;

    overflow: hidden;

    aspect-ratio: 1 / 1;

    border: 1px solid #d8dde4;

    border-radius: 17px;

    background: #eeeeee;

    cursor: pointer;
}


.design-item img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}


.design-item:hover img {

    transform: scale(1.05);
}


.design-number {

    position: absolute;

    left: 10px;

    bottom: 10px;

    z-index: 2;

    padding: 5px 9px;

    border-radius: 20px;

    background:
        rgba(16, 43, 82, .90);

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;
}


/* =========================================================
   IMAGE LIGHTBOX
========================================================= */

.image-lightbox {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 25px;

    background:
        rgba(5, 10, 20, .94);
}


.image-lightbox.active {

    display: flex;
}


.lightbox-content {

    width: min(1000px, 90vw);

    max-height: 92vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;
}


.lightbox-image {

    max-width: 100%;

    max-height: 76vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .35);
}


.lightbox-number {

    margin-bottom: 12px;

    padding: 7px 13px;

    border-radius: 20px;

    background:
        rgba(255, 255, 255, .10);

    color: #ffffff;

    font-size: 13px;

    font-weight: 800;
}


.lightbox-close {

    position: absolute;

    top: 25px;

    right: 30px;

    width: 45px;

    height: 45px;

    border: 1px solid rgba(255, 255, 255, .3);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;
}


.lightbox-close:hover {

    background: #ff7118;
}


.lightbox-prev,
.lightbox-next {

    position: absolute;

    top: 50%;

    width: 48px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform: translateY(-50%);

    border: 1px solid rgba(255, 255, 255, .3);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;
}


.lightbox-prev {

    left: 25px;
}


.lightbox-next {

    right: 25px;
}


.lightbox-prev:hover,
.lightbox-next:hover {

    background: #ff7118;
}


/* =========================================================
   THUMBNAILS
========================================================= */

.lightbox-thumbnails {

    width: 100%;

    display: flex;

    gap: 7px;

    margin-top: 15px;

    padding: 8px;

    overflow-x: auto;

    border-radius: 12px;

    background:
        rgba(0, 0, 0, .35);
}


.lightbox-thumb {

    position: relative;

    flex: 0 0 55px;

    width: 55px;

    height: 55px;

    overflow: hidden;

    padding: 0;

    border: 2px solid transparent;

    border-radius: 7px;

    background: transparent;

    cursor: pointer;
}


.lightbox-thumb img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}


.lightbox-thumb.active {

    border-color: #ff7118;
}


.lightbox-thumb-number {

    position: absolute;

    right: 2px;

    bottom: 2px;

    padding: 2px 4px;

    border-radius: 4px;

    background:
        rgba(0, 0, 0, .75);

    color: #ffffff;

    font-size: 8px;
}


/* =========================================================
   LOGO GALLERY
========================================================= */

.logo-design-item {

    border: 1px solid #d8dde4;

    padding: 0;
}


.logo-design-item img {

    object-fit: contain;

    padding: 14px;

    background: #ffffff;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode .project-box,
body.dark-mode .client-folder,
body.dark-mode .client-header {

    background: #101827;

    border-color: #263449;
}


body.dark-mode .projects-intro h1,
body.dark-mode .project-box h2,
body.dark-mode .social-folder-header h2,
body.dark-mode .client-folder h3,
body.dark-mode .client-header h1,
body.dark-mode .design-count {

    color: #ffffff;
}


body.dark-mode .projects-intro p,
body.dark-mode .project-box p,
body.dark-mode .social-folder-header p,
body.dark-mode .client-folder p,
body.dark-mode .client-header p {

    color: #aeb9ca;
}


body.dark-mode .social-tags span {

    background: #1b2638;

    border-color: #263449;

    color: #ffffff;
}


body.dark-mode .folder-count {

    background: #1b2638;

    color: #aeb9ca;
}


body.dark-mode .web-items div,
body.dark-mode .graphic-items div {

    color: #ffffff;

    border-color: #263449;
}


body.dark-mode .logo-preview,
body.dark-mode .social-post-preview {

    background: #1b2638;

    border-color: #263449;
}


body.dark-mode .logo-design-item img {

    background: #101827;
}


body.dark-mode .logo-design-item {

    border-color: #263449;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .projects-page,
    .client-page {

        padding: 25px;
    }


    .projects-grid {

        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            280px
            260px
            260px;
    }


    /* SOCIAL MEDIA - LARGE */

    .social-box {

        grid-column: 1 / 3;

        grid-row: 1;
    }


    /* LOGO DESIGN */

    .logo-box {

        grid-column: 1;

        grid-row: 2;
    }


    /* BRAND */

    .brand-box {

        grid-column: 2;

        grid-row: 2;
    }


    /* WEB */

    .web-box {

        grid-column: 1;

        grid-row: 3;
    }


    /* GRAPHIC */

    .graphic-box {

        grid-column: 2;

        grid-row: 3;
    }


    .social-post-preview {

        width: 190px;

        height: 190px;

        top: 20px;

        right: 20px;
    }


    .social-post-slide {

        width: 190px;

        height: 190px;
    }


    .social-tags {

        width: 48%;

        max-width: 48%;
    }


    .social-box .project-heading > div:last-child {

        padding-right: 210px;
    }


    @keyframes socialPostScroll {

        0% {

            transform: translateY(0);
        }

        100% {

            transform: translateY(-1900px);
        }
    }


    .logo-preview {

        height: 110px;

        width: calc(100% - 36px);
    }


    .logo-slider {

        height: 1100px;
    }


    .logo-slide {

        height: 110px;
    }


    @keyframes logoScroll {

        0% {

            transform: translateY(0);
        }

        100% {

            transform: translateY(-990px);
        }
    }


    .folders-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .design-gallery {

        grid-template-columns:
            repeat(3, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .projects-page,
    .client-page {

        padding: 20px 15px 45px;
    }


    .projects-intro h1 {

        font-size: 28px;
    }


    .projects-grid {

        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows: auto;
    }


    .logo-box,
    .brand-box,
    .social-box,
    .web-box,
    .graphic-box {

        grid-column: auto;

        grid-row: auto;

        min-height: 270px;
    }


    /* =====================================================
       MOBILE LOGO PREVIEW
    ===================================================== */

    .logo-preview {

        position: absolute;

        right: 18px;

        left: 18px;

        bottom: 18px;

        width: auto;

        height: 145px;
    }


    .logo-slider {

        height: 1450px;
    }


    .logo-slide {

        height: 145px;

        padding: 15px;
    }


    @keyframes logoScroll {

        0% {

            transform: translateY(0);
        }

        100% {

            transform: translateY(-1305px);
        }
    }


    /* =====================================================
       MOBILE SOCIAL MEDIA
    ===================================================== */

    .social-post-preview {

        top: auto;

        right: 18px;

        bottom: 18px;

        width: 125px;

        height: 125px;
    }


    .social-post-slide {

        width: 125px;

        height: 125px;
    }


    .social-tags {

        width: auto;

        max-width: 100%;

        padding-right: 140px;

        box-sizing: border-box;
    }


    .social-box .project-heading > div:last-child {

        padding-right: 0;
    }


    @keyframes socialPostScroll {

        0% {

            transform: translateY(0);
        }

        100% {

            transform: translateY(-1250px);
        }
    }


    .folders-grid {

        grid-template-columns: 1fr;
    }


    .client-header {

        align-items: flex-start;

        flex-direction: column;
    }


    .client-header h1 {

        font-size: 26px;
    }


    .design-gallery {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 10px;
    }


    .lightbox-prev {

        left: 10px;
    }


    .lightbox-next {

        right: 10px;
    }


    .lightbox-image {

        max-width: 88vw;

        max-height: 70vh;
    }

}
/* =========================================================
   ADDITION ONLY: UI/UX CARD CLICK EFFECT
   ========================================================= */

.uiux-project-link {
    cursor: pointer;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.uiux-project-link:hover {
    transform: translateY(-4px);
    border-color: #ff7118;
    box-shadow: 0 12px 30px rgba(16, 43, 82, 0.10);
}

.uiux-project-link:focus-visible {
    outline: 3px solid #22D3EE;
    outline-offset: 4px;
}