:root {
    --bg-color: #000000;
    --bg-secondary: #141414;
    --bg-header: rgba(20, 20, 20, 0.9);
    --bg-header-border: rgba(255, 255, 255, 0.1);

    --text-primary: #ececec;
    --text-secondary: #969696;
    --text-muted: #969696;

    --accent-color: #FD6F00;
    --accent-glow: rgba(253, 111, 0, 0.5);

    --card-bg: linear-gradient(145deg, #060606, #1a1a1a);
    --stats-bg: linear-gradient(145deg, #1f1f1f, #1a1a1a);
    --input-bg: linear-gradient(145deg, rgba(26, 26, 26, 0.6), rgba(20, 20, 20, 0.6));
    --footer-bg: linear-gradient(145deg, #1a1a1a, #141414);

    --shadow-heavy: 8px 8px 16px rgba(0, 0, 0, 0.6);
    --shadow-light: -8px -8px 16px rgba(40, 40, 40, 0.1);

    --circle-inner: rgba(17, 17, 17, 0.65);
    --filter-btn-bg: linear-gradient(145deg, #242424, #1f1f1f);

    --primary: #ff6b00;
    --secondary: #ff6b00;
}

body.light-mode {
    --bg-color: #f4f4f4;
    --bg-secondary: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.9);
    --bg-header-border: rgba(0, 0, 0, 0.1);

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;

    --accent-color: #e26403;

    --card-bg: linear-gradient(145deg, #ffffff, #e6e6e6);
    --stats-bg: linear-gradient(145deg, #ffffff, #f0f0f0);
    --input-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.8));
    --footer-bg: linear-gradient(145deg, #e6e6e6, #ffffff);

    --shadow-heavy: 5px 5px 10px rgba(0, 0, 0, 0.1);
    --shadow-light: -5px -5px 10px rgba(255, 255, 255, 0.8);

    --circle-inner: rgba(240, 240, 240, 0.65);
    --filter-btn-bg: linear-gradient(145deg, #ffffff, #e6e6e6);
}

body.light-mode #bg-canvas {
    display: none !important;
}

body.light-mode::after,
body.light-mode::before {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    min-height: 200vh;
    position: relative;
    font-family: sans-serif;
    color: var(--text-secondary);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -500;
    background-color: var(--bg-color);
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.hero-header,
.main-content {
    background: transparent !important;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, transparent 20%, rgba(20, 20, 20, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s;
}

body.light-mode::after {
    opacity: 0.1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255, 140, 60, 0.03), transparent 6%),
        radial-gradient(circle at 90% 90%, rgba(80, 120, 255, 0.02), transparent 8%);
    z-index: 0;
    pointer-events: none;
}

.progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--text-secondary);
    z-index: 9999;
}

#progressBar {
    height: 100%;
    width: 0%;
    background-color: var(--accent-color);
    transition: width 0.5s ease-out;
}

.hero-header {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.wrapper {
    max-width: 100%;
    position: relative;
    z-index: 1;
}

header {
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    z-index: 10;
    background-color: var(--bg-header);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 0.1px solid var(--bg-header-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.logo-text {
    font-size: 30px;
    font-weight: 500;
    color: var(--accent-color);
    margin-left: 1.5rem;
    text-shadow:
        0 0 20px var(--accent-glow),
        0 2px 4px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 2px 8px rgba(253, 111, 0, 0.3));
}

.logo-text img {
    height: 30px;
    width: auto;
    display: block;
}

nav {
    background-color: transparent;
    display: flex;
    align-items: center;
}

nav .navlinks {
    list-style-type: none;
}

nav .navlinks li {
    display: inline-block;
    margin-left: 30px;
}

nav .navlinks li a {
    color: #ffffff;
    color: var(--text-primary);
    margin-right: 1.5rem;
    position: relative;
    text-decoration: none;
    padding-bottom: 3px;
    transition: color 0.3s;
}

nav .navlinks li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

nav .navlinks li a:hover::after {
    width: 100%;
}

nav .navlinks li a:hover {
    color: var(--accent-color);
}

.theme-toggle {
    cursor: pointer;
    margin-left: 20px;
    margin-right: 20px;
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

nav .togglebtn {
    width: 30px;
    height: 22px;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
}

nav .togglebtn span {
    display: block;
    background-color: var(--accent-color);
    width: 100%;
    height: 3px;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: center;
}

@media(max-width: 930px) {
    nav .togglebtn {
        display: flex;
    }

    .theme-toggle {
        margin-right: 60px;
    }

    nav .togglebtn.click span:first-child {
        transform: translateY(9.5px) rotate(45deg);
        background-color: var(--text-primary);
    }

    nav .togglebtn.click span:nth-child(2) {
        transform: scale(0);
        opacity: 0;
    }

    nav .togglebtn.click span:last-child {
        transform: translateY(-9.5px) rotate(-45deg);
        background-color: var(--text-primary);
    }

    nav .navlinks {
        position: fixed;
        inset: 0;
        background: var(--bg-header);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;

        z-index: 9999 !important;

        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transition: all 0.4s ease-in-out;

        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        padding: 0;
    }

    nav .navlinks.open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    nav .navlinks li {
        display: block;
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: transform 0.4s ease, opacity 0.4s ease;
    }

    nav .navlinks.open li {
        opacity: 1;
        transform: translateY(0);
    }

    nav .navlinks li a {
        font-size: 2rem;
        font-weight: 600;
        color: var(--text-primary);
        margin: 0;
        display: inline-block;
    }

    nav .navlinks li a:hover {
        color: var(--accent-color);
        transform: scale(1.1);
    }

    nav .navlinks li a::after {
        display: none;
    }

    nav .navlinks.open li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav .navlinks.open li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav .navlinks.open li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav .navlinks.open li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav .navlinks.open li:nth-child(5) {
        transition-delay: 0.5s;
    }
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 8rem;
    padding-bottom: 2rem;
    position: relative;
}

.hero-text .Texts h3 {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.hero-text .Texts h1 {
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s forwards;
    opacity: 0;
    transform: translateX(50px);
}

.hero-text .Texts h2 {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.hero-text .social {
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.9s forwards;
    opacity: 0;
    transform: translateX(50px);
}

.hero-text .btn-group {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s forwards;
    opacity: 0;
    transform: translateX(-50px);
}

.hero-text .stat-container {
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.3s forwards;
    opacity: 0;
    transform: translateX(50px);
}

.hero-text .project-logos-container {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.5s forwards;
    opacity: 0;
    transform: translateX(-50px);
}

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container .hero-bg {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    z-index: 0;
}


.container .hero-pic {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.container .ring-1 {
    position: absolute;
    width: 106%;
    height: 106%;
    top: -3%;
    left: -3%;

    border-radius: 50%;
    border: 2px dashed var(--primary);
    border-top-color: transparent;
    border-left-color: transparent;
    z-index: 2;
    pointer-events: none;

    animation: spin-right 10s linear infinite;
}

.container .ring-2 {
    position: absolute;
    width: 102%;
    height: 102%;
    top: -1%;
    left: -1%;

    border-radius: 50%;
    border: 1px solid var(--secondary);
    border-bottom-color: transparent;
    border-right-color: transparent;
    opacity: 0.6;
    z-index: 2;
    pointer-events: none;

    animation: spin-left 8s linear infinite;
}

@keyframes spin-right {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-left {
    100% {
        transform: rotate(-360deg);
    }
}

.hero-pic img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: filter 0.3s;
}

body.light-mode .hero-pic img {
    filter: grayscale(20%);
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    height: 100%;
}

.hero-text h1,
.hero-text h2,
.hero-text h3 {
    margin: 0;
    line-height: 1.2;
}

.hero-text h3 {
    color: var(--text-secondary);
    font-size: 20px;
}

.hero-text h2 span {
    color: var(--accent-color);
    font-size: 45px;
    font-family: "Share Tech Mono", monospace;
    letter-spacing: 1px;
}

.hero-text h1 {
    color: var(--text-primary);
    font-size: 65px;
    margin-bottom: 10px;
}

.btn-group {
    margin: 15px 0;
}

.About.me .btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.About.me .btn-group .btn,
.About.me .btn-group .btn2 {
    width: auto;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
    margin-right: 7px;
}

.hero-text .btn-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
}

.hero-text .btn-group .btn,
.hero-text .btn-group .btn2 {
    width: auto;
    min-width: 140px;
    flex: 1;
    max-width: 200px;
    margin-right: 7px;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-group .btn,
.btn2 {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-color);
    padding: 12px 25px;
    margin: 5px 0px;
    margin-right: 7px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-group .btn:hover,
.btn2:hover {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    color: #141414;
    transform: translateZ(20px) translateY(-2px);
    border-color: #ff8c3a;
}

.btn.active {
    padding: 14px 25px;
    color: #141414;
    background-color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn.active a,
.btn.active {
    color: #141414;
}

.light-mode .btn.active a,
.btn.active {
    color: #ffffff;
}

.btn.active:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(253, 111, 0, 0.3);
}

.btn,
.submit-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before,
.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.btn:hover::before,
.submit-btn:hover::before {
    left: 100%;
}


.hero-text .social i {
    color: var(--text-secondary);
    font-size: 18px;
    margin-right: 20px;
    margin-top: 20px;
    transition: 0.5s;
}

.hero-text .social i:hover {
    color: var(--accent-color);
    transform: rotate(360deg);
}

.stats-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    background: var(--stats-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    max-width: 400px;
    margin: 50px auto;
    box-shadow:
        var(--shadow-heavy),
        var(--shadow-light),
        inset 2px 2px 4px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-container {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1.2;
    text-shadow: 0 0 10px var(--accent-glow);
}

.stat-label {
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-separator {
    width: 1px;
    height: 60px;
    background-color: var(--text-secondary);
    opacity: 0.3;
    margin: 0 10px;
}

.contact-cards-container {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.About.me .contact-cards-container {
    justify-content: center;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    padding: 16px 20px;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    width: fit-content;
    max-width: 100%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
}

body.light-mode .contact-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

body.light-mode .contact-card:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-item span {
    white-space: nowrap;
}

.project-logos-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 80px;
    max-width: 600px;
    width: 100%;
    margin-top: 30px;
    overflow: hidden;
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%);
    pointer-events: auto;
}

.project-logos-track {
    display: flex;
    align-items: center;
    gap: 50px;
    animation: scrollLeft 25s linear infinite;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.project-logos-container:hover .project-logos-track {
    animation-play-state: paused;
}

.project-logo-item {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 10;
}

.project-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-logo-item:hover {
    transform: scale(1.15);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollSmooth {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-1 * var(--track-width) / 2));
    }
}

body.light-mode .project-logo-item {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
}

.contact-cards-container[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-cards-container[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

.contact-cards-container[data-animate] .contact-card {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-cards-container[data-animate].animate-in .contact-card:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-cards-container[data-animate].animate-in .contact-card:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-cards-container[data-animate].animate-in .contact-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (max-width: 480px) {
    .stat-container {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .stat-separator {
        width: 1px;
        height: 40px;
        margin: 0 10px;
    }

    .stat-item {
        padding: 10px 0;
    }

    .contact-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contact-card {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media(max-width:768px) {
    .container {
        flex-direction: column;
        padding-top: 8.5rem;
    }

    .hero-text {
        padding: 0px 0px 10px 0px;
    }
}

.container2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    align-items: start;
}

@media (max-width: 1024px) {
    .container2 {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        width: 95%;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .container2 {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 95%;
        padding: 16px;
        margin: 30px auto;
    }
}

@media (max-width: 600px) {
    .container2 {
        width: 100%;
        padding: 12px;
        gap: 16px;
        margin: 20px auto;
    }
}

@media (max-width: 400px) {
    .container2 {
        width: 100%;
        padding: 10px;
        gap: 12px;
        margin: 15px auto;
    }
}

.card2 {
    background: linear-gradient(145deg, rgba(6, 6, 6, 0.55), rgba(26, 26, 26, 0.45));
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    height: fit-content;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card2.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card2:nth-child(1) {
    transform: translateX(-30px) translateY(40px) scale(0.95);
}

.card2:nth-child(1).animate-in {
    transform: translateX(0) translateY(0) scale(1);
}

.card2:nth-child(2) {
    transform: translateX(30px) translateY(40px) scale(0.95);
}

.card2:nth-child(2).animate-in {
    transform: translateX(0) translateY(0) scale(1);
}

.card2:nth-child(3) {
    transform: translateX(-20px) translateY(40px) scale(0.95);
}

.card2:nth-child(3).animate-in {
    transform: translateX(0) translateY(0) scale(1);
}

@media (max-width: 768px) {
    .card2 {
        padding: 20px;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .card2 {
        padding: 16px;
        margin-bottom: 16px;
    }
}

@media (max-width: 400px) {
    .card2 {
        padding: 12px;
        margin-bottom: 12px;
    }
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: #ff6b00;
}

.timeline-item {
    position: relative;
    padding-left: 15px;
    margin-bottom: 25px;
    border-left: 2px solid #333;
    display: flex;
    flex-wrap: wrap;
    margin-right: auto;
}

.timeline-item:last-child {
    margin-bottom: 0;
    border-left: 2px solid #333;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ff6b00;
    background-color: #0b0f15;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
    animation: fill-blink 6s infinite;
}

.timeline-dot:nth-child(1) {
    animation-delay: 0s;
}

.timeline-dot:nth-child(2) {
    animation-delay: 1s;
}

.timeline-dot:nth-child(3) {
    animation-delay: 2s;
}

.timeline-dot:nth-child(4) {
    animation-delay: 3s;
}

.timeline-dot:nth-child(5) {
    animation-delay: 4s;
}

.timeline-dot:nth-child(6) {
    animation-delay: 5s;
}

@keyframes fill-blink {

    0%,
    80%,
    100% {
        background-color: #0b0f15;
        box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
    }

    85%,
    95% {
        background-color: #ff6b00;
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
    }
}

.role {
    color: #ff6b00;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.date {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 10px;
    margin-top: 5px;
    margin-left: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.skill-tag:hover {
    border-color: #ff6b00;
    transform: translateX(5px);
}

.skill-dot {
    width: 6px;
    height: 6px;
    background-color: #ff6b00;
    border-radius: 50%;
}

body.light-mode .card2 {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .timeline-item {
    border-left: 2px solid #d0d0d0;
}

body.light-mode .timeline-item:last-child {
    border-left: 2px solid transparent;
}

body.light-mode .timeline-dot {
    background-color: #ffffff;
    border: 2px solid #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
}

body.light-mode .timeline-dot {
    animation: fill-blink-light 6s infinite;
}

@keyframes fill-blink-light {

    0%,
    80%,
    100% {
        background-color: #ffffff;
        box-shadow: 0 0 10px rgba(255, 107, 0, 0.2);
    }

    85%,
    95% {
        background-color: #ff6b00;
        box-shadow: 0 0 20px rgba(255, 107, 0, 0.8);
    }
}

body.light-mode .role {
    color: #ff6b00;
    font-weight: 600;
}

body.light-mode .place {
    color: #333333;
    font-size: 0.95rem;
}

body.light-mode .date {
    color: #666666;
    font-size: 0.85rem;
}

body.light-mode .description {
    color: #444444;
    font-size: 0.9rem;
    line-height: 1.4;
}

body.light-mode .skill-tag {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #333333;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

body.light-mode .skill-tag:hover {
    border-color: #ff6b00;
    background-color: #fff9f0;
}

body.light-mode h2 {
    color: #333333;
}

body.light-mode h2 i {
    color: #ff6b00;
}

.Skills,
.About.me,
.Contact.me,
.Projects {
    padding: 80px;
    text-align: center;
    color: var(--text-primary);
}

.main-content h1 {
    color: var(--text-primary);
    font-size: 50px;
}

.main-content h1 i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 0.9em;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 10px rgba(253, 111, 0, 0.3);
}

.main-content h1 i:hover {
    animation-play-state: paused;
    transform: scale(1.2);
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(253, 111, 0, 0.6);
}

.About.me h1 i {
    animation: cardFlip 5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.Skills h1 i {
    animation: brainWave 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.Projects h1 i {
    animation: lightbulbPulse 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.Contact.me h1 i {
    animation: messageFloat 4.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes cardFlip {

    0%,
    100% {
        transform: perspective(100px) rotateY(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: perspective(100px) rotateY(6deg) scale(1.02);
        opacity: 0.95;
    }

    50% {
        transform: perspective(100px) rotateY(0deg) scale(1.04);
        opacity: 1;
    }

    75% {
        transform: perspective(100px) rotateY(-6deg) scale(1.02);
        opacity: 0.95;
    }
}

@keyframes brainWave {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1);
    }

    25% {
        transform: scale(1.03) rotate(1deg);
        filter: hue-rotate(3deg) brightness(1.05);
    }

    50% {
        transform: scale(1.05) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1.08);
    }

    75% {
        transform: scale(1.03) rotate(-1deg);
        filter: hue-rotate(-3deg) brightness(1.05);
    }
}

@keyframes lightbulbPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 8px rgba(253, 111, 0, 0.4));
    }

    25% {
        transform: scale(1.03);
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(253, 111, 0, 0.6));
    }

    50% {
        transform: scale(1.06);
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(253, 111, 0, 0.8));
    }

    75% {
        transform: scale(1.03);
        filter: brightness(1.1) drop-shadow(0 0 10px rgba(253, 111, 0, 0.6));
    }
}

@keyframes messageFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }

    25% {
        transform: translateY(-4px) rotate(-2deg) scale(1.03);
        opacity: 0.95;
    }

    50% {
        transform: translateY(-6px) rotate(0deg) scale(1.05);
        opacity: 1;
    }

    75% {
        transform: translateY(-4px) rotate(2deg) scale(1.03);
        opacity: 0.95;
    }
}

@keyframes brainPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1);
    }

    20% {
        transform: scale(1.08) rotate(3deg);
        filter: hue-rotate(8deg) brightness(1.1);
    }

    40% {
        transform: scale(1.03) rotate(-2deg);
        filter: hue-rotate(-6deg) brightness(1.05);
    }

    50% {
        transform: scale(1.05) rotate(1deg);
        filter: hue-rotate(3deg) brightness(1.08);
    }

    60% {
        transform: scale(1.08) rotate(-1deg);
        filter: hue-rotate(-3deg) brightness(1.06);
    }

    80% {
        transform: scale(1.03) rotate(2deg);
        filter: hue-rotate(6deg) brightness(1.03);
    }
}

@keyframes lightbulbGlow {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1) drop-shadow(0 0 5px rgba(253, 111, 0, 0.3));
    }

    25% {
        transform: scale(1.05);
        filter: brightness(1.1) drop-shadow(0 0 8px rgba(253, 111, 0, 0.5));
    }

    50% {
        transform: scale(1.12);
        filter: brightness(1.25) drop-shadow(0 0 12px rgba(253, 111, 0, 0.7));
    }

    75% {
        transform: scale(1.05);
        filter: brightness(1.1) drop-shadow(0 0 8px rgba(253, 111, 0, 0.5));
    }
}

@keyframes paperPlaneFly {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    20% {
        transform: translateX(3px) translateY(-2px) rotate(-6deg);
    }

    40% {
        transform: translateX(0) translateY(-4px) rotate(-2deg);
    }

    50% {
        transform: translateX(-3px) translateY(-5px) rotate(0deg);
    }

    60% {
        transform: translateX(0) translateY(-4px) rotate(2deg);
    }

    80% {
        transform: translateX(3px) translateY(-2px) rotate(6deg);
    }

    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
}

.skills {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.skill {
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px) scale(0.8);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.circle {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    --angle: 0deg;

    background: conic-gradient(var(--accent-color) var(--angle), #222 var(--angle));

    backdrop-filter: blur(6px);

    -webkit-backdrop-filter: blur(6px);

    background-color: rgba(255, 255, 255, 0.05);

    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.4);

    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

body.light-mode .circle {
    background: conic-gradient(var(--accent-color) var(--angle), #ddd var(--angle));
    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.8),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.1);
}

.circle:hover {
    transform: scale(1.08);
    box-shadow:
        inset 0 4px 8px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.4),
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 30px var(--accent-glow);
}

.circle::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.25),
            transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
}

.circle::after {
    content: "";
    width: 95px;
    height: 95px;
    background: var(--circle-inner);
    border-radius: 50%;
    position: absolute;
    backdrop-filter: blur(4px);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.15),
        inset 0 -3px 6px rgba(0, 0, 0, 0.4);
}

.icon {
    position: absolute;
    font-size: 32px;
    color: white;
    z-index: 3;
    opacity: 0.4;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.4));
}

body.light-mode .icon {
    color: #333;
    opacity: 0.7;
}

.meta {
    margin-top: 12px;
}

.value {
    font-weight: 700;
    font-size: 18px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.label {
    color: var(--text-primary);
    margin-top: 6px;
    font-size: 16px;
    font-family: monospace;
}

.circle {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.35s ease;
}

.circle:hover {
    transform: translateY(-10px) scale(1.08);

    box-shadow:
        inset 0 5px 10px rgba(255, 255, 255, 0.25),
        inset 0 -6px 12px rgba(0, 0, 0, 0.45),
        0 12px 25px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(253, 111, 0, 0.4);
}

.circle:hover .icon {
    opacity: 0.9;
    transform: scale(1.12);
    transition: 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(253, 111, 0, 0.7));
}

.contact-section {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    text-align: center;
    color: var(--text-secondary);
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.light-mode .contact-section h2 {
    text-shadow: none;
}

.projects-grid {
    width: 90%;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    padding: 20px 0;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        var(--shadow-heavy),
        var(--shadow-light),
        inset 2px 2px 4px rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    perspective: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:nth-child(odd) {
    transform: translateX(-40px) translateY(60px) scale(0.9);
}

.card:nth-child(odd).animate-in {
    transform: translateX(0) translateY(0) scale(1);
}

.card:nth-child(even) {
    transform: translateX(40px) translateY(60px) scale(0.9);
}

.card:nth-child(even).animate-in {
    transform: translateX(0) translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);

    border: 1px solid var(--accent-color);

    box-shadow:
        12px 20px 40px rgba(0, 0, 0, 0.8),
        -8px -8px 20px rgba(40, 40, 40, 0.2),
        inset 2px 2px 6px rgba(255, 255, 255, 0.08),
        inset -2px -2px 6px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(253, 111, 0, 0.25);
}

body.light-mode .card:hover {
    box-shadow:
        12px 20px 40px rgba(0, 0, 0, 0.1),
        -8px -8px 20px rgba(255, 255, 255, 0.8);
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image-gallery {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateZ(20px);
}

body.light-mode .card-img {
    filter: grayscale(30%) brightness(1);
}

.card:hover .card-img {
    filter: grayscale(30%) brightness(1);
    transform: translateZ(30px) scale(1.05);
}

.card-img-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(25px) scale(1.02);
}

.card:hover .card-img-hover {
    filter: grayscale(30%) brightness(1);
}

body.light-mode .card-img-hover {
    filter: grayscale(30%) brightness(1);
}

.card-body {
    padding: 24px;
    position: relative;
    background: linear-gradient(180deg, rgba(28, 28, 28, 0) 0%, rgba(28, 28, 28, 0.4) 100%);
    transform: translateZ(10px);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

body.light-mode .card-body {
    background: transparent;
}

.category-icon {
    position: absolute;
    top: 55.5%;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--accent-color);
    z-index: 10;
}

.card-logo {
    position: absolute;
    top: calc(50% - 10px);
    left: 12px;
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    background: var(--card-bg);
    padding: 3px;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    transform: translateY(-50%);
}

.card:hover .card-logo {
    transform: translateY(-50%) scale(1.1) translateZ(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.light-mode .card-logo {
    background: var(--card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

body.light-mode .card:hover .card-logo {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.tech {
    color: var(--accent-color);
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

body.light-mode .card-body p {
    text-shadow: none;
}

.button-group {
    display: flex;
    align-items: center;
}

.git-btn {
    display: flex;
    margin: 15px auto;
    justify-content: center;

    max-width: 40%;
    align-items: center;
    padding: 10px 20px;
    color: var(--accent-color);
    font-size: 12px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.4),
        inset 1px 1px 2px #9e9e9e;
    transform: translateZ(15px);
}

body.light-mode .git-btn {
    box-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.1),
        inset 1px 1px 2px #fff;
    background: #f0f0f0;
}

.git-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.git-btn:hover::before {
    left: 100%;
}

.git-btn:hover {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    color: #141414;
    transform: translateZ(20px) translateY(-2px);
    border-color: #ff8c3a;
}

body.light-mode .git-btn:hover {
    color: #ffffff;
    background: #ff8c3a;
}

.git-btn i {
    color: var(--accent-color);
    margin-left: 8px;
}

.git-btn:hover i {
    color: #141414;
}

body.light-mode .git-btn:hover i {
    color: #ffffff;
}

.btn:hover {
    transform: translateZ(20px) translateY(-2px);
}


.contact-form {
    width: 100%;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-form.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0;
    padding: 0;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    background: var(--input-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s ease, opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--input-bg) inset !important;
    -webkit-text-fill-color: var(--text-primary) !important;
    background: var(--input-bg) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.light-mode .form-input {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    outline: none;
    border-color: rgba(253, 111, 0, 0.5);
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.8), rgba(20, 20, 20, 0.8));
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(253, 111, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
}

.form-input:hover {
    border-color: rgba(253, 111, 0, 0.3);
    transform: translateY(-1px) scale(1.01);
}

body.light-mode .form-input:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(253, 111, 0, 0.1);
}

.textarea {
    height: 140px;
    resize: none;
    grid-column: span 1;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
}

.select-wrapper select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 10px;
}

.select-wrapper select option:hover {
    background: var(--accent-color);
    color: #141414;
}

.dropdown-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    pointer-events: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select-wrapper:hover .dropdown-icon {
    transform: translateY(-50%) scale(1.1);
}

.textarea {
    grid-column: span 1;
}

.submit-btn {
    margin-top: 30px;
    padding: 12px 36px;
    font-size: 16px;
    background: linear-gradient(145deg, rgba(253, 111, 0, 0.15), rgba(253, 111, 0, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(253, 111, 0, 0.5);
    border-radius: 12px;
    cursor: pointer;
    float: right;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: all 0.3s ease, opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 200px;
}

.submit-btn.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

body.light-mode .submit-btn {
    color: #000000;
}

.submit-btn:hover {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    backdrop-filter: blur(15px);
    color: #fff;
    border-color: rgba(255, 140, 58, 0.8);
    transform: translateY(-3px) translateZ(10px);
    box-shadow:
        0 8px 25px rgba(253, 111, 0, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

body.light-mode .submit-btn:hover {
    color: #000000;
}



@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .textarea {
        grid-column: span 1;
    }

    .submit-btn {
        float: none;
        width: 100%;
    }
}

.footer {
    background: var(--footer-bg);
    padding: 40px 0 20px;
    text-align: center;
    color: var(--text-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--accent-glow);
    text-align: center;
    text-align: center;
    width: 100%;
    display: block;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 0;
    margin-bottom: 30px;
}

.footer-menu li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
    position: relative;
}

.footer-menu li a:hover::after {
    width: 100%;
}

.footer-menu li a:hover {
    color: var(--accent-color);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    color: var(--text-secondary);
    font-size: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.5), rgba(20, 20, 20, 0.5));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
}

body.light-mode .footer-socials a {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        5px 5px 10px rgba(0, 0, 0, 0.1),
        -5px -5px 10px rgba(255, 255, 255, 0.8);
}

.footer-socials a:hover {
    border-color: rgba(253, 111, 0, 0.5);
    color: var(--accent-color);
    background: linear-gradient(145deg, rgba(253, 111, 0, 0.15), rgba(253, 111, 0, 0.1));
    backdrop-filter: blur(15px);
    transform: translateY(-5px) translateZ(10px);
    box-shadow:
        0 8px 20px rgba(253, 111, 0, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.footer-line {
    width: 60%;
    margin: 20px auto;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(150, 150, 150, 0.3), transparent);
}

.footer-credit {
    color: var(--text-secondary);
    font-size: 14px;
}


.filter-section {
    text-align: center;
    margin-top: 40px;
}

.filter-btn {
    background: var(--filter-btn-bg);
    padding: 8px 28px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.light-mode .filter-btn {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        3px 3px 6px rgba(0, 0, 0, 0.1),
        -3px -3px 6px rgba(255, 255, 255, 0.8);
}

.filter-btn:hover {
    background: linear-gradient(145deg, rgba(253, 111, 0, 0.15), rgba(253, 111, 0, 0.1));
    color: var(--accent-color);
    border-color: rgba(253, 111, 0, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(145deg, #fd6f00, #ff8c3a);
    color: #141414;
    border-color: rgba(255, 140, 58, 0.5);
}

body.light-mode .filter-btn.active {
    color: #fff;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.wrapper,
.hero-header,
.main-content {
    position: relative;
    z-index: 2;
}

footer {
    position: relative;
    z-index: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(255, 140, 60, 0.03), transparent 6%),
        radial-gradient(circle at 90% 90%, rgba(80, 120, 255, 0.02), transparent 8%);
    z-index: 0;
    pointer-events: none;
}

@media (max-width:768px) {
    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text h2 span {
        font-size: 24px;
    }

    .container {
        padding-top: 4rem;
    }
}

@media (max-width:420px) {
    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text h2 span {
        font-size: 20px;
    }
}

.elevated {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}


@media screen and (max-width: 1024px) {
    .container {
        padding-top: 6rem;
        gap: 40px;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 380px;
        height: 380px;
    }

    .hero-text h1 {
        font-size: 55px;
    }

    .hero-text h2 span {
        font-size: 38px;
    }

    .hero-text h3 {
        font-size: 18px;
    }

    .skills {
        gap: 60px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
    }

    .Skills,
    .About.me,
    .Contact.me,
    .Projects {
        padding: 60px 40px;
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    header {
        padding: 15px 10px;
    }

    .logo-text {
        font-size: 24px;
        margin-left: 1rem;
    }

    .logo-text img {
        height: 24px;
        width: auto;
    }

    .container {
        flex-direction: column;
        padding-top: 8.5rem;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 280px;
        height: 280px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text {
        align-items: center;
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-text h2 span {
        font-size: 28px;
    }

    .hero-text h3 {
        font-size: 16px;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .btn-group .btn,
    .btn2 {
        width: 100%;
        text-align: center;
        margin-right: 0;
    }

    .hero-text .btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-text .btn-group .btn,
    .hero-text .btn-group .btn2 {
        width: 100%;
        max-width: none;
        margin-right: 0;
    }

    .project-logos-container {
        max-width: 300px;
        margin: 0 auto;
    }

    .About.me .btn-group {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .About.me .btn-group .btn,
    .About.me .btn-group .btn2 {
        width: auto;
        min-width: 140px;
        flex: 1;
        max-width: 200px;
    }

    .hero-text .social {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .hero-text .social i {
        margin-right: 0;
    }

    .stats-section {
        flex-direction: column;
        max-width: 280px;
        padding: 30px 20px;
        margin: 30px auto;
    }

    .stat-separator {
        width: 1px;
        height: 40px;
        margin: 0 10px;
    }

    .stat-container {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .Skills,
    .About.me,
    .Contact.me,
    .Projects {
        padding: 50px 20px;
    }

    .main-content h1 {
        font-size: 36px;
    }

    .main-content h1 i {
        font-size: 0.9em;
        margin-right: 12px;
    }

    .skills {
        gap: 50px;
        margin-top: 40px;
    }

    .circle {
        width: 90px;
        height: 90px;
    }

    .circle::after {
        width: 80px;
        height: 80px;
    }

    .icon {
        font-size: 28px;
    }

    .value {
        font-size: 16px;
    }

    .label {
        font-size: 14px;
    }

    .contact-section {
        max-width: 100%;
        padding: 0 20px;
    }

    .contact-section h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .textarea {
        grid-column: span 1;
        height: 120px;
    }

    .submit-btn {
        width: 100%;
        max-width: 200px;
        float: none;
        margin: 20px auto 0;
        display: block;
    }

    .filter-section {
        margin-top: 30px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 14px;
        margin: 5px;
    }

    .projects-grid {
        width: 95%;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }

    .card {
        max-width: 100%;
    }

    .card-image-container {
        height: 200px;
    }

    .card-img {
        height: 200px;
    }

    .card-body {
        padding: 20px;
    }

    .card-logo {
        width: 60px;
        height: 60px;
        left: 10px;
    }

    .footer {
        padding: 30px 20px 15px;
    }

    .footer-title {
        font-size: 20px;
    }

    .footer-menu {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-menu li a {
        font-size: 15px;
    }

    .footer-socials {
        gap: 15px;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .footer-line {
        width: 80%;
    }

    .footer-credit {
        font-size: 12px;
    }
}

@media screen and (max-width: 600px) {
    .projects-grid {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0 15px;
    }

    .card {
        border-radius: 14px;
    }

    .card-image-container {
        height: 180px;
    }

    .card-img {
        height: 180px;
    }

    .card-body {
        padding: 18px;
    }

    .card-logo {
        width: 55px;
        height: 55px;
        left: 8px;
        padding: 2px;
    }

    .project-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .tech {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .card-body p {
        font-size: 12px;
    }

    .git-btn {
        padding: 8px 16px;
        font-size: 11px;
        margin-top: 12px;
    }
}

@media screen and (max-width: 480px) {
    .projects-grid {
        width: 100%;
        padding: 0 10px;
        gap: 15px;
    }

    .card {
        border-radius: 12px;
    }

    .card-image-container {
        height: 160px;
    }

    .card-img {
        height: 160px;
    }

    .card-body {
        padding: 16px;
    }

    .card-logo {
        width: 50px;
        height: 50px;
        left: 6px;
        padding: 2px;
    }

    .project-title {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .tech {
        font-size: 10px;
    }

    .card-body p {
        font-size: 11px;
    }

    .git-btn {
        padding: 7px 14px;
        font-size: 10px;
    }

    .logo-text {
        font-size: 20px;
        margin-left: 0.5rem;
    }

    .logo-text img {
        height: 20px;
        width: auto;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 220px;
        height: 220px;
        margin-bottom: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text h2 span {
        font-size: 24px;
    }

    .hero-text h3 {
        font-size: 14px;
    }

    .stats-section {
        max-width: 260px;
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 0.9em;
    }

    .Skills,
    .About.me,
    .Contact.me,
    .Projects {
        padding: 40px 15px;
    }

    .main-content h1 {
        font-size: 30px;
    }

    .main-content h1 i {
        font-size: 0.9em;
        margin-right: 10px;
    }

    .skills {
        gap: 40px;
    }

    .circle {
        width: 80px;
        height: 80px;
    }

    .circle::after {
        width: 70px;
        height: 70px;
    }

    .icon {
        font-size: 24px;
    }

    .contact-section h2 {
        font-size: 24px;
    }

    .form-input {
        padding: 12px 15px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .card-img {
        height: 180px;
    }

    .card-body {
        padding: 16px;
    }

    .project-title {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .tech {
        font-size: 11px;
    }

    .card-body p {
        font-size: 12px;
    }

    .git-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .footer-title {
        font-size: 18px;
    }

    .footer-menu li a {
        font-size: 14px;
    }

    .footer-socials a {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
    .container {
        flex-direction: row;
        padding-top: 4rem;
        min-height: auto;
    }

    .container .hero-pic,
    .container .hero-bg {
        width: 220px;
        height: 220px;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text h2 span {
        font-size: 20px;
    }
}

@media print {

    .menu-toggle,
    nav .navlinks,
    .btn-group,
    .social,
    .footer-socials,
    #bg-canvas {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-text h1,
    .hero-text h2 span,
    .main-content h1 {
        color: black;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(253, 111, 0, 0.15);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    color: #ffffff;
    border: 1px solid rgba(253, 111, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    box-shadow:
        0 8px 32px rgba(253, 111, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(253, 111, 0, 0.25);
    border-color: rgba(253, 111, 0, 0.5);
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(253, 111, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.back-to-top:active {
    transform: translateY(-1px);
    background: rgba(253, 111, 0, 0.35);
}

body.light-mode .back-to-top {
    background: rgba(253, 111, 0, 0.08);
    border-color: rgba(253, 111, 0, 0.2);
    color: #000000;
    box-shadow:
        0 8px 32px rgba(253, 111, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

body.light-mode .back-to-top:hover {
    background: rgba(253, 111, 0, 0.15);
    border-color: rgba(253, 111, 0, 0.35);
    box-shadow:
        0 12px 40px rgba(253, 111, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-card {
    position: relative;
    background: linear-gradient(145deg, rgba(6, 6, 6, 0.85), rgba(26, 26, 26, 0.75));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-popup.show .popup-card {
    transform: scale(1) translateY(0);
}

body.light-mode .popup-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.85));
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.success-icon {
    margin-bottom: 20px;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(145deg, var(--accent-color), #ff8c3a);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 25px rgba(253, 111, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.2);
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform: scale(0);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.checkmark {
    width: 25px;
    height: 15px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    animation: drawCheck 0.3s ease-out 0.4s forwards;
    opacity: 0;
}

@keyframes drawCheck {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }

    50% {
        width: 25px;
        height: 0;
        opacity: 1;
    }

    100% {
        width: 25px;
        height: 15px;
        opacity: 1;
    }
}

.popup-card h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.6s forwards;
}

.popup-card p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.popup-ok-btn {
    background: linear-gradient(145deg, var(--accent-color), #ff8c3a);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(253, 111, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.8s forwards;
}

.popup-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 111, 0, 0.4);
    background: linear-gradient(145deg, #ff8c3a, var(--accent-color));
}

.popup-ok-btn:active {
    transform: translateY(0);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .popup-card {
        padding: 30px 20px;
        margin: 20px;
    }

    .checkmark-circle {
        width: 60px;
        height: 60px;
    }

    .checkmark {
        width: 20px;
        height: 12px;
    }

    .popup-card h3 {
        font-size: 20px;
    }

    .popup-card p {
        font-size: 14px;
    }

    .popup-ok-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

.MyApproach {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-primary);
    overflow: hidden;
}

.MyApproach h1 i {
    color: var(--accent-color);
    margin-right: 15px;
    animation: rocketLaunch 4s ease-in-out infinite;
}

@keyframes rocketLaunch {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1) drop-shadow(0 0 10px var(--accent-glow));
    }

    25% {
        transform: translateY(-3px) scale(1.05);
        filter: brightness(1.1) drop-shadow(0 5px 15px var(--accent-glow));
    }

    50% {
        transform: translateY(-5px) scale(1.1);
        filter: brightness(1.2) drop-shadow(0 10px 25px var(--accent-glow));
    }

    75% {
        transform: translateY(-3px) scale(1.05);
        filter: brightness(1.1) drop-shadow(0 5px 15px var(--accent-glow));
    }
}

.approach-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    height: 400px;
}

.main-stage {
    position: relative;
    width: 550px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, rgba(6, 6, 6, 0.55), rgba(26, 26, 26, 0.45));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    padding: 40px 60px;

    --anim-primary: #FD6F00;
    --anim-primary-dark: #e26400;
    --anim-yellow: #FBC56C;
    --anim-gray: #6c7486;

    --anim-white: #ffffff;
    --anim-paper: #EEF0FD;
    --anim-truck-grad: #cdd9ed;

    --anim-dark-window: #1c212e;
    --anim-dark-grad: #3f4656;
}

body.light-mode .main-stage {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

    --anim-white: #1a1a1a;
    --anim-paper: #333333;
    --anim-truck-grad: #555555;

    --anim-dark-window: #e6e6e6;
    --anim-dark-grad: #cccccc;
}

.phase {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    background: transparent;
}

.phase.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.phase-title {
    margin: 0 0 20px 0;
    font-size: 3rem;
    color: var(--text-secondary);
    font-weight: 700;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
}

.phase-label {
    margin: 40px 0 10px 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.phase-info {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.phase.active .phase-title {
    opacity: 0.1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.phase.active .phase-label {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.phase.active .phase-info {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.anim-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.phase.active .anim-wrapper {
    transform: scale(1.2);
    transition-delay: 0.2s;
}

.typewriter {
    position: relative;
    animation: tw-bounce 3s linear infinite;
}

.typewriter .slide {
    width: 92px;
    height: 20px;
    border-radius: 3px;
    margin-left: 14px;
    transform: translateX(14px);
    background: linear-gradient(var(--anim-primary), var(--anim-primary-dark));
    animation: tw-slide 3s ease infinite;
    position: relative;
}

.typewriter .slide:before,
.typewriter .slide:after,
.typewriter .slide i:before {
    content: '';
    position: absolute;
    background: var(--anim-yellow);
}

.typewriter .slide:before {
    width: 2px;
    height: 8px;
    top: 6px;
    left: 100%;
}

.typewriter .slide:after {
    left: 94px;
    top: 3px;
    height: 14px;
    width: 6px;
    border-radius: 3px;
}

.typewriter .slide i {
    display: block;
    position: absolute;
    right: 100%;
    width: 6px;
    height: 4px;
    top: 4px;
    background: var(--anim-yellow);
}

.typewriter .slide i:before {
    right: 100%;
    top: -2px;
    width: 4px;
    border-radius: 2px;
    height: 14px;
}

.typewriter .paper {
    position: absolute;
    left: 24px;
    top: -26px;
    width: 40px;
    height: 46px;
    border-radius: 5px;
    background: var(--anim-paper);
    transform: translateY(46px);
    animation: tw-paper 3s linear infinite;
    z-index: 0;
}

.typewriter .paper:before {
    content: '';
    position: absolute;
    left: 6px;
    right: 6px;
    top: 7px;
    border-radius: 2px;
    height: 4px;
    transform: scaleY(.8);
    background: var(--anim-gray);
    box-shadow: 0 12px 0 var(--anim-gray), 0 24px 0 var(--anim-gray), 0 36px 0 var(--anim-gray);
}

.typewriter .keyboard {
    width: 120px;
    height: 56px;
    margin-top: -10px;
    z-index: 1;
    position: relative;
}

.typewriter .keyboard:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--anim-primary), var(--anim-primary-dark));
    transform: perspective(10px) rotateX(2deg);
    transform-origin: 50% 100%;
}

.typewriter .keyboard:after {
    content: '';
    position: absolute;
    left: 2px;
    top: 25px;
    width: 11px;
    height: 4px;
    border-radius: 2px;
    box-shadow: 15px 0 0 var(--anim-white), 30px 0 0 var(--anim-white), 45px 0 0 var(--anim-white), 60px 0 0 var(--anim-white), 75px 0 0 var(--anim-white), 90px 0 0 var(--anim-white), 22px 10px 0 var(--anim-white), 37px 10px 0 var(--anim-white), 52px 10px 0 var(--anim-white), 60px 10px 0 var(--anim-white), 68px 10px 0 var(--anim-white), 83px 10px 0 var(--anim-white);
    animation: tw-keyboard 3s linear infinite;
}

.loader {
    position: relative;
    width: 120px;
    height: 90px;
    margin: 0 auto;
}

.loader:before {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50px;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background: var(--anim-primary);
    animation: loading-bounce 0.5s ease-in-out infinite alternate;
}

.loader:after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 7px;
    width: 45px;
    border-radius: 4px;
    box-shadow: 0 5px 0 var(--anim-white), -35px 50px 0 var(--anim-white), -70px 95px 0 var(--anim-white);
    animation: loading-step 1s ease-in-out infinite;
}

.truck-stage {
    position: relative;
    height: 60px;
    width: 240px;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.truck-stage .lines {
    opacity: 0;
    position: absolute;
    height: 3px;
    background: var(--anim-white);
    border-radius: 2px;
    width: 6px;
    top: 30px;
    left: 100%;
    box-shadow: 15px 0 0 var(--anim-white), 30px 0 0 var(--anim-white), 45px 0 0 var(--anim-white), 60px 0 0 var(--anim-white), 75px 0 0 var(--anim-white), 90px 0 0 var(--anim-white), 105px 0 0 var(--anim-white), 120px 0 0 var(--anim-white), 135px 0 0 var(--anim-white), 150px 0 0 var(--anim-white), 165px 0 0 var(--anim-white), 180px 0 0 var(--anim-white), 195px 0 0 var(--anim-white), 210px 0 0 var(--anim-white), 225px 0 0 var(--anim-white), 240px 0 0 var(--anim-white), 255px 0 0 var(--anim-white), 270px 0 0 var(--anim-white), 285px 0 0 var(--anim-white), 300px 0 0 var(--anim-white), 315px 0 0 var(--anim-white), 330px 0 0 var(--anim-white);
}

.truck-stage .back,
.truck-stage .box {
    background: linear-gradient(var(--anim-white), var(--anim-truck-grad));
    border-radius: 2px;
    position: absolute;
}

.truck-stage .truck {
    width: 60px;
    height: 41px;
    left: 100%;
    z-index: 1;
    top: 11px;
    position: absolute;
    transform: translateX(24px);
}

.truck-stage .truck:before,
.truck-stage .truck:after {
    content: "";
    height: 2px;
    width: 20px;
    right: 58px;
    position: absolute;
    background: var(--anim-white);
    border-radius: 1px;
    transform-origin: 100% 50%;
}

.truck-stage .truck:before {
    top: 4px;
    transform: rotate(-90deg);
}

.truck-stage .truck:after {
    bottom: 4px;
    transform: rotate(90deg);
}

.truck-stage .truck .back {
    left: 0;
    top: 0;
    width: 60px;
    height: 41px;
    z-index: 1;
}

.truck-stage .truck .front {
    overflow: hidden;
    position: absolute;
    border-radius: 2px 9px 9px 2px;
    width: 26px;
    height: 41px;
    left: 60px;
}

.truck-stage .truck .front:before {
    content: "";
    position: absolute;
    height: 13px;
    width: 2px;
    left: 0;
    top: 14px;
    background: linear-gradient(var(--anim-gray), var(--anim-dark-grad));
}

.truck-stage .truck .front:after {
    content: "";
    position: absolute;
    border-radius: 2px 9px 9px 2px;
    background: var(--anim-primary);
    width: 24px;
    height: 41px;
    right: 0;
}

.truck-stage .truck .front .window {
    overflow: hidden;
    border-radius: 2px 8px 8px 2px;
    background: var(--anim-primary-dark);
    transform: perspective(4px) rotateY(3deg);
    width: 22px;
    height: 41px;
    position: absolute;
    left: 2px;
    top: 0;
    z-index: 1;
    transform-origin: 0 50%;
}

.truck-stage .truck .front .window:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: var(--anim-dark-window);
}

.truck-stage .truck .front .window:after {
    content: "";
    position: absolute;
    right: 0;
    top: 7px;
    width: 14px;
    height: 4px;
    background: rgba(255, 255, 255, 0.14);
    transform: skewY(14deg);
    box-shadow: 0 7px 0 rgba(255, 255, 255, 0.14);
}

.truck-stage .truck .light {
    width: 3px;
    height: 8px;
    left: 83px;
    transform-origin: 100% 50%;
    position: absolute;
    border-radius: 2px;
    transform: scaleX(0.8);
    background: var(--anim-yellow);
}

.truck-stage .truck .light:before {
    content: "";
    height: 4px;
    width: 7px;
    opacity: 0;
    transform: perspective(2px) rotateY(-15deg) scaleX(0.94);
    position: absolute;
    transform-origin: 0 50%;
    left: 3px;
    top: 50%;
    margin-top: -2px;
    background: linear-gradient(90deg, var(--anim-yellow), rgba(255, 123, 0, 0.7), rgba(240, 220, 95, 0));
}

.truck-stage .truck .light.top {
    top: 4px;
}

.truck-stage .truck .light.bottom {
    bottom: 4px;
}

.truck-stage .box {
    width: 21px;
    height: 21px;
    right: 100%;
    top: 21px;
}

.truck-stage .box:before,
.truck-stage .box:after {
    content: "";
    top: 10px;
    position: absolute;
    left: 0;
    right: 0;
}

.truck-stage .box:before {
    height: 3px;
    margin-top: -1px;
    background: rgba(0, 0, 0, 0.1);
}

.truck-stage .box:after {
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

@keyframes tw-bounce {

    85%,
    92%,
    100% {
        transform: translateY(0);
    }

    89% {
        transform: translateY(-4px);
    }

    95% {
        transform: translateY(2px);
    }
}

@keyframes tw-slide {
    5% {
        transform: translateX(14px);
    }

    15%,
    30% {
        transform: translateX(6px);
    }

    40%,
    55% {
        transform: translateX(0);
    }

    65%,
    70% {
        transform: translateX(-4px);
    }

    80%,
    89% {
        transform: translateX(-12px);
    }

    100% {
        transform: translateX(14px);
    }
}

@keyframes tw-paper {
    5% {
        transform: translateY(46px);
    }

    20%,
    30% {
        transform: translateY(34px);
    }

    40%,
    55% {
        transform: translateY(22px);
    }

    65%,
    70% {
        transform: translateY(10px);
    }

    80%,
    85% {
        transform: translateY(0);
    }

    92%,
    100% {
        transform: translateY(46px);
    }
}

@keyframes tw-keyboard {

    5%,
    12%,
    21%,
    30%,
    39%,
    48%,
    57%,
    66%,
    75%,
    84% {
        box-shadow: 15px 0 0 var(--anim-white), 30px 0 0 var(--anim-white), 45px 0 0 var(--anim-white), 60px 0 0 var(--anim-white), 75px 0 0 var(--anim-white), 90px 0 0 var(--anim-white), 22px 10px 0 var(--anim-white), 37px 10px 0 var(--anim-white), 52px 10px 0 var(--anim-white), 60px 10px 0 var(--anim-white), 68px 10px 0 var(--anim-white), 83px 10px 0 var(--anim-white);
    }

    9% {
        box-shadow: 15px 2px 0 var(--anim-white), 30px 0 0 var(--anim-white), 45px 0 0 var(--anim-white), 60px 0 0 var(--anim-white), 75px 0 0 var(--anim-white), 90px 0 0 var(--anim-white), 22px 10px 0 var(--anim-white), 37px 10px 0 var(--anim-white), 52px 10px 0 var(--anim-white), 60px 10px 0 var(--anim-white), 68px 10px 0 var(--anim-white), 83px 10px 0 var(--anim-white);
    }

    18% {
        box-shadow: 15px 0 0 var(--anim-white), 30px 0 0 var(--anim-white), 45px 0 0 var(--anim-white), 60px 2px 0 var(--anim-white), 75px 0 0 var(--anim-white), 90px 0 0 var(--anim-white), 22px 10px 0 var(--anim-white), 37px 10px 0 var(--anim-white), 52px 10px 0 var(--anim-white), 60px 10px 0 var(--anim-white), 68px 10px 0 var(--anim-white), 83px 10px 0 var(--anim-white);
    }
}

@keyframes loading-bounce {
    0% {
        transform: scale(1, 0.7);
    }

    40% {
        transform: scale(0.8, 1.2);
    }

    60% {
        transform: scale(1, 1);
    }

    100% {
        bottom: 140px;
    }
}

@keyframes loading-step {
    0% {
        box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 var(--anim-white), -35px 50px 0 var(--anim-white), -70px 90px 0 var(--anim-white);
    }

    100% {
        box-shadow: 0 10px 0 var(--anim-white), -35px 50px 0 var(--anim-white), -70px 90px 0 var(--anim-white), -70px 90px 0 rgba(0, 0, 0, 0);
    }
}

@keyframes tr-truck {

    10%,
    30% {
        transform: translateX(-164px);
    }

    40% {
        transform: translateX(-104px);
    }

    60% {
        transform: translateX(-224px);
    }

    75%,
    100% {
        transform: translateX(24px);
    }
}

@keyframes tr-lines {

    0%,
    30% {
        opacity: 0;
        transform: scaleY(0.7) translateX(0);
    }

    35%,
    65% {
        opacity: 1;
    }

    70% {
        opacity: 0;
    }

    100% {
        transform: scaleY(0.7) translateX(-400px);
    }
}

@keyframes tr-light {

    0%,
    30% {
        opacity: 0;
        transform: perspective(2px) rotateY(-15deg) scaleX(0.88);
    }

    40%,
    100% {
        opacity: 1;
        transform: perspective(2px) rotateY(-15deg) scaleX(0.94);
    }
}

@keyframes tr-door1 {

    30%,
    50% {
        transform: rotate(32deg);
    }
}

@keyframes tr-door2 {

    30%,
    50% {
        transform: rotate(-32deg);
    }
}

@keyframes tr-box {

    8%,
    10% {
        transform: translateX(40px);
        opacity: 1;
    }

    25% {
        transform: translateX(112px);
        opacity: 1;
    }

    26% {
        transform: translateX(112px);
        opacity: 0;
    }

    27%,
    100% {
        transform: translateX(0px);
        opacity: 0;
    }
}

.truck-stage.animate .truck {
    animation: tr-truck 10s ease forwards;
}

.truck-stage.animate .truck:before {
    animation: tr-door1 2.4s ease forwards 0.3s;
}

.truck-stage.animate .truck:after {
    animation: tr-door2 2.4s ease forwards 0.6s;
}

.truck-stage.animate .truck .light:before {
    animation: tr-light 10s ease forwards;
}

.truck-stage.animate .box {
    animation: tr-box 10s ease forwards;
}

.truck-stage.animate .lines {
    animation: tr-lines 10s ease forwards;
}

@media (max-width: 600px) {
    .approach-container {
        transform: scale(0.6);
        margin-top: -50px;
        margin-bottom: -50px;
    }

    .phase-info {
        margin: 0 20px;
    }
}