*{ 
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth;
}

body { 
    background: #000000; 
    
    color: #fff;
    font-family: arial;
}

#header { 
    width: 100%; 
    height: 100vh;
    background: #111010;
    background-image: url(Images/bg.jpg);
    background-size:contain; 
    background-position: calc(100% + 70px) top; 
    background-repeat: no-repeat;
    position: relative;
}

.container { 
    padding: 10px 10%; 
}


.logo { 
    width: 100px;
    opacity: 1;
}


.header-text { 
    margin-top: 10%; 
    font-size: 20px; 
    
}

.header-text h1 { 
    font-size: 50px; 
    margin-top: 20px;
}

.header-text h1 span{ 
    font-size: 60px;
    color: #ff004f; 
}

.resume-social {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.resume {
    display: flex;
    justify-content: flex-start; 
    margin-bottom: 10px;
}

.social-icons {
    display: flex;
    justify-content: center; 
    margin-top: 10px;
    max-width: 100%; 
    position: relative; 
    
}


.social-icons a {
    text-decoration: none;
    font-size: 30px;
    color: #ababab;
    margin-right: 10px;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.see-more {
    margin-top: 8%;
    font-size: 24px;
    animation: flash 1.5s infinite;
    text-align: center;
    position: relative;
}

.see-more i {
    font-size: 24px;
    animation: moveDown 1s infinite;
}

@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

@keyframes moveDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

.btn { 
    display: block;
    margin-right: 20px; 
    width: fit-content; 
    border: 1px solid #ff004f; 
    padding: 12px 50px; 
    border-radius: 6px; 
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover { 
    background: #ff004f;
}

.typing-active::after {
    content: '|';
    display: inline-block;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}


/* ---------- About Section ------------------- */
#about {
    width: 100%; 
    height: 100vh;
    padding: 60px 0;
    background: #080908;
    background-image: url("Images/about.jpg");
    background-size:contain;
    background-repeat: no-repeat;
    position: relative;
}
#about video{

    float: right;
    
}
.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.skills {
    font-size: 40px;
    position: absolute;
    bottom: 30px;

}
.about-heading {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
}

  .tab {
    overflow: hidden;
    bottom: 0;
  }
  
  /* Style the buttons that are used to open the tab content */
  .tab button {
    background-color: #000000;
    color: #ff0000;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
  }
  
  /* Change background color of buttons on hover */
  .tab button:hover {
    background-color: #ff0000;
    color: #fff;
  }
  
  /* Create an active/current tablink class */
  .tab button.active {
    background-color: #ccc;
  }
  
  /* Style the tab content */
  .tabcontent {
    display: none;
    font-size: 16px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
  }

/* ---------------- Experiences Section ------------------ */
#experiences { 
    padding: 50px 0; 
}

.experiences-heading {
    font-size: 50px;
    font-weight: 600;
    color: #fff;
}

.timeline {
    position: relative;
    max-width: 1200px; /* Restrict the width on large screens */
    margin: 0 auto; /* Center the content */
    padding: 30px;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: white;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1;
}
.tcontainer {
    position: relative;
    width: 50%;
    min-height: 120px;
}
.tcontainer-left {
    left: 0;
    padding-right: 71px;
    text-align: right;
}
.tcontainer-right {
    left: 50%;
    padding-left: 70px;
    text-align: left;
}
.tcontainer-left ul{
    text-align: left;
}
.tcontainer-right {
    left: 50%;
    padding-left: 70px;
    text-align: left;
}
.content {
    padding: 30px;
    background-color: #111010;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tcontainer:hover > *:hover{
    box-shadow: 10px 5px 5px red;
    transform: scale(1.1);
}
.tcontainer .content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 35px;
    width: 0;
    z-index: 1;
    border: medium solid white;
}
.tcontainer-left .content::before {
    right: -15px;
    pointer-events: none;
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent #ff0000;
}
.tcontainer-right .content::before {
    left: -15px;
    pointer-events: none;
    border-width: 15px 15px 15px 0;
    border-color: transparent red transparent transparent;
}
.image img {
    position: absolute;
    width: 90px;
    height: 90px;
    background-size: cover;
    background-color: #ffffff;
    background-position: center;
    border: solid 4px #ffffff;
    border-radius: 50px;
    box-shadow: 2px 2px 2px 2px red;
    z-index: 2;
    pointer-events: none;
}
.tcontainer-left .image img {
    right: 0;
    margin-right: -45px;
}
.tcontainer-right .image img {
    left: 0;
    margin-left: -45px;
}
.content span {
    color: red;
    font-size: 1.2em;
    font-weight: bold;
}
.content h2 {
    font-size: 1.8em;
    padding-top: 5px;
}
.content p {
    line-height: 1.6;
    padding-top: 5px;
}
@media screen and (max-width: 767px) {
    .timeline::after {
        left: 65px;
    }
    .tcontainer {
        width: 100%;
        padding-left: 100px;
        padding-right: 0px;
        margin-top: 30px;
    }
    .tcontainer:first-of-type {
        margin-top: 0px;
    }
    .tcontainer-right {
        left: 0%;
    }
    .tcontainer-left {
        text-align: left;
    }
    .tcontainer .image img {
        left:-10px;
        top: 0px;
        margin-left: 0;
        margin-right: 0;
    }
    .tcontainer-left .content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
}
@media screen and (max-width: 480px) {
    .tcontainer {
        padding-left: 0px;
        padding-top: 105px;
        z-index: 3;
    }
    .tcontainer .content::before {
        left: 25px;
        top: -10px;
        border: medium solid white;
        border-width: 0 10px 10px 10px;
        border-color: transparent transparent white transparent;
    }
}


/* ------------------- Projects Section ----------------- */
#projects { 
    padding: 50px 0;
}

.project-heading { 
    font-size: 50px;
    font-weight: 600;
    color: #fff;
}

.project-container { 
    position: relative;
    display: flex;
    align-items: center;
}

.work-list { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* Display 3 projects at a time */
    grid-gap: 40px; 
    margin-top: 50px;
    overflow: hidden;
    width: 100%;
}

.work { 
    border-radius: 10px; 
    position: relative; 
    overflow: hidden; 
}

.work img { 
    width: 100%; 
    height: 500px; 
    border-radius: 10px; 
    object-fit: fill;
    display: block; 
    transition: transform 0.5s;
}

.layer{ 
    width: 100%; 
    height: 0; 
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f); 
    border-radius: 10px;
    position: absolute; 
    left: 0; 
    bottom: 0; 
    overflow: hidden;
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-direction:column; 
    padding: 0 40px; 
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px; 
}

.layer a{
    margin-top: 20px; 
    color: #ff004f; 
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer{ 
    height: 100%; 
}



/* ------------------------- CONTACTS SECTION ----------------------- */
.contact-left { 
    flex-basis: 50%; 
    font-size: 20px;
}

.contact-right { 
    flex-basis: 50%;
    font-size: 18px;
    margin-top: 30px;
}

.contact-left p{ 
    margin-top: 30px;
}

.contact-right p {
    color: #ababab;
}

.contact-left p i { 
    color: #ff004f; 
    margin-right: 15px; 
    font-size: 20px; 
}

.contact-heading { 
    font-size: 50px;
    font-weight: 600;
    color: #fff;
}

.icons a { 
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px; 
    color: #ababab; 
    display: inline-block;
    transition: transform 0.5s; 
}

.icons a:hover { 
    color: #ff004f;
    transform: translateY(-5px);
} 

.copyright { 
    width: 100%; 
    text-align: center; 
    padding: 25px 0;
    background: #000000; 
    font-weight:300; 
    margin-top: 20px; 
}

.btn2 { 
    display: block;
    margin-right: 20px; 
    width: fit-content; 
    border: 1px solid #ff004f; 
    padding: 12px 50px; 
    border-radius: 6px; 
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn2:hover { 
    background: #ff004f;
}

.icons-contact-container { 
    display: flex; 
    align-items: center;
    margin-top: 30px;
}

.resume-contact { 
    margin-left: 100px;
    margin-top: 20px;
}

.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #ff004f;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 10px 15px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.scroll-top-btn:hover {
    background-color: #ff3366;
    transform: scale(1.1);
}

.scroll-top-btn i {
    pointer-events: none;
}
