/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Global Variables */
:root{
    --sideBGColor: #062e42;
    --themeColor: #62d84e;
    --iconBGColor: #0d4a66;
    --textColor: #444;
    --bgColor: #F7F7F7;
    --glowColor: rgba(98, 216, 78, 0.28);
    --cardShadow: 0 6px 24px rgba(0,0,0,0.09);
    --cardHoverShadow: 0 16px 48px rgba(98,216,78,0.18);
}

/* ===== Keyframe Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 var(--glowColor), 0 0 20px var(--glowColor); }
    50%       { box-shadow: 0 0 0 14px transparent, 0 0 45px var(--glowColor); }
}
@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes spinBorder {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes bounceIn {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

/* ===== Scroll Reveal Classes ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }

/* ===== Scroll Progress Bar ===== */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--themeColor), #a8f59a, var(--themeColor));
    background-size: 200% auto;
    animation: shimmer 2.5s linear infinite;
    z-index: 9999;
    box-shadow: 0 0 10px var(--glowColor);
    transition: width 0.08s linear;
}

/* ===== Back to Top Button ===== */
#back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: var(--themeColor);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.3s, box-shadow 0.3s;
    z-index: 990;
    box-shadow: 0 4px 18px var(--glowColor);
    display: flex;
    align-items: center;
    justify-content: center;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: var(--sideBGColor);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* ====    Header Start ==== */
header {
    height: 100vh;
    width: 300px;
    padding: 15px 30px;
    background: linear-gradient(175deg, var(--sideBGColor) 0%, #041f2e 100%);
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transition: 0.4s;
    z-index: 99;
    border-right: 1px solid rgba(98, 216, 78, 0.12);
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
header:hover {
    scrollbar-color: var(--themeColor) transparent;
}
header::-webkit-scrollbar {
    width: 3px;
}
header::-webkit-scrollbar-track {
    background: transparent;
}
header::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
    transition: background 0.3s;
}
header:hover::-webkit-scrollbar-thumb {
    background: var(--themeColor);
    box-shadow: 0 0 6px var(--glowColor);
}

header .profile {
    text-align: center;
    margin: 15px 0;
}
header .profile img {
    width: 150px;
    border-radius: 50%;
    border: 4px solid var(--themeColor);
    animation: float 4s ease-in-out infinite, pulseGlow 3s ease-in-out infinite;
    transition: transform 0.4s;
}
header .profile img:hover {
    transform: scale(1.06);
}
header .profile h1 {
    color: white;
    font-weight: 700;
    margin-top: 14px;
    font-size: 22px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg, #fff 0%, var(--themeColor) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3.5s linear infinite;
}
header .profile .profile-role {
    color: var(--themeColor);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-top: 4px;
    opacity: 0.9;
}
header .profile .social-icons {
    margin-top: 12px;
}
header .profile .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 37px;
    background-color: var(--iconBGColor);
    color: white;
    font-size: 17px;
    margin: 2px;
    transition: 0.35s;
}
header .profile .social-icons a:hover {
    background-color: var(--themeColor);
    color: var(--sideBGColor);
    transform: translateY(-4px) scale(1.12);
    box-shadow: 0 6px 18px var(--glowColor);
}

/* NavBar */
header nav {
    margin-top: 28px;
}
header nav ul li {
    list-style: none;
}
header nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 9px 12px;
    margin: 3px 0;
    color: #b0c4ce;
    font-weight: 400;
    font-size: 14.5px;
    letter-spacing: 0.5px;
    transition: 0.3s;
    border-radius: 8px;
    width: 100%;
}
header nav ul li a:hover {
    background: rgba(98, 216, 78, 0.12);
    color: var(--themeColor);
    padding-left: 18px;
}
header nav ul li a i {
    margin-right: 12px;
    font-size: 17px;
    transition: 0.3s;
    width: 20px;
    text-align: center;
}
header nav ul li a:hover i,
header nav ul li .active i {
    color: var(--themeColor);
}
header nav ul li .active {
    color: var(--themeColor);
    background: rgba(98, 216, 78, 0.12);
    font-weight: 500;
}

/* Footer */
header .footer {
    text-align: center;
    background-color: var(--sideBGColor);
    width: 300px;
    color: lightgray;
    font-size: 14px;
    letter-spacing: 0.6px;
    padding: 15px;
    position: fixed;
    bottom: 0;
    left: 0;
    transition: 0.4s;
}
header .footer p a {
    color: var(--themeColor);
}

/* Mobile Nav Toggle */
#MenuBtn {
    position: fixed;
    top: 22px;
    right: 22px;
    font-size: 20px;
    width: 42px;
    height: 42px;
    color: white;
    background-color: var(--themeColor);
    text-align: center;
    line-height: 43px;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glowColor);
    display: none;
    z-index: 999;
    cursor: pointer;
    transition: 0.3s;
}
#MenuBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--glowColor);
}

@media only screen and (max-width: 1050px) {
    header { left: -300px; }
    header .footer { left: -300px; }
    #MenuBtn { display: block; }
}

.mobile-nav-active header { left: 0; }
.mobile-nav-active header .footer { left: 0; }

/* ====    Header END ==== */

/* === MAIN SECTION === */
main {
    margin-left: 300px;
    background-color: var(--bgColor);
    transition: 0.3s;
}
@media only screen and (max-width: 1050px) {
    main { margin-left: 0; }
}

/* ---==== Home Section ====--- */
#home {
    height: 100vh;
    width: 100%;
    background-image: url(img/hero-bg.jpg);
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
    position: relative;
    overflow: hidden;
}
#home::before {
    content: '';
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.431);
    position: absolute;
    top: 0;
    left: 0;
}
#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--themeColor), transparent);
    box-shadow: 0 0 20px var(--glowColor);
}
#home .home-row {
    z-index: 1;
    animation: fadeInUp 1s ease both;
}
#home .home-row h1 {
    font-size: 62px;
    color: white;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 12px;
    line-height: 72px;
}
#home .home-row h1 span {
    color: var(--themeColor);
    text-shadow: 0 0 30px var(--glowColor);
}
#home .home-row p {
    color: whitesmoke;
    font-size: 28px;
    font-weight: 500;
}
#home .home-row p span {
    color: var(--themeColor);
    border-bottom: 3px solid var(--themeColor);
    padding-bottom: 2px;
}

@media only screen and (max-width: 670px) {
    #home { padding: 30px; }
    #home .home-row h1 { font-size: 36px; letter-spacing: 0; line-height: 50px; }
    #home .home-row h1 br { display: none; }
    #home .home-row p { font-size: 20px; font-weight: 400; }
}

/* ===== Global Section Headings ===== */
.sub-heading {
    color: var(--sideBGColor);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}
.divider {
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--themeColor), #a8f59a);
    border-radius: 3px;
    transition: width 0.9s cubic-bezier(0.4,0,0.2,1) 0.15s;
    box-shadow: 0 2px 10px var(--glowColor);
}
.divider.active {
    width: 80px;
}
.sub-para {
    color: var(--textColor);
    font-size: 15px;
    letter-spacing: 0.4px;
    font-weight: 500;
    margin-top: 15px;
    line-height: 1.7;
}

/* ===== About Section ===== */
#about {
    padding: 75px 35px;
}
#about .about-col {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}
#about .about-col .img-col {
    flex-basis: 30%;
    text-align: center;
}
#about .about-col .img-col img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.14);
    transition: 0.4s;
}
#about .about-col .img-col img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
#about .about-col .info-col {
    flex-basis: 70%;
}
#about .about-col .info-col h2 {
    color: var(--themeColor);
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 0.4px;
    margin-top: -8px;
    text-shadow: 0 2px 12px var(--glowColor);
}
#about .about-col .info-col p {
    color: var(--textColor);
    font-size: 15px;
    letter-spacing: 0.4px;
    font-style: italic;
    line-height: 1.6;
}
#about .about-col .info-col .icon-list-col {
    display: flex;
    margin-top: 22px;
    gap: 40px;
}
#about .about-col .info-col .icon-list-col .icon-list ul li {
    list-style: none;
    margin: 13px 0;
    transition: 0.3s;
}
#about .about-col .info-col .icon-list-col .icon-list ul li:hover {
    transform: translateX(6px);
}
#about .about-col .info-col .icon-list-col .icon-list ul li i {
    color: var(--themeColor);
}
#about .about-col .info-col .icon-list-col .icon-list ul li strong {
    color: var(--sideBGColor);
    font-weight: 600;
    margin-right: 3px;
}
#about .about-col .info-col .icon-list-col .icon-list ul li span {
    color: var(--textColor);
    font-weight: 500;
    font-size: 15px;
}

@media only screen and (max-width: 830px) {
    #about { padding: 50px 14px; }
    #about .divider ~ p { font-size: 14px; text-align: justify; }
    #about .about-col { flex-direction: column; }
    #about .about-col .img-col img { width: 50%; }
    #about .about-col .info-col h2 { font-size: 24px; }
    #about .about-col .info-col p { font-size: 14px; }
    #about .about-col .info-col .icon-list-col { flex-direction: column; gap: 0; }
    #about .about-col .info-col .icon-list-col .icon-list ul li { margin: 9px 0; }
    #about .about-col .info-col .icon-list-col .icon-list ul li strong { font-weight: 500; }
    #about .about-col .info-col .icon-list-col .icon-list ul li span { font-size: 13px; }
}
@media only screen and (max-width: 400px) {
    #about .about-col .img-col img { width: 88%; }
}

/* ===== Facts Section ===== */
#fact {
    padding: 75px 35px;
    background: linear-gradient(135deg, #ffffff 0%, #edfbe8 100%);
}
#fact .fact-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}
#fact .fact-row .fact-box {
    text-align: center;
    padding: 36px 40px;
    border-radius: 14px;
    background: white;
    box-shadow: var(--cardShadow);
    transition: 0.4s;
    border-bottom: 4px solid var(--themeColor);
    min-width: 200px;
    flex: 1;
    max-width: 280px;
}
#fact .fact-row .fact-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--cardHoverShadow);
}
#fact .fact-row .fact-box i {
    color: var(--themeColor);
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
    transition: 0.4s;
}
#fact .fact-row .fact-box:hover i {
    transform: scale(1.15) rotate(-5deg);
}
#fact .fact-row .fact-box strong {
    color: var(--sideBGColor);
    font-size: 40px;
    font-weight: 700;
    display: block;
    line-height: 1.1;
}
#fact .fact-row .fact-box p {
    color: var(--textColor);
    font-weight: 500;
    font-size: 15px;
    margin-top: 8px;
}

@media only screen and (max-width: 600px) {
    #fact { padding: 50px 14px; }
    #fact .fact-row { gap: 15px; }
    #fact .fact-row .fact-box { min-width: 140px; padding: 24px 20px; }
    #fact .fact-row .fact-box strong { font-size: 30px; }
}

/* ===== Skills Section ===== */
#skill {
    padding: 75px 35px;
}
#skill .skill-row {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
#skill .skill-row .skill-box {
    padding: 18px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--cardShadow);
    transition: 0.35s;
    border-left: 3px solid transparent;
}
#skill .skill-row .skill-box:hover {
    box-shadow: var(--cardHoverShadow);
    transform: translateY(-3px);
    border-left-color: var(--themeColor);
}
#skill .skill-row .skill-box .skill-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
#skill .skill-row .skill-box .skill-info h2 {
    color: var(--sideBGColor);
    font-weight: 600;
    font-size: 14px;
    font-style: italic;
}
#skill .skill-row .skill-box .skill-outter-line {
    width: 100%;
    height: 8px;
    background-color: #e3f5df;
    border-radius: 15px;
    overflow: hidden;
}
#skill .skill-row .skill-box .skill-outter-line .skill-inner-line {
    height: 8px;
    background: linear-gradient(90deg, var(--themeColor), #a8f59a);
    border-radius: 20px;
    transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px var(--glowColor);
}

@media only screen and (max-width: 450px) {
    #skill { padding: 50px 14px; }
    #skill .skill-row { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== Resume Section ===== */
#resume {
    padding: 75px 35px;
    background-color: white;
}
#resume .resume-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 38px;
}
#resume .resume-row .resume-cols {
    flex-basis: 50%;
}
#resume .resume-row .resume-cols h2 {
    color: var(--sideBGColor);
    font-weight: 700;
    font-size: 22px;
    margin: 18px 0;
    padding-left: 12px;
    border-left: 4px solid var(--themeColor);
    letter-spacing: 0.2px;
}
#resume .resume-row .resume-cols .my-info,
#resume .resume-row .resume-cols .my-edu,
#resume .resume-row .resume-cols .pro-exp {
    padding: 16px 20px 16px 22px;
    margin-bottom: 18px;
    border-left: 2px solid var(--themeColor);
    position: relative;
    background: #f8fffe;
    border-radius: 0 10px 10px 0;
    transition: 0.3s;
}
#resume .resume-row .resume-cols .my-info:hover,
#resume .resume-row .resume-cols .my-edu:hover,
#resume .resume-row .resume-cols .pro-exp:hover {
    background: #edfbe8;
    transform: translateX(6px);
    box-shadow: var(--cardShadow);
}
#resume .resume-row .resume-cols .my-info::before,
#resume .resume-row .resume-cols .my-edu::before,
#resume .resume-row .resume-cols .pro-exp::before {
    content: '';
    position: absolute;
    top: 16px;
    left: -9px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid var(--themeColor);
    background-color: white;
    box-shadow: 0 0 0 4px var(--glowColor);
    transition: 0.3s;
}
#resume .resume-row .resume-cols .my-info:hover::before,
#resume .resume-row .resume-cols .my-edu:hover::before,
#resume .resume-row .resume-cols .pro-exp:hover::before {
    background-color: var(--themeColor);
}
#resume .resume-row .resume-cols h3 {
    color: var(--sideBGColor);
    font-size: 15.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
#resume .resume-row .resume-cols .my-info p {
    color: var(--textColor);
    font-size: 14.5px;
    font-weight: 600;
    font-style: italic;
    margin: 8px 0;
}
#resume .resume-row .resume-cols .my-info ul li {
    margin: 8px 0;
    margin-left: 20px;
    color: var(--textColor);
    font-size: 14.5px;
    font-weight: 500;
}
#resume .resume-row .resume-cols .sp-box {
    padding: 4px 16px;
    background: linear-gradient(135deg, #d4f0fa, #b2ebf2);
    color: var(--sideBGColor);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    margin: 10px 0;
    display: inline-block;
    border: 1px solid rgba(6,46,66,0.12);
}
#resume .resume-row .resume-cols .my-edu span + p {
    color: var(--textColor);
    font-size: 14.5px;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 6px;
}
#resume .resume-row .resume-cols .my-edu span + p + p {
    color: var(--textColor);
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 4px;
}
#resume .resume-row .resume-cols .pro-exp p {
    color: var(--textColor);
    font-size: 15px;
    font-weight: 500;
    font-style: italic;
}
#resume .resume-row .resume-cols .pro-exp ul li {
    margin: 8px 0 8px 20px;
    color: var(--textColor);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
}

@media only screen and (max-width: 820px) {
    #resume { padding: 50px 14px; }
    #resume .resume-row { flex-direction: column; }
    #resume .resume-row .resume-cols { flex-basis: 100%; }
}

/* ===== Portfolio Section ===== */
#portfolio {
    padding: 75px 35px;
}
#portfolio .port-row {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
#portfolio .port-row .port-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    transition: transform 0.38s ease, box-shadow 0.38s ease;
    border-top: 3px solid var(--themeColor);
}
#portfolio .port-row .port-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 55px rgba(98,216,78,0.18);
}
#portfolio .port-row .port-item .port-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
#portfolio .port-row .port-item .port-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,46,66,0.55) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
#portfolio .port-row .port-item:hover .port-img::after {
    opacity: 1;
}
#portfolio .port-row .port-item .port-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
}
#portfolio .port-row .port-item:hover .port-img img {
    transform: scale(1.07);
}
#portfolio .port-row .port-item .port-info {
    position: static;
    transform: none;
    visibility: visible;
    width: 100%;
    height: auto;
    background: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s ease;
    border-radius: 0;
}
#portfolio .port-row .port-item:hover .port-info {
    background: #f0fdf0;
}
#portfolio .port-row .port-item .port-info h4 {
    color: var(--sideBGColor);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
#portfolio .port-row .port-item .port-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--themeColor);
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: 0.32s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 12px var(--glowColor);
}
#portfolio .port-row .port-item .port-info a:hover {
    background: var(--sideBGColor);
    transform: scale(1.12) rotate(15deg);
    box-shadow: 0 6px 20px rgba(6,46,66,0.3);
}

@media only screen and (max-width: 650px) {
    #portfolio { padding: 50px 10px; }
    #portfolio .port-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media only screen and (max-width: 350px) {
    #portfolio .port-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Certifications Section ===== */
#certificate {
    padding: 75px 35px;
    background: linear-gradient(135deg, #f8fffe 0%, #edfbe8 100%);
}
#certificate .port-row {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
#certificate .port-row .port-item {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,0.08);
    transition: transform 0.38s ease, box-shadow 0.38s ease;
    border-left: 3px solid var(--themeColor);
}
#certificate .port-row .port-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 55px rgba(98,216,78,0.18);
}
#certificate .port-row .port-item .port-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}
#certificate .port-row .port-item .port-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,46,66,0.55) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
#certificate .port-row .port-item:hover .port-img::after {
    opacity: 1;
}
#certificate .port-row .port-item .port-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 0;
}
#certificate .port-row .port-item:hover .port-img img {
    transform: scale(1.07);
}
#certificate .port-row .port-item .port-info {
    position: static;
    transform: none;
    visibility: visible;
    width: 100%;
    height: auto;
    background: white;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s ease;
    border-radius: 0;
}
#certificate .port-row .port-item:hover .port-info {
    background: #f0fdf0;
}
#certificate .port-row .port-item .port-info h4 {
    color: var(--sideBGColor);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
#certificate .port-row .port-item .port-info a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--themeColor);
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: 0.32s ease;
    flex-shrink: 0;
    box-shadow: 0 3px 12px var(--glowColor);
}
#certificate .port-row .port-item .port-info a:hover {
    background: var(--sideBGColor);
    transform: scale(1.12) rotate(15deg);
    box-shadow: 0 6px 20px rgba(6,46,66,0.3);
}

@media only screen and (max-width: 650px) {
    #certificate { padding: 50px 10px; }
    #certificate .port-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media only screen and (max-width: 350px) {
    #certificate .port-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Services Section ===== */
#service {
    padding: 75px 35px;
    background-color: white;
}
#service .service-row {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
#service .service-row .service-box {
    display: flex;
    gap: 18px;
    padding: 26px 22px;
    border-radius: 14px;
    background: var(--bgColor);
    transition: 0.4s;
    border: 1px solid transparent;
    align-items: flex-start;
}
#service .service-row .service-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--cardHoverShadow);
    border-color: rgba(98,216,78,0.35);
    background: white;
}
#service .service-row .service-box .icon i {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    border: 2px solid var(--themeColor);
    font-size: 22px;
    line-height: 50px;
    background-color: var(--themeColor);
    color: white;
    transition: 0.5s;
    text-align: center;
    box-shadow: 0 4px 16px var(--glowColor);
    flex-shrink: 0;
}
#service .service-row .service-box:hover .icon i {
    color: var(--themeColor);
    background-color: white;
    transform: rotate(8deg) scale(1.1);
}
#service .service-row .service-box .ser-info h4 {
    color: var(--sideBGColor);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
#service .service-row .service-box .ser-info h4 + p {
    color: var(--textColor);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}

@media only screen and (max-width: 850px) {
    #service { padding: 50px 14px; }
    #service .service-row { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}
@media only screen and (max-width: 550px) {
    #service .service-row { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Contact Section ===== */
#contact {
    padding: 75px 35px;
    background: linear-gradient(135deg, #f6fffc 0%, #edfbe8 100%);
}
#contact .contact-row {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    width: 100%;
}
#contact .contact-row .contact-left {
    flex-basis: 100%;
    min-width: 100%;
    background-color: white;
    box-shadow: 0 10px 45px rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 35px;
    border: 1px solid rgba(98,216,78,0.18);
}
#contact .contact-row .contact-left .icon-box {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: 10px;
    transition: 0.35s;
}
#contact .contact-row .contact-left .icon-box:hover {
    background: #edfbe8;
    transform: translateX(8px);
}
#contact .contact-row .contact-left .icon-box .icon i {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 2px solid var(--themeColor);
    text-align: center;
    line-height: 46px;
    font-size: 20px;
    color: var(--themeColor);
    transition: 0.45s;
    flex-shrink: 0;
}
#contact .contact-row .contact-left .icon-box:hover .icon i {
    background-color: var(--themeColor);
    color: white;
    transform: scale(1.08) rotate(-5deg);
}
#contact .contact-row .contact-left .icon-box .info h4 {
    font-size: 18px;
    color: var(--sideBGColor);
    font-weight: 700;
}
#contact .contact-row .contact-left .icon-box .info h4 + p {
    color: var(--textColor);
    font-size: 15px;
    font-weight: 500;
}
#contact .contact-row .contact-left .map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
    margin-top: 12px;
}
#contact .contact-row .contact-right {
    flex-basis: 60%;
    min-width: 60%;
    background-color: white;
    box-shadow: 0 10px 45px rgba(0,0,0,0.08);
    border-radius: 18px;
    padding: 35px;
}
#contact .contact-row .contact-right form input,
#contact .contact-row .contact-right form textarea {
    display: block;
    width: 100%;
    margin: 22px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--textColor);
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    resize: none;
    transition: 0.4s;
}
#contact .contact-row .contact-right form input:focus,
#contact .contact-row .contact-right form textarea:focus {
    border-color: var(--themeColor);
    box-shadow: 0 0 0 3px var(--glowColor);
}
#contact .contact-row .contact-right form input[type=submit] {
    background-color: var(--themeColor);
    color: white;
    border: 2px solid var(--themeColor);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.35s;
}
#contact .contact-row .contact-right form input[type=submit]:hover {
    background-color: var(--sideBGColor);
    border-color: var(--sideBGColor);
    transform: translateY(-2px);
}

@media only screen and (max-width: 800px) {
    #contact { padding: 50px 14px; }
    #contact .contact-row { flex-direction: column; gap: 14px; }
}
@media only screen and (max-width: 500px) {
    #contact { padding: 50px 10px; }
}

/* ===== Sidebar CV Download Button ===== */
.sidebar-cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 18px 0 6px;
    padding: 11px 18px;
    background: transparent;
    border: 1.5px solid var(--themeColor);
    color: var(--themeColor);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.sidebar-cv-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 70%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(98,216,78,.18), transparent);
    transform: skewX(-18deg);
    transition: left 0.5s ease;
}
.sidebar-cv-btn:hover::before { left: 150%; }
.sidebar-cv-btn:hover {
    background: var(--themeColor);
    color: var(--sideBGColor);
    box-shadow: 0 6px 22px var(--glowColor);
    transform: translateY(-2px);
}
.sidebar-cv-btn i {
    font-size: 16px;
    animation: arrowBounce 1.7s ease-in-out infinite;
}

/* ===== Hero CV Download Button ===== */
.hero-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 34px;
    padding: 15px 34px;
    background: linear-gradient(135deg, var(--themeColor) 0%, #a8f59a 100%);
    color: var(--sideBGColor);
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 34px var(--glowColor);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.4px;
    animation: fadeInUp 1s ease 0.55s both;
    z-index: 1;
    cursor: pointer;
}
.hero-cv-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -110%;
    width: 72%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}
.hero-cv-btn:hover::before { left: 150%; }
.hero-cv-btn:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 20px 54px rgba(98, 216, 78, 0.55);
}
.hero-cv-btn:active {
    transform: translateY(-2px) scale(1.01);
}
.hero-cv-btn i {
    font-size: 20px;
    animation: arrowBounce 1.7s ease-in-out infinite;
    flex-shrink: 0;
}

/* ===== CV Download Button ===== */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: 30px;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--themeColor) 0%, #a8f59a 100%);
    color: var(--sideBGColor);
    font-weight: 700;
    font-size: 14.5px;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 6px 28px var(--glowColor);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
    width: fit-content;
    cursor: pointer;
}

/* shimmer sweep */
.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -110%;
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
    transform: skewX(-18deg);
    transition: left 0.55s ease;
}
.cv-download-btn:hover::before { left: 150%; }

.cv-download-btn:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 44px rgba(98, 216, 78, 0.52);
}

.cv-download-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* file icon */
.cv-download-btn > i:first-child {
    font-size: 19px;
    flex-shrink: 0;
}

/* animated arrow icon */
.cv-download-btn .btn-arrow {
    font-size: 13px;
    animation: arrowBounce 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%       { transform: translateY(4px); opacity: 0.7; }
}

/* ===== Accent Color Utility ===== */
.myColor {
    color: var(--themeColor);
    font-weight: bold;
}

/* ===== Language Switcher ===== */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 4px;
}
.lang-btn {
    padding: 5px 14px;
    border: 1.5px solid rgba(98, 216, 78, 0.35);
    background: transparent;
    color: #7a9bab;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 0.8px;
    font-family: 'Poppins', sans-serif;
}
.lang-btn:hover {
    border-color: var(--themeColor);
    color: var(--themeColor);
}
.lang-btn.active {
    background: var(--themeColor);
    border-color: var(--themeColor);
    color: var(--sideBGColor);
    box-shadow: 0 3px 12px var(--glowColor);
}

/* ===== RTL Overrides ===== */
[dir="rtl"] * {
    font-family: 'Cairo', sans-serif;
}
[dir="rtl"] .lang-btn {
    font-family: 'Cairo', sans-serif;
}

/* Sidebar: flip from left to right */
[dir="rtl"] header {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid rgba(98, 216, 78, 0.12);
}
[dir="rtl"] main {
    margin-left: 0;
    margin-right: 300px;
}

/* Footer (sidebar bottom) */
[dir="rtl"] header .footer {
    left: auto;
    right: 0;
}

/* Nav link hover: indent from the right */
[dir="rtl"] header nav ul li a:hover {
    padding-right: 18px;
    padding-left: 12px;
}
[dir="rtl"] header nav ul li a i {
    margin-right: 0;
    margin-left: 12px;
}

/* Resume timeline: flip border and dot to right side */
[dir="rtl"] #resume .resume-row .resume-cols h2 {
    padding-left: 0;
    padding-right: 12px;
    border-left: none;
    border-right: 4px solid var(--themeColor);
}
[dir="rtl"] #resume .resume-row .resume-cols .my-edu,
[dir="rtl"] #resume .resume-row .resume-cols .pro-exp {
    padding: 16px 22px 16px 20px;
    border-left: none;
    border-right: 2px solid var(--themeColor);
    border-radius: 10px 0 0 10px;
}
[dir="rtl"] #resume .resume-row .resume-cols .my-edu:hover,
[dir="rtl"] #resume .resume-row .resume-cols .pro-exp:hover {
    transform: translateX(-6px);
}
[dir="rtl"] #resume .resume-row .resume-cols .my-edu::before,
[dir="rtl"] #resume .resume-row .resume-cols .pro-exp::before {
    left: auto;
    right: -9px;
}
[dir="rtl"] #resume .resume-row .resume-cols .pro-exp ul li {
    margin-left: 0;
    margin-right: 20px;
}

/* Skill bar: flip left accent border */
[dir="rtl"] #skill .skill-row .skill-box {
    border-left: none;
    border-right: 3px solid transparent;
}
[dir="rtl"] #skill .skill-row .skill-box:hover {
    border-right-color: var(--themeColor);
}

/* About info list: flip hover slide direction */
[dir="rtl"] #about .about-col .info-col .icon-list-col .icon-list ul li:hover {
    transform: translateX(-6px);
}

/* Contact icon-box: flip hover slide direction */
[dir="rtl"] #contact .contact-row .contact-left .icon-box:hover {
    transform: translateX(-8px);
}

/* Back-to-top: flip to left side */
[dir="rtl"] #back-to-top {
    right: auto;
    left: 28px;
}

/* Mobile nav: slide in from the right in RTL */
@media only screen and (max-width: 1050px) {
    [dir="rtl"] header {
        right: -300px;
        left: auto;
    }
    [dir="rtl"] header .footer {
        right: -300px;
        left: auto;
    }
    [dir="rtl"] main {
        margin-right: 0;
    }
    [dir="rtl"] #MenuBtn {
        right: auto;
        left: 22px;
    }
}
[dir="rtl"] .mobile-nav-active header {
    right: 0;
    left: auto;
}
[dir="rtl"] .mobile-nav-active header .footer {
    right: 0;
    left: auto;
}
