* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
:root {
    --bg-color: rgb(0, 24, 24);
    --second-bg-color: rgb(0, 24, 24);
    --text-color: rgb(255, 255, 255);
    --main-color: aqua;
}
html {
    font-size: 60%;
    /* Removed overflow: hidden; to allow scrolling */
}
body {
    background: var(--bg-color);
    color: var(--text-color);
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.logo:hover {
    transform: scale(1.1);
}
/*menu icon*/
.navbar{
    display: block;
}
.menu-icon-2{
    display: none;
}
.menu-span{
    font-size: 1.8rem; /* Corrected font-size */
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}


.navbar a {
    font-size: 1.8rem; /* Corrected font-size */
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover, 
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}
.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}
span {
    color: var(--main-color);
}
.logo span {
    color: var(--main-color);
}
.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 2.0rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700rem;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-img {
    border-radius: 50%;
}
.home-img img {
    position: relative;
    top: 3rem;
    width: 22vw;
    border-radius: 50%;
    box-shadow: 0 0 8px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.home-img img:hover {
    box-shadow: 0 0 6px var(--main-color),
                0 0 12px var(--main-color),
                0 0 24px var(--main-color);
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
    text-indent: 5rem;
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 10px var(--main-color);
    background-color: var(--main-color);
}
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 10px var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: black;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}
.text-animation {
    font-size: 34px;
    font-weight: 600;
    min-width: 200px;
}
.text-animation span {
    position: relative;
}
.text-animation span::before {
    content: "Graphic Designer";
    color: var(--main-color);
    animation: words 10s infinite;
}
.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.3s infinite, typing 10s steps(14) infinite;
}
@keyframes cursor {
    to{
        border-left: 2px solid var(--main-color);
    }
}
/*@keyframes words {
    0%, 33% {
        content: "Graphic Designer";
    }
    34%, 66% {
        content: "Motion Graphics Designer";
    }
    67%, 100% {
        content: "Video Editor";
    }
}

@keyframes typing {
    10%, 18%, 44%, 52%, 78%, 86% {
        width: 0;
    }
    5%, 27%, 34%, 61%, 67%, 94% {
        width: calc(100% + 8px);
    }
}*/
@keyframes words {
    0%,
    20%{
        content: "Graphic Designer";
    }
    21%,
    40%{
        content: "Motion Graphics Designer";
    }
    41%,
    60%{
        content: "Video Editor";
    }
    61%,
    80%{
        content: "Photographer";
    }
    81%,
    100%{
        content: "Video Grapher";
    }
}
@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}
/*Section Skill*/
 

.heading {
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}
.skills {
    margin-left: 10%;
    margin-right: 10%;
    padding: 100px 15px;
    background: var(--second-bg-color);
}
.skills h2{
    margin-bottom: 5rem;
}

.skill-bar{
    margin: 20px 0;
}
.bar-box{
    background: #333;
    position: relative;
}
.ps{
    position: absolute;
    right: 2px;
    top: 5px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}
.photoshop-skill{
    animation: photoshop 4s forwards;
    width: 0%;
    background: var(--main-color);
    height: 20px;
}
.Illustrator-skill{
    animation: Illustrator 4s forwards;
    width: 0%;
    background: var(--main-color);
    height: 20px;
}
.Premiere-skill{
    animation: Premiere 4s forwards;
    width: 0%;
    background: var(--main-color);
    height: 20px;
}
.After-skill{
    animation: After 4s forwards;
    width: 0%;
    background: var(--main-color);
    height: 20px;
}
@keyframes photoshop{
    to{
        width: 90%;
    }
}
@keyframes Illustrator{
    to{
        width: 70%;
    }
}
@keyframes Premiere{
    to{
        width: 86%;
    }
}
@keyframes After{
    to{
        width: 70%;
    }
}

.timeline-items {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: calc(50% - 1px);
}
.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}
.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}
.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--main-color),
                0 0 22px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}
.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}
.timeline-content h3{
    font-size: 20px;
    color: white;
    margin: 0 0 10px;
    font-weight: 500;
}
.timeline-content p{
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}

/*Section Work*/ 

.photo-gallery {
    width: 90%;
    margin: 5%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}
.photo-gallery.scrollable-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* 👈 prevent videos from wrapping to next row */
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 1rem;
    scrollbar-color: var(--main-color) var(--bg-color);
    scrollbar-width: thin;
}
.photo-gallery.scrollable-gallery1 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap; /* 👈 prevent videos from wrapping to next row */
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding-bottom: 1rem;
    scrollbar-color: var(--main-color) var(--bg-color);
    scrollbar-width: thin;
}
.vid {
    flex: 0 0 auto;
    width: 300px; /* or whatever width you want */
    height: auto;
    border-radius: 10px;
    box-shadow: 0px 0px 4px var(--main-color);
    overflow: hidden;
    cursor: pointer;
}
.vid video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.scrollable-gallery::-webkit-scrollbar {
    height: 10px;
}
.scrollable-gallery::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}
.scrollable-gallery::-webkit-scrollbar-track {
    background: var(--bg-color);
}
.video-scroll-controls {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
}
/*Scroll Button*/
.gallery-wrapper {
  position: relative;
  width: 100%;
}

.scroll-btn {
  position: absolute;
  top: 50%; /* Vertical center */
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--main-color);
  border: none;
  border-radius: 50%;
  color: black;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 0 10px var(--main-color);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  z-index: 10;
}

.scroll-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px var(--main-color);
}

.scroll-btn.left {
  left: -25px; /* adjust as needed based on padding */
}

.scroll-btn.right {
  right: -25px; /* adjust as needed */
}
 /*Ividam vare*/
@media(max-width:991px){
    ...
    /* REMOVE this: */
    /* .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    } */
}
.pic{
    position: relative;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0px 0px 4px var(--main-color);
    cursor: pointer;
}
.vid{
    position: relative;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0px 0px 4px var(--main-color);
    cursor: pointer;
}
.pic img{
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.vid video{
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.pic::before{
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: pre;
    color: white;
    font-size: 25px;
    font-weight: bold;
    text-align: center;
    width: 100%;
    margin-top: -100px;
    opacity: 0;
    transition: .3s;
    transition-delay: .2s;
    z-index: 1;
}
.pic::after{
    content: "";
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    height: 0;
    background-color: rgba(0, 0, 0, .4);
    transition: .3s;
}
.pic:hover::after{
    height: 100%;
}
.pic:hover::before{
    margin-top: 0;
    opacity: 1;
}

.video-wrapper {
  position: relative;
  display: inline-flex; /* centers content horizontally */
  justify-content: center;
  align-items: center;
  width: 100%;
}

.video-wrapper video {
  width: 100%;
  display: block;
}

.video-title {
  position: absolute;
  bottom: 10px;             /* adjust vertical position */
  left: 50%;
  transform: translateX(-50%);
  color: aqua;
  font-size: 1.8rem;
  background: rgba(0, 0, 0, 0.5); /* semi-transparent background for readability */
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  text-align: center;
}


/*Section Contact*/ 

.contact{
    background-color: var(--bg-color);
}
.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background: rgb(27, 35, 36);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact form .btn{
    margin-top: 2.5rem;
}
.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: rgb(25, 31, 29);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 15px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: white;
}
.success-message {
    display: none;
    margin-top: 20px;
    padding: 10px;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}



@media (max-width: 895px) {
    html{
        font-size: 55%;
    }
}
@media(max-width:991px){
    header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .timeline-items::before{
        left: 7px;
    }
    .timeline-item:nth-child(odd){
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even){
        padding-left: 37px;
    }
    .timeline-dot{
        left: 0;
    }
    .photo-gallery{
        grid-template-columns: repeat(2, 1fr);
    }
    .contact form{
        flex-direction: column;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media(max-width:895){
    #menu-icon{
        display: block;
    }
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 8rem;
        margin-top: 3rem;
    }
    .home-content p{
        max-width: 600px;
        margin: 0 auto;
    }
    .home-img img{
        width: 56vw;
    }

}
/* Media query for screens with a max-width of 900px */
@media (max-width: 900px) {
    /* Navbar settings */
    .navbar {
        display: none; /* Hidden by default on small screens */
        position: absolute;
        top: 100%; /* Positioned below the header */
        right: 0;
        width: 25%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
        backdrop-filter: blur(20px); /* Blurred background for a glass effect */
        border-bottom-left-radius: 2rem; /* Rounded bottom left corner */
        border-left: 2px solid var(--main-color); /* Left border with main color */
        border-bottom: 2px solid var(--main-color); /* Bottom border with main color */
        z-index: 1000; /* Ensure it appears on top of other elements */
    }

    /* Display the navbar when it has the 'active' class */
    .navbar.active {
        display: block;
    }

    /* Menu icon settings */
    #menu-icon {
        display: block; /* Visible on small screens */
        cursor: pointer; /* Change cursor to pointer on hover */
    }

    /* Home section image settings */
    .home-img {
        order: -1; /* Display before other content in the home section */
        margin-bottom: 1rem; /* Small bottom margin */
    }

    .home {
        flex-direction: column; /* Stack content vertically */
        gap: 5rem; /* Add spacing between elements */
    }

    .home-img img {
        margin-top: 50px;
        width: 50vw; /* Image takes up 50% of the viewport width */
        max-width: 500px; /* Maximum width to prevent it from getting too large */
        height: auto; /* Maintain aspect ratio */
        border-radius: 50%; /* Round the image for a circular appearance */
    }

    /* Navbar links settings */
    .navbar a {
        display: block;
        font-size: 2rem; /* Larger font size for better readability */
        margin: 3rem 0; /* Add spacing between links */
        color: white; /* White text color */
        text-decoration: none; /* Remove underline */
    }
}


