/* Variables */
:root {
    --color-bg: #0f172a;
    --color-bg-secondary: #1e293b;
    --color-text: #f1f5f9;
    --color-dim-text: #b3b8c1;
    --color-primary: #38bdf8;
    --color-primary-hover: #0284c7;
    --nav-height: 96px;
    --font-family: 'Inter', sans-serif;
    --font-size-base: 16px;
    --transition-speed: 0.3s ease;
}

@property --orbit-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* Base Styles */

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: #030712;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.08), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.08), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(99, 102, 241, 0.06), transparent 55%),
        linear-gradient(135deg, rgba(2, 6, 23, 0.95), rgba(2, 8, 23, 0.85));
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.main {
    max-width: 80%;
    margin: auto;
    position: relative;
    z-index: 1;
}

html,
body {
    -webkit-user-select: none;
    /* Safari */
    -webkit-touch-callout: none;
    /* iOS long-press menu */
    user-select: none;
}

*,
*::before,
*::after {
    -webkit-user-select: inherit;
    user-select: inherit;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Space Grotesk", serif;
    font-optical-sizing: auto;
}

.about__me strong,
.section__description strong {
    font-weight: inherit;
}

/* Section */
.section {
    padding: 4rem 1rem;
    margin: auto;
    text-align: center;
}

@media (max-width: 768px) {
    :root {
        --nav-height: 72px;
    }

    .section {
        padding: 2.5rem 0.5rem;
        text-align: left;
    }

    /* Keep hero and tech stack centered on mobile */
    .main__intro,
    .tech__stacks__and__tools {
        text-align: center;
    }

    .tech__stacks__and__tools .section__heading,
    .tech__stacks__and__tools .section__description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .main__intro {
        padding: 0.75rem 0.5rem 0;
    }

    .profile__image {
        margin: 12px 0;
        width: 130px;
        height: 130px;
    }

    .section:first-of-type {
        padding-top: 1rem;
    }

    /* Adjust vertical margins for section elements */
    .section__heading {
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
        letter-spacing: 0.01em;
        text-align: left;
    }

    .subtitle {
        font-size: clamp(1.05rem, 4vw, 1.15rem);
        line-height: 1.45;
        margin-bottom: 1.75rem;
    }

    .section__description {
        font-size: 1rem;
        letter-spacing: 0.005em;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .tech__stack__wrapper {
        margin: 1.5rem 0;
    }

    .project__card {
        margin-bottom: 1.5rem;
    }

    /* Adjust spacing for specific sections */
    #about {
        padding-top: 0;
    }

    #tech-stack,
    #journey,
    #education,
    #projects,
    #blogs,
    #contact {
        padding-top: 2rem;
        padding-bottom: 0.1rem;
    }


    .tech__item {
        margin: 0.5rem;
    }

    .project__description {
        margin: 0.75rem 0;
    }

    .contact__text {
        margin: 1rem 0;
    }

    .education__container {
        gap: 1.25rem;
    }

    .education__card {
        text-align: left;
    }

    .education__icon {
        margin: 0 0 1rem;
    }

    .footer__cta-button {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .about__cta {
        margin-top: 1.5rem;
    }

    .timeline__content h3,
    .education__card h3,
    .project__info h3 {
        font-size: 1.3rem;
        letter-spacing: 0.008em;
    }

    .timeline__content h4,
    .education__card h4 {
        font-size: 1rem;
        letter-spacing: 0.006em;
    }

    .timeline__content p,
    .education__card p,
    .project__info p {
        font-size: 1.05rem;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 0.75rem;
    }

    #about {
        padding-top: 0.75rem;
    }

    .section__heading {
        margin-bottom: 1.25rem;
        font-size: 1.6rem;
        letter-spacing: 0.008em;
    }

    .subtitle {
        font-size: clamp(1rem, 4.5vw, 1.1rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .section__description {
        font-size: 1rem;
        letter-spacing: 0.004em;
        margin-bottom: 1.25rem;
    }

    .tech__item {
        margin: 0.4rem;
    }

    .timeline__content h3,
    .education__card h3,
    .project__info h3 {
        font-size: 1.2rem;
    }

    .timeline__content h4,
    .education__card h4 {
        font-size: 1rem;
    }

    .timeline__date {
        font-size: 1rem;
    }
}

/* Section Title */
.section__heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.015em;
}

/* Section Description */
.section__description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-dim-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.js-enabled [data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--animate-delay, 0s);
    will-change: opacity, transform;
}

body.js-enabled [data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

body.js-enabled .section[data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
}

body.js-enabled [data-animate="fade-left"] {
    transform: translateX(-32px);
}

body.js-enabled [data-animate="fade-right"] {
    transform: translateX(32px);
}

body.js-enabled [data-animate="scale"] {
    transform: scale(0.94);
}

body.js-enabled [data-animate="scale"].animate-in {
    transform: scale(1);
}

@media (max-width: 820px) {
    body.js-enabled [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.js-enabled [data-animate] {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
}

.show__on__mobile {
    display: none;
}


/* Animations  */
@keyframes rocketFlamePulse {
    0% {
        transform: translateX(-50%) scaleY(0.7);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-50%) scaleY(1.1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scaleY(0.75);
        opacity: 0.7;
    }
}

@keyframes rocketFlameBoost {
    0% {
        transform: translateX(-50%) scaleY(0.9);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) scaleY(1.25);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scaleY(0.95);
        opacity: 0.85;
    }
}

@keyframes orbitSpin {
    from {
        --orbit-angle: 0deg;
    }

    to {
        --orbit-angle: 360deg;
    }
}

@keyframes techOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/* End of animations */


/* Base Header Styles */
.top__header {
    width: 100%;
    color: #fff;
    padding: 2rem 2rem;
    position: relative;
    top: 0;
    z-index: 999;
    background: transparent;
    transition: all 0.3s ease;
    backdrop-filter: none;
    border-bottom: none;
}


/* Nav Container */
.top__nav.new__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Nav Groups */
.nav__right {
    display: flex;
    gap: 1.5rem;
}

.nav__logo a {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    border-radius: 50%;
    border: 1px solid var(--color-primary);
    padding: 6px;
}


/* Link styles */
.top__nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s ease;
}

.top__nav a:hover {
    color: #fff;
}

/* Toggle Button */
.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 99;
    width: 40px;
    height: 40px;
    position: relative;

}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}


.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav__toggle.active {
    background: var(--color-primary);
    border-radius: 50%;
}

.nav__toggle.active .hamburger {
    background: transparent;
    left: -2px;
}

.nav__toggle.active .hamburger::before {
    transform: rotate(45deg) translate(5.5px, 5.5px);
    background: var(--color-bg);
}

.nav__toggle.active .hamburger::after {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
    background: var(--color-bg);
}

@media (max-width: 768px) {
    .nav__right {
        display: none;
    }

    .nav__toggle {
        display: block;
    }
}


/* Mobile Menu */
.mobile__menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.mobile__menu a {
    color: #ccc;
    font-size: 1.1rem;
}

.mobile__menu.show {
    display: flex;

}

/* Responsive */
@media (max-width: 768px) {

    .nav__left,
    .nav__right {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }
}


/* Mobile Menu Styles */
.mobile__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-bg-secondary);
    padding: 80px 20px 20px;
    transition: right 0.3s ease-in-out;
    z-index: 98;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile__menu.show {
    right: 0;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 99;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
    transition: background 0.2s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.2s ease-in-out;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.nav__toggle.active .hamburger {
    background: transparent;
}

.nav__toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav__toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 768px) {
    .nav__right {
        display: none;
    }

    .nav__toggle {
        display: block;
    }

    .main {
        max-width: 95%;
    }
}


/* Main Section */
#about p {
    font-size: 1.2rem;
    color: var(--color-primary);
}

.main__intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem 2.5rem;
    min-height: calc(100vh - var(--nav-height));
}

.about__cta {
    margin-top: 2.5rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .about__cta {
        display: none;
    }
}

@media (max-width: 1024px),
(hover: none) and (pointer: coarse) {
    .main__intro .about__cta {
        display: none;
    }
}


.profile__image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--color-primary);
    margin: 20px 0;
}

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

.title {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.title .full__name {
    display: block;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--color-dim-text);
    margin-bottom: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: 0.01em;
}


/* Tech Stack Section */

.tech__stacks__and__tools {
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 8vw, 8rem);
    padding-bottom: clamp(1.25rem, 5vw, 2.75rem);
    overflow: visible;
    position: relative;
    min-height: clamp(450px, 60vh, 700px);
    margin-bottom: clamp(2rem, 6vw, 3.5rem);
}

.tech__stacks__and__tools h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
}

.tech__stack__wrapper {
    position: relative;
    width: clamp(280px, 50vw, 600px);
    max-width: 100%;
    aspect-ratio: 1/1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: visible;
    perspective: 1100px;
    perspective-origin: 50% 30%;
    transform-style: preserve-3d;
    --orbit-tilt: 72deg;
    margin-top: 80px;
    margin-bottom: -100px;
}

.tech__stack__wrapper::after {
    content: "";
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: transparent;
    filter: none;
    z-index: 0;
}

.tech__stack__items {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transform-origin: center;
    transform-style: preserve-3d;
    transform: rotateX(var(--orbit-tilt, 65deg));
    --orbit-angle: 0deg;
    --orbit-ring-color: rgba(56, 189, 248, 0.2);
    filter: none;
    will-change: transform;
}

.tech__stack__items::before,
.tech__stack__items::after {
    content: none;
}

.tech__stack__items .tech__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    padding: 0;
    border-radius: 50%;
    transform-origin: center;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    --planet-core-start: rgba(56, 189, 248, 0.8);
    --planet-core-end: rgba(15, 23, 42, 0.95);
    --hover-scale: 1;
    --orbit-radius: 100px;
    --orbit-offset: 0deg;
    --orbit-duration: 24s;
    --orbit-direction: normal;
    --orbit-angle: 0deg;
    --orbit-lift: 20px;
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 70% 70%, rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0) 55%),
        radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, var(--planet-core-start), var(--planet-core-end));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        inset -18px -20px 30px rgba(3, 7, 18, 0.9),
        inset 8px 8px 18px rgba(148, 197, 255, 0.15),
        0 0 25px rgba(15, 23, 42, 0.45);
    transform:
        translate(-50%, -50%) rotateZ(calc(var(--orbit-offset, 0deg) + var(--orbit-angle, 0deg))) translateX(var(--orbit-radius, 100px)) translateZ(var(--orbit-lift, 20px)) rotateZ(calc(-1 * (var(--orbit-offset, 0deg) + var(--orbit-angle, 0deg)))) rotateX(calc(var(--orbit-tilt, 65deg) * -1)) scale(var(--hover-scale));
    animation: orbitSpin var(--orbit-duration) linear infinite;
    animation-direction: var(--orbit-direction, normal);
    transition: transform 0.4s ease, filter 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    overflow: visible;
}

.tech__stack__items .tech__item::before {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%),
        radial-gradient(circle at 70% 70%, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0) 60%);
    opacity: 0.8;
    z-index: 0;
    mix-blend-mode: screen;
}

.tech__stack__items .tech__item::after {
    content: "";
    position: absolute;
    inset: -22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.35), transparent 75%);
    filter: blur(24px);
    opacity: 0.55;
    z-index: -1;
}

.tech__stack__items .tech__item:nth-child(4n + 1) {
    --planet-core-start: rgba(59, 130, 246, 0.85);
    --planet-core-end: rgba(15, 23, 42, 0.95);
    border-color: rgba(56, 189, 248, 0.45);
}

.tech__stack__items .tech__item:nth-child(4n + 2) {
    --planet-core-start: rgba(129, 140, 248, 0.85);
    --planet-core-end: rgba(49, 46, 129, 0.95);
    border-color: rgba(129, 140, 248, 0.45);
}

.tech__stack__items .tech__item:nth-child(4n + 3) {
    --planet-core-start: rgba(251, 191, 36, 0.85);
    --planet-core-end: rgba(120, 53, 15, 0.95);
    border-color: rgba(251, 191, 36, 0.4);
}

.tech__stack__items .tech__item:nth-child(4n) {
    --planet-core-start: rgba(236, 72, 153, 0.85);
    --planet-core-end: rgba(76, 29, 59, 0.95);
    border-color: rgba(236, 72, 153, 0.4);
}

.tech__stack__items .tech__item img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 14px rgba(3, 7, 18, 0.65));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tech__stack__items .tech__item p {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translate(-50%, 12px);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
    background: rgba(2, 6, 23, 0.88);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(3, 7, 18, 0.55);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease;
    z-index: 3;
}

.tech__stack__items .tech__item:hover p,
.tech__stack__items .tech__item.show-label p,
.tech__stack__items .tech__item:focus-visible p {
    opacity: 1;
    transform: translate(-50%, 0);
    background: rgba(15, 23, 42, 0.95);
}

.tech__stack__core {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 250, 252, 0.95) 0%, rgba(59, 130, 246, 0.35) 55%, rgba(2, 6, 23, 0.85));
    box-shadow: 0 0 45px rgba(59, 130, 246, 0.45), inset 0 0 22px rgba(59, 130, 246, 0.5);
    z-index: 0;
    transform: rotateX(calc(var(--orbit-tilt, 65deg) * 0.35)) translateZ(40px);
}

.tech__stack__orbit {
    position: absolute;
    width: 95%;
    height: 95%;
    border-radius: 50%;
    border: none;
    box-shadow: 0 0 45px rgba(14, 165, 233, 0.15);
    z-index: 0;
    animation: techOrbit 36s linear infinite;
    opacity: 0.4;
    transform: rotateX(var(--orbit-tilt, 65deg)) translateZ(-55px);
}

@media (max-width: 768px) {
    .tech__stacks__and__tools {
        min-height: 520px;
        padding: 2.25rem 1.5rem 3rem;
        padding-bottom: 2.25rem;
        margin-bottom: 2.5rem;
    }

    .tech__stack__wrapper {
        width: min(460px, 92vw);
        --orbit-tilt: 64deg;
        perspective: 950px;
        margin-bottom: 10px;
    }

    .tech__stack__items {
        transform: rotateX(var(--orbit-tilt, 64deg));
    }

    .tech__stack__items .tech__item img {
        width: 56px;
        height: 56px;
    }

    .tech__stack__items .tech__item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 520px) {
    .tech__stacks__and__tools {
        min-height: 500px;
        padding: 2rem 1rem 2.5rem;
        padding-bottom: 2rem;
        margin-bottom: 2.25rem;
    }

    .tech__stack__wrapper {
        width: min(92vw, 340px);
        --orbit-tilt: 58deg;
        perspective: 850px;
    }

    .tech__stack__items {
        transform: rotateX(var(--orbit-tilt, 58deg));
    }

    .tech__stack__items .tech__item {
        width: 60px;
        height: 60px;
        --hover-scale: 1.05;
    }

    .tech__stack__items .tech__item img {
        width: 30px;
        height: 30px;
    }

    .tech__stack__items .tech__item p {
        font-size: 0.7rem;
        letter-spacing: 0.02em;
    }
}

/* End of tech stacks */

/* Timeline Section */
.timeline {
    position: relative;
    padding: 1.25rem 0 0;
}

/* Vertical Bar in the Center */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.5), rgba(56, 189, 248, 0));
}

/* Timeline Items */
.timeline__item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    box-sizing: border-box;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Odd Items - Left Side */
.timeline__item:nth-child(odd) {
    left: 4px;
}

/* Even Items - Right Side */
.timeline__item:nth-child(even) {
    left: 50%;
}

/* Circular Markers */
.timeline__item::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #030712;
    border: 4px solid rgba(56, 189, 248, 0.9);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* Marker for odd items */
.timeline__item:nth-child(odd)::before {
    right: -8px;
}

/* Marker for even items */
.timeline__item:nth-child(even)::before {
    left: -12px;
}

/* Timeline Content Box */
.timeline__content {
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    text-align: left;
}

.timeline__content,
.education__card,
.project__card {
    background: rgba(4, 6, 20, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow: 0 20px 35px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(16px);
    overflow: hidden;
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.timeline__content:hover {
    transform: translateY(-6px);
}

.timeline__content:hover,
.education__card:hover,
.project__card:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 50px 80px rgba(3, 7, 18, 0.85);
    background: rgba(6, 8, 25, 0.98);
}

.timeline__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.timeline__content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.timeline__content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.timeline__date {
    font-size: 1rem;
    color: var(--color-dim-text);
    display: block;
    margin-bottom: 0.5rem;
}


/* Education Section */
.education__container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Education Cards */
.education__card {
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 400px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Hover Effect */
.education__card:hover {
    transform: translateY(-8px);
}

/* Degree Icons */
.education__icon {
    width: 60px;
    height: 60px;
    margin: auto;
    margin-bottom: 1rem;
}

.education__icon img {
    width: 100%;
    height: auto;
    filter: invert(1);
}

/* Degree Title */
.education__card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Institution Name */
.education__card h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Date */
.education__date {
    font-size: 1rem;
    color: var(--color-dim-text);
    display: block;
    margin-bottom: 0.8rem;
}

/* Paragraph */
.education__card p {
    font-size: 1.1rem;
    color: var(--color-text);
    line-height: 1.7;
}

/* Community Section */
.community__section {
    position: relative;
}

.community__story {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 2rem 2.25rem;
    border-radius: 18px;
    background: rgba(4, 6, 20, 0.55);
    border: 1px solid rgba(56, 189, 248, 0.14);
    box-shadow: 0 20px 35px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(16px);
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.community__story:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 50px 80px rgba(3, 7, 18, 0.85);
    background: rgba(6, 8, 25, 0.98);
}

.community__story h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.community__story h4 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.community__story p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}


/* Projects Section start */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project__card {
    border-radius: 18px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project__card:hover {
    transform: translateY(-10px);
}

.project__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project__info {
    padding: 1.5rem;
    text-align: left;
}

.project__info h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.project__info p {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.project__links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.project__links a {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project__links a:hover {
    color: var(--color-primary-hover);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .projects__grid {
        grid-template-columns: 1fr;
    }
}

/* End projects section */

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .main {
        max-width: 100%;
    }

    .top__header {
        padding: 1rem 0.5rem;
    }

    .title .full__name {
        display: block;
    }

    .show__on__pc {
        display: none;
    }

    .show__on__mobile {
        display: block;
    }

    .about__me p {
        text-align: justify;
    }

    .timeline__item {
        width: 100%;
        padding-left: 2.25rem;
        padding-right: 0;
        display: block;
        text-align: left !important;
        margin-bottom: 1.5rem;
    }

    .timeline__item:nth-child(odd),
    .timeline__item:nth-child(even) {
        left: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline__item::before {
        left: 8px !important;
    }

    .education__container {
        flex-direction: column;
        align-items: center;
    }

    .education__card {
        max-width: 100%;
    }
}

/* For tablets: show about 4 items per view */
@media (min-width: 601px) and (max-width: 1024px) {
    .tech__item {
        flex: 0 0 calc(100% / 4);
    }
}

/* For mobile: show about 3 items per view */
@media (max-width: 600px) {
    .tech__item {
        flex: 0 0 calc(100% / 3);
    }
}

/* Start Footer Section */
.footer__content {
    margin-bottom: 60px;
}

.footer__socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 2.5rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    transition: background-color var(--transition-speed), border-color var(--transition-speed), transform var(--transition-speed);
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: fill var(--transition-speed);
}

.social-link:hover {
    transform: translateY(-4px);
    background-color: currentColor;
    border-color: currentColor;
}

.social-link:hover svg {
    fill: var(--color-bg);
}

.social-link--linkedin {
    color: var(--color-text);
}

.social-link--github {
    color: var(--color-text);
}

.social-link--x {
    color: var(--color-text);
}

.social-link--github:hover svg {
    fill: #0f172a;
}

.footer__description {
    max-width: 800px;
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 60px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text);
}

.footer__cta-button {
    position: relative;
    border: 2px solid rgba(56, 189, 248, 0.6);
    color: var(--color-text);
    font-size: 1rem;
    padding: 10px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    background: rgba(4, 6, 20, 0.4);
    box-shadow: 0 10px 25px rgba(2, 6, 23, 0.4), inset 0 0 20px rgba(56, 189, 248, 0.15);
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.footer__cta-button::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, 0.45), transparent 55%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.footer__cta-button:hover {
    background: linear-gradient(130deg, rgba(3, 7, 18, 0.95), rgba(14, 165, 233, 0.35));
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(56, 189, 248, 0.9);
    box-shadow: 0 20px 55px rgba(3, 7, 18, 0.85), 0 0 25px rgba(56, 189, 248, 0.5);
}

.footer__cta-button:hover::after {
    opacity: 1;
}

.footer__copyright {
    font-size: 1rem;
    color: var(--color-dim-text);
    margin-top: 20px;
}

/* End Footer Section */

/* Responsive Design */
@media (max-width: 600px) {
    .footer__title {
        font-size: 1.5rem;
    }

    .footer__socials {
        gap: 0.75rem;
    }

    .footer__description {
        font-size: 1rem;
    }

    .footer__cta-button {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 22px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(4, 6, 20, 0.75);
    box-shadow: 0 18px 38px rgba(2, 6, 23, 0.65);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    z-index: 99;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.go-to-top:hover:not(.launching) {
    background: rgba(5, 12, 28, 0.92);
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 25px 50px rgba(3, 7, 18, 0.75);
    transform: translateY(-6px) scale(1.02);
}

.go-to-top.launching {
    background: rgba(3, 8, 20, 0.95);
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 35px 65px rgba(3, 7, 18, 0.9);
    transform: translateY(-12px) scale(1.05);
}

.go-to-top__rocket {
    position: relative;
    width: 24px;
    height: 44px;
    border-radius: 14px 14px 10px 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #bae6fd 45%, #38bdf8 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.55);
    display: inline-flex;
    justify-content: center;
    align-items: flex-start;
}

.go-to-top__rocket::before {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 32px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.7), rgba(14, 165, 233, 0));
    opacity: 0.55;
    filter: blur(2px);
    transform: translateX(-50%);
}

.go-to-top__window {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(15, 23, 42, 0.35);
    background:
        radial-gradient(circle, rgba(248, 250, 252, 0.7), rgba(148, 197, 255, 0.15)),
        url('./favicon.png') center/contain no-repeat;
    box-shadow: 0 0 10px rgba(191, 219, 254, 0.65), inset 0 0 6px rgba(15, 23, 42, 0.35);
}

.go-to-top__flame {
    position: absolute;
    bottom: -16px;
    left: 50%;
    width: 14px;
    height: 20px;
    border-radius: 50% 50% 50% 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.65), rgba(249, 115, 22, 0));
    filter: blur(0.5px);
    animation: rocketFlamePulse 0.6s infinite;
}

.go-to-top.launching .go-to-top__flame {
    height: 28px;
    animation: rocketFlameBoost 0.35s infinite;
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.6);
}

@media (max-width: 768px) {
    .go-to-top {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    .main__intro {
        padding: 0.75rem 0.5rem 0;
        margin: 0;
    }

    .main__intro .profile__image {
        margin-top: 0;
    }

    .main__intro .full__name {
        font-size: clamp(2.2rem, 6vw, 2.6rem);
        line-height: 1.2;
    }


    .section__heading {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        line-height: 1.3;
    }

    .title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .subtitle {
        font-size: 1.4rem;
        margin: 0;
    }

    .about__me p {
        font-size: 1rem;
        line-height: 1.6;
        margin: 1rem auto;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .tech__item p {
        font-size: 1rem;
    }

    .project__title {
        font-size: 1.3rem;
    }

    .project__description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .contact__text {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section__heading {
        font-size: 1.5rem;
    }

    .title {
        font-size: 1.6rem;
    }

    .full__name {
        font-size: clamp(1.9rem, 7vw, 2.2rem);
    }

    .subtitle {
        font-size: 1.2rem;
    }
}