:root {
    --bg: #0f1221;
    --bg-alt: #121735;
    --card: rgba(255, 255, 255, 0.06);
    --card-solid: #ffffff;
    --text: #e9ecf1;
    --muted: #a8b0c3;
    --accent: #ff6600;
    --accent-2: #7c5cff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 14px;
    --shadow-sm: 0 2px 12px rgba(0, 0, 0, .12);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .35);
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

/* Topbar styles */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 18, 33, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.topbar .brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text);
}

.topbar .brand img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.topbar nav {
    display: flex;
    gap: 20px;
}

.topbar nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.topbar nav a:hover {
    color: var(--accent);
}

.topbar .sidenav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 992px) {
    .topbar nav {
        display: none;
    }

    .topbar .sidenav-toggle {
        display: block;
    }

    .sidenav.open {
        width: 100%;
        background: rgba(18, 23, 53, 0.98);
    }
}

.cover-image {
    background-image: linear-gradient(rgba(10, 12, 28, 0.6), rgba(10, 12, 28, 0.6)), url("../img/pexels-fauxels-3183198.jpg");
    min-height: 92vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding-top: 72px;
    margin-left: 0 !important;
}

/* Light theme soft overlay on hero to reduce darkness */
body.theme-light .cover-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .2));
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
    pointer-events: none;
    z-index: 1;
}

.cover-text {
    position: absolute;
    inset: auto auto 10% 50%;
    transform: translateX(-50%);
    color: #fff;
    max-width: 780px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cover-content {
    text-align: center;
}

body.theme-light .cover-text {
    color: var(--text);
}

body.theme-light .cover-text h1 {
    color: var(--text);
}

.profile-pic-landing {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-image: url('../img/pro-pic.jpg');
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
    border: 4px solid rgba(255, 255, 255, .3);
    box-shadow: var(--shadow-md);
}

body.theme-light .profile-pic-landing {
    border-color: rgba(0, 0, 0, .2);
}

.cover-text-title>h3 {
    font-weight: 500;
    color: #e7e9f0;
}

body.theme-light .cover-text-title>h3 {
    color: var(--muted);
}

.cover-text-title:hover {
    color: #fff;
    text-shadow: 0 2px 24px rgba(255, 102, 0, .35);
    cursor: default;
}

.logo-text {
    cursor: pointer;
    padding-left: 10px;
    color: #fff;
}

.fa-brands {
    padding: 10px;
    font-size: 18px;
    width: 40px;
    height: 40px;
    text-align: center;
    text-decoration: none;
    margin: 5px 8px 5px 0;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.fa-brands:hover,
.fa-solid:hover {
    transform: translateY(-2px);
    opacity: .9;
    cursor: pointer;
    transition: .2s ease;
}

.fa-facebook-f {
    background: #3b5998;
    color: white;
}

.fa-x-twitter {
    background: #000;
    color: white;
}

.fa-whatsapp {
    background: #25D366;
    color: white;
}

.fa-linkedin-in {
    background: #0072b1;
    color: white;
}

.fa-instagram {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.fa-github {
    background: #171515;
    color: white;
}

.interest {
    width: 220px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.interest:hover {
    transform: scale(1.05);
}

.interest .card-title {
    font-weight: bold;
}

.interest i {
    font-size: 32px;
    margin: 10px;
    color: var(--text);
    transition: color 0.3s ease;
}

.interest i:hover {
    color: #ff6600;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    cursor: pointer;
    transition: .3s ease;
}

/* Ensure all Bootstrap cards match the dark theme and have readable text */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)) !important;
    color: var(--text) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: var(--radius) !important;
}

.card *:not(a) {
    color: inherit;
}

.card a {
    color: #fff;
}

.card a:hover {
    color: var(--accent);
}

/* Link colors inside cards in light theme */
body.theme-light .card a {
    color: var(--accent);
}

body.theme-light .card a:hover {
    color: #000;
}

.section-1 {
    background: transparent;
}

.section-2 {
    background: transparent;
}

.section-3 {
    background: transparent;
}

.section-4 {
    background: transparent;
}

.section-5 {
    background: transparent;
}

.section-6 {
    background: transparent;
}

.section-7 {
    background: transparent;
}

.section-8 {
    background: transparent;
}

.section-9 {
    background: transparent;
}

.section-8-creative {
    background: transparent;
}


.personal-skills,
.professional-skills {
    margin-bottom: 20px;
}

.skill-container h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

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

.skill-container li {
    margin-bottom: 15px;
}

.skill-container .skill-name {
    display: block;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text);
}

.skill-container .progress-bar {
    background-color: rgba(255, 255, 255, .12);
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}

.skill-container .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
    animation: progress-animation 1s ease-in-out;
}

@keyframes progress-animation {
    from {
        width: 0;
    }
}

.skill-container li:hover .progress {
    animation: none;
    background-color: #ff6600;
}

/* removed overriding background-image to keep accent-based gradient */

.sidenav {
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(18, 23, 53, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 0;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
    transform: translateX(-100%);
    z-index: 1001;
    overflow-x: hidden;
    box-shadow: var(--shadow-lg);
}

.sidenav-close {
    position: absolute;
    top: 10px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1002;
}

.sidenav a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .3px;
    transition: color 0.2s ease;
    padding: 10px 16px 10px 28px;
}

.sidenav a {
    position: relative;
}

.sidenav a:hover {
    color: var(--accent);
}

.sidenav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.sidenav a:hover::after {
    transform: scaleX(1);
}

.cover-image {
    transition: margin-left .5s;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .sidenav-toggle {
        display: block;
    }

    .sidenav.open {
        transform: translateX(0);
        background: rgba(18, 23, 53, 0.98);
    }
}

.expertise-container {
    margin-top: 20px;
}

.expertise-title {
    text-align: center;
}

.expertise-title h5 {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    margin: 20px 0;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
}

.expertise-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    backdrop-filter: blur(6px);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.expertise-list li:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.expertise-list li i {
    font-size: 20px;
    color: var(--text);
}

.expertise-list li span {
    font-size: 14px;
    color: var(--text);
}

@media (max-width: 576px) {
    .expertise-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }

    .expertise-card {
        padding: 15px;
    }
}

.professional-profile-cv-download .btn-primary {
    background-color: #ff6f61;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.professional-profile-cv-download .btn-primary:hover {
    background-color: #000000;
}

@media (max-width: 768px) {
    .professional-profile-cv-download .btn-primary {
        padding: 8px 16px;
        font-size: 14px;
    }
}

.experience-timeline,
.education-timeline {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 20px 0;
}

.experience-timeline::after,
.education-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.experience-timeline::after {
    background-color: rgba(255, 255, 255, .08);
}

.education-timeline::after {
    background-color: rgba(255, 255, 255, .08);
}

.experience-timeline-container,
.education-timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.experience-timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: #f5f5f5;
    border: 4px solid #e65245;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.education-timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -13px;
    background-color: #fff;
    border: 4px solid #e65245;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.experience-timeline-container::after {
    background-color: #f5f5f5;
}

.education-timeline-container::after {
    background-color: #ffffff;
}

.experience-timeline>.left,
.education-timeline>.left {
    left: 0;
}

.experience-timeline>.right,
.education-timeline>.right {
    left: 50%;
}

.experience-timeline>.right::after,
.education-timeline>.right::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    left: -13px;
}

.experience-timeline-content {
    padding: 20px 30px;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border-radius: var(--radius);
    transition: all 0.3s ease-in;
}

/* Collapsible long text in experience items */
.experience-timeline-content .collapsible {
    position: relative;
    overflow: hidden;
    transition: max-height .35s ease;
}

.experience-timeline-content .collapsible.is-collapsed {
    max-height: 220px;
}

.experience-timeline-content .collapsible.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(18, 23, 53, 0), rgba(18, 23, 53, .85));
    pointer-events: none;
}

.experience-timeline-content .expand-toggle {
    margin-top: 10px;
    font-size: 14px;
    padding: 8px 14px;
}

.education-timeline-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    padding: 20px 30px;
    position: relative;
    border-radius: var(--radius);
    transition: all 0.3s ease-in;
}

.experience-timeline-content:hover,
.education-timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media screen and (max-width: 600px) {

    .experience-timeline::after,
    .education-timeline::after {
        left: 31px;
    }

    .experience-timeline-container,
    .education-timeline-container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .experience-timeline>.left::after,
    .experience-timeline>.right::after,
    .education-timeline>.left::after,
    .education-timeline>.right::after {
        left: 15px;
    }

    .experience-timeline>.right,
    .education-timeline>.right {
        left: 0%;
    }
}

.experience-timeline-content h3,
.education-timeline-content h3 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.experience-timeline-content h4,
.education-timeline-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent);
}

.experience-timeline-content h6,
.education-timeline-content h6 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
    color: var(--muted);
}

.experience-timeline-content ul,
.education-timeline-content ul {
    padding-left: 20px;
    list-style: none;
}

.experience-timeline-content ul li,
.education-timeline-content ul li {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.2;
    position: relative;
    padding-left: 30px;
}

.experience-timeline-content ul li:before,
.education-timeline-content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 8px;
    background-color: #e65245;
    border-radius: 50%;
}

/* Style nested uls differently */
.experience-timeline-content ul ul,
.education-timeline-content ul ul {
    padding-left: 25px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.experience-timeline-content ul ul li:before,
.education-timeline-content ul ul li:before {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 0;
}

.profile-pic {
    width: 140px;
    height: 140px;
    margin: 20px;
    border-radius: 50%;
    background-image: url('../img/pro-pic.jpg');
    background-size: cover;
    transition: transform 0.3s ease-in;
    border: 2px solid rgba(255, 255, 255, .25);
    box-shadow: var(--shadow-sm);
}

.profile-pic:hover {
    transform: scale(1.1);
    border: 4px solid #ff6600;
    cursor: pointer;
}

.h3 {
    position: relative;
    display: inline-block;
}

.h3:hover {
    color: var(--accent);
    cursor: pointer;
}

.h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease-in-out;
}

.h3:hover::after {
    transform: scaleX(1);
}

.sub-title {
    font-weight: 500;
    font-size: 15px;
    margin: 5px 0;
}

.second-sub-title {
    font-weight: 400;
    font-size: 14px;
    color: #888888;
}

#portfolio {
    text-align: center;
    padding: 30px 0;
}

#portfolio h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.filter {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.filter-btn {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(6px);
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.filter-btn.active {
    font-weight: 700;
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 102, 0, .25) inset;
}

.section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

@media (max-width: 576px) {
    .section {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
}

.project {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, .0), rgba(0, 0, 0, .65));
    backdrop-filter: blur(2px);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity .25s ease;
    padding: 16px;
}

.project:hover .overlay {
    opacity: 1;
}

.project .overlay i {
    font-size: 32px;
    color: #fff;
    transition: transform 0.25s ease;
}

.project:hover .overlay i {
    transform: scale(1.2);
}

.section h3 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #fff;
}

.section-description {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-cards-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .contact-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
        max-width: 400px;
    }
}

.contact-card {
    flex: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(255, 255, 255, .02));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-bottom: 30px;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
    transition: color 0.25s ease;
}

.card-icon:hover {
    color: var(--accent);
    cursor: pointer;
}

.contact-card-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.card-description {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border: none;
    border-radius: 999px;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 18px rgba(255, 102, 0, .35);
}

.card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 102, 0, .45);
    color: #fff;
}

.section-10 {
    background: #0b0e1d;
    color: #fff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
}

#footerText {
    font-size: 18px;
}

#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(255, 102, 0, .45);
    transition: transform .2s ease, opacity .2s ease;
}

#backToTopBtn i {
    margin-top: 7px;
}

#backToTopBtn:hover {
    transform: translateY(-2px);
}

#backToTopBtn.show {
    display: block;
}

@keyframes fade-in-slide-left {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-slide-left {
    animation: fade-in-slide-left 3s;
}

@keyframes fade-in-slide-right {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-slide-right {
    animation: fade-in-slide-right 3s;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.contact-form-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Disabled certificate link styling */
.certificate-link.disabled {
    opacity: .6;
    pointer-events: none;
    cursor: default;
}

.form-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    border-radius: 12px;
}

.form-input textarea {
    height: 120px;
    resize: vertical;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 102, 0, .7);
    box-shadow: 0 0 0 3px rgba(255, 102, 0, .2);
}

.form-input::placeholder {
    color: #999;
}

.form-button {
    padding: 10px 20px;
    margin: 0 5px 0 5px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 18px rgba(255, 102, 0, .35);
}

.contact-form-container:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 102, 0, .45);
}

.form-button:active {
    transform: translateY(0);
}

/* Utility buttons */
.btn-pill {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary-grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 8px 22px rgba(255, 102, 0, .35);
}

.btn-primary-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 102, 0, .45);
}

.btn-outline-light {
    background: rgba(255, 255, 255, .08);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, .16);
}

/* Scroll progress bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    box-shadow: 0 6px 12px rgba(255, 102, 0, .35);
    z-index: 99999;
}

/* Hero responsive alignment */
@media (max-width: 768px) {
    .cover-text {
        inset: auto 5% 8% 5%;
        transform: none;
        text-align: center;
    }

    .cover-text h1 {
        font-size: 2rem;
    }

    .cover-text h3 {
        font-size: 1.5rem;
    }

    .social-media-links {
        display: flex;
        justify-content: center;
    }

    .profile-pic-landing {
        width: 120px;
        height: 120px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .cover-text {
        bottom: 5%;
    }

    .cover-text h1 {
        font-size: 1.8rem;
    }

    .cover-text h3 {
        font-size: 1.3rem;
    }

    .topbar .brand span {
        display: none;
    }

    .topbar .brand img {
        width: 24px;
        height: 24px;
    }
}

/* Section separators */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .25), rgba(255, 255, 255, .05));
    margin: 12px 0 24px 0;
}

body.theme-light hr {
    background: linear-gradient(90deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .08), rgba(0, 0, 0, .04));
}

/* Topbar (fixed header) */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(18, 23, 53, 0.25);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background .2s ease, box-shadow .2s ease;
}

.topbar.scrolled {
    background: rgba(18, 23, 53, 0.75);
    box-shadow: var(--shadow-sm);
}

.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
}

.topbar .brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.topbar nav {
    display: flex;
    gap: 16px;
}

.topbar nav a {
    color: #e9ecf1;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

.topbar nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.topbar nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.topbar .topbar-actions {
    display: flex;
    gap: 8px;
}

@media (max-width: 992px) {
    .topbar nav {
        display: none;
    }
}

/* Hide old logo row to avoid conflicts with new header */
.logo {
    display: none;
}

/* Theme variants (accent palette) */
body.theme-blue {
    --accent: #3b82f6;
    /* blue */
    --accent-2: #7c5cff;
    /* violet */
}

/* Light theme variant */
body.theme-light {
    --bg: #ffffff;
    --bg-alt: #f8f9fa;
    --text: #212529;
    --muted: #6c757d;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}

/* Background adapts via variables; adjust common glass surfaces for light */
body.theme-light .card,
body.theme-light .contact-card,
body.theme-light .experience-timeline-content,
body.theme-light .education-timeline-content,
body.theme-light .filter-btn,
body.theme-light .contact-form {
    background: linear-gradient(180deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .02)) !important;
    color: var(--text) !important;
    border-color: rgba(0, 0, 0, .08) !important;
}

body.theme-light .form-input {
    background: rgba(0, 0, 0, .04);
    border-color: rgba(0, 0, 0, .12);
    color: var(--text);
}

body.theme-light .btn-outline-light {
    background: rgba(0, 0, 0, .06);
    color: var(--text);
}

body.theme-light .btn-outline-light:hover {
    background: rgba(0, 0, 0, .12);
}

/* Sidenav and topbar in light theme */
body.theme-light .sidenav {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
}

body.theme-light .sidenav a {
    color: var(--text);
}

body.theme-light .sidenav a:hover {
    color: var(--accent);
}

body.theme-light .topbar {
    background: rgba(255, 255, 255, 0.95);
}

body.theme-light .topbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

body.theme-light .topbar .brand,
body.theme-light .topbar nav a {
    color: var(--text);
}

body.theme-light .topbar nav a:hover {
    color: #111;
    background: rgba(0, 0, 0, .06);
}

body.theme-light .profile-pic-landing {
    border-color: rgba(0, 0, 0, .2);
}

/* Contact card text/icon contrast in light theme */
body.theme-light .card-icon {
    color: var(--text);
}

body.theme-light .contact-card-title {
    color: var(--text);
}

body.theme-light .card-description {
    color: var(--muted);
}

/* Collapsible fade for light surfaces */
body.theme-light .experience-timeline-content .collapsible.is-collapsed::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .92));
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .cover-text {
        bottom: 5%;
        /* Bring details higher on mobile */
    }

    .profile-pic-landing {
        width: 200px;
        height: 200px;
    }

    .cover-text-title h1 {
        font-size: 1.8rem;
    }

    .cover-text-title h3 {
        font-size: 1.2rem;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text);
}

.bento-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bento-card h4 i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 10px;
}

.bento-large {
    grid-column: span 2;
}

.bento-accent {
    background: var(--accent-primary);
    border: none;
}

.bento-accent h3 {
    color: white;
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    color: rgba(255, 255, 255, 0.9);
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 0.8rem;
}

.expertise-list li:last-child {
    border-bottom: none;
}

@media (max-width: 1100px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .portfolio-grid,
    #portfolio-container .section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

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

    .bento-large {
        grid-column: span 2;
    }

    .creative-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }

    .bento-card {
        padding: 22px;
    }

    .tech-tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.tech-tag {
    background: rgba(255, 102, 0, 0.08);
    border: 1px solid rgba(255, 102, 0, 0.15);
    color: #f5f5f5;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.tech-tag:hover {
    background: rgba(255, 102, 0, 0.15);
    border-color: rgba(255, 102, 0, 0.3);
    transform: translateY(-2px);
}