* {
    margin: 0;
    padding: 0;
}



/* Page background */
body {
    background-color: rgb(8, 6, 36);
    font-family: 'Poppins', sans-serif;
    /* Prevent content from hiding behind navbar */
}

section {
    scroll-margin-top: 80px;
    /* same height as your navbar */
}


/* Navbar */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, rgb(8, 25, 40), rgb(40, 0, 60));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(194, 153, 255, 0.2);
}

header,
nav,
main {
    background-color: black;
    margin: auto;
}


nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 70px;
    background-color: #2d0236;
}

/*nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #081928;
    dark navy 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand {
    color: #c084fc;
     purple accent 
    font-size: 1.3rem;
    font-weight: 600;
}*/

.nav-links {
    list-style: none;
    display: flex;
    gap: 55px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 1.02rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links li a:hover {
    color: #4fd1c5;
    /* teal hover */
    transform: scale(1.05);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #081928;
        width: 220px;
        height: calc(100% - 60px);
        padding-top: 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links li {
        margin-bottom: 25px;
        text-align: center;
    }

    .nav-links.active {
        right: 0;
    }
}

/* Navbar styling 
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(90deg, rgb(8, 25, 40), rgb(40, 0, 60));
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 0 15px rgba(194, 153, 255, 0.2);
}

header,
nav,
main {
    background-color: black;
    margin: auto;
}




nav {
    position: sticky;
    top: 0;
    background-color: rgb(8, 25, 40);
    z-index: 1000;
}



nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 80px;
    background-color: #2d0236;
}


nav ul {
    display: flex;
    justify-content: center;
}

nav ul li {
    list-style: none;
    margin: 0 25px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

nav ul li a:hover {
    color: purple;
    transition: 0.3s;
}


.left {
    font-size: 1.5rem;
}*/

/* Brand / logo text color */
.brand {
    color: #f0f5f5;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 240, 0.6);
}


.firstSection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    ;
    background-color: #0d0d0d;
    /* same dark as body */
    color: white;
    padding: 80px 0;
    /* space above and below */
}


.leftSection {
    font-size: 2.5rem;
    margin: 70px 0 0 0;
}

.rightSection img {
    width: 400px;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    background: none;
}


.purple {
    color: purple;
}

.text-gray {
    color: white;
    font-size: 1.2rem;
}

#element {
    font-size: 1.5rem;
    font-style: italic;
    color: purple;
}



.secondSection {
    max-width: 60vw;
    margin-left: 10;
    margin-right: 10;


}

.secondSection h1 {
    max-width: 60vw;
    font-size: 1.3rem;
    text-align: left;
    margin-left: 10;
    margin-right: 10;
}

.secondSection .box {
    background: black;
    width: 90vw;
    height: 2px;
    margin: 50px 0 0 0;
    display: flex;
    margin-left: 45px;


}

.secondSection .vertical {
    background: #0d0d0d;
    width: 1px;
    height: 110px;
    margin: 0 100px;


}

/* Work Experience Section */
.workExperience {
    padding: 50px 20px;
    background-color: #0d0d0d;
    color: #fff;
    text-align: center;
    font-style: bold;
    font-weight: 700;
    font-size: larger;
}

.experience-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.vertical {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    width: 200px;
    text-align: center;
}

.exp-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    background: white;
}

.vertical-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.vertical-content {
    font-size: 0.8rem;
    color: white;
}

/* Projects Section */
.projectsSection {
    padding: 50px 20px;
    background-color: black;
    text-align: center;
    text-decoration-color: w;
}

.projectsSection h1 {
    margin-bottom: 30px;
}

.carousel-item img {
    max-height: 650px;
    object-fit: cover;
    overlay: auto;
    width: 100%;


}

.carousel-caption h5,
.carousel-caption p {
    color: lab(99.01% 0.36 -0.96);
    font-style: "bold";
    font-weight: 700;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: rgba(0, 0, 0, 0.5);
    /* Adjust the opacity as needed */
    z-index: 1;
}



/* ABOUT SECTION STYLES */
.about-section {
    padding: 60px 20px;
    background: #0f0f10;
    /* dark */
    color: #eee;
    font-family: 'Poppins', sans-serif;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.about-left {
    flex: 0 0 220px;
    display: flex;
    justify-content: center;
}

.about-avatar {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid rgba(255, 102, 196, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.about-right {
    margin-top: 35px;
    flex: 1;
    min-width: 280px;
}

.about-title {
    font-size: 2rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.accent {
    color: wheat;
}

.about-sub {
    color: #cfcfcf;
    margin: 0 0 12px 0;
    font-size: 1.05rem;
}

.about-desc {
    color: #bdbdbd;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 1.0rem;

}



/* buttons */
.btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.btn.primary {
    background: linear-gradient(90deg, rgb(8, 25, 40), #38346b);
    color: #fff;
    box-shadow: 0 6px 18px rgba(166, 77, 245, 0.15);
}

.btn.outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(117, 8, 8, 0.08);
}

.btn:hover {
    transform: translateY(-3px);
    transition: all .2s ease;
}

/* socials */
.about-socials {
    margin-top: 14px;
    display: flex;
    gap: 14px;
}

.about-socials a {
    color: #cfcfcf;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .2s, color .2s;
}

.about-socials a:hover {
    background: rgba(255, 102, 196, 0.08);
    color: #ff66c4;
}

/* Academics Section */
#academics {
    padding: 60px 10%;
    background-color: #050b1a;
    margin-top: 35px;
    /* dark navy base */
    color: #e6f4ff;
    /* soft white-blue text */
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#academics h1 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #4fd1c5;
    /* teal accent */
    position: relative;
}

#academics h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4fd1c5, #0ea5e9);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Cards Section */
.academics-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 70px;
}

.academic-item {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.4);
    border-radius: 15px;
    padding: 20px;
    width: 280px;
    color: #cce7ff;
    box-shadow: 0 0 15px rgba(79, 209, 197, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}

.academic-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.4);
    border-color: #4fd1c5;
}

.academic-item h2 {
    color: #4fd1c5;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.academic-item p {
    font-size: 0.9rem;
    color: #cde9f6;
    line-height: 1.4;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(#4fd1c5, #0ea5e9);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    opacity: 0.7;
}

.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: rgba(10, 25, 47, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.4);
    padding: 15px 20px;
    border-radius: 10px;
    color: #cde9f6;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(79, 209, 197, 0.15);
    transition: 0.3s;
}

.timeline-content:hover {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.5);
    transform: scale(1.03);
}

.timeline-content h2 {
    color: #4fd1c5;
    font-size: 1rem;
    margin-bottom: 5px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 3px solid #fff;
    z-index: 1;
    box-shadow: 0 0 10px #0ea5e9;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

.timeline-item:nth-child(even)::before {
    left: -8px;
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    .timeline::after {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        text-align: left;
    }

    .timeline-item::before {
        left: 0;
    }
}

.footer {
    background: #0d0d0d;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer h3 {
    font-size: 1.8rem;
    color: white;
}

.footer p {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-socials a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-socials a:hover {
    color: #ff66c4;
    transform: scale(1.2);
}

.footer-links a {
    color: #aaa;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s, border-bottom 0.3s;
}

.footer-links a:hover {
    color: #ff66c4;
    border-bottom: 1px solid #ff66c4;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #222;
    padding-top: 10px;
}