* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    line-height: 1.6;
    background: #f9fbff;
    color: #333;
}

header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    min-height: 100vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #15294e51;
}

nav .logo {
    font-size: 24px;
    font-weight: bold;
}

nav .logo span {
    color: #93b7ff;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
    margin-right: 40px;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
}

nav ul li a:hover {
    color: #93b7ff;
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-text {
    margin-right: 200px;
}

.hero-text h1 {
    font-size: 50px;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    background: #a2c1ff;
    color: #333;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #fff;
    color: #1e3c72;
}

.hero-img img {
    width: 675px;
    background: rgba(0, 0, 0, 0.3);
    filter: brightness(55%);
    box-shadow: 0px 0px 60px rgba(0, 0, 0, 0.6);
}

section {
    padding: 50px;
    text-align: center;
}

/* Skills Section */
#skills .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.skills-list span {
    padding: 10px 15px;
    background: #2a5298;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.skills-list span:hover {
    background: #93b7ff;
    color: black;
    transform: scale(1.1);
}

/* Project Card */
.project-card {
    background: #f4f8ff;
    padding: 20px;
    margin: 15px auto;
    border-radius: 8px;
    max-width: 400px;
    transition: 0.4s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: #1e3c72;
    color: #fff;
    text-align: center;
    height: 70px;
    padding: 15px;
    margin-top: 20px;
}

/* Animations */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

.slide-in {
    animation: slideIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Experience Section */
#experience {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f9ff, #e6f0ff);
    animation: fadeIn 1.2s ease-in-out;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #0040a6;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
    padding: 0 20px;
    height: 55vh;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #007acc;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 0px 30px;
    position: relative;
    width: 50%;
    height: 0px;
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: #fff;
    padding: 20px 30px;
    text-align: start;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform .3s, box-shadow .3s;
}

.timeline-content1 {
    background: #fff;
    padding: 20px 30px;
    text-align: start;
    height: 390px;
    font-size: 17px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform .3s, box-shadow .3s;
}

.timeline-content h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.timeline-content1 h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

.timeline-content .company {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
    display: block;
    margin-bottom: 10px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.timeline-content1:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact Section */
#contact {
    padding: 60px 20px;
    background: linear-gradient(135deg, #e6f0ff, #f5f9ff);
    text-align: center;
    animation: fadeIn 1.2s ease-in-out;
}

#contact .section-title {
    font-size: 2rem;
    color: #0040a6;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.2rem;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transition: transform .3s, box-shadow .3s;
}

.contact-item i {
    font-size: 1.5rem;
    color: #0059ff;
}

.contact-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Background Section with Overlay */
.back {
    position: relative;
    background-image: url("images/WhatsApp Image 2025-08-23 at 2.39.47 AM.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: white;
    min-height: 75vh;
}

.back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.back * {
    position: relative;
    z-index: 2;
}

/* Cards */
.card,
.card2 {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.card2:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.card img,
.card2 img {
    width: 40%;
    height: auto;
    object-fit: cover;
}

.card-content,
.card2-content {
    padding: 2rem;
    width: 60%;
    text-align: start;
}

.card-content h2,
.card2-content h2 {
    margin-top: 0;
    color: #0f4c75;
}

.card-content ul,
.card2-content ul {
    padding-left: 1.2rem;
}

.card2.reverse {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {


    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin: 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }


    .card,
    .card.reverse,
    .card2,
    .card2.reverse {
        flex-direction: column;
    }

    .card img,
    .card2 img {
        width: 100%;
    }

    .card-content,
    .card2-content {
        width: 100%;
    }

    .timeline {
        height: 1050px;
    }

    .timeline::after {
        left: 15px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 40px;
        padding-right: 20px;
        height: 430px;
    }
    .timeline-content1{
        height: 520px;
        margin-top:140px
    }
}


/* Responsive */
@media (max-width: 768px) {

    /* Burger menu */
    .menu-toggle {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #2a5298;
        position: absolute;
        top: 70px;
        right: 20px;
        width: 200px;
        padding: 15px;
        border-radius: 12px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero section column on mobile */
    .hero {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-img img {
        max-width: 80%;
    }

}