/* @import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap");
@import url("https://fonts.googleapis.com/css2?family=League+Script&display=swap"); */

html {
    scroll-behavior: smooth;
}

.layer1 {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Montserrat", "Gill Sans", "Gill Sans MT", Calibri,
        "Trebuchet MS", sans-serif; */
    background: #0d1117;
}
/* .about{
    width: 100%;
    justify-content: center;
    align-content: center;
    height: 100%;
} */

.styling {
    position: absolute;
    width: 100%;
    min-height: 100vh;
}

.absolute {
    position: absolute;
    user-select: none;
}

.box {
    top: 95%;
    left: 8%;
    width: 30px;
    height: 30px;
    border: 5px solid #b105ca;
    border-radius: 5px;
    transform: translate(-50%, -50%);
    z-index: 2;
    animation: rotate 5s linear 0s infinite forwards;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.circle {
    top: -50px;
    left: 30%;
    border: 10px solid #d0154e;
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

.triangle {
    top: 20%;
    left: 20%;
    transform: translate(-50%, -50%) rotate(190deg);
    border-top: 20px solid #21d5ab67;
    border-left: 20px solid #21d5ab67;
    border-right: 20px solid transparent;
    border-bottom: 20px solid transparent;
    z-index: 1;
    animation: up_down 5s ease-in-out 0s infinite forwards;
}

@keyframes up_down {
    0%,
    100% {
        transform: translate(-50%, -50%) rotate(190deg);
    }

    50% {
        transform: translate(-50%, 150%) rotate(190deg);
    }
}

.triangle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    border-top: 20px solid #267ff4;
    border-left: 20px solid #267ff4;
    border-right: 20px solid transparent;
    border-bottom: 20px solid transparent;
    transform: translate(-90%, -30%);
    z-index: -1;
}

.dots {
    top: 18%;
    left: 57%;
    width: 50px;
    height: 100px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.dots .dot {
    background: #f0ce35;
    width: 3px;
    height: 3px;
    border-radius: 50%;
}

.wave {
    bottom: 0;
    left: 0;
    stroke-width: 10px;
    stroke: var(--surface4);
    fill: transparent;
    z-index: 0;
    stroke-linecap: round;
    stroke-dasharray: 3400px;
    stroke-dashoffset: 3400px;
    animation: dash 8s ease-in-out 0s 1 forwards;
}

.wave.opposite {
    top: 100%;
    bottom: inherit;
    transform: rotateX(180deg);
}

@keyframes dash {
    0% {
        stroke-dashoffset: 6800px;
    }

    45% {
        stroke-dashoffset: 3400px;
    }

    90% {
        stroke-dashoffset: 0;
        fill: transparent;
    }

    100% {
        fill: var(--surface4);
    }
}

.wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* make responsive */
    justify-content:flex-start;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    min-height: 60vh;
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    color: var(--text2);
    z-index: 100;
}

.wrapper .face {
    flex: 1 1 45%;
    position: relative;
}

.wrapper .face.face1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.wrapper .face .content {
    padding: 20px 0;
}

.face.face1 h1 {
    font-family: "Kaushan Script", cursive;
    font-size: clamp(2rem, 4.5vw, 4rem);
    color: var(--text1);
    line-height: 1.2;
    margin-bottom: 15px;
}

.face.face1 p {
    font-family: "League Script", cursive;
    font-size: 1.2rem;
    color: var(--text2);
    
}

.face.face1 h1 span,
.face.face1 p span {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}
.face.face1 h1 span:hover,
.face.face1 p span:hover {
    transform: scale(1.05);
    color: var(--accent);
}

.wrapper .face.face2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../img/bg1.png") no-repeat center;
    background-size: contain;
    min-height: 300px;
}

.button {
    position: relative;
    display: inline-block;
    margin: 10px 5px;
    padding: 15px 30px;
    font-size: 1.2rem;
    color: var(--text3-contrast);
    background: var(--accent);
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    outline: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transition: all 0.3s ease-in-out;
}

.button:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
}

@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
    .wrapper .face {
        flex: 1 1 100%;
    }
    .button {
        width: auto;
    }
}


.button.download {
    background: url("../img/btn4.png") no-repeat 50% 50%;
    background-size: 100% 100%;
}

.button.hire {
    background: url("../img/btn3.png") no-repeat 50% 50%;
    background-size: 100% 110%;
}
.button.btn-hire {
    background-color: var(--button);
    color:var(--text3-contrast);
    border-radius: 999999px;
}
.about_nav {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about_nav ul {
    position: relative;
}

.about_nav ul li {
    display: inline-block;
    list-style: none;
    margin: 0 10px;
}

.about_nav ul li a {
    font-size: 25px;
    padding: 15px 30px;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    transition: .3s cubic-bezier(0.6, 0.04, 0.98, 0.335);
}

.about_nav ul li a:hover {
    color: dodgerblue;
}

.about_nav ul li a.active {
    color: dodgerblue;
    box-shadow: inset 5px 5px 10px black, inset -3px -3px 5px #ffffff25;
}

.about_container {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 50vh;
    width: calc(var(--width) * 3);
    margin-left: 0;
    transition: 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.about_container.one {
    margin-left: 0;
}

.about_container.two {
    margin-left: calc(var(--width) * -1);
}

.about_container.three {
    margin-left: calc(var(--width) * -2);
}




/* Title */
.timeline-title {
  text-align: center;
  font-size: 2.5rem;
  padding: 40px 0 20px;
  color: var(--accent);
  letter-spacing: 1px;
}

/* Timeline wrapper */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

/* Middle glowing line */
.middle_line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  border-radius: 5px;
  animation: glowLine 4s linear infinite;
  box-shadow: 0 0 15px var(--accent);
  z-index: 0;
}
@keyframes glowLine {
  0%, 100% { box-shadow: 0 0 15px var(--accent); }
  50% { box-shadow: 0 0 25px var(--accent); }
}

/* Timeline content */
.experience {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* Timeline point */
.timeline-point {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translate(-50%, 0);
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent), 0 0 25px var(--accent);
  z-index: 2;
}

/* Card styling */
.cover {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 15px;
  backdrop-filter: blur(4px);
  color: #fff;
  width: 45%;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5), 0 0 20px var(--accent);
}

/* Left & right alignment */
.cover.left { align-self: flex-start; }
.cover.right { align-self: flex-end; }

/* Job icon */
.job_box {
  position: absolute;
  top: 15px;
  font-size: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.cover.left .job_box { right: -75px; }
.cover.right .job_box { left: -75px; }

/* Date & company */
.date { color: #ff5b5b; font-weight: bold; display: block; margin-bottom: 8px; }
.name_company { display: block; margin-bottom: 10px; font-style: italic; color: #ccc; }

/* Scrollable text */
.text_hidden {
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.5;
}
.text_hidden::-webkit-scrollbar { width: 5px; }
.text_hidden::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 5px; }

/* Mobile view */
@media (max-width: 768px) {
  .cover { width: 100%; align-self: center !important; }
  .job_box { left: -55px !important; right: auto !important; }
}