/* ====================================================================
                                DEFAULT
==================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  overflow-x: clip;
}

:root {
    --timeline-y: 34px;
}

body {
    font-family: "Rubik", sans-serif;
    background: #ffffff;
    color: #14213d;
}

img {
    max-width: 100%;
    display: block;
}

body:not(.loaded) .fade-in-from-bottom,
body:not(.loaded) .fade-in-from-left,
body:not(.loaded) .fade-in-from-right {
    opacity: 0 !important;
}

.fade-in-from-bottom,
.fade-in-from-right,
.fade-in-from-left {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.5s;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-from-bottom {
    transform: translateY(40px);
}

.fade-in-from-right {
    transform: translateX(40px);
}

.fade-in-from-left {
    transform: translateX(-40px);
}

.fade-in-from-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ================= LOCAL FONTS ================= */

/* Rubik */
@font-face {
    font-family: "Rubik";
    src: url("fonts/Rubik-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("fonts/Rubik-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Rubik";
    src: url("fonts/Rubik-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Poppins */
@font-face {
    font-family: "Poppins";
    src: url("fonts/Poppins-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ====================================================================
                        HEADER + NAVIGATION
==================================================================== */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: transparent;
}

.hero-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    background: rgb(20, 33, 61);
    backdrop-filter: blur(0px);
    transition:
        background 0.35s ease,
        backdrop-filter 0.35s ease,
        border-bottom-color 0.35s ease,
        padding 0.35s ease,
        transform 0.35s ease,
        opacity 0.35s ease,
        box-shadow 0.35s ease;
    z-index: 999;
}

body.loaded .hero-nav {
    transform: translateY(0);
    opacity: 1;
}

.hero-nav.sticky {
    background: rgb(20, 33, 61);
    background: rgba(20, 33, 61, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(71, 52, 114, 0.75);
    padding: 10px 0; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    transform: translateY(0);
}

.nav-container {
    width: 100%;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ================= NAV STRUCTURE ================= */
.main-nav {
    position: relative;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav ul li {
    list-style: none;
}

/* ================= LINK COLORS ================= */
.main-nav a {
    position: relative;
    padding-bottom: 6px;
    text-decoration: none;

    color: #ffffff;
    font-size: 16px;
    transition: color .3s ease;
}

.main-nav a:hover {
    color: #ffb339;
}

.main-nav a.active {
    color: #ffb339 !important;
}

/* ================= SLIDING INDICATOR ================= */
.nav-indicator {
    position: absolute;
    bottom: -4px;
    height: 3px;
    background: #ffb339;
    border-radius: 2px;
    width: 0;
    left: 0;
    transition:
        left 0.35s cubic-bezier(.4,0,.2,1),
        width 0.35s cubic-bezier(.4,0,.2,1),
        transform 0.35s ease;
}

.hero-nav.sticky .nav-indicator {
    transform: translateY(2px);
}

/* ================= LOGO ================= */
.hero-logo {
    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 12px 12px 0px 12px;
    padding: 12px 10px;
    transition:
        font-size .35s ease,
        padding .35s ease,
        border-width .35s ease;
}

.hero-logo span {
    color: #e08a00;
}

.hero-nav.sticky .hero-logo {
    font-size: 20px;
    padding: 9px 7px;
    border-width: 2px;
}

/* ====================================================================
                          MOBILE OVERLAY MENU
==================================================================== */
.menu-toggle-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 998;
    padding: 0;
}

.menu-toggle-btn .burger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    margin: 6px auto;
    transition: transform .35s ease, opacity .25s ease, background .35s ease;
    transform-origin: center;
}

.menu-toggle-btn.is-open .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.menu-toggle-btn.is-open .burger-line:nth-child(2) {
    opacity: 0;
}
.menu-toggle-btn.is-open .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay {
    display: block;
    visibility: hidden;
    pointer-events: auto;
    opacity: 0;
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
    position: fixed;
    height: auto;
    inset: 0;
    background: rgba(9, 24, 56, 0.9);
    backdrop-filter: blur(14px);
    z-index: 997;
}

.mobile-menu-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
    transition: opacity .35s ease, transform .35s ease, visibility 0s;
}

.mobile-menu-links {
    list-style: none;
    margin-top: 120px;
    padding: 0 16px 32px;
    text-align: center;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.mobile-menu-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateX(-28px);
    transition: transform .45s ease, opacity .45s ease;
}
.mobile-menu-links li a {
    color: #ffffff;
    font-size: 28px;
    text-decoration: none;
    transition: .2s ease;
}

.mobile-menu-links li a:hover {
    color: #ffb339;
}

.mobile-menu-overlay.active .mobile-menu-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-menu-links li:nth-child(1){ transition-delay: .06s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(2){ transition-delay: .12s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(3){ transition-delay: .18s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(4){ transition-delay: .24s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(5){ transition-delay: .30s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(6){ transition-delay: .36s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(7){ transition-delay: .42s; }
.mobile-menu-overlay.active .mobile-menu-links li:nth-child(8){ transition-delay: .48s; }

.menu-close {
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease;
}

.mobile-menu-overlay.active .menu-close {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================================================
                            HERO SECTION
==================================================================== */
.hero-section {
    width: 100%;
    padding: 140px 0 0 0;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at 20% 20%, #f1f1f1, transparent 40%),
              radial-gradient(circle at 80% 80%, #cccccc, transparent 40%),
              radial-gradient(circle at 50% 50%, #f1f1f1, transparent 40%);
    background-color: #f1f1f1;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-new {
    padding: 120px 10%;
    background: #e5e5e5;
}

.hero-new-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

/* ================= LEFT TEXT ================= */
.hero-new-text {
    max-width: 540px;
}

.hero-new-intro {
    font-size: 20px;
    color: #ffb339;
    line-height: 0;
}

.hero-new-name {
    font-family: "Poppins", sans-serif;
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 8px;
}

.hero-new-role {
    font-size: 26px;
    color: #14213d;
    margin-bottom: 25px;
}

.hero-new-description {
    font-size: 16px;
    line-height: 22px;
    color: #14213d;
    margin-bottom: 35px;
}

/* ================= BUTTONS ================= */
.hero-new-buttons {
    display: flex;
    gap: 16px;
}

.hero-new-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: .25s ease;
}

.btn-primary {
    padding: 14px 32px;
    background: #ffb339;
    color: #14213d;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    transition: 0.3s ease;
}

.btn-primary:hover {
    background: #ffc936;
}

.hero-new-btn.outline {
    color: #14213d;
    border: 2px solid #ffb339;
}

.hero-new-btn.outline:hover {
    background: #ffc936;
    color: #14213d;
    border: 2px solid #ffc936;
}

.btn-primary-rev {
    padding: 14px 32px;
    background: #ffffff;
    color: #14213d;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: normal;
    transition: 0.3s ease;
}

.btn-primary-rev:hover {
    background: #14213d;
    color: #ffffff;
}

/* ================= PROFILE IMAGE ================= */
.hero-new-img-wrapper {
    width: 540px;
}

.hero-new-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    object-position: 60% center;
}


/* ====================================================================
                             STATUS BAR
==================================================================== */
.stats-bar-section {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 0 120px;
    margin-top: -74px;
    display: flex;
    justify-content: center;
}

.stats-bar-container {
    width: 80%;
    background: #ffffff;
    padding: 40px 50px;
    border-radius: 100px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 40px;
}

/* ================= STAT ITEMS ================= */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #ffb339;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    color: #ffffff;
    font-size: 30px;
    flex-shrink: 0; 
}

.stat-text {
    flex-direction: column;
    justify-content: center;
}

.stat-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.stat-card p {
    font-size: 14px;
    color: #14213d;
    margin: 4px 0 0;
}

/* ================= DIVIDER ================= */
.stat-divider {
    width: 1px;
    height: 60px;
    background: #d7d7d7;
}


/* ====================================================================
                          PORTFOLIO SECTION
==================================================================== */
.portfolio-section {
    padding: 120px 10%; 
    background-color: #ffffff;
}

.portfolio-pretitle {
    color: #ffb339;
    font-size: 18px;
    text-align: center;
}

.portfolio-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.portfolio-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffb339;
}

.portfolio-container {
    max-width: 1100px;
    margin: 0 auto;
}

.portfolio-filters {
    margin: 40px 0 50px;
    text-align: center;
}

.filter-btn {
    padding: 10px 26px;
    border-radius: 12px;
    border: 2px solid #ffb339;
    background: transparent;
    color: #14213d;
    font-size: 14px;
    font-weight: 600;
    margin: 0 10px;
    cursor: pointer;
    transition: 0.3s ease;
}

.filter-btn:hover {
    background: #ffc936;
    color: #14213d;
    border: 2px solid #ffc936;
}

.filter-btn.active {
    background: #ffb339;
    color: #14213d;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

/* ================= PORTFOLIO ITEM ================= */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    height: 300px;
    background: rgba(20, 33, 61, 1);
    transition: box-shadow .3s ease, transform .3s ease;
    box-shadow:
        0 6px 18px rgba(0,0,0,.08),
        0 2px 6px rgba(0,0,0,.06);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(0,0,0,.16),
        0 8px 20px rgba(0,0,0,.10);
}

/* ================= STATIC IMAGE ================= */
.portfolio-images {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.portfolio-images .portfolio-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================= OVERLAY ================= */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(20, 33, 61, 0.65);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 20px 22px;
    opacity: 1;
    transform: none;
    transition: background 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
     background: rgba(20, 33, 61, 0.25);
}

.portfolio-item:hover .portfolio-overlay .portfolio-btn {
    background: #ffb339;
    color: #14213d;
}

/* LEFT */
.portfolio-overlay-left {
    background: rgba(20, 33, 61, 0.25);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    max-width: 260px;
    margin-right: 14px;
}

.portfolio-overlay-left h4 {
    color: #ffb339;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.portfolio-overlay-left h4 span {
    font-size: 14px;
    font-weight: 400;
}

.portfolio-overlay-left p {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.85;
}

.portfolio-overlay-left .portfolio-btn {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffb339;
    border: 1px solid #ffb339;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    margin-top: 12px;
}

/* RIGHT */
.portfolio-overlay-right {
    display: flex;
    gap: 6px;
}

/* PILLS */
.pill {
    font-size: 11px;
    font-weight: 400;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.pill.design {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
}

.pill.development {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
}


/* ====================================================================
                         PORTFOLIO MODAL
==================================================================== */
.portfolio-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.portfolio-modal.is-open { 
    display: flex; 
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
}

/* --- Panel --- */
.portfolio-modal-panel {
    position: relative;
    width: min(1180px, calc(100% - 64px));
    max-height: calc(100vh - 64px);
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    display: flex;
    flex-direction: column;
}

/* Close button */
.portfolio-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    border: 0;
    color: #14213d;
    background: #ffb339;
    border-radius: 50px;
    font-size: 29px;
    line-height: 1;
    padding: 4px 10px;
    cursor: pointer;
    z-index: 1001;
}

.portfolio-modal-close:hover { 
    background: #e08a00;
}

/* 2-column layout */
.portfolio-modal-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    flex: 1;
    min-height: 0;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
}

.portfolio-modal-left,
.portfolio-modal-right {
    min-height: 0;
}

/* Left image */
.portfolio-modal-left {
    background: #ffffff;
    padding: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.portfolio-modal-img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-modal-img-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border-radius: 10px;
    border: 1px solid #dee1ff;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portfolio-modal-img-scroll::-webkit-scrollbar {
    display: none;
}

/* Right content */
.portfolio-modal-right {
    background: #14213d;
    padding: 40px 42px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.portfolio-modal-right-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.portfolio-modal-right::-webkit-scrollbar {
    display: none;
}

.portfolio-modal-title {
    color: #ffb339;
    font-size: 28px;
    font-weight: 700;
    margin: 0 48px 16px 0;
}

.portfolio-modal-divider {
    color: #ffb339;
    border: 0;
    border-top: 1px solid #e6e6e6;
    margin: 12px 0 18px;
}

.portfolio-modal-description {
    color: #ffffff;
    line-height: 1.6;
    font-size: 14.5px;
    margin: 0 0 14px;
}

.portfolio-modal-meta {
    margin-top: 18px;
}

#portfolio-modalUrl.no-link {
    text-decoration: none;
    pointer-events: none;
    cursor: default;
    color: inherit;
}

.portfolio-modal-extra {
    color: #ffffff;
    font-style: italic;
    line-height: 1.6;
    font-size: 12px;
    margin-top:  20px;
}

.portfolio-modal-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 18px;
    padding: 6px 0;
    font-size: 14px;
}

.portfolio-modal-row dt {
    color: #ffb339;
    font-weight: 400;
}

.portfolio-modal-row dd {
    color: #ffffff;
    margin: 0;
}

.portfolio-modal-row a {
    color: #ffffff;
    text-decoration: none;
}
.portfolio-modal-row a:hover { 
    text-decoration: underline; 
}


/* ====================================================================
                          JOURNEY SECTION
==================================================================== */
.journey-section {
    width: 100%;
    padding: 120px 10% 200px 10%;
    background: radial-gradient(circle at 20% 20%, #f1f1f1, transparent 40%),
                radial-gradient(circle at 80% 80%, #cccccc, transparent 40%),
                radial-gradient(circle at 50% 50%, #f1f1f1, transparent 40%);
    background: #f1f1f1;
}

.journey-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.journey-pretitle {
    color: #ffb339;
    font-size: 18px;
    text-align: center;
}

.journey-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.journey-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffb339;
}

.journey-subtitle {
    display: none;
}

/* vertical center line */
.journey-section .container::before {
    content: "";
    position: absolute;
    top: 140px;
    bottom: 0;
    left: 50%;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #ffb339, #ffd27a);
    border-radius: 999px;
}

/* each row */
.journey-item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: start;
    margin-bottom: -80px;
    margin-top: 0;
}

/* middle column */
.dot-line {
    grid-column: 2;
    position: relative;
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
}

.journey-item::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: var(--timeline-y);
    width: 18px;
    height: 18px;
    background: #ffb339;
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 179, 57, 0.18);
    z-index: 2;
}

/* card */
.journey-content {
    position: relative;
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 18px;
    padding: 22px 24px;
    max-width: 460px;
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
}

/* left cards */
.journey-item:nth-child(odd) .journey-content {
    grid-column: 1;
    justify-self: end;
    margin-right: 18px;
}

/* right cards */
.journey-item:nth-child(even) .journey-content {
    grid-column: 3;
    justify-self: start;
    margin-left: 18px;
}

/* arrow */
.journey-content::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-top: 1px solid #e7ebf3;
    border-right: 1px solid #e7ebf3;
    top: calc(var(--timeline-y) + 3px);
}

.journey-item:nth-child(even) .journey-content::after {
    left: -8px;
    transform: rotate(225deg);
}

.journey-item:nth-child(odd) .journey-content::after {
    right: -8px;
    transform: rotate(45deg);
}

.journey-content .line {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffb339;
    margin: 12px 0 14px;
}

.journey-content h4 {
    color: #14213d;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.journey-content h4 i {
    color: #ffb339;
    margin-right: 6px;
}

.journey-content .date {
    font-size: 14px;
    color: #52607a;
    margin-bottom: 0;
}

.journey-content .date span {
    font-weight: 500;
    color: #14213d;
}

.journey-content .sub {
    font-size: 14px;
    line-height: 20px;
    color: #14213d;
    margin-bottom: 0;
}


/* ====================================================================
                         QUESTION SECTION
==================================================================== */
.question-section {
    background: #ffb339;
    padding: 120px 10px;
    text-align: center;
    color: #14213d;
}


.question-pretitle {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
}

.question-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin-bottom: 10px;
}

.question-container {
    max-width: 900px;
    margin: 0 auto;
}

.question-text {
    font-size: 16px;
    opacity: 0.95;
    line-height: 22px;
    margin-bottom: 30px;
}

.question-btn {
    display: inline-block;
    padding: 14px 38px;
    background: #fff;
    color: #14213d !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;

    box-shadow: 0 4px 25px rgba(0,0,0,0.18);
    transition: 0.3s ease;
}

.question-btn:hover {
    transform: translateY(-3px);
    background: #f5faff;
}


/* ====================================================================
                          EXPERTISE SECTION
==================================================================== */
.expertise-section {
    padding: 120px 10%;
    background: #ffffff;
}

.expertise-pretitle {
    color: #ffb339;
    font-size: 18px;
    text-align: center;
}

.expertise-title {
    font-family: "Poppins", sans-serif;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.expertise-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffb339;
}

/* ================= GRID ================= */
.expertise-container {
    max-width: 1100px;
    margin: 0 auto;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 80px;
}

.expertise-col {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* ================= SKILL BLOCKS ================= */
.skill-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 16px;
    color: #14213d;
    font-weight: 600;
}

.skill-value {
    font-size: 16px;
    font-weight: 600;
    color: #14213d;
}

/* ================= PROGRESS BAR ================= */
.skill-bar {
    width: 100%;
    height: 8px;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: var(--w);
    background: #ffb339;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

.skill-fill.animate {
    transform: scaleX(1);
}

@keyframes skillGrow {
    to { transform: scaleX(1); }
}


/* ====================================================================
                           SOFTWARE SECTION
==================================================================== */
.softwares-section {
    padding: 120px 0;  
    background: radial-gradient(circle at 20% 20%, #f1f1f1, transparent 40%),
                radial-gradient(circle at 80% 80%, #cccccc, transparent 40%),
                radial-gradient(circle at 50% 50%, #f1f1f1, transparent 40%);
    background-color: #f1f1f1;
}

.softwares-pretitle {
    color: #ffb339;
    font-size: 18px;
    text-align: center;
}

.softwares-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.softwares-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffb339;
}

.softwares-container {
    max-width: 1100px;
    margin: 0 auto;
}

.softwares-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.software-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #e5e8f0;
    transition: transform .3s ease, box-shadow .3s ease;
    box-shadow:
        0 4px 18px rgba(0,0,0,.08),
        0 2px 6px rgba(0,0,0,.06);
}

/* .software-card:hover {
    box-shadow: 0 14px 35px rgba(0,0,0,0.25);
    transform: translateY(-8px);
    box-shadow:
        0 22px 60px rgba(0,0,0,.16),
        0 10px 22px rgba(0,0,0,.10);
} */

.software-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #ffb339;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.software-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.software-description {
    font-size: 14px;
    color: #14213d;
    line-height: 20px;
}

.software-description-alt {
    font-size: 13px;
    color: #14213d;
    font-style: italic;
    line-height: 20px;
    margin-top: 5px;
}



/* ================= PROGRESS BAR ================= */
.skill-bar-software-tools {
    width: 100%;
    height: 14px;
    background: #f1f1f1;
    border-radius: 10px;
    overflow: hidden;
    font-size: 11px;
    color: #ffffff;
    margin-top: 10px;
}

.skill-fill-software-tools {
    height: 100%;
    width: var(--w);
    background: #ffb339;
    border-radius: 10px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
}

.skill-fill-software-tools.animate {
    transform: scaleX(1);
}


/* ====================================================================
                       TESTIMONIAL SECTION
==================================================================== */

.testimonial-section {
    padding: 120px 0;
    background: #ffffff;
}

.testimonial-pretitle {
    color: #ffb339;
    font-size: 18px;
    text-align: center;
}

.testimonial-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.testimonial-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffb339;
}

.testimonial-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

/* ================= CAROUSEL ================= */

.testimonial-carousel {
    width: 100%;
    position: relative;
    overflow: visible;
}

.testimonial-viewport {
    width: 100%;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    width: 100%;
    transition: transform 0.6s ease;
    will-change: transform;
}

.testimonial-card {
    flex: 0 0 calc((100% - 20px) / 2);
    padding: 28px 28px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin: 0;
    text-align: left;
    border-radius: 12px;
    border: 1px solid #e5e8f0;
    transition: .3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* ================= CARDS ================= */

.testimonial-header {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 20px;
}

.testimonial-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ffb339;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.item-date {
    color: #14213d;
    font-size: 14px;
}

.testimonial-source {
    text-align: right;
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0a66c2;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.testimonial-text {
    margin-top: 20px;
    font-size: 14px;
    line-height: 20px;
    color: #14213d;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    min-height: calc(1.4em * 4);
}

.testimonial-readmore {
    font-size: 14px;
    margin-top: 18px;
    color: #ffb339;
}

.testimonial-readmore a {
    color: #ffb339;
    text-decoration: none;
}

.testimonial-readmore a:hover {
    color: #e08a00;
    text-decoration: underline;
}

/* ================= TESTIMONIAL ARROWS ================= */

.testimonial-carousel{
    width: 100%;
    position: relative;
    overflow: visible;
    padding: 0;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #e5e8f0;
    background: #ffffff;
    color: #14213d;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 5;
}

.testimonial-arrow:hover {
    background: #f1f1f1;
    transform: translateY(-50%) scale(1.06);
}

.testimonial-arrow.prev { left: -22px; }
.testimonial-arrow.next { right: -22px; }

/* ================= DOTS ================= */

.testimonial-dots {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot { 
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: #ffb339;
    transform: scale(1.25);
}

/* ================= ANIMATIONS ================= */

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ====================================================================
                          LATEST UPDATES
==================================================================== */
.updates-section {
    padding: 120px 10%;
    background: #ffb339;
    color: #14213d;
}

.updates-pretitle {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
}

.updates-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.updates-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffffff;
}

.updates-container {
    max-width: 1100px;
    margin: 0 auto;
}

.updates-slider {
    width: 100%;
    overflow: hidden;
}

.updates-track-wrap {
    padding: 20px;
}

.updates-track {
    display: flex;
    gap: 35px;
    transition: transform 0.6s ease;
}

/* ================= UPDATE CARD ================= */
.update-card {
    flex: 0 0 calc((100% - 70px) / 3 - 1px);
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    overflow: visible;
    transition: box-shadow .3s ease, transform .3s ease;
    box-shadow:
        0 6px 18px rgba(0,0,0,.08),
        0 2px 6px rgba(0,0,0,.06);
}

.update-img {
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.update-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.update-content {
    padding: 18px 20px 22px;
}

.update-date {
    font-size: 14px;
    color: #ffb339;
    font-weight: 600;
    margin-bottom: 8px;
}

.update-date span {
    font-size: 14px;
    color: #ffb339;
    font-weight: 400;
}

.update-title {
    font-size: 16px;
    font-weight: 700;
    color: #14213d;
    line-height: 22px;
}


/* ====================================================================
                          CONTACT SECTION
==================================================================== */
.contact-section {
    padding: 120px 10%;
    background: #ffffff;
}

.contact-pretitle {
    color: #ffb339;
    font-size: 18px;
    text-align: center;
}

.contact-title {
    font-family: "Poppins", sans-serif;
    color: #14213d;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    margin: 0 auto 50px;
    width: fit-content;
    position: relative;
}

.contact-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -16px;
    transform: translateX(-50%);
    width: calc(100% + 40px);
    height: 2px;
    background-color: #ffb339;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
}

.contact-grid {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 60px;
}

/* ================= DETAILS ================= */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #ffb339;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
}

.contact-item h4 {
    font-size: 14px;
    line-height: 16px;
    font-weight: 400 !important;
}

.contact-item p {
    font-size: 18px;
    font-weight: 700;
    color: #14213d;
}

.contact-item a {
    color: #14213d;
    text-decoration: none;
}

/* ================= FORM ================= */
.contact-form-box {
    background: #14213d;
    padding: 40px;
    border-radius: 18px 18px 0px 18px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.form-status {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

.form-description {
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    font-family: "Rubik", sans-serif !important;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #ffffff;
    font-size: 15px;
    transition: 0.3s ease;
    background-color: #f1f1f1;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    font-family: "Rubik", sans-serif !important;
    outline: none;
    border-color: #ffb339;
    background-color: #ffffff;
}

.contact-form input,
.contact-form select {
    height: 52px;
    display: flex;
    align-items: center;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #757795;
}

.contact-form select:invalid {
    color: #757795;
    background-color: #f1f1f1;
}

.contact-form select:not(:invalid) {
    color: #14213d;
    background-color: #f1f1f1;
}

.contact-form select option {
    color: #14213d;
}

.contact-form select option[disabled] {
    color: #757795;
}

.contact-form select {
    color: #14213d;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f1f1f1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%2314213d' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    padding-right: 52px;
}

.form-row.phone-field {
    flex-direction: row !important;
    gap: 0;
    align-items: flex-start;
}

.form-row .form-label-field {
    width: 100%;
}

.phone-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.phone-error {
    display: none;
    margin-top: 6px;
}

.phone-field.has-error + .phone-error {
    display: block;
}

.phone-field .field-required {
    flex: 0 0 auto;
    width: auto;
}

.phone-field .field-required {
    display: flex;
    flex-direction: column;
}

.phone-field .field-error {
    margin-top: 0px;
    line-height: 1.2;
}

.phone-field select {
    width: auto;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px;
    color: #757795 !important;
    background-color: #e2e2e2 !important;
    border-right: none;
}

.phone-field input {
    border-radius: 0 12px 12px 0;
}

.phone-field:focus-within select,
.phone-field:focus-within input {
    border-color: #ffb339;
}

.website-field {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.website-field .form-label-field {
    flex: 1;
}

.website-field .prefix {
    display: inline-flex;
    align-items: center;
    padding: 14px 18px;
    background-color: #e2e2e2;
    border: 1px solid #ffffff;
    border-right: none;
    border-radius: 12px 0 0 12px;
    font-size: 15px;
    color: #757795;
    white-space: nowrap;
}

.website-field input {
    border-radius: 0 12px 12px 0;
}

.website-field:focus-within .prefix {
    border-color: #ffb339;
    background-color: #ffffff;
}

.contact-form .form-status:empty { display: none; }

.form-row.website-field {
    flex-direction: row !important;
    gap: 0;
}

.website-field .prefix {
    flex-shrink: 0;
}

textarea {
    height: 140px;
    resize: none;
}

.form-row.name-row {
    display: grid;
    grid-template-columns: 3fr 2fr 4fr;
    gap: 20px;
}

.form-row.contact-row {
    display: grid;
    grid-template-columns: 5fr 3fr;
    gap: 20px;
}

.field-required {
    position: relative;
    flex: 1;
    width: 100%;
}

.field-error {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffb339;
    display: none;
}

.field-required.has-error .field-error,
.field-optional.has-error .field-error  {
    display: block;
}

.form-label-field {
    position: relative;
}

.form-label-field input,
.form-label-field textarea,
.form-label-field select {
    padding: 14px 18px;
}

/* ================= LABEL ================= */
.form-label-field label {
    position: absolute;
    left: 18px;
    top: 26px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #757795;
    pointer-events: none;
    transition: top .18s ease, transform .18s ease, font-size .18s ease, color .18s ease, left .18s ease;
    background: transparent;
}

.form-label-field .req {
    color: #757795;
    transition: color .18s ease;
}

/* ================= FLOATED LABEL ================= */
.form-label-field input:focus + label,
.form-label-field textarea:focus + label,
.form-label-field select:focus + label,
.form-label-field input:not(:placeholder-shown) + label,
.form-label-field textarea:not(:placeholder-shown) + label,
.form-label-field.has-value label {
    top: -8px;
    transform: none;
    left: 13px;
    font-size: 12px;
    color: #979797;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e0e0e0;
    padding: 0 6px;
    border-radius: 999px;
}

.form-label-field.has-value select,
.form-label-field select:focus,
.form-label-field select:valid {
    padding-top: 16px;
}

.form-label-field input:focus + label .req,
.form-label-field textarea:focus + label .req,
.form-label-field input:not(:placeholder-shown) + label .req,
.form-label-field textarea:not(:placeholder-shown) + label .req,
.form-label-field.has-value label .req {
    color: #818181;
}

.robot-label {
    color: white;
    font-size: 16px;
}

/* ================= SEND BUTTON ================= */
.contact-btn {
    padding: 14px 20px;
    border-radius: 12px;
    background: #ffb339;
    color: #14213d;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: #ffc936;
}

/* ================= FORM VALIDATION ================= */

/* invalid fields */
.contact-form .is-invalid {
    border-color: #ffb339 !important;
    background-color: #fff5f5;
}

/* valid fields */
.contact-form .is-valid {
    border-color: #ffffff !important;
    background-color: #f3fffb;
}

/* status message under button */
.contact-form .form-status {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
}

/* error text */
.contact-form .form-status.error {
    color: #ffb339;
}

/* success text */
.contact-form .form-status.success {
    color: #ffffff;
}


/* ====================================================================
                              FOOTER
==================================================================== */
.footer-section {
    padding: 60px 10px;
    background: #14213d;
    color: #ffffff;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-logo {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 20px;
    border: 2px solid #ffffff;
    border-radius: 12px 12px 0px 12px;
    padding: 11px 8px;
}

.footer-logo span {
    color: #e08a00;
}

/* ================= SOCIAL MEDIA ICONS ================= */
.footer-socials {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffb339;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    background: #ffb339;
    transform: translateY(-4px);
}

/* ================= COPYRIGHT ================= */
.footer-copy {
    font-size: 14px;
    margin-top: 25px;
    line-height: 22px;
}

.footer-copy a{
    font-size: 14px;
    margin-top: 25px;
    color: #ffb339
}

.grecaptcha-badge {
    visibility: hidden;
}

/* ====================================================================
                              RESPONSIVE
==================================================================== */

/* => 1800px  (large desktop) */
@media (min-width: 1401px) {
    .stats-bar-section { padding: 0px; margin-top: -64px; }

    .portfolio-modal-panel { max-height: 640px; }
}

/* <= 1400px  (small desktop) */
@media (max-width: 1400px) {
    .nav-container { padding: 0 24px; }
    
    .stats-bar-section { padding: 0 24px; margin-top: -64px; }
    .stats-bar-container { width: 100%; padding: 34px 40px; }
    
    .portfolio-overlay-right { flex-direction: column; align-items: flex-end; gap: 6px; }
    .portfolio-modal-panel { width: calc(100% - 80px); height: calc(100dvh - 24px); max-height: calc(100dvh - 80px); }
}

/* <= 1200px  (small desktop) */
@media (max-width: 1200px) {
    .nav-container { padding: 0 24px; }

    .hero-logo { font-size: 26px; padding: 10px 7px; }
    .hero-container { max-width: 1100px; padding: 0 24px; gap: 40px; }
    .hero-new-name { font-size: 52px; }
    .hero-new-role { font-size: 24px; }
    .hero-new-img-wrapper { width: 480px; }

    .stats-bar-section { padding: 0 20px; margin-top: -64px; }
    .stats-bar-container { width: 100%; padding: 34px 40px; }

    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .testimonial-section { padding: 120px 20px; }

    .updates-grid { grid-template-columns: repeat(2, 1fr); }
}


/* <= 1100px (navigation fix) */
@media (max-width: 1100px) {

    .hero-container { padding: 0 20px; gap: 32px; }
    .hero-new-name { font-size: 48px; }
    .hero-new-role { font-size: 22px; }
    .hero-new-img-wrapper { width: 480px; }

    .stats-bar-section { padding: 0 20px; }
    .stats-bar-container { width: 100%; padding: 28px 24px; gap: 24px; }
    .stat-card, .stat-text { min-width: 0; }

    .softwares-grid { grid-template-columns: repeat(2, 1fr); padding-left: 16px; padding-right: 16px; }

    .update-card { flex: 0 0 calc((100% - 40px) / 2 - 1px); }
}


/* <= 1024px  (laptops / tablets landscape) */
@media (max-width: 1024px) {
    .main-nav ul { display: none; }
    .menu-toggle-btn { display: block; }
    .nav-indicator { display: none; }
    .nav-container { padding: 0 16px; }

    .hero-section { padding: 120px 0 32px 0; }
    .hero-container { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; gap: 24px; }
    .hero-new-text { max-width: 620px; }
    .hero-new-intro { margin-top: 20px; }
    .hero-new-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-primary,
    .hero-new-btn { width: 100%; }
    .hero-new-img-wrapper { width: min(420px, 100%); max-width: 100%; }

    .stats-bar-section { padding: 0 16px; }
    .stats-bar-container { width: 100%; padding: 22px 16px; gap: 16px;}
    .stat-card { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .stat-icon { width: 56px; height: 56px; font-size: 26px; }
    .stat-card h4 { font-size: 18px; }
    .stat-card p  { font-size: 12px; }
    .stat-divider { height: 48px; }

    .expertise-section,
    .softwares-section,
    .portfolio-section,
    .updates-section,
    .contact-section { padding-left: 16px; padding-right: 16px; }
    
    .portfolio-modal-panel { width: calc(100% - 80px); height: calc(100dvh - 24px); max-height: calc(100dvh - 80px); }

    .testimonial-card { flex: 0 0 100%; padding: 28px 28px; }
    .testimonial-arrow.prev { left: -30px; }
    .testimonial-arrow.next { right: -30px; }
}


/* <= 900px   (tablets / large phones) */
@media (max-width: 900px) {
    .nav-container { padding: 0 16px; }

    .hero-nav { padding: 14px 0; }
    .hero-logo { font-size: 22px; padding: 9px 6px; }
    .menu-toggle-btn { font-size: 26px; }

    .hero-section { padding: 120px 0 32px 0; }
    .hero-container { flex-direction: column; align-items: center; text-align: center; padding: 0 16px; gap: 24px; }
    .hero-new-intro { margin-top: 20px; }
    .hero-new-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
    .btn-primary,
    .hero-new-btn { width: 100%; }
    .hero-new-img-wrapper { width: min(340px, 100%); max-width: 100%; }

    .stats-bar-section { padding: 0 16px; }
    .stats-bar-container { width: 100%; padding: 22px 16px; gap: 16px;}
    .stat-card { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
    .stat-icon { width: 56px; height: 56px; font-size: 26px; }
    .stat-card h4 { font-size: 18px; }
    .stat-card p  { font-size: 12px; }
    .stat-divider { height: 48px; }

    .softwares-grid { grid-template-columns: repeat(2, 1fr); }

    .portfolio-modal-panel { width: calc(100% - 80px); height: calc(100dvh - 24px); max-height: calc(100dvh - 80px); margin: 12px auto; border-radius: 16px; }
    .portfolio-modal-grid { grid-template-columns: 1fr; grid-template-rows: minmax(220px, 42dvh) minmax(0, 1fr); height: 100%; }
    .portfolio-modal-left { padding: 16px 16px 10px; min-height: 0; overflow: hidden; }
    .portfolio-modal-img-scroll { height: 100%; overflow: auto; -webkit-overflow-scrolling: touch; }
    .portfolio-modal-img { width: 100%; height: auto; max-width: 100%; object-fit: contain; object-position: top center; }
    .portfolio-modal-right { padding: 18px 16px 22px; min-height: 0; overflow: hidden; }
    .portfolio-modal-right-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-right: 4px; }

    .contact-grid { grid-template-columns: 1fr; }
}


/* <= 768px   (most phones & tablets portrait) */
@media (max-width: 768px) {
    .mobile-menu-links { margin-top: 110px; padding: 0 16px 32px; max-height: calc(100vh - 140px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .mobile-menu-links li a { font-size: 24px; }
    .menu-close { font-size: 44px; top: 16px; right: 16px; }

    .hero-section { padding: 110px 0 28px 0; }
    .hero-new-intro { font-size: 18px }
    .hero-new-name { font-size: 42px; }
    .hero-new-role { font-size: 20px; }
    .hero-new-description { font-size: 15px; }
    .hero-new-img-wrapper { width: min(320px, 100%); }

    .stats-bar-container { gap: 12px; }
    .stat-icon { width: 52px; height: 52px; font-size: 24px; }
    .stat-card h4 { font-size: 17px; }
    .stat-card p  { font-size: 12.5px; }
    .stat-divider { height: 40px; }

    .journey-title::after,
    .portfolio-title::after,
    .softwares-title::after,
    .expertise-title::after,
    .testimonial-title::after,
    .updates-title::after,
    .contact-title::after { max-width: 100%; }

    .journey-section .container { display: flex; flex-direction: column; padding: 0 16px; }
    .journey-section .container::before { display: none; }
    .journey-title { margin-bottom: 30px; }
    .journey-title::after { max-width: 100%; }
    .journey-item { display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 0 20px 0 !important; transform: none !important; left: 0 !important; right: auto !important; }
    .journey-item:nth-child(odd),
    .journey-item:nth-child(even) { width: 100% !important; left: 0 !important; transform: none !important; }
    .journey-item::before,
    .journey-item::after,
    .journey-content::before,
    .journey-content::after { display: none !important; }
    .journey-content { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 20px; border-radius: 12px; background: #f8f8f8; }
    .journey-item.work { order: 1; }
    .journey-item.education { order: 3; }
    .work-title { order: 0; }
    .education-title { order: 2; }
    .journey-item.work:first-of-type::before { display: block; font-size: 22px; font-weight: 700; margin-bottom: 20px; color: #14213d; }
    .journey-item.education:first-of-type::before { display: block; font-size: 22px; font-weight: 700; margin: 30px 0 20px; color: #14213d; }
    .journey-subtitle { display: block; font-size: 32px; font-weight: 700; margin: 30px 0 20px; color: #14213d; text-align: center; }

    .softwares-grid { grid-template-columns: repeat(3, 1fr); }
    .software-card { padding: 24px 18px; }
    .software-card h4 { font-size: 16px; margin-bottom: 6px; }
    .software-card p { font-size: 12px; line-height: 18px; }

    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-overlay-right { flex-direction: row; align-items: center; }

    .testimonial-card { flex: 0 0 100%; padding: 28px 28px; }
    .testimonial-arrow.prev { left: -30px; }
    .testimonial-arrow.next { right: -30px; }

    .filter-btn { margin-bottom: 12px; display: inline-block; }

    .updates-grid { grid-template-columns: 1fr; }

    .form-row { flex-direction: column; }
    .form-row.name-row, .form-row.contact-row { grid-template-columns: 1fr; }
    .form-row:not(.name-row), .form-row:not(.contact-row) { flex-direction: column; }
}


/* <= 600px   (my phone Samsung Galaxy S24) */
@media (max-width: 600px) {
    .hero-nav { padding: 12px 0; }
    .menu-toggle-btn { font-size: 24px; }
    .mobile-menu-links li { margin: 16px 0; }
    .mobile-menu-links li a { font-size: 22px; }

    .hero-section { padding: 100px 0 24px 0; }
    .hero-new-name { font-size: 38px; }
    .hero-new-role { font-size: 18px; }
    .hero-container { gap: 20px;  }
    .hero-new-img { border-radius: 16px; }

    .stats-bar-container { flex-direction: column; align-items: stretch; gap: 16px; border-radius: 24px; }
    .stat-divider { display: none; }
    .stat-card {flex-direction: row; align-items: center; text-align: left; gap: 12px; }
    .stat-icon { width: 52px; height: 52px; font-size: 24px; }

    .expertise-grid { grid-template-columns: 1fr; }

    .softwares-grid { gap: 20px; }
    .softwares-grid { grid-template-columns: repeat(2, 1fr); }
    .software-card { padding: 20px 16px; }
    .software-card h4 { font-size: 16px; }
    .software-card p { font-size: 14px; }

    .portfolio-overlay-right { flex-direction: column; align-items: flex-end; gap: 6px; }

    .form-row{flex-direction:column;gap:16px;align-items:stretch;}
    .form-row:not(.website-field):not(.phone-field)>*{width:100%;}
    .form-row.website-field,.form-row.phone-field{flex-direction:row;flex-wrap:nowrap;gap:0;width:100%;}
    .form-row.website-field .form-label-field,.form-row.phone-field .field-required{flex:1 1 auto;min-width:0;}
    .form-row.website-field input,.form-row.phone-field input{flex:1 1 auto;min-width:0;width:100%;}
    .form-row.website-field .prefix,.form-row.phone-field select{flex:0 0 auto;white-space:nowrap;}

    .footer-socials { gap: 14px; }
    .footer-logo { font-size: 20px; }
}


/* <= 500px   (small phones) */
@media (max-width: 500px) {
    .testimonial-header { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 16px; }
    .testimonial-avatar { grid-column: 1; grid-row: 1; }
    .testimonial-source { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; width: 22px; height: 22px; font-size: 11px; transform: translate(20%, 20%); border: 2px solid #e08a00; z-index: 2; }

    .update-card { flex: 0 0 calc((100% - 0px) / 1 - 1px); }
}


/* <= 480px   (small phones) */
@media (max-width: 480px) {
    .mobile-menu-links { margin-top: 95px; max-height: calc(100vh - 120px); }
    .mobile-menu-links li a { font-size: 20px; }
    .menu-close { font-size: 40px; right: 16px; }

    .hero-new-name { font-size: 34px; }
    .hero-new-role { font-size: 17px; }
    .btn-primary,
    .hero-new-btn { padding: 12px 18px; font-size: 15px; }
    .hero-new-img-wrapper { width: min(280px, 100%); }

    .softwares-grid { grid-template-columns: 1fr; }
    .software-card { padding: 18px 14px; }

    .contact-form-box { padding: 26px }
}


/* <= 400px   (small phones) */
@media (max-width: 400px) {
    .journey-section { padding: 120px 20px; }
    .journey-title, .portfolio-title, .question-title, 
    .expertise-title, .softwares-title, .testimonial-title, 
    .updates-title, .contact-title { font-size: 34px }
    .journey-subtitle { font-size: 28px; }

    .portfolio-overlay { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 14px; }
    .portfolio-overlay-left { max-width: 100%; margin-right: 0; }
    .portfolio-overlay-right { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; }
}


body.menu-open { overflow: hidden; }
.hero-container,
.hero-new-text { min-width: 0; }
.stat-text { min-width: 0; }
.info-value a { overflow-wrap: anywhere; }
.journey-content { min-width: 0; }