[data-theme="light"] .about-box ul li span,
[data-theme="light"] .about-box span,
[data-theme="light"] .about-box .subtitle,
[data-theme="light"] .about-box .role {
    color: #2b3a43 !important;
}

[data-theme="light"] .about-box ul li strong {
    color: #0b1220 !important;
}
[data-theme="light"] .home-info h1 {
    background: linear-gradient(45deg, #0b1220, cadetblue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .home-info h2,
[data-theme="light"] .home-info h3,
[data-theme="light"] .portfolio p,
[data-theme="light"] .about > p,
[data-theme="light"] .portfolio-box p,
[data-theme="light"] .skill-box p,
[data-theme="light"] .cert-box p,
[data-theme="light"] .contact p,
[data-theme="light"] .info-item,
[data-theme="light"] .info-item a,
[data-theme="light"] .portfolio-box .category,
[data-theme="light"] .tech-list li,
[data-theme="light"] .feature-list li {
    color: #24303a;
}

[data-theme="light"] .home-info .btn-sci .sci a {
    color: cadetblue;
    border-color: rgba(10,20,30,0.06);
}

/* Make the circular image background match the site (transparent on light theme) */
[data-theme="light"] .home-img .img-box .img-item {
    background-color: transparent;
    border: .1px solid rgba(10,20,30,0.06);
}

[data-theme="light"] .home-img .img-box::before,
[data-theme="light"] .home-img .img-box::after {
    /* hide the interior "light stream" conic gradients in light mode
       and show only a stronger, subtle border for good visibility */
    filter: none;
    opacity: 1;
    background: transparent !important;
    border: 6px solid rgba(11,18,20,0.12) !important;
    border-radius: 50%;
    box-shadow: none !important;
}

[data-theme="light"] .home-img .img-box .ring {
    /* inner decorative rings: slightly thinner than outer rings */
    filter: none;
    opacity: 1;
    background: transparent !important;
    border: 4px solid rgba(11,18,20,0.10) !important;
    border-radius: 50%;
    box-shadow: none !important;
}

/* Info boxes and links in light theme */
[data-theme="light"] .about-box,
[data-theme="light"] .portfolio-box,
[data-theme="light"] .skill-box,
[data-theme="light"] .cert-box {
    color: #0b1220;
}

/* Brighten Contact section for light theme */
[data-theme="light"] .contact {
    background: transparent;
    color: #0b1220;
}

[data-theme="light"] .contact-container {
    background: transparent;
}

[data-theme="light"] .contact .info-item {
    background: #ffffff;
    color: #0b1220;
    border: 1px solid rgba(10,20,30,0.06);
}

[data-theme="light"] .contact .info-item i {
    color: cadetblue;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: #ffffff;
    color: #0b1220;
    border: 1px solid rgba(10,20,30,0.08);
    box-shadow: none;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #6b7780;
}

[data-theme="light"] .contact-form .btn {
    background-color: cadetblue;
    color: #ffffff;
    border-color: cadetblue;
}

[data-theme="light"] .contact-form .btn:focus {
    outline: 3px solid rgba(95,158,160,0.15);
    outline-offset: 2px;
}

/* Make all interactive/title text very readable in light mode */
[data-theme="light"] a,
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] span,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] .project-toggle,
[data-theme="light"] .cert-toggle,
[data-theme="light"] .portfolio-box h3,
[data-theme="light"] .cert-box h3,
[data-theme="light"] .portfolio-box .category {
    color: #0b1220 !important;
}

[data-theme="light"] .project-toggle {
    background: transparent;
    color: #0b1220 !important;
    font-weight: 700;
}

[data-theme="light"] .project-toggle[aria-expanded="true"],
[data-theme="light"] .cert-toggle[aria-expanded="true"] {
    color: cadetblue !important;
}

[data-theme="light"] .project-toggle:focus,
[data-theme="light"] .cert-toggle:focus {
    outline: 3px solid rgba(10,20,30,0.08);
    outline-offset: 3px;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #111;
    color: #fff;
    line-height: 1.6;
    padding-top: 70px;
    overflow-x: hidden;
}

a {
    color: #fff;
    text-decoration: none;
}

/* Navbar */
.navbar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    padding: 15px 9%;
    background: rgba(31, 36, 31, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 150;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(31, 36, 31, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
    font-size: 28px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Theme toggle button in navbar */
.theme-toggle {
    margin-left: 14px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.06);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:focus { outline: 3px solid rgba(95,158,160,0.2); outline-offset: 2px; }

/* Light theme overrides (applied when [data-theme="light"] on <html>) */
[data-theme="light"] body {
    background: #f5f7fa;
    color: #0b1220;
}

[data-theme="light"] .navbar {
    /* fully opaque white navbar in light theme */
    background: #ffffff;
    color: #0b1220;
    backdrop-filter: none;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

/* Ensure scrolled state is also fully white (override any rgba rules) */
[data-theme="light"] .navbar.scrolled {
    background: #ffffff !important;
    box-shadow: 0 3px 18px rgba(15,23,42,0.08);
}

[data-theme="light"] .navbar .logo { color: #0b1220; }

[data-theme="light"] .off-screen-menu {
    background: linear-gradient(135deg, #ffffff 0%, #f0f3f6 100%);
}

/* Ensure the off-screen menu close button is visible on white navbar */
[data-theme="light"] .off-screen-menu .menu-close {
    background: transparent;
    border: 2px solid rgba(10,20,30,0.12);
    color: #0b1220;
    display: inline-flex;
}

[data-theme="light"] .off-screen-menu .menu-close:focus {
    outline: 3px solid rgba(10,20,30,0.12);
    outline-offset: 3px;
}

[data-theme="light"] .home {
    background: linear-gradient(135deg,#f5f7fa 0%, #eef3f6 100%);
    color: #0b1220;
}

[data-theme="light"] .about,
[data-theme="light"] .portfolio,
[data-theme="light"] .skills,
[data-theme="light"] .contact,
[data-theme="light"] .certifications {
    background: transparent;
    color: #0b1220;
}

[data-theme="light"] .about-box,
[data-theme="light"] .portfolio-box,
[data-theme="light"] .skill-box,
[data-theme="light"] .cert-box {
    background: #ffffff;
    color: #0b1220;
    border: 1px solid rgba(10,20,30,0.06);
    box-shadow: 0 8px 30px rgba(15,23,42,0.04);
}

[data-theme="light"] .btn {
    background-color: cadetblue;
    color: white;
    border-color: cadetblue;
}

[data-theme="light"] .home-info h1,
[data-theme="light"] .portfolio h2,
[data-theme="light"] .about h2 { color: #0b1220; }

[data-theme="light"] .home-img .img-box::before,
[data-theme="light"] .home-img .img-box::after,
[data-theme="light"] .home-img .img-box .ring { filter: none; }

/* Toggle button appearance when light */
[data-theme="light"] .theme-toggle { background: #fff; color: #0b1220; border-color: rgba(10,20,30,0.06); }

/* Pull-cord styles */
.pull-cord {
    position: absolute;
    right: 110px; /* sits left of hamburger */
    top: 12px;
    width: 24px;
    height: 44px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: pointer;
    z-index: 210;
}

.pull-cord .cord-line {
    position: absolute;
    top: 6px;
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.3));
    border-radius: 2px;
    transition: background 200ms ease, height 200ms ease;
}

.pull-cord .cord-knob {
    position: absolute;
    top: 34px;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transform: translateY(0);
    transition: transform 220ms cubic-bezier(.2,.9,.2,1), background 200ms ease;
}

/* Pulled state */
.pull-cord.pulled .cord-knob { transform: translateY(22px); }
.pull-cord.pulled .cord-line { height: 48px; }

/* Light theme variations (so cord is visible on white navbar) */
[data-theme="light"] .pull-cord .cord-line {
    background: linear-gradient(180deg, rgba(10,20,30,0.12), rgba(10,20,30,0.28));
}

[data-theme="light"] .pull-cord .cord-knob {
    background: #0b1220;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Make sure pull-cord repositions on small screens (avoid overlapping with menu) */
@media (max-width: 480px) {
    .pull-cord { right: 92px; top: 10px; }
}

@media (max-width: 360px) {
    .pull-cord { right: 76px; }
}

.navbar .logo:hover {
    transform: scale(1.05);
    color: cadetblue;
}

/* Hamburger Menu */
.ham-menu {
    height: 50px;
    width: 40px;
    position: relative;
    cursor: pointer;
    z-index: 202;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.ham-menu span {
    height: 3px;
    width: 100%;
    background-color: #6F86FF;
    border-radius: 25px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.ham-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: white;
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.ham-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: white;
}

/* Off-screen Mobile Menu */
.off-screen-menu {
    background: linear-gradient(135deg, #1f241f 0%, #2a2f2a 100%);
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top: 0;
    right: -450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 200;
    backdrop-filter: blur(20px);
}

/* Close button inside the off-screen menu */
.off-screen-menu .menu-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.06);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    display: none; /* shown when menu active */
    align-items: center;
    justify-content: center;
}

.off-screen-menu.active .menu-close {
    display: inline-flex;
}

.off-screen-menu .menu-close:focus {
    outline: 3px solid rgba(95,158,160,0.2);
    outline-offset: 3px;
}

.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.off-screen-menu ul li {
    margin: 30px 0;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.off-screen-menu.active ul li {
    opacity: 1;
    transform: translateX(0);
    animation: slideInFromRight 0.6s ease forwards;
    animation-delay: calc(0.1s * var(--i));
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.off-screen-menu ul li a {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.off-screen-menu ul li a:hover,
.off-screen-menu ul li a.active {
    color: cadetblue;
    transform: scale(1.1);
    text-shadow: 0 0 20px rgba(95, 158, 160, 0.5);
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    gap: 50px;
    min-height: 100vh;
    padding: 60px 9% 0;
    background: linear-gradient(135deg, #1f241f 0%, #2a2f2a 100%);
    color: white;
}

.home-info {
    flex: 1;
}

.home-info h1 {
    font-size: 55px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, cadetblue);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.5s both;
}

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

.home-info h2 {
    display: inline-block;
    font-size: 32px;
    margin-top: -10px;
}

.home-info h2 span {
    position: relative;
    display: inline-block;
    color: transparent;
    -webkit-text-stroke: .7px cadetblue;
    animation: display-text 12s linear infinite;
    animation-delay: calc(-3s * var(--i));
}

@keyframes display-text {
    25%, 100% {
        display: none;
    }
}

.home-info h2 span::before {
    content: attr(data-text);
    position: absolute;
    width: 0;
    border-right: 2px solid cadetblue;
    color: cadetblue;
    white-space: nowrap;
    overflow: hidden;
    animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
    10%, 100% {
        width: 0;
    }

    70%, 90% {
        width: 100%;
    }
}

.home-info h3 {
    font-size: 24px;
    margin: 20px 0 30px;
    color: #ddd;
    animation: fadeInUp 1s ease 0.7s both;
}

.home-info .btn-sci {
    display: flex;
    align-items: center;
    animation: fadeInUp 1s ease 0.9s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: cadetblue;
    border: 2px solid cadetblue;
    border-radius: 40px;
    box-shadow: 0 0 20px rgba(95, 158, 160, 0.3);
    font-size: 16px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: transparent;
    color: cadetblue;
    border: 2px solid cadetblue;
    box-shadow: 0 0 30px rgba(95, 158, 160, 0.6);
    transform: translateY(-3px);
}

.home-info .btn-sci .sci {
    margin-left: 20px;
    display: flex;
    gap: 15px;
}

.home-info .btn-sci .sci a {
    display: inline-flex;
    padding: 10px;
    border: 2px solid cadetblue;
    border-radius: 50%;
    font-size: 20px;
    color: cadetblue;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.home-info .btn-sci .sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: cadetblue;
    transition: width 0.3s ease;
    z-index: -1;
}

.home-info .btn-sci .sci a:hover::before {
    width: 100%;
}

.home-info .btn-sci .sci a:hover {
    color: #1f241f;
    box-shadow: 0 0 20px rgba(95, 158, 160, 0.5);
    transform: translateY(-3px) scale(1.1);
}

/* Home Image */
.home-img .img-box {
    position: relative;
    width: 28vw;
    height: 28vw;
    /* background-color: white; */
    border-radius: 50%;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Outer ring (thinner, slightly larger) */
.home-img .img-box::before {
    /* second-outer ring (start at 0deg phase) */
    width: 720px;
    height: 720px;
    background: conic-gradient(from 0deg, rgba(95,158,160,0.95) 0deg, rgba(95,158,160,0.45) 20deg, rgba(95,158,160,0.12) 60deg, transparent 100%);
    box-shadow: 0 0 24px rgba(95,158,160,0.22);
    animation: rotate-border 8s linear infinite;
    animation-direction: normal;
}

/* Inner ring (slightly smaller) with different phase for depth */
.home-img .img-box::after {
    /* innermost ring (start at 180deg phase) */
    width: 640px;
    height: 640px;
    background: conic-gradient(from 180deg, rgba(95,158,160,0.8) 0deg, rgba(95,158,160,0.35) 18deg, rgba(95,158,160,0.08) 55deg, transparent 100%);
    box-shadow: 0 0 14px rgba(95,158,160,0.16);
    opacity: 0.9;
    animation: rotate-border 8s linear infinite;
    animation-direction: normal;
}

/* Additional ring elements inserted into the HTML for richer multi-ring effect */
.home-img .img-box .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center center;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    /* unified duration so all rings rotate in the same time frame */
    animation: rotate-border 8s linear infinite;
    animation-direction: normal;
}

.home-img .img-box .ring.ring-1 {
    /* outermost ring (start at 90deg phase) */
    width: 760px;
    height: 760px;
    background: conic-gradient(from 90deg, rgba(95,158,160,0.85) 0deg, rgba(95,158,160,0.4) 22deg, rgba(95,158,160,0.08) 55deg, transparent 100%);
    box-shadow: 0 0 26px rgba(95,158,160,0.14);
    animation-duration: 8s;
    animation-direction: normal;
}

.home-img .img-box .ring.ring-2 {
    /* third ring (start at 270deg phase) */
    width: 680px;
    height: 680px;
    background: conic-gradient(from 270deg, rgba(95,158,160,0.7) 0deg, rgba(95,158,160,0.35) 20deg, rgba(95,158,160,0.06) 50deg, transparent 100%);
    box-shadow: 0 0 18px rgba(95,158,160,0.12);
    animation-duration: 8s;
    animation-direction: normal;
    opacity: 0.95;
}

/* Put the img-item above decorative rings */
.home-img .img-box .img-item { z-index: 2; }

@keyframes rotate-border {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.home-img .img-box .img-item {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #1f241f;
    border-radius: 50%;
    border: .1px solid #1f241f;
    display: flex;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.home-img .img-box .img-item img {
    position: absolute;
    top: 0;
    left: 0;
    /* display: block; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: lighten;
    transform-origin: center;
    will-change: transform, filter;
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), filter 320ms ease;
    /* gentle floating animation */
    animation: float-y 6s ease-in-out infinite;


/* subtle hover/tilt effect when user hovers the image */
.home-img .img-box:hover .img-item img {
    transform: translateY(-8px) rotate(-2deg) scale(1.02);
    filter: drop-shadow(0 12px 24px rgba(0,0,0,0.45));
}

@keyframes float-y {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-8px) rotate(-1deg) scale(1.01); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
/* Portfolio toggle styles */
}

/* Style the project title as a button */
.project-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    color: #fff;
    border: none;
    padding: 10px 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
}

.project-toggle:focus {
    outline: 3px solid rgba(95,158,160,0.25);
    outline-offset: 3px;
}

.project-toggle[aria-expanded="true"] {
    color: cadetblue;
}

/* Hidden details */
.project-details {
    margin-top: 10px;
    color: #dcdcdc;
    transition: max-height 0.28s ease, opacity 0.2s ease;
    overflow: hidden;
}

.project-details[hidden] {
    display: none;
}

/* Slight visual when box is open */
.portfolio-box.open {
    box-shadow: 0 6px 30px rgba(0,0,0,0.6);
    transform: translateY(-3px);
}

/* Certifications toggle styles - reuse similar styling as portfolio toggles */
.cert-toggle {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
}

.cert-toggle:focus {
    outline: 3px solid rgba(95,158,160,0.25);
    outline-offset: 3px;
}

.cert-toggle[aria-expanded="true"] {
    color: cadetblue;
}

.cert-details {
    margin-top: 8px;
    color: #dcdcdc;
    transition: max-height 0.28s ease, opacity 0.2s ease;
    overflow: hidden;
}

.cert-details[hidden] {
    display: none;
}

.cert-box.open {
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}


/* About Section */
.about {
    padding: 80px 9%;
    background: linear-gradient(135deg, #1f241f 0%, #2a2f2a 100%);
    color: white;
}

.about h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: cadetblue;
    text-align: center;
    position: relative;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: cadetblue;
    border-radius: 2px;
}

.about > p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ddd;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.about-box {
    background: rgba(42, 47, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(95, 158, 160, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 158, 160, 0.1), transparent);
    transition: left 0.5s;
}

.about-box:hover::before {
    left: 100%;
}

.about-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(95, 158, 160, 0.3);
}

.about-box h3 {
    font-size: 24px;
    color: cadetblue;
    margin-bottom: 15px;
}

.about-box p,
.about-box ul {
    font-size: 16px;
    line-height: 1.8;
    color: #ddd;
}

.about-box ul {
    list-style: none;
    padding-left: 0;
}

.about-box ul li {
    margin-bottom: 20px;
    padding-left: 20px;
    position: relative;
}

.about-box ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: cadetblue;
    font-weight: bold;
}

.about-box ul li strong {
    color: white;
    display: block;
    margin-bottom: 5px;
}

.about-box ul li span {
    color: #aaa;
    font-size: 14px;
    display: block;
    margin-bottom: 3px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 9%;
    background: #1f241f;
    color: white;
    text-align: center;
}

.portfolio h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: cadetblue;
    position: relative;
}

.portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: cadetblue;
    border-radius: 2px;
}

.portfolio p {
    font-size: 18px;
    margin-bottom: 50px;
    color: #ddd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.portfolio-box {
    background: rgba(42, 47, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(95, 158, 160, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 158, 160, 0.1), transparent);
    transition: left 0.5s;
}

.portfolio-box:hover::before {
    left: 100%;
}

.portfolio-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(95, 158, 160, 0.3);
}

.portfolio-box h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: cadetblue;
}

.portfolio-box .category {
    font-size: 14px;
    color: #aaa;
    display: block;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.portfolio-box p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #ddd;
    line-height: 1.6;
}

.portfolio-box h4 {
    font-size: 18px;
    margin: 15px 0 10px;
    color: cadetblue;
}

.tech-list,
.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.tech-list li,
.feature-list li {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #ccc;
}

.tech-list li::before,
.feature-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: cadetblue;
    font-weight: bold;
}

.portfolio-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.portfolio-links .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Skills Section */
.skills {
    padding: 80px 9%;
    background: linear-gradient(135deg, #2a2f2a 0%, #1f241f 100%);
    color: white;
    text-align: center;
}

.skills h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: cadetblue;
    position: relative;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: cadetblue;
    border-radius: 2px;
}

.skills p {
    font-size: 18px;
    margin-bottom: 50px;
    color: #ddd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-box {
    background: rgba(42, 47, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(95, 158, 160, 0.1);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.skill-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 158, 160, 0.1), transparent);
    transition: left 0.5s;
}

.skill-box:hover::before {
    left: 100%;
}

.skill-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(95, 158, 160, 0.3);
}

.skill-box h3 {
    font-size: 24px;
    color: cadetblue;
    margin-bottom: 20px;
}

.skill-box ul {
    list-style: none;
    padding-left: 0;
}

.skill-box ul li {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ddd;
    padding-left: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.skill-box ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: cadetblue;
    font-weight: bold;
}

.skill-box ul li:hover {
    color: white;
    transform: translateX(5px);
}


/* === Certifications Section === */
.certifications {
    padding: 80px 9%;
    background: linear-gradient(135deg, #1f241f 0%, #2a2f2a 100%);
    color: white;
    text-align: center;
}

.certifications h2 {
    font-size: 40px;
    margin-bottom: 20px;
    color: cadetblue;
    position: relative;
}

.certifications h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: cadetblue;
    border-radius: 2px;
}

.certifications p {
    font-size: 18px;
    margin-bottom: 50px;
    color: #ddd;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.cert-box {
    background: rgba(42, 47, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(95, 158, 160, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Moving gradient effect */
.cert-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 158, 160, 0.15), transparent);
    transition: left 0.5s;
}

.cert-box:hover::before {
    left: 100%;
}

.cert-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(95, 158, 160, 0.3);
}

.cert-box h3 {
    font-size: 22px;
    color: cadetblue;
    margin-bottom: 8px;
}

.cert-box span {
    font-size: 14px;
    color: #aaa;
    display: block;
    margin-bottom: 15px;
}

.cert-box p {
    font-size: 16px;
    color: #ddd;
    line-height: 1.6;
}



/* Contact Section */
.contact {
    padding: 80px 9%;
    background: #1f241f;
    color: white;
    text-align: center;
}

.contact h2 {
    font-size: 40px;
    color: cadetblue;
    margin-bottom: 20px;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: cadetblue;
    border-radius: 2px;
}

.contact p {
    font-size: 18px;
    margin-bottom: 50px;
    color: #ddd;
}

.contact-container {
    display: flex;
    gap: 50px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 16px;
    padding: 15px;
    background: rgba(42, 47, 42, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.info-item:hover {
    background: rgba(42, 47, 42, 0.8);
    border-color: rgba(95, 158, 160, 0.3);
    transform: translateY(-3px);
}

.info-item i {
    font-size: 24px;
    color: cadetblue;
    min-width: 30px;
}

.info-item a {
    color: #ddd;
    transition: color 0.3s;
}

.info-item a:hover {
    color: cadetblue;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid rgba(95, 158, 160, 0.3);
    border-radius: 10px;
    background: rgba(42, 47, 42, 0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    outline: none;
    resize: none;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: cadetblue;
    background: rgba(42, 47, 42, 0.8);
    box-shadow: 0 0 20px rgba(95, 158, 160, 0.2);
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}

/* Scroll reveal animations */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: slideInFromBottom 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 5%;
    }
    
    .home,
    .about,
    .portfolio,
    .skills,
    .contact {
        padding: 60px 5%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .navbar .logo {
        font-size: 20px;
    }
    
    .home {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        gap: 30px;
    }
    
    .home-info h1 {
        font-size: 40px;
    }
    
    .home-info h2 {
        font-size: 24px;
        height: 30px;
    }
    
    .typing-text {
        font-size: 24px;
    }
    
    .home-info h3 {
        font-size: 18px;
    }
    
    .home-info .btn-sci {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .home-img .img-box {
        width: 60vw;
        height: 60vw;
        min-width: 250px;
        min-height: 250px;
    }

    /* Move the image up so it fits fully on shorter mobile screens */
    .home-img {
        margin-top: -18vh;
    }

    /* ensure the home container shows the pulled-up image */
    .home {
        overflow: visible;
    }
    
    .about h2,
    .portfolio h2,
    .skills h2,
    .contact h2 {
        font-size: 32px;
    }
    
    .about > p,
    .portfolio p,
    .skills p,
    .contact p {
        font-size: 16px;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-box {
        padding: 20px;
    }
    
    .portfolio-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .portfolio-links .btn {
        text-align: center;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-box {
        padding: 20px;
    }
    
    .about-box {
        padding: 20px;
    }
    
    .about-box h3 {
        font-size: 20px;
    }
    
    .about-box p,
    .about-box ul li {
        font-size: 14px;
    }
    
    .contact-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .info-item {
        justify-content: center;
        text-align: left;
    }
    
    .contact-form .btn {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .home-info h1 {
        font-size: 32px;
    }
    
    .home-info h2 {
        font-size: 20px;
        height: 25px;
    }
    
    .typing-text {
        font-size: 20px;
    }
    
    .home-info h3 {
        font-size: 16px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .home-info .btn-sci .sci a {
        padding: 8px;
        font-size: 16px;
    }
    
    .home-img .img-box {
        width: 70vw;
        height: 70vw;
        min-width: 200px;
        min-height: 200px;
    }
    /* a bit more lift on very small screens */
    .home-img {
        margin-top: -26vh;
    }
    
    .about h2,
    .portfolio h2,
    .skills h2,
    .contact h2 {
        font-size: 28px;
    }
    
    .navbar {
        padding: 10px 3%;
    }
    
    .home,
    .about,
    .portfolio,
    .skills,
    .contact {
        padding: 40px 3%;
    }
    
    .portfolio-box,
    .skill-box,
    .about-box {
        padding: 15px;
    }
    
    .off-screen-menu ul li a {
        font-size: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.off-screen-menu ul li a:focus,
.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid cadetblue;
    outline-offset: 2px;
}

/* Fade-in the whole image box like other home elements */
.home-img .img-box {
    animation: fadeInUp 1s ease 0.6s both;
}