:root {
    --main-color: #025e98;
    --secondary-color: #348fc8;
    --heading-color: #ffffff;
    --nav-color: #ffffff;
    --text-color: #1e293b;
    --subtext-color: #2563eb;
    --toolkit-text-color: #ffffff;
    --main-background: radial-gradient(var(--main-color, --), #348fc8);
    --background-color: #e5e5e5;
    --main-background-color: #ffffff;
    --main-font: system-ui, sans-serif;
    --main-heading-font: impact, sans-serif;
    --nav-font: monospace;
}


html {
	scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

html, body {
    min-height: 100vh;
    margin: 0;
}

body {
    background: var(--main-background);
    background-attachment: fixed;
    overflow-x: hidden;
    background-color: red;
    /* background: url(images/bgconcept6.jpg); */
    background-size: contain;
    background: linear-gradient(25deg, darkblue 10%, var(--main-color) 90%)
}

body * {
    font-family: var(--main-font);
    font-size: 15px;
}

h2 {
    font-size: 10vw;
    transform: rotate(10deg);
    margin: 0;
    color: var(--heading-color);
    /* opacity: 0.2; */
    text-align: center;
    text-transform: lowercase;
    width: 98%;
    padding-top: 3%;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

h2#about-heading,h2#experience-heading,h2#tech-heading,h2#other-heading {
    animation: headerAni linear;
    animation-timeline: view();
    animation-range: entry cover 80%;
}

@keyframes headerAni {
    from {
        opacity: 0;
        transform: rotate(-20deg);
    }
    to {
        opacity: 1;
        transform: rotate(10deg);
    }
}

h3 {
    font-size: 2.5rem;
    color: var(--heading-color);
    text-align: center;
    margin: 20px 0;
    font-size: clamp(1rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);

}

.slider {
    display: flex;
    width: 100%;
    /* border: 1px solid red;  */
    height: var(--height);
    overflow: hidden;
    user-select: hidden;


    /* mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    ) */

    mask-image: linear-gradient(
    to right,
    transparent,
    black 15%,
    black 85%,
    transparent
    );
    overflow-x: auto;

    --gap: 20px;
    gap: var(--gap);
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider .list {
    display: flex;
    flex-shrink: 0;
    flex-basis: content;
    gap: 1em;
    width: 100%;
    min-width: calc(var(--width) * (var(--quantity)));
    position: relative;

    animation: autoRun 20s linear infinite;
}

@keyframes autoRun {
    to {
        transform: translateX(calc(-100% - var(--gap)));
    }
}

.slider .list .item {
    flex: 0 0 18em;
    width: var(--width);
    height: var(--height);
    left: 100%;
    transition: filter 0.5s;
    background-color: var(--main-background-color);;
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0 15px;
    border-radius: 12px;
    flex-shrink: 0;
}

.slider .list .item a {
    display: flex;
    align-items: center;
}

.slider .list .item img {
    width: 100%;
}

.slider-one-color:hover .item {
    animation-play-state: paused !important;
    filter: grayscale(1);
}

.slider .item:hover {
    filter: grayscale(0);
}

.slider[reverse="true"] .list {
    animation: reversePlay 20s linear infinite;
    animation-direction: reverse;
}

/* .slider[reverse="true"] .list:first-child {
    margin-right: 1em;
} */

.slider[reverse="true"] .item {
        flex: 0 0 4em;
        display: unset;
}

@keyframes reversePlay {
    to {
        transform: translate(calc(-100% - var(--gap)));
    }
}

.strip-one {
    transform: rotate(10deg);
    position: absolute;
    top: 20%;
    z-index: 2;
    width: 99%;
}

.strip-one .wrapper {
    padding: 10px 0;
    background-color: var(--background-color);;
        mask-image: linear-gradient(
        to right,
        transparent,
        #000 10% 90%,
        transparent
    )

}

.slider-one-color {
    background-color: var(--background-color);
}

.strip-two {
    transform: rotate(-13deg);
    position: absolute;
    top: 50%;
    background-color: var(--main-background-color);
    z-index: 1;
}

.heading {
    text-align: center;
}

.heading .name {
    font-family: var(--main-heading-font);
    font-size: calc(12px + 6vw);
    color: var(--heading-color);
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #025e98;
    text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.heading .title {
    font-family: --var(--nav-font);
    color: oklch(from var(--main-color) calc(l * 1.6) c h);
    font-size: calc(12px + 3vw);
    text-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-weight: bold;
}

section {
    width: -webkit-fill-available;
    /* scroll-margin-top: 10px; */
}

section#about {
    scroll-snap-align: start;
}

section.hero,section#about {
    height: 100vh;
}

.experience-items {
    padding: 30px;
    width: stretch;
}

.experience-item {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto;

    scroll-margin-top: 70px;
}

.experience-item .logo {
    display: flex;
    height: 108px;
    flex-direction: column;
    justify-content: center;
    background: var(--main-background-color);
    border-radius: 10px;
    padding: 10px;
    align-items: center;
}

.experience-item img {
    width: 108px;
}

.job-experience {
    background: var(--main-background-color);
    border-radius: 10px;
    padding: 30px;
    flex-basis: 60em;
}

.job-experience .experience {
    line-height: 20px;
}

section#about div.content-wrapper {
    width: inherit;
    height: 83vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.about-content {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 30px;
    width: 80%;
    z-index: 2;
    position: relative;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15);
    border-radius: 16px;
    max-width: 720px;
}

.about-content p {
    font-size: 1.3rem;
    color: var(--text-color);
}


@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.company-details {
    animation: fadeInFromLeft linear;
    animation-timeline: view();
    animation-range: entry cover 40%;
}

.job-experience {
    animation: fadeInFromRight linear;
    animation-timeline: view();
    animation-range: entry cover 40%;
}

header {
    position: sticky;
    z-index: 1000;
    width: 60%;
    animation: nav linear;
    animation-timeline: scroll(); 
    animation-range: 0px 200px;
    animation-fill-mode: forwards; 
    transform: rotate(10deg);
    left: 23%;
}

@keyframes nav {
    from {
        transform: rotate(10deg);
        top: 14%;
    }
    to {
        transform: rotate(0deg);
        top: 0;
    }
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.mobile-nav-wrapper {
    position: fixed;
    width: 100vw;
    display: none;
    right: 15px;
    top: 15px;
    /* justify-content: center; */
    z-index: 3;
}

.mobile-nav-wrapper .mobile-menu-button {
    background-color: #fff;
    border: 0;
    border-radius: 50%;
    height: 55px;
    font-weight: bold;
    width: 55px;
    color: var(--main-color);
}

#mob-menu-close-btn {
    border: 2px solid var(--main-color);
    margin: 5px 0 0 0;
}

header ul.nav {
    display: flex;
    justify-content: center;
    list-style: none;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    line-height: 56px;
    border-radius: 15px;
    padding: 0;
    min-width: 630px;
}

header ul.nav li a {
    padding: 12px 20px 16px;
    font-family: var(--nav-font);
    color: var(--nav-color);
    text-decoration: none;
    font-size: 27px;
}

header ul.nav li a:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-color);    
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#about .ani-background {
    background: url(./images/about_bg.jpg) no-repeat;
    background-size: cover;
    width: inherit;
    height: 100vh;
    position: absolute;
    z-index: 0;
    animation: bg_ani linear;
    animation-timeline: view();
    animation-range: entry cover 40%;
}

@keyframes bg_ani {
    from {
        transform: translateY(1000px);
    }
    to {
        transform: translateY(0px);
    }
}


.more-btn {
    display: none;
    background-color: var(--main-background-color);
    color: var(--text-color);
    text-align: center;
    padding: 10px;
    border-radius: 50%;
    font-size: 33px;
    width: 40px;
    height: 40px;
    line-height: 34px;
    margin-top: -42px;
    z-index: 1;
    box-shadow:  0 4px 6px rgba(0, 0, 0, 0.1);;
}


@media (max-width: 768px) {
    .mobile-nav-wrapper {
        display: flex;
        flex-direction: row-reverse;
    }

    h2 {
        font-size: 18vw;
    }

    .strip-one {
        transform: none;
        position: relative;
        top: 80px;
    }

    .strip-one .heading {
        margin-bottom: 30px;
    }

    .strip-one .wrapper {
        opacity: 0.2;
    }

    .strip-two {
        transform: rotate(10deg);
        top: 54%;
        left: auto;
        opacity: 0.2;
    }

    header {
        /* left: 14%; */
        transform: rotate(0);
        animation: none;
        position: sticky;
        top: 0;
        width: 95%;
        left: auto;
        margin: auto;
    }

    header ul.nav {
        display: grid;
        grid-template-columns: auto auto;
        min-width: auto;
    }

    header ul.nav li {
        text-align: center;
    }

    header ul.nav li a {
        font-size: 0.9rem;
        font-weight: bold;
    }

    @keyframes nav {
        from {
            transform: rotate(0deg);
            top: 0%;
        }
        to {
            transform: rotate(0deg);
            top: 0;
        }
    }

    .job-experience {
        margin: 0 20px;
        flex-basis: auto;

        background-color: var(--background-color);
        mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 0% 75%,
        transparent
        )
    }

    .job-experience.showless {
        height: 300px;
    }

    .job-experience.showmore {
        height: auto;
        mask-image: none;
    }
 
    .experience-items {
        padding: 30px 0;
    }

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

    .company-details, .job-experience {
        animation: appear linear;
        animation-timeline: view();
        animation-range: entry cover 25%;
        overflow: hidden;
        height: 300px;        
    }

    .about-content p {
        font-size: 1.1rem;
    }

    header ul.nav {
        margin: auto;
        width: 60px;
    }

    header ul.nav li.desktop {
        display: none;
    }

    .more-btn {
        display: block;
    }
}

.business-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: oklch(from var(--text-color) calc(l * 1.2) c h);
    margin-bottom: 4px;
}

.job-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: oklch(from var(--main-color) calc(l * 1.4) c h);
    margin-bottom: 15px;
}
.experience p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.experience li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--text-color);
    line-height: 1.5;
}
.company-details {
    flex: 0 0 140px;
    text-align: center;
}
.year {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.experience li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-weight: bold;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    width: stretch;
    max-width: 1200px;
    margin: auto;
}

.grid-item {
    background-color: oklch(from var(--main-color) calc(l * 1.3) c h);
    color: var(--toolkit-text-color);
    padding: 40px 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.5);
    animation: implode-in linear forwards;
    animation-timeline: view(); 
    animation-range: entry 0% cover 40%;
}

@keyframes implode-in {
    0% {
        opacity: 0;
        transform: rotate(var(--gr, 0deg)) scale(var(--gs, 0)) translate(var(--gx, 0px), var(--gy, 0px));
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1) translate(0, 0);
    }
}


.navbar {
  list-style: none;
  display: flex;
  flex-flow: column nowrap;
  gap: 15px;
  margin: 15px 0 0 0;
  padding: 0;
}

.navbar li a {
    padding: 12px 20px 16px 0;
    font-family: var(--nav-font);
    color: var(--text-color);
    text-decoration: none;
    font-size: 27px;
} 

img.tool {
    background: var(--main-background-color);
    padding: 5px;
    border-radius: 10px;
}

:root {
  --radius: 300px;
}

.scene {
    width: 100%;
    height: 54vh;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    margin-top: -8%;
}

.ring {
  width: 100px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateRing 20s linear infinite;
}

.ring:hover {
  animation-play-state: paused;
}

@keyframes rotateRing {
  from { transform: perspective(1000px) rotatex(-10deg) rotateY(0deg); }
  to { transform: perspective(1000px) rotatex(-10deg) rotateY(-360deg);  }
}

.card-slot {
  position: absolute;
  width: 100px;
  height: 100px;
  transform: rotateY(calc(var(--i) * 36deg)) translateZ(var(--radius));
  transform-style: preserve-3d;
}

.card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card img {
    width: 100%;
}

.card-slot:hover .card {
  transform: rotateY(180deg);
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: bold;
  color: var(--text-color);
}

.front { transform: translateZ(2px); }
.back { transform: rotateY(180deg) translateZ(2px); color: var(--text-color); }



.glass-footer {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 30px 0;
  margin-top: 60px;
  position: relative;
  bottom: 0;
  width: 100%;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left .name {
  font-weight: 700;
  margin: 0;
  color: var(--text-color);
}

.footer-left .copyright {
  font-size: 0.85rem;
  color: var(--text-color);
  margin: 5px 0 0 0;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-color);
  margin: 0 15px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

[popover] {
    bottom: anchor(bottom);
    left: anchor(left);
    top: anchor(top);
    translate: -161px -5px;
    opacity: 0;
    /* transform: translateY(-5px); */
    margin: 0;
    width: 200px;
    height: 330px;
    border-radius: 10px;
    padding: 0px 5px 5px 15px;
    text-align: right;
    overflow: hidden;
}

[popover]:popover-open {
    opacity: 1;
    transform: translateY(0);
    border: 0;
    margin-left: 0;
    animation: openpopover 0.2s ease;
}

@keyframes openpopover {
    from {
        width: 55px;
        height: 55px;
        translate: -15px -5px;
    }
    to {
        width: 200px;
        height: 330px;
        translate: -161px -5px;
    }
}

@starting-style {
  [popover]:popover-open {
    opacity: 0;
    transform: translateY(-5px);
  }
}

[popover]:popover-open.hide-animation {
    animation: hide-animation 0.2s ease;
}

@keyframes hide-animation {
    from {
        width: 200px;
        height: 330px;
        translate: -161px -5px;
    }
    to {
        width: 55px;
        height: 55px;
        translate: -15px -5px;
    }
}

.bigname {
    position: absolute;
    margin-top: -296px;
    width: 100%; 
}

.bigname .name-copy {
    display: inline-block;
    font-size: 300px;
    white-space: nowrap;
    font-weight: bold;
    color: #ffffff;
    opacity: 0.1;
    animation: movename linear;
    animation-timeline: view();
    animation-range-start: 10%;
    animation-range-end: 150%;
    
    transform-origin: center; 
}

@keyframes movename {
    from {
        transform: translateX(0px);
    }
    to {
        transform: translateX(-500px);
    }
}

@media (pointer: coarse) {
    .bigname {
        display: none;
    }
}
