@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');


/* Variable Create */
:root {
    --dark-clr: #081d2c;
    --second-dark-clr: #112e42;
    --text-clr: #f1f5f9;
    --light-text-clr: #c9d9e8;
    --global-clr: #0fbbff;
    --btn-clr: #ff499e;
}


/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}


/* html and body styles */
html {
    overflow-x: hidden;
    line-height: calc(1em + 0.5rem);
}

body {
    font-family: "Jost", serif;
    background: var(--dark-clr);
    color: var(--text-clr);
    line-height: 1.3;
    text-decoration: none;
    letter-spacing: 1px;
}


/* Header */
header {
    width: 100%;
    background: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
}

.navbar {
    padding: 0.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-clr);
}

.logo span {
    color: var(--global-clr);
}


/* Navigation Menu */
.navbar ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    position: relative;
}

header nav ul li {
    position: relative;
    margin-right: 20px;
}

.navbar ul li a {
    position: relative;
    font-size: 1.3rem;
    font-weight: 500;
    margin-left: 20px;
    color: var(--text-clr);
    transition: .3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--global-clr);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    background: var(--global-clr);
    height: 3px;
    width: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
    transition: .3s;
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
    width: 100%;
}

/* CV Button */
.cvbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--btn-clr);
    color: var(--text-clr);
    padding: 12px;
    border-radius: 5px;
    box-shadow: 0 0 5px var(--btn-clr);
    cursor: pointer;
    transition: .5s;
}

.cvbtn:hover {
    box-shadow: 0 0 5px var(--btn-clr),
        0 0 10px var(--btn-clr),
        0 0 15px var(--btn-clr);
}


/* section */
section {
    padding: 2% 10%;
}


/* Hero Section */
.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 10%;    
}

.hero-image img {
    height: 600px;
    width: 600px;
    min-width: 400px;
    filter: drop-shadow(0 0 60px var(--global-clr));
}

.project-image img{
    width: 600px;
    height: auto;
    min-width: 400px;
    filter: drop-shadow(0 0 60px var(--global-clr));

}

.hero-content {
    padding: 50px;
    border-radius: 25px;
    background: rgba(8, 29, 44, 0.5);
    max-width: 50%;
}

.hero-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
}

.hero-content h2 span {
    color: var(--global-clr);
}

.hero-content p {
    font-size: 1.2rem;
    margin: 2rem 0;
}


/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.social-icons a {
    display: inline-flex;
    font-size: 2rem;
    background: transparent;
    color: var(--global-clr);
    transition: .5s;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-10px);
    text-decoration: none;
}


/* Buttons */
.hero-btn {
    display: flex;
    gap: 1.5rem;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 10rem;
    height: 100%;
    font-size: 1.3rem;
    font-weight: 600;
    padding: 0.6rem 0;
    color: var(--dark-clr);
    background: var(--global-clr);
    border: 2px solid var(--global-clr);
    border-radius: 5px;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2) {
    background: transparent;
    color: var(--global-clr);
}

.hero-btn .btn:nth-child(2)::before {
    background: var(--global-clr);
}

.hero-btn .btn:nth-child(2):hover {
    color: var(--dark-clr);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--dark-clr);
    z-index: -1;
    transition: .5s;
}

.btn:hover::before {
    width: 100%;
}


/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.stats .stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-width: 200px;
}

.stats .stat:not(:last-child) {
    border-right: 1px solid var(--light-text-clr);
    padding-right: 5%;
}

.stats .stat h2 {
    font-size: 3.5rem;
    font-weight: 600;
}

.stats .stat span {
    display: inline-block;
    color: var(--light-text-clr);
    font-size: 1.1rem;
}


.timeline{
    position: relative;
    max-width: 1200px;
    margin: 100px auto;
}

.Project-container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.Project-container.active {
    opacity: 1;
    transform: translateY(0);
}

.text-box:hover{
    scale: 1.03;
}



@keyframes movedown{
    0%{
        opacity: 1;
        transform: translateY(-30px);
    }
    100%{
        opacity: 1;
        transform: translateY(0px);
    }
}

@media screen and(max-width:600px) {
    .timeline{
        margin: 50px auto;
    }
    .timeline::after{
        left:31px;
    }
    .Project-container{
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }
    .text-box{
        font-size: 13px;
    }
    .text-box small{
        margin-bottom: 10px;
    }
    .right-container{
        left: 0;
    }
    .left-container .project-img{
        left: 10px;
    }

}


.text-box{
    padding: 20px 30px;
    position: relative;
    background-color: #112e42;
    border-radius: 6px;

}

.text-box h2{
    font-size: large;
    font-weight: 600;
}

.text-box small{
    display: inline-block;
    margin-bottom: 15px;
}

.right-container{
    left: 50%;
}

.left-container{
    left: 0;
}

.project-img{
    position: absolute;
    width: 40px;
    border-radius: 50%;
    right: -32px;
    top: 32px;
    z-index: 10;
}

.right-container .project-img{
    left: -8px;
}

.timeline::after{
    content: '';
    position: absolute;
    width: 6px;
    height: 0;
    background: #0fbbff;
    top:0;
    left: 50%;
    margin-left: -3px;
    z-index: -1;
}

.timeline::after {
    height: var(--line-height, 0);
}


.timeline.active::after {
    height: 100%;
}



.left-container-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top:28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #112e42;
    right: -14px;
}

.right-container-arrow{
    height: 0;
    width: 0;
    position: absolute;
    top:28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid #112e42;
    left: -14px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.centered-btn{
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 25px;
}

.hero-hr {
    width: 100%;
    height: 55px; /* Thickness of line */
    background-color: #112e42; /* Or any color you like */
    border: none; 
    opacity: 100%;
    margin-top:0.3rem;
}

.compare-container{
    position: relative;
    width: 100%;
    max-width: 800px;
    height: auto; /* Adjusted to auto for better responsiveness */
    cursor: ew-resize;
}

.compare-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  cursor: ew-resize;
}

.compare-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

.after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%; /* Initial slider position */
  height: 100%;
  overflow: hidden;
}

.after-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 800px;
  height: 100%;
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%; /* Align with after-wrapper */
  width: 6px;
  height: 100%;
  background-color: #0fbbff;
  border: 1px solid #ffffff;
  opacity: 0.5;
  z-index: 2;
  cursor: ew-resize;
  transform: translateX(-50%);
}
