html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', 'sans-serif';
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
}

#header {
    width: 100%;
    height: 100vh;
    
    background-position: center;
    background-size: cover;
    position: relative;
}

.container {
    padding: 10px 10%;
    position: relative;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Aligns the nav to the top right */
    position: absolute;
    top: -180px; /* Adjust the nav position slightly from top */
    width: 100%;
    right: -350px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 10px 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size:30px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff004f; /* Changes text color on hover */
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: width 0.5s ease;
}

nav ul li a:hover::after {
    width: 100%; /* Expands the underline on hover */
}

.header-text {
    margin-top: 150px;
    margin-left: 100px; /* Adjust this value to place the text slightly below the top */
    font-size: 30px;
    position: relative;
    z-index: 2;
}

.header-text h1 {
    margin-top: 20px;
    margin-left: -20px;
    font-size: 60px;
}

.header-text h1 span {
    color: #ff004f;
}

.header-image {
    width: 250px;
    height: 250px;
    background-image: url("\IMG-20220809-WA0040.jpg");
    background-position: center;
    background-size: cover;
    border-radius: 50%;
    position: absolute;
    top: 150%; /* Centers the image vertically */
    left: 50%; /* Centers the image horizontally */
    transform: translate(-50%, -50%); /* Corrects the offset to perfectly center it */
    z-index: 1;
}


/* About Section Styling */
.about-section {
    padding: 50px 10%;
    background-color: #121212;
    color: #fff;
    margin-top: -10px; /* Pushes about section down, below header */
}

.about-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
    animation-delay: 0.5s;
}

.sub-title {
    font-size: 40px;
    color: #ff004f;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 28px;
    line-height: 1.6;
    color: #ccc;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(20);
    }
}
#education {
    margin-top: 100px;
    text-align: center;
}

#multiple {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.multiple-box {
    width: 50%;
    text-align: center;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.multiple-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.multiple-box h5 {
    margin-top: 15px;
    font-size: 28px;
    color: #ff004f;
}

.multiple-box h1 {
    font-size: 22px;
    margin-top: 10px;
}

.multiple-box h4 {
    font-size: 18px;
    margin-top: 10px;
}

.multiple-box p {
    font-size: 20px;
    margin-top: 10px;
    color: #ccc;
}

.multiple-box:hover {
    transform: translateY(-10px);
}

.timeline-divider {
    margin-top: 30px;
    text-align: center;
}

.timeline-traveller img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #ff004f;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#skills {
    padding: 40px 10%;
    text-align: center;
    background-color: #121212;
    color: #fff;
    margin-top: 50px;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.skills-list {
    list-style: none;
    font-size: 20px;
    margin-top: 20px;
    padding: 0;
}

.skill {
    margin: 15px 0; /* Increased margin for spacing */
    opacity: 0;
    transform: translateY(50px) scale(0.8); /* More offset and scaling for a dramatic effect */
    animation: bounceFadeIn 1s cubic-bezier(0.25, 1.25, 0.5, 1.25) forwards; /* Bounce effect */
}

/* Keyframes for bounce and fade-in effect */
@keyframes bounceFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Adding animation delays for each skill */
.skill:nth-child(1) {
    animation-delay: 0.3s;
}

.skill:nth-child(2) {
    animation-delay: 0.6s;
}

.skill:nth-child(3) {
    animation-delay: 0.9s;
}

.skill:nth-child(4) {
    animation-delay: 1.2s;
}

.skill:nth-child(5) {
    animation-delay: 1.5s;
}

.skill:nth-child(6) {
    animation-delay: 1.8s;
}

.skill:nth-child(7) {
    animation-delay: 2.1s;
}
/* Experience Section */
#experience {
    padding: 30px 0;
}

.experience-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.experience-list div {
    background: #262626;
    padding: 40px;
    font-size: 20px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
    text-align: center;
}

.experience-list div h2 {
    font-size: 35px;
    font-weight: 500;
    margin-bottom: 15px;
}

.experience-list div h4 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #ff004f;
}

.experience-list div p {
    font-size: 20px;
    margin: 10px 0;
    color: #ccc;
}

.experience-list div:hover {
    background: #ff004f;
    transform: translateY(-10px);
    color: #fff;
}
/* Portfolio Section */
#project{
    padding: 50px 0;
    background-color: #121212;
}

#project .container {
    text-align: center;
}

#project h1.sub-title {
    font-size: 40px;
    color: #ff004f;
    margin-bottom: 30px;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.work {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.work img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    border-radius: 10px;
}

.work:hover img {
    transform: scale(1.1);
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 10px;
}

.work:hover .layer {
    opacity: 1;
}

.layer h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff004f;
}

.layer p {
    font-size: 16px;
    margin-bottom: 20px;
}

.layer a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    background: #ff004f;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.layer a:hover {
    background: #fff;
    color: #ff004f;
}

.btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: #ff004f;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn:hover {
    background: #fff;
    color: #ff004f;
}
#contact {
    padding: 50px 0;
    background-color: #1b1b1b;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}

.contact-left h1 {
    font-size: 32px;
    text-transform: uppercase;
}

.contact-left p {
    margin-top: 30px;
    font-size: 18px;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
    color: #fff;
    padding: 14px 60px;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn.btn2:hover {
    background: #e60044;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form button {
    display: inline-block;
    background: #ff004f;
    color: #fff;
    padding: 14px 60px;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    transition: background 0.3s;
}

form button:hover {
    background: #e60044;
}
.logo{
    margin-left:10px;
    height:5%;
    width:5%;
}


/* Header text styling */
.header-text {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #020202, #040405);
    color: #fff;
    font-family: 'Arial', sans-serif;
}

/* Animated tagline styling */
#animated-tagline {
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Highlight effect for 'Raushan' */
.highlight {
    color: #ffcc00;
    font-weight: bold;
}

/* Add fade-in animation for the H1 */
.header-text h1 {
    font-size: 48px;
    margin: 10px 0;
    animation: fadeIn 2s ease-in-out;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
#skills {
    text-align: center;
    padding: 50px;
    background-color: black;
    color:white;
    font-family: 'Arial', sans-serif;
}

/* Skills List Styling */
.skills-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 500px;
}

.skill {
    font-size: 18px;
    margin: 10px 0;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInUp 0.8s ease-in-out forwards;
}

/* Sequential delay for each skill */
.skill:nth-child(1) {
    animation-delay: 0.2s;
}

.skill:nth-child(2) {
    animation-delay: 0.4s;
}

.skill:nth-child(3) {
    animation-delay: 0.6s;
}

.skill:nth-child(4) {
    animation-delay: 0.8s;
}

.skill:nth-child(5) {
    animation-delay: 1s;
}

.skill:nth-child(6) {
    animation-delay: 1.2s;
}

.skill:nth-child(7) {
    animation-delay:1.4s;
}

/* Fade-In-Up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(80px);
    }
    100% {
        opacity: 1;
        transform: translateY(10px);
    }
}
#msg{
    color:#61b752;
    margin-top: -80px;
    display: block;
}