/*--- --- --- Google Fonts --- ---- --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@100..700&family=Roboto:wght@100..900&display=swap');


/*--- --- --- Css Variables --- ---- --- */
:root {
    /*--- --- ---Colors --- --- ---*/

    /* M4 - brand palette in OKLCH. These two are the exact equivalents of the
       hex values they replaced (verified round-trip), so nothing shifts on an
       sRGB screen; on a P3 display they can resolve a little more saturated,
       which is the reason for the format. Derived steps use color-mix in the
       same space so lightness moves perceptually rather than numerically. */
    --brand: oklch(61.70% 0.1905 270.20);            /* was #5B78F6 */
    --brand-light: oklch(70.96% 0.1507 268.94);      /* was #7B9BFF */
    --brand-hover: color-mix(in oklch, var(--brand) 85%, white);
    --brand-dim: color-mix(in oklch, var(--brand) 60%, var(--background-color));
    --brand-ring: color-mix(in oklch, var(--brand) 70%, transparent);

    --text-color: #a1a1a1;
    --text-W-color: #fff;
    --bright-text-color: #86C232;
    --bg-color: #fff;
    --text-para-color: #acafb3;
    --text-para-color2: #999da0;
    --hover-color: #2b2a2a;
    --text-color-alt: #999;
    --black-color: #000;
    --hr-color: #cccccc;
    --background-color: #0F0F0F !important;
    --geist-foreground-rgb: 255, 255, 255;
    --bg-color3: rgba(255, 255, 255, 0.158);

    /*--- --- ---Font and typography --- --- ---*/
    --roboto-font: 'Roboto', sans-serif;
    --mono-font: 'Roboto Mono', monospace;
    --fs-base: 14px;
    --fs-h1: 2.50rem;

    /*--- --- --- Font Weight --- --- ---*/
    --medium: 500;
    --semibold: 600;
    --bold: 700;

    --linear-gradient: linear-gradient(54deg,
            rgba(45, 45, 45, 0.95) 34%,
            rgba(45, 45, 45, 0.95));

    /* --- --- --- Box shadow --- --- */
    --box-shadow-1: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    --box-shadow-2: 0 .5rem 1rem rgba(143, 142, 142, 0.15) !important;
    --box-shadow-4: 0 1px 29px rgb(0 0 0 /40%);
}


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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    /* Account for fixed header */
}

body,
input,
textarea {
    font-family: var(--roboto-font);
    font-size: var(--fs-base);
}

/* GPU acceleration for animations */
.primary-card,
.hamburger,
.home__social-link {
    will-change: transform;
    backface-visibility: hidden;
}

body {
    font-display: swap;
    /* Improve font loading */
    background: var(--background-color);
    color: var(--bg-color);
    line-height: 19.2px;
    scroll-behavior: smooth;
    font-size: var(--fs-base);
}

h1,
h2,
h3,
h4 {
    font-family: var(--mono-font);
    font-weight: var(--bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

textarea,
input {
    background: none;
    border: none;
}

/* Only suppress the ring for pointer focus; keyboard focus keeps it (Q9). */
textarea:focus:not(:focus-visible),
input:focus:not(:focus-visible) {
    outline: none;
}


/*--- --- --- Reusable Css --- --- --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

.container_contact {
    max-width: 1140px;
    margin: 0 auto;
}

.grid {
    display: grid;
}


/*--- --- --- Preloader Css --- ---- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F0F0F 0%, #1a1a1a 50%, #2a2a2a 100%);
    opacity: 1;
    visibility: visible;
    transition: all 0.25s cubic-bezier(0.77, 0, 0.175, 1);   /* Q18: was 0.6s */
}

.preloader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(91, 120, 246, 0.15) 0%, transparent 70%);
    animation: pulse-bg 3s ease-in-out infinite;
}

.preloader-content {
    text-align: center;
    z-index: 2;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader-text {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.loader-letter {
    font-family: var(--mono-font);
    font-size: 2.5rem;
    font-weight: var(--bold);
    color: var(--brand);
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: letterReveal 0.6s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    text-shadow: 0 0 20px rgba(91, 120, 246, 0.6);
}

.loader-letter:nth-child(1) {
    animation-delay: 0.1s;
}

.loader-letter:nth-child(2) {
    animation-delay: 0.15s;
}

.loader-letter:nth-child(3) {
    animation-delay: 0.2s;
}

.loader-letter:nth-child(4) {
    animation-delay: 0.25s;
}

.loader-letter:nth-child(5) {
    animation-delay: 0.3s;
}

.loader-letter:nth-child(6) {
    animation-delay: 0.35s;
}

.loader-letter:nth-child(7) {
    animation-delay: 0.4s;
}

.loader-letter:nth-child(8) {
    animation-delay: 0.45s;
}

.loader-letter:nth-child(9) {
    animation-delay: 0.5s;
}

.loader-letter:nth-child(10) {
    animation-delay: 0.55s;
}

.loader-letter:nth-child(11) {
    animation-delay: 0.6s;
}

.loader-letter:nth-child(12) {
    animation-delay: 0.65s;
}

.loader-letter:nth-child(13) {
    animation-delay: 0.7s;
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 120, 246, 0.2);
    box-shadow: 0 0 20px rgba(91, 120, 246, 0.1);
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg,
            var(--brand) 0%,
            var(--brand-light) 50%,
            var(--brand) 100%);
    border-radius: 10px;
    width: 0%;
    position: relative;
    overflow: hidden;
    animation: progressGlow 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(91, 120, 246, 0.4);
}

.loader-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 100%);
    animation: shimmer 1.5s infinite linear;
}

.loader-percentage {
    font-family: var(--mono-font);
    font-size: 1.2rem;
    font-weight: var(--semibold);
    color: var(--text-W-color);
    opacity: 0.9;
    min-width: 50px;
    text-shadow: 0 0 10px rgba(91, 120, 246, 0.3);
}

/* Slide reveal panel */
.slide-reveal-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg,
            var(--brand) 0%,
            var(--brand-light) 50%,
            var(--brand) 100%);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);   /* the purple reveal sweep -- deliberately unhurried; it no longer gates LCP */
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 50px rgba(91, 120, 246, 0.3);
}

.slide-reveal-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: panelGlow 2s ease-in-out infinite;
}

/* Add a subtle pattern overlay */
.slide-reveal-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: patternFloat 4s ease-in-out infinite;
}

/* Main content wrapper */
.main-content {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1);   /* fades in behind the panel */
}

/* Animation keyframes */
@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes progressGlow {

    0%,
    100% {
        box-shadow:
            0 0 15px rgba(91, 120, 246, 0.4),
            0 0 30px rgba(91, 120, 246, 0.2);
    }

    50% {
        box-shadow:
            0 0 25px rgba(91, 120, 246, 0.6),
            0 0 50px rgba(91, 120, 246, 0.3);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse-bg {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes panelGlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes patternFloat {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
        opacity: 0.8;
    }
}

/* States for animation control */
.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.slide-reveal-panel.slide-up {
    opacity: 1;
    visibility: visible;
    transform: translateY(0%);
}

.slide-reveal-panel.slide-away {
    transform: translateY(-100%);
}

.main-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .preloader {
        background: linear-gradient(135deg, #0F0F0F 0%, #1a1a1a 50%, #252525 100%);
    }

    .loader-letter {
        font-size: 2rem;
        text-shadow: 0 0 15px rgba(91, 120, 246, 0.5);
    }

    .loader-bar {
        width: 250px;
        border: 1px solid rgba(91, 120, 246, 0.15);
    }

    .loader-percentage {
        font-size: 1rem;
        text-shadow: 0 0 8px rgba(91, 120, 246, 0.3);
    }
}

@media (max-width: 480px) {
    .preloader {
        background: linear-gradient(135deg, #0F0F0F 0%, #1a1a1a 100%);
    }

    .loader-letter {
        font-size: 1.5rem;
        gap: 2px;
        text-shadow: 0 0 12px rgba(91, 120, 246, 0.4);
    }

    .loader-bar {
        width: 200px;
        height: 3px;
    }

    .loader-percentage {
        font-size: 0.9rem;
    }
}

/* Enhanced loading states for better visual feedback */
.loader-container {
    animation: containerPulse 3s ease-in-out infinite;
}

@keyframes containerPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Add a subtle glow effect to the entire preloader */
.preloader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(91, 120, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/*--- --- --- Header Css --- ---- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */
.header {
    top: 0;
    left: 0;
    right: 0;
    padding: 0.3rem 5%;
    z-index: 1000;
    display: flex;
    align-items: center;
    font-family: var(--mono-font);
    justify-content: space-between;
    /* Space between logo and navbar */
}

.header.active {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.178);
    backdrop-filter: blur(2px);
    border-bottom: 0px solid rgba(255, 255, 255, 0.1);
}

.header .logo {
    display: flex;
    align-items: center;
}

.header .logo .icon {
    position: relative;
    display: inline-flex;
    padding: 1rem;
    border-radius: inherit;
    /* Make the border round */
}

.header .logo .icon:before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    /* Make the border round */
    padding: 1px;
    opacity: 0.5;
    pointer-events: none;
}

.header .logo .logo-text {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--bg-color);
    margin-left: 1.5rem;
    /* Adjust spacing between icon and text */
    margin-right: 1.5rem;
    text-shadow: 3px 3px 5px #292929;
}

.header .navbar {
    display: flex;
    justify-content: center;
    /* Center the links within the navbar */
    align-items: center;
    flex-grow: 1;
    /* Allow navbar to grow and take available space */
}

.header .navbar a {
    position: relative;
    color: #676767;
    font-size: 1em;
    font-weight: 400;
    text-decoration: none;
    margin-left: 45px;
    transition: 0.3s ease;
}

.header .navbar a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: 1;
    left: 0;
    transition: 0.3s ease;
}

.header .navbar a:hover {
    color: #fff;
}

.header .navbar a:hover:before {
    width: 100%;
}

.header .navbar #nav-close {
    font-size: 5rem;
    cursor: pointer;
    color: #10221b;
    display: none;
}

/*--- --- --- For Header Responsiveness --- ---- --- */
@media (max-width: 1200px) {
    .header {
        padding: 1rem;
    }

    section {
        padding: 3rem 2rem;
    }

    .header .navbar a {
        margin-left: 5px;
    }

    .logo-text {
        font-size: 1.1em !important;
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
}

@media (max-width: 991px) {
    .navigation__menu {
        font-size: 75%;
        scroll-padding-top: 7rem;
    }

    .logo-text {
        font-size: 1em !important;
        margin-left: 0.8rem !important;
        margin-right: 0.8rem !important;
    }
}

@media (min-width: 769px) {
    .lets-talk-btn {
        background: #323232;
        color: #fff;
        display: inline-block;
        transition: .3s;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 500;
        padding: 12px 30px;
        text-decoration: none;
    }

    .lets-talk-btn:hover {
        background: #fff;
        color: #000;
    }
}

@media (max-width: 768px) {
    .header #menu-btn {
        display: inline-block;
    }

    .header .navbar {
        position: fixed;
        top: 0;
        left: -210%;
        z-index: 10000;
        width: 35rem;
        height: 100%;
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
    }

    .header .navbar.active {
        visibility: visible;
        transform: translateX(300px);
    }

    .header .navbar a {
        margin: 1rem 0;
        font-size: 3rem;
    }

    .header .navbar #nav-close {
        display: block;
        position: absolute;
        top: 1rem;
        right: 2rem;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        display: none;
    }

    .logo-text {
        font-size: 1.2em !important;
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
        text-align: center;
        max-width: 80vw;
        word-break: break-word;
    }

    .lets-talk-btn {
        display: none;
    }

}

@media (max-width: 450px) {
    .navigation__menu {
        font-size: 75%;
    }

    .heading {
        font-size: 3rem;
    }

    .logo-text {
        font-size: 1.3em !important;
        margin-left: 0.2rem !important;
        margin-right: 0.2rem !important;
        text-align: center;
        max-width: 90vw;
        word-break: break-word;
    }
}


/* ------- -- Navigation menu css   ---------    */
.navigation__menu {
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    color: #fff;
    background: rgba(28, 28, 28, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.navigation__menu.open {
    left: 0;
    opacity: 1;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Header - Clean & Simple */
.nav-header {
    padding: 60px 30px 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo .logo-text {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.nav-tagline span {
    font-size: 13px;
    color: #9CA3AF;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Main Navigation - Clean Typography */
.navigation__menu .nav-categories {
    flex: 1;
    padding: 40px 0;
    margin: 0;
    list-style: none;
}

.navigation__menu .nav-categories li {
    display: block;
    margin: 0;
}

.navigation__menu .nav-categories li a {
    display: block;
    width: 100%;
    font-size: 16px;
    color: #BCBCBC;
    padding: 16px 30px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.navigation__menu .nav-categories li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.navigation__menu .nav-categories li a.active {
    color: #fff;
    background: rgba(91, 120, 246, 0.1);
    border-right: 2px solid var(--brand);
}

.navigation__menu .nav-categories li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--brand);
}

/* Simple Separator */
.navigation__menu .nav-separator {
    width: calc(100% - 60px);
    height: 1px;
    margin: 0 30px 30px;
    background: rgba(255, 255, 255, 0.08);
}

/* Social Links - Minimal Design */
.nav-social {
    padding: 0 30px 30px;
}

.social-link {
    display: block;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    font-weight: 400;
    transition: color 0.2s ease;
}

.social-link:hover {
    color: #fff;
}

/* Simple Footer */
.nav-footer {
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.nav-footer span {
    font-size: 12px;
    color: #6B7280;
    font-weight: 400;
}

/* Ensure hamburger accessibility */
.hamburger {
    z-index: 1003 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navigation__menu {
        width: calc(100% - 70px);
        left: calc(-100% + 70px);
        max-width: 300px;
    }

    .navigation__menu.open {
        left: 0;
    }

    .nav-header {
        padding: 50px 25px 25px;
    }

    .navigation__menu .nav-categories {
        padding: 30px 0;
    }

    .navigation__menu .nav-categories li a {
        padding: 14px 25px;
        font-size: 15px;
    }

    .nav-social {
        padding: 0 25px 25px;
    }

    .nav-footer {
        padding: 15px 25px;
    }
}

/* Subtle animations */
.navigation__menu.open .nav-categories li {
    animation: fadeInUp 0.4s ease forwards;
}

.navigation__menu.open .nav-categories li:nth-child(1) {
    animation-delay: 0.05s;
}

.navigation__menu.open .nav-categories li:nth-child(2) {
    animation-delay: 0.1s;
}

.navigation__menu.open .nav-categories li:nth-child(3) {
    animation-delay: 0.15s;
}

.navigation__menu.open .nav-categories li:nth-child(4) {
    animation-delay: 0.2s;
}

.navigation__menu.open .nav-categories li:nth-child(5) {
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom scrollbar - minimal */
.navigation__menu::-webkit-scrollbar {
    width: 2px;
}

.navigation__menu::-webkit-scrollbar-track {
    background: transparent;
}

.navigation__menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

/* Ensure hamburger button stays accessible */
.hamburger {
    z-index: 1003 !important;
    /* Higher than navigation menu */
    position: relative;
}

/* Animation for menu items */
.navigation__menu.open .nav-categories li {
    animation: slideInLeft 0.3s ease forwards;
}

.navigation__menu.open .nav-categories li:nth-child(1) {
    animation-delay: 0.1s;
}

.navigation__menu.open .nav-categories li:nth-child(2) {
    animation-delay: 0.15s;
}

.navigation__menu.open .nav-categories li:nth-child(3) {
    animation-delay: 0.2s;
}

.navigation__menu.open .nav-categories li:nth-child(4) {
    animation-delay: 0.25s;
}

.navigation__menu.open .nav-categories li:nth-child(5) {
    animation-delay: 0.3s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}



/* ------- -------Hamburger css   ---------  */
.hamburger {
    display: none;
    position: fixed;
    top: 5;
    right: 0;
    place-items: center;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: transparent;
    border: 0;
    margin: 0 2rem;
    overflow: visible;
}

/* Show hamburger only on screens 768px wide or less (mobile) */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
}

/* Show Let's talk button only on tablet/desktop */

.hamburger:focus:not(:focus-visible) {
    outline: none;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger.is-active:hover {
    opacity: 0.7;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: var(--bg-color);
}

.hamburger-box {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 100%;
    height: 2px;
    background-color: var(--bg-color);
    border-radius: 4px;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    display: block;
}

.hamburger-inner::before {
    top: -7px;
}

.hamburger-inner::after {
    bottom: -7px;
}

.hamburger--emphatic {
    overflow: hidden;
}

.hamburger--emphatic .hamburger-inner {
    transition: background-color 0.125s 0.175s ease-in;
}

.hamburger--emphatic .hamburger-inner::before {
    left: 0;
    transition: transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335),
        top 0.05s 0.125s linear, left 0.125s 0.175s ease-in;
}

.hamburger--emphatic .hamburger-inner::after {
    top: 7px;
    right: 0;
    transition: transform 0.125s cubic-bezier(0.6, 0.04, 0.98, 0.335),
        top 0.05s 0.125s linear, right 0.125s 0.175s ease-in;
}

.hamburger--emphatic.is-active .hamburger-inner {
    transition-delay: 0s;
    transition-timing-function: ease-out;
    background-color: transparent !important;
}

.hamburger--emphatic.is-active .hamburger-inner::before {
    left: -80px;
    top: -80px;
    transform: translate3d(80px, 80px, 0) rotate(45deg);
    transition: left 0.125s ease-out, top 0.05s 0.125s linear,
        transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.hamburger--emphatic.is-active .hamburger-inner::after {
    right: -80px;
    top: -80px;
    transform: translate3d(-80px, 80px, 0) rotate(-45deg);
    transition: right 0.125s ease-out, top 0.05s 0.125s linear,
        transform 0.125s 0.175s cubic-bezier(0.075, 0.82, 0.165, 1);
}


/*--- --- ---  Home css starts --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */

/* <picture> is a format-selection wrapper only. display:contents removes its
   box so each img keeps the containing block its class rules assume
   (.project-image height:100%, .home__img margin:0 auto). */
picture {
    display: contents;
}

.home__img,
.home__data {
    z-index: 10;
}

.img-box {
    width: 224px;
    height: 224px;
    position: relative;
    overflow: hidden;
    border-radius: 30px 0 30px 0;
    flex: none;
}

.home__img {
    object-fit: cover;
    object-position: center center;
}

.proj-img {
    object-fit: cover;
    object-position: center center;
    width: 140px;
}

.home__name,
.home__list,
.home__social-link {
    color: var(--bg-color);
    font-family: var(--mono-font);
}

.home__name {
    font-size: var(--fs-h1);
    line-height: 1.14em;
}

.home__work {
    color: var(--brand) !important;
    font-family: var(--mono-font);
    font-weight: var(--bold);
}

.home__list dt {
    float: left;
    font-weight: var(--bold);
    opacity: 0.4;
}

.home__list dd {
    padding-left: 6.25em;
}

.home__list dd:not(:last-child) {
    margin-bottom: 0.94em;
}

/* home__social-link with tooltips */
.home__socials {
    gap: 10px;
    margin: 2rem 0 0rem;
}

.home__social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: block;
    line-height: 50px;
    color: #fff;
    font-size: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    transition: .3s;
    text-align: center;
    opacity: 1;
    text-decoration: none;
    position: relative;
    /* Added for tooltip positioning */
    cursor: pointer;
    /* Added since they're now divs */
}

.home__social-link:hover {
    background: #ffffff;
    color: #0F0F0F;
}

/* Tooltip styles */
.home__social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 120, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tooltip arrow */
.home__social-link::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

/* Show tooltips on hover */
.home__social-link:focus-visible::before,
.home__social-link:focus-visible::after,
.home__social-link:hover::before,
.home__social-link:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.home__social-link:hover::after {
    transform: translateX(-50%) translateY(0px);
}

/* Responsive tooltip adjustments */
@media (max-width: 768px) {
    .home__social-link::before {
        font-size: 11px;
        padding: 6px 10px;
    }
}


/*--- --- ---  for large devices --- --- --- */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}


@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}


@media screen and (max-width: 800px) {
    .home {
        padding-top: 0.3rem;
    }

    .home__img {
        width: 100%;
        height: 400px;
    }

    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}


/*--- --- ---  for medium devices --- --- --- */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

/*--- --- ---  for small devices --- --- --- */
@media screen and (max-width: 350px) {
    .home__work {
        font-size: 0.875rem;
    }

    .home__list {
        font-size: 0.875rem;
    }

    .home__list dd {
        padding-left: 5.75rem;
    }

    .home__social-link {
        font-size: 1.3rem;
    }
}


/* --------- Button CSS (It's used for all the buttons)*/
.button {
    font-family: var(--mono-font);
    font-size: 0.9rem;
    align-items: center;
    height: 40px;
    border-radius: 0.4rem;
    font-weight: 600;
    padding: 0 1.2rem;
    color: var(--bg-color);
    border: none;
    box-shadow: var(--box-shadow-2);
    background: var(--brand) !important;
    cursor: pointer;
}

.button:hover {
    background: var(--hover-color);
}


h2 {
    font-size: 1.8rem !important;
}

.infos h2 {
    font-size: 36px;
    line-height: 40px;
    color: #fff;
    font-weight: 500;
    margin-bottom: -15px !important;
}

.last-infos h2 {
    font-size: 44px !important;
    line-height: 52px;
    font-weight: 500;
    color: #fff;
    margin-bottom: -15px !important;
    margin-top: 50px !important;
}

.last-infos span {
    color: var(--brand) !important;
}

.infos h3 {
    font-size: 20px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 12px !important;
}

.infos h4 {
    font-size: 16px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 23px !important;
}

.infos h5 {
    color: #BCBCBC;
    opacity: 0.7;
    font-size: 14px;
    letter-spacing: 0.3px;
    margin-bottom: 5px;
}

.infos p {
    letter-spacing: 0.3px;
    margin: 0;
}

.infos .about-btn {
    display: block;
    position: absolute;
    right: 30px;
    bottom: 30px;
    opacity: 0.2;
    transition: .3s;
}

.primary-card:hover .about-btn {
    opacity: 1.0;
}

.credentials-card .about-btn {
    display: block;
    position: absolute;
    right: 30px;
    bottom: 30px;
    opacity: 0.2;
    transition: .3s;
}

.credentials-card:hover .about-btn {
    opacity: 1.0;
}

/******************************/
.primary-card {
    position: relative;
    padding: 50px 46px;
    gap: 30px;
    flex: 1 1;
    cursor: pointer;
    height: 100%;
    z-index: 1;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow:
        rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
        rgba(50, 50, 93, 0.10) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
        rgb(91 120 246 / 5%) 0px 10px 40px 0px;
    /* subtle var(--brand) shadow */
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border-radius: 30px;
}

.primary-card:hover {
    position: relative;
    padding: 50px 46px;
    gap: 30px;
    flex: 1 1;
    cursor: pointer;
    height: 100%;
    z-index: 1;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 30px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
}

.primary-card2 {
    position: relative;
    padding: 17px 25px;
    gap: 30px;
    flex: 1 1;
    cursor: pointer;
    height: 100%;
    z-index: 1;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow:
        rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
        rgba(50, 50, 93, 0.10) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
        rgb(91 120 246 / 5%) 0px 10px 40px 0px;
    /* subtle var(--brand) shadow */
    border-radius: 30px;
    background: #1c1c1c !important;
}

.primary-card2:hover {
    position: relative;
    padding: 17px 25px;
    gap: 30px;
    flex: 1 1;
    cursor: pointer;
    height: 100%;
    z-index: 1;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 30px;
    background: #1c1c1c !important;
}

.primary-card .inner-profile-icons {
    position: relative;
    cursor: pointer;
    height: 65%;
    z-index: 1;
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow:
        rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
        rgba(50, 50, 93, 0.10) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
        rgb(91 120 246 / 5%) 0px 10px 40px 0px;
    /* subtle var(--brand) shadow */
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0px 0px !important;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
}

/* social-card with premium styling */
.primary-card .social-card {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: .3s;
    flex: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
}

@keyframes gradientBorder {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.primary-card .social-card:hover::before {
    opacity: 1;
}

.primary-card .social-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        rgba(255, 255, 255, 0.2) 0px 2px 4px 0px inset,
        rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.4) 0px 30px 60px -30px,
        rgb(91 120 246 / 20%) 0px 15px 50px 0px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-color: rgba(91, 120, 246, 0.3);
}

.primary-card .social-card i {
    font-size: 25px;
    color: #ffffff;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.primary-card .social-card:hover i {
    color: var(--brand);
    transform: scale(1.1) rotate(5deg);
    text-shadow:
        0 0 20px rgba(91, 120, 246, 0.5),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.primary-card .social-card {
    animation: socialPulse 6s ease-in-out infinite;
}

.primary-card .social-card:hover {
    animation: none;
    /* Stop pulse on hover */
}

.primary-card .social-card:hover::after {
    left: 100%;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .primary-card .social-card {
        padding: 20px 20px;
        border-radius: 40px;
    }

    .primary-card .social-card::before {
        border-radius: 50px;
    }

    .primary-card .social-card i {
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .primary-card .social-card {
        padding: 15px 15px;
        border-radius: 50px;
    }

    .primary-card .social-card::before {
        border-radius: 32px;
    }

    .primary-card .social-card i {
        font-size: 30px;
    }
}

.primary-card .bg-img {
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.primary-card2 .bg-img {
    opacity: 0.5;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 30px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* star-icon with hover effect */
.primary-card .star-icon {
    position: absolute;
    left: 30px;
    top: 0;
    opacity: 0.5;
    margin: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-card .star-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Alternative: Hover effect when hovering the entire card */
.primary-card:hover .star-icon {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* .primary-card .icon-boxes */
.primary-card .icon-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.primary-card .icon-boxes i {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.primary-card .icon-boxes i:hover {
    transform: translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .primary-card .icon-boxes {
        gap: 40px;
    }

    .primary-card .icon-boxes i {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .primary-card .icon-boxes {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .primary-card .icon-boxes i {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* client-card with premium styling */
.primary-card .client-card {
    position: relative;
    padding: 35px 30px;
    gap: 30px;
    flex: 1 1;
    cursor: pointer;
    height: 100%;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50px;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    overflow: hidden;
}

/* Add animated gradient border like social-card */
.primary-card .client-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 52px;
    background: linear-gradient(45deg,
            rgba(91, 120, 246, 0.3),
            rgba(255, 255, 255, 0.1),
            rgba(91, 120, 246, 0.3),
            rgba(255, 255, 255, 0.1));
    background-size: 200% 200%;
    z-index: -1;
    opacity: 0;
    animation: clientGradientBorder 5s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

@keyframes clientGradientBorder {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.primary-card .client-card:hover::before {
    opacity: 1;
}

.primary-card .client-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        rgba(255, 255, 255, 0.2) 0px 2px 4px 0px inset,
        rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
        rgba(0, 0, 0, 0.4) 0px 30px 60px -30px,
        rgb(91 120 246 / 25%) 0px 20px 60px 0px;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-color: rgba(91, 120, 246, 0.3);
}

.primary-card .client-card h2 {
    color: var(--brand);
    font-size: 48px !important;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
    letter-spacing: -2px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    text-shadow:
        0 0 30px rgba(91, 120, 246, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.primary-card .client-card:hover h2 {
    transform: scale(1.1);
    text-shadow:
        0 0 40px rgba(91, 120, 246, 0.6),
        0 2px 15px rgba(0, 0, 0, 0.4);
}

.primary-card .client-card p {
    color: #BCBCBC;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    opacity: 0.8;
}

.primary-card .client-card:hover p {
    color: #ffffff;
    opacity: 1;
    transform: translateY(-2px);
}

.primary-card .client-card {
    animation: clientPulse 7s ease-in-out infinite;
}

.primary-card .client-card:hover {
    animation: none;
    /* Stop pulse on hover */
}

/* Add shimmer effect */
.primary-card .client-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s ease;
    border-radius: 50px;
    z-index: 1;
}

.primary-card .client-card:hover::after {
    left: 100%;
}

/* Add a subtle icon or decoration */
.primary-card .client-card h2::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.primary-card .client-card:hover h2::before {
    opacity: 1;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .primary-card .client-card {
        padding: 30px 25px;
        border-radius: 40px;
    }

    .primary-card .client-card::before {
        border-radius: 42px;
    }

    .primary-card .client-card h2 {
        font-size: 40px !important;
    }

    .primary-card .client-card p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .primary-card .client-card {
        padding: 25px 20px;
        border-radius: 30px;
    }

    .primary-card .client-card::before {
        border-radius: 32px;
    }

    .primary-card .client-card h2 {
        font-size: 36px !important;
        margin-bottom: 12px;
    }

    .primary-card .client-card p {
        font-size: 12px;
        line-height: 1.3;
    }
}

@keyframes shimmer {
    0% {
        opacity: 0;
    }

    5% {
        opacity: 0;
        background-position: -50%;
    }

    10% {
        opacity: 0.7;
    }

    15% {
        opacity: 0;
        background-position: 150%;
    }

    20% {
        opacity: 0;
    }

    to {
        opacity: 0;
    }
}

.primary-card .shimmer {
    background: linear-gradient(112deg, transparent 30%, rgba(var(--geist-foreground-rgb), 0.1) 40%, rgba(var(--geist-foreground-rgb), 0.3) 50%, rgba(var(--geist-foreground-rgb), 0.1) 60%, transparent 80%);
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    border-radius: inherit;
    background-size: 200% auto;
    background-position: 0;
    animation: shimmer 18s cubic-bezier(0.8, 0, 0.05, 1) infinite;
    animation-delay: var(--delay);
}

.primary-card p {
    color: var(--text-color);
}

/* Favorite Button *************************/
.favorite-item {
    margin: 0 -8px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.marquee-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 19px;
    overflow-x: hidden;
}

.marquee {
    position: absolute;
    white-space: nowrap;
    will-change: transform;
    font-size: 12px;
    animation: marquee 8s linear infinite;
}

.marquee span {
    white-space: nowrap;
    margin-right: 2rem;
    /* space between repeats */
    font-size: 1rem;
}

.marquee span b {
    color: #fff;
    font-weight: 400;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-33.33%);
    }
}



/*--- --- --- About Css starts from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */
.container .section-heading {
    color: #ffffff;
    font-size: 45px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -01px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    justify-content: center;
}

.primary-card .img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 200px;
    /* Optional: set a min height for better centering */
}

.home__img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    /* Adjust as needed */
    margin: 0 auto;
}

.about-exp ul li .date {
    color: #BCBCBC;
    opacity: 0.6;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
}

.about-exp ul li h3 {
    font-size: 18px;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 7px;
}

.about-exp ul li .type {
    color: #BCBCBC;
    font-size: 14px;
    opacity: 0.6;
    font-weight: 400;
    margin: 0;
}

/* Timeline CSS - Updated based on your reference example */

.timeline-container {
    position: relative;
    padding-left: 30px;
    max-width: 100%;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Create the line segments and dots like the reference */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 10px !important;
    left: -5px;
    height: 95%;
    width: 1px;
    background: linear-gradient(180deg, var(--brand) 0%, #8B5CF6 100%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 7px;
    left: -10px;
    width: 10px;
    height: 10px;
    border: 2px solid var(--brand);
    background-color: #1c1c1c;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

/* Create gaps at top and bottom of first and last items */
.timeline-item:first-child .timeline-content::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 2px;
    height: 4px;
    background-color: #1c1c1c;
}

.timeline-item:first-child .timeline-content::after {
    content: '';
    position: absolute;
    left: -40px;
    top: 16px;
    width: 2px;
    height: 4px;
    background-color: #1c1c1c;
}

.timeline-item:last-child .timeline-content::before {
    content: '';
    position: absolute;
    left: -40px;
    bottom: 6px;
    width: 2px;
    height: 4px;
    background-color: #1c1c1c;
}

.timeline-item:last-child .timeline-content::after {
    content: '';
    position: absolute;
    left: -40px;
    bottom: 16px;
    width: 2px;
    height: 4px;
    background-color: #1c1c1c;
}

/* Timeline Marker (remove this since we're using ::after now) */
.timeline-marker {
    display: none;
}

/* Timeline Content */
.timeline-content {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border-radius: 15px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}

/* Hover Effects - matching the reference example */
.timeline-item:hover::after {
    background-color: var(--brand);
    transform: scale(1.4);
}

.timeline-item:hover .timeline-content {
    transform: translateX(5px);
    border: 1px solid rgba(91, 120, 246, 0.2);
    background: linear-gradient(135deg, rgba(91, 120, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(91, 120, 246, 0.4);
    box-shadow: 0 8px 25px rgba(91, 120, 246, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-container {
        padding-left: 25px;
    }

    .timeline-item {
        padding-left: 5px;
    }

    .timeline-item::before {
        left: -35px;
    }

    .timeline-item::after {
        left: -39px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 18px;
    }
}

/* Keep your existing content styles */
.timeline-date {
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.timeline-company {
    color: #E5E7EB;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-location {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 10px;
}

.timeline-duration {
    display: inline-block;
    background: rgba(91, 120, 246, 0.2);
    color: var(--brand);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skills Section Styling */
.skill-card {
    background: linear-gradient(135deg, rgba(91, 120, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 1px solid rgba(91, 120, 246, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(91, 120, 246, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(91, 120, 246, 0.4);
    box-shadow: 0 4px 15px rgba(91, 120, 246, 0.2);
}

.skill-card.secondary {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.1) 0%, rgba(156, 163, 175, 0.05) 100%);
    border-color: rgba(156, 163, 175, 0.2);
}

.skill-card.secondary:hover {
    background: linear-gradient(135deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.1) 100%);
    border-color: rgba(156, 163, 175, 0.4);
    box-shadow: 0 4px 15px rgba(156, 163, 175, 0.2);
}

.skill-category {
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.skill-card.secondary .skill-category {
    color: #9CA3AF;
}

.skill-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Certification Slider Custom Styles */
.certification-slider {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.certification-slider .carousel-inner {
  border-radius: 14px;
}

.certification-slider .carousel-control-prev,
.certification-slider .carousel-control-next {
  filter: invert(1);
  width: 40px;
}

.certification-slider .carousel-control-prev-icon,
.certification-slider .carousel-control-next-icon {
  background-size: 28px 28px;
}

.certification-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.certification-badge {
  background: var(--brand);
  color: #fff;
  font-size: 0.78em;
  font-weight: 600;
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 4px;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(91,120,246,0.10);
}

.certification-course,
.certification-instructor {
  color: var(--brand);
  font-weight: 600;
  font-size: 0.98em;
}

.certification-date {
  color: #b3b3b3;
  font-size: 0.95em;
  margin-top: 2px;
  display: inline-block;
}

.certification-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: #232a3b;
  border-radius: 6px;
  padding: 6px 16px;
  color: var(--brand);
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(91,120,246,0.08);
  transition: background 0.18s, color 0.18s;
}

.certification-link:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.certification-link i {
  font-size: 1em;
}

.certification-img {
  width: 850px;         /* Set your preferred width */
  max-width: 100%;      /* Prevents overflow on small screens */
  object-fit: cover;    /* Ensures the image fills the area without distortion */
  object-position: center;
  border-radius: 12px;
  border: 1.5px solid #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.13);
  background: #181818;
  margin-right: 18px;
  transition: transform 0.2s;
}

@media (max-width: 600px) {
  .certification-img {
    width: 100%;
    max-width: 620px;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .certification-slider {
    max-width: 100%;
  }
}

/* For the card container */
.why-hire-card {
    padding: 25px 25px !important;
    cursor: pointer;
}

/* For the background image */
.why-hire-bg-img {
}

/* For the button */
.why-hire-btn {
    color: #fff !important;
    font-size: 30px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
@media (max-width: 576px) {
    .why-hire-btn {
        font-size: 24px !important;
    }
}

/* For the highlighted text in the button */
.why-hire-highlight {
    color: var(--brand);
}

/* For the star link */
.why-hire-star-link {
    cursor: pointer;
}

.custom-close-btn {
    background-color: #fff !important;
    color: #222 !important;
    border-radius: 32px 32px 32px 32px !important;
    width: 25px !important;
    height: 25px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: background 0.2s;
}

.custom-close-btn:focus:not(:focus-visible) {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand);
}

.custom-close-btn::after {
    filter: invert(1) brightness(2);
}


/*--- --- --- Resume Css starts from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */

/*--- --- --- Base --- --- --- */
h2 {
    font-size: 20px;
    margin: 24px 0 8px;
}

h3 {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 500;
}

hr {
    border: 0px;
    height: 1px;
    background: var(--hr-color);
    margin: 20px 0;
}

section {
    margin-bottom: 48px;
}

p {
    color: var(--text-para-color2);
    font-family: var(--mono-font);
    font-size: 16px;
    font-weight: 450;
}


/* --- --- --- Resume Main --- --- --- */
.resume-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 10px 20px;
}

.title {
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--bright-text-color);
}

.discription {
    text-align: center !important;
}

.name {
    text-align: center;
    font-size: 32px;
    margin: 20px 0;
}

.social-media {
    text-align: center;
    margin-bottom: 15px;
}

.social-media-link {
    color: var(--text-W-color);
    text-decoration: none;
    margin: 0 5px;
}

.social-media-link:hover {
    color: var(--bright-text-color);
}


/* --- skills section --- */
.skills {
    display: flex;
    justify-content: space-between;
}

.skill {
    width: 30%;
}

.skill-name {
    border-top: 1px solid #999999;
    padding-top: 16px;
}

/* --- experience section --- */
.company .insitution-link {
    color: var(--bright-text-color);
    font-size: 15px;
    font-weight: 500;
}

.experience-item .credential-link {
    color: var(--bright-text-color);
    font-size: 15px;
    font-weight: 500;
}

.company,
.duration {
    color: var(--text-para-color2);
    font-size: 14px;
    margin-right: 30px;
}

.fa-building,
.fa-calendar-alt {
    margin-right: 5px;
}

.container .primary-card .contact-card-btn {
    width: 100%;
    background: #323232;
    color: #fff;
    display: inline-block;
    transition: .3s;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 30px;
    text-decoration: none;
    text-align: center;
}

.container .primary-card .contact-card-btn:hover {
    background: #fff;
    color: var(--dark);
}

/*--- --- ---  for medium devices --- --- --- */
@media screen and (max-width: 500px) {
    .skills {
        display: inline;
        justify-content: space-between;
    }

    .skill {
        width: 90%;
    }

}



/*--- --- --- Projects Css starts from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */

/*--- --- --- Projects CSS - cards CSS --- --- --- */
.home__data .table td {
    color: var(--text-para-color);
    font-family: var(--mono-font);
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
}

.heading h3 {
    font-size: 15px;
    font-weight: 450;
    color: #acafb3;
}

.card ul li {
    list-style-type: none;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 12px;
    width: 312px;
    height: 85%;
    background: var(--bg-color3);
    border: 1px solid #dfe1e6;
    border-radius: 16px;
    margin-top: 65px;
}

/* Updated Project Showcase Card Styles */
.project-showcase-card {
    position: relative;
    padding: 0;
    flex: 1 1;
    cursor: pointer;
    height: 100%;
    z-index: 1;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform, box-shadow;
}

.project-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(91, 120, 246, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: #1a1a1a;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.project-showcase-card:hover .project-image {
    transform: scale(1.02);
}

/* Remove the old overlay styles - no longer needed */
.project-overlay {
    display: none;
}

/* New always-visible project links */
.project-links-visible {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    margin-top: 16px;
}

.project-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.source-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
}

.source-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    color: #000;
}

.live-btn {
    background: var(--brand);
    color: #fff;
}

.live-btn:hover {
    background: #4c63d2;
    transform: translateY(-1px);
    color: #fff;
}

.project-content {
    padding: 25px;
}

.project-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.project-type {
    color: var(--brand);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-date {
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 500;
}

.project-description {
    color: #9CA3AF;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tags .tag {
    background: rgba(91, 120, 246, 0.1);
    color: var(--brand);
    border: 1px solid rgba(91, 120, 246, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.project-tags .tag:hover {
    background: rgba(91, 120, 246, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-image-wrapper {
        height: 180px;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-links-visible {
        gap: 8px;
        flex-wrap: wrap;
    }

    .project-link-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .project-showcase-card:hover {
        transform: none;
    }

    .project-showcase-card:hover .project-image {
        transform: none;
    }
}


/*--- --- --- Services Css starts from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */
/* Service Cards Styling */
.service-card {
    padding: 30px !important;
    position: relative;
    overflow: hidden;
}

.service-icon-style {
    font-size: 2.5rem;
    color: var(--brand);
}

.service-title {
    color: #fff;
}

.feature-check-icon {
    color: var(--brand);
    font-size: 14px;
}

.feature-title {
    color: #E5E7EB;
}

.feature-description {
    color: #9CA3AF;
}

.service-features {
    /* Additional styling if needed */
}

.feature-item {
    /* Additional styling if needed */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        padding: 20px !important;
    }

    .service-icon-style {
        font-size: 2rem;
    }
}



/*--- --- --- Contact Css starts from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */

/*--- --- ---  Contact form css --- --- --- */
.contact {
    margin-top: 5%;
    margin-bottom: 5%;
}

.contact__form-title {
    color: var(--brand) !important;
    font-family: var(--mono-font);
}

.section__title {
    color: var(--text-W-color);
    font-family: var(--mono-font);
}

.contact ::placeholder,
.contact__input {
    color: var(--brand) !important;
    font-family: var(--mono-font);
}

.contact__form {
    position: relative;
}

.contact__form-tile {
    margin-bottom: 1.25em;
}

.contact__input-div {
    margin-bottom: 0.94em;
}

.contact__input {
    width: 100%;
    border: 1px solid rgb(61, 61, 61);
    border-radius: 3px;
    padding: 0.625rem;
}

.textarea {
    height: 7.2rem;
    resize: none;
}

.contact__input:focus {
    box-shadow: var(--box-shadow-4);
}

.contact__message {
    position: absolute;
    left: 0;
    font-family: var(--mono-font);
    color: var(--brand) !important;
}

.color-light {
    opacity: 1;
}

.color-dark {
    opacity: 0.4;
}

.contact__button {
    margin-top: 1.875rem;
    width: 100%;
    box-shadow: var(--box-shadow-4);
}

/* for large devices */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media screen and (max-width: 800px) {
    .section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* for medium devices */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
}

/* FAQ Section Styling */
.faq-item {
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--brand);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: rgba(91, 120, 246, 0.1);
}

.faq-question-text {
    color: #E5E7EB;
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 500;
}

.faq-icon {
    margin-left: auto;
    color: var(--brand);
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer-content {
    padding: 20px 25px;
    color: #9CA3AF;
    line-height: 1.6;
}

.faq-answer-content p {
    margin-bottom: 0;
}

.faq-answer-content strong {
    color: #E5E7EB;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px 20px;
    }

    .faq-answer-content {
        padding: 15px 20px;
    }

    .faq-question-text {
        font-size: 15px;
    }
}


/*--- --- --- Footer Css starts from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */

/*--- --- --- Footer css --- --- ---*/
.footer {
    background: var(--background-color);
    padding-top: 128px;
    padding-bottom: 78px;
    font-family: var(--mono-font);
    text-align: center;
}

.footer .row {
    width: 100%;
    margin: 1% 0%;
    padding: 0.6% 0%;
    color: var(--text-color-alt);
    font-size: 12px;
}

.footer .row a {
    text-decoration: none;
    color: #727272;
    transition: 0.5s;
    font-size: 14px;
}

.footer .row a:hover {
    color: var(--text-W-color);
}

.footer .row ul {
    width: 100%;
}

.footer .row ul li {
    display: inline-block;
    margin: 0px 25px;
}

.footer .row a i {
    font-size: 2em;
    margin: 0% 1%;
}


.footer .copyright p {
    font-size: 14px;
    color: #727272;
}

.footer .copyright .footer-source a {
    color: #727272;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .copyright .footer-source a:hover,
.footer .copyright .footer-source a:focus-visible {
    color: var(--brand);
    text-decoration: underline;
}

.footer .copyright .name {
    font-size: 14px;
    color: var(--brand);
}


/*--- --- --- For Responsiveness --- --- ---*/
@media (max-width:720px) {
    .footer {
        text-align: center;
        padding: 5%;
    }

    .footer .row ul li {
        display: block;
        margin: 10px 0px;
        text-align: center;
    }

    .footer .row a i {
        margin: 0% 3%;
    }
}


/*--- --- --- Scroll css from here --- --- --- */
/* ===== ================================================= ================================================= ===== */
/* ===== ================================================= ================================================= ===== */


/* Mobile Scroll Animations :: */
@media (max-width: 768px) {

    .primary-card,
    .primary-card2,
    .home__social-link {
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Primary Card - Exact Desktop Hover Style */
    .primary-card.scroll-animated {
        position: relative;
        padding: 50px 46px;
        gap: 30px;
        flex: 1 1;
        cursor: pointer;
        height: 100%;
        z-index: 1;
        transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        border-radius: 30px;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    }

    /* Primary Card 2 - Exact Desktop Hover Style */
    .primary-card2.scroll-animated {
        position: relative;
        padding: 17px 25px;
        gap: 30px;
        flex: 1 1;
        cursor: pointer;
        height: 100%;
        z-index: 1;
        transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
        border-radius: 30px;
        background: linear-gradient(120deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    }

    /* About Button - Exact Desktop Hover Style */
    .primary-card.scroll-animated .about-btn {
        transform: rotate(90deg);
        opacity: 1.0;
    }

    .credentials-card.scroll-animated .about-btn {
        transform: rotate(90deg);
        opacity: 1.0;
    }

    /* Star Icon - Exact Desktop Hover Style (if you have this) */
    .primary-card.scroll-animated .star-icon {
        opacity: 1;
        filter: brightness(1.3);
    }

    /* Icon Boxes - Exact Desktop Hover Style (if you have this) */
    .primary-card .icon-boxes i.scroll-animated {
        transform: translateY(-3px) scale(1.1);
        color: var(--brand);
        text-shadow: 0 0 15px rgba(91, 120, 246, 0.5);
    }

    /* Scroll Progress Indicator (Optional) */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: var(--scroll-progress, 0%);
        height: 3px;
        background: linear-gradient(90deg, var(--brand) 0%, #8B5CF6 100%);
        z-index: 9999;
        transition: width 0.1s ease-out;
    }
}

/* Debug: Center line indicator */
/* @media (max-width: 768px) {
    body::after {
        content: '';
        position: fixed;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: red;
        z-index: 9999;
        opacity: 0.3;
        pointer-events: none;
        transform: translateY(-50%);
    }
} */

/* Honeypot field on the contact form — must be reachable to bots parsing the
   DOM but invisible and unfocusable for people. display:none is avoided
   because some bots skip it. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ===== ================================================= ===== */
/*  Accessibility and mobile performance (roadmap Q7, Q8, Q9)      */
/* ===== ================================================= ===== */

/* Q9 - WCAG 2.2 SC 2.4.13 Focus Appearance. var(--brand) against the #0F0F0F
   page background clears the 3:1 contrast the criterion asks for, and the
   offset keeps the ring clear of the element's own border. */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Q8 - backdrop-filter over a scrolling page is the heaviest thing on a
   mobile GPU (Firefox Android worst). Halve it where the glass effect
   carries the design, drop it where the card is small enough that nobody
   can tell. */
@media (max-width: 768px) {

    .loader-bar,
    .header.active,
    .navigation__menu,
    .home__social-link::before {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .primary-card .client-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Q7 - WCAG 2.3.3. Decorative motion is opt-out at the OS level; honour it.
   Durations are near-zero rather than 0 so animationend/transitionend
   handlers still fire and nothing waits forever on a callback. */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== ================================================= ===== */
/*  Print / save-as-PDF for resume.html (roadmap Q16, M13)        */
/* ===== ================================================= ===== */

@media print {

    /* .main-content starts at opacity 0 and is revealed by preloader.js.
       If the sheet is printed before that runs -- or from a browser that
       blocked the script -- the page would come out blank. Force it. */
    .main-content {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Chrome and Safari drop backgrounds and light text in print by
       default, which would leave white-on-white. Go black-on-white
       deliberately instead of relying on that. */
    html,
    body,
    .main-content {
        background: #fff !important;
        color: #000 !important;
    }

    body * {
        color: #000 !important;
        text-shadow: none !important;
        box-shadow: none !important;
        background-image: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Screen-only layout, navigation and decoration: none of it belongs on
       paper.
       Note the doubled-up selectors. bootstrap.min.css is linked AFTER
       style.css on every page, and its display utilities carry !important
       (.d-flex { display: flex !important }). At equal specificity the later
       sheet wins, so anything here that also carries a Bootstrap display
       utility needs one extra class to outrank it. */
    body .preloader,
    body .slide-reveal-panel,
    body .navigation__menu,
    body .header,
    body .nav-footer,
    body footer,
    body .bg-img,
    body .home__socials,
    body .hamburger,
    body [data-print-resume],
    body .contact-card-btn {
        display: none !important;
    }

    /* The screen portrait is sized for a hero slot and eats most of the
       first sheet on paper. */
    body .img-box {
        height: auto !important;
    }

    body .home__img {
        max-height: 110px !important;
        width: auto !important;
    }

    /* The Bootstrap grid keeps the resume in a narrow column on paper and
       wastes roughly a third of every page. Collapse it to full width. */
    body .container,
    body .container-fluid,
    body .row,
    body [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Cards go borderless on paper. A border plus break-inside:avoid leaves
       orphaned box edges when a card is taller than the space left on the
       sheet; without it the content just flows. */
    .primary-card,
    .primary-card2,
    .client-card {
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        padding: 0 0 8px !important;
        margin-bottom: 8px !important;
    }

    h1, h2, h3, h4, h5 {
        break-after: avoid;
        page-break-after: avoid;
        margin-top: 0.4em !important;
        margin-bottom: 0.3em !important;
    }

    body .mt-4, body .pt-4, body .mb-4, body .pb-4,
    body .mt-5, body .pt-5, body .mb-5, body .pb-5,
    body .my-4, body .py-4, body .my-5, body .py-5 {
        margin-top: 0.3rem !important;
        margin-bottom: 0.3rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Section wrappers carry large screen padding that reads as dead space
       on paper. */
    body section,
    body .container,
    body .container-fluid {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    a {
        text-decoration: none !important;
    }

    /* The resume links out to GitHub/LinkedIn; on paper the label alone is
       useless, so print the target next to it. */
    .home__data a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        word-break: break-all;
    }

    /* M13 - compress toward a short resume. Screen type is ~16px with
       generous leading; on paper that runs to four sheets. */
    html,
    body {
        font-size: 10pt !important;
        line-height: 1.35 !important;
    }

    body h1 { font-size: 16pt !important; }
    body h2 { font-size: 13pt !important; }
    body h3 { font-size: 12pt !important; }
    body h4 { font-size: 11pt !important; }
    body h5,
    body h6 { font-size: 10pt !important; }

    body p,
    body li,
    body dd,
    body dt {
        margin-bottom: 0.25em !important;
    }

    /* The portrait is decoration on a resume and costs a third of page one. */
    body .img-box,
    body .home__img {
        display: none !important;
    }

    @page {
        margin: 10mm;
    }
}
