:root {
    --primary-bg: #0d0d0d;
    --secondary-bg: #1a1a1a;
    --accent: #a259ff;
    --accent-light: #c49cff;
    --text-light: #e0e0e0;
    --text-muted: #aaa;
    --border-color: #333;
    --hover-accent: #7f2eff;

    --footer-bg-color: rgb(81, 24, 135); /* Footer background color */
    --footer-link-color: aliceblue;
    --footer-hover-color: plum;

    --nav-bg-color: rgb(81, 24, 135);
    --second-nav-bg-color: rgb(118, 31, 185);
    --nav-hover-color: plum;
    --nav-link-color: aliceblue;
}


* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

body {
    background-color: black;
    font-family: 'Poppins', 'Courier New', Courier, monospace;
    color: azure;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Make the main content take up available space */
.main-content {
    flex: 1;
}

/* Header */

nav {
    display: flex;
    justify-content: space-around;
    background-color: var(--nav-bg-color);
    align-items: center;
    height: 50px;
}

.secondNav {
    display: flex;
    justify-content: space-around;
    background-color: var(--second-nav-bg-color);
    align-items: center;
    height: 50px;
}

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

nav ul li {
    list-style: none;
    margin: 0 23px;
    margin-top: 20px;
}

nav ul li a {
    color: var(--nav-link-color);
    text-decoration: none;
}

nav ul li a:hover,
.secondNav a:hover {
    color: var(--nav-hover-color);
}

.left {
    font-size: 1.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav,
    .secondNav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .left {
        font-size: 1.2rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .right ul,
    .secondNav {
        flex-direction: column;
        align-items: center;
    }

    nav ul li,
    .secondNav a {
        margin: 10px 0;
    }

    .right {
        width: 100%;
    }
}





/* html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', 'Courier New', Courier, monospace;
    background-color: var(--primary-bg);
    color: var(--text-light);
}

.main-content {
    flex: 1;
}

nav, .secondNav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background-color: var(--nav-bg);
}

nav ul, .secondNav ul {
    display: flex;
    align-items: center;
}

nav ul li, .secondNav ul li {
    list-style: none;
    margin: 0 23px;
    margin-top: 20px;
}

nav ul li a, .secondNav a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover, .secondNav a:hover {
    color: var(--accent-light);
}

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

/* Section Headings */
.section-heading{
    margin: 20px 40px;
    padding-bottom: 35px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    display: flex;
    justify-content: left;
    position: relative;
    top: 10px;    /* moves the heading 10px down */
    left: 20px; 
}

/* Miscellaneous */
main hr {
    margin: 25px 15px;
    border: 0;
    height: 2px;
    background-color: white;
}

/* First Page */
.first {
    display: flex;
    justify-content: space-around;
    margin: 80px 0;
    min-height: 65vh;
}

.first > div {
    width: 30%;
}

.leftside {
    font-size: 44px;
    align-items: center;
}

.leftside a {
    text-decoration: none;
    font-size: 12px;
    font-family: 'Lucida Sans', sans-serif;
    color: var(--accent);
}

.leftside .hvr-bounce-to-right {
    margin: 30px 10px;
    width: 100px;
    height: 50px;
    font-size: 10px;
    padding: 5px 5px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.leftside .hvr-bounce-to-right:hover {
    color: #fff;
    border-color: white;
}

.leftside .hvr-bounce-to-right a:hover {
    color: #fff;
    border-color: white;
}



.leftside span {
    color: var(--accent);
}

.rightside img {
    width: 320px;
    height: auto;
    border: 6px solid var(--accent);
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

/* responsive first section for phone */

@media screen and (max-width: 768px) {
    .first {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 40px 0;
    }

    .first > div {
        width: 80%;
    }

    .leftside {
        font-size: 2rem;
    }

    .leftside .hvr-bounce-to-right {
        width: auto;
        font-size: 14px;
        padding: 10px 20px;
    }

    .rightside img {
        width: 80%;
        margin-top: 20px;
    }
}


/* Carousel */
.firstSection .carousel-inner img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(85%);
}

.firstSection .carousel-caption {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 10px;
}

.firstSection .carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.firstSection .carousel-caption p {
    font-size: 0.8rem;
}

/* Skills Section */
.secondsection {
    max-width: 80vw;
    margin: auto;
    height: 80vh;
    display: flex;
    justify-content: space-around;
    position: relative;
    align-items: flex-start;
}

.secondsection .box {
    background: var(--text-light);
    width: 100%;
    margin: 56px 0;
    height: 2px;
    position: relative;
}

.secondsection .vertical {
    background: var(--text-light);
    width: 2px;
    height: 93px;
    position: absolute;
}

.secondsection .vertical:nth-child(1) { left: 18%; }
.secondsection .vertical:nth-child(2) { left: 39%; }
.secondsection .vertical:nth-child(3) { left: 58%; }
.secondsection .vertical:nth-child(4) { left: 77%; }

/* responsive for mobile */
@media screen and (max-width: 768px) {
    .secondsection {
        height: auto;
        padding: 40px 0;
        width: 20vh;
    }

    .secondsection .box {
        position: static;
        height: auto;
        background: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .secondsection .vertical {
        position: static !important;
        width: 100%;
        height: auto;
        background: none;
        border: none;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .vertical .imagetop {
        display: none;
    }

    .verticalTitle {
        font-size: 1.3rem;
        font-weight: bold;
        color: var(--accent);
        margin-bottom: 10px;
        
    }

    .verticalDesc {
        font-size: 1rem;
        color: var(--text-light);
    }
}


/* Projects */
.thirdSection {
    text-align: center;
    padding: 40px 0;
}

.heading {
    color: var(--accent);
}


/* Cards */
.card {
    background-color: var(--secondary-bg);
    height: 100%;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card-img-top {
    width: 100%;
    height: 305px;
    object-fit: cover;
    border-radius: 8px;
}

.card-title {
    color: var(--accent);
    font-size: 1.1rem;
}

.card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-primary {
    background-color: var(--accent);
    border: none;
}

.btn-primary:hover {
    background-color: var(--hover-accent);
}

.row > .col-md-4 {
    display: flex;
}

.card {
    flex: 1;
}

/* Achievements */
.forthSection {
    padding: 40px;
}

.list-group {
    background-color: var(--secondary-bg);
    border-radius: 8px;
}

.list-group-item {
    background-color: var(--secondary-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.list-group-item:hover {
    background-color: var(--border-color);
}

.list-group-item.active {
    background-color: var(--accent);
    color: white;
}

.scrollspy-example {
    height: 550px;
    overflow-y: auto;
    border: 1px solid #444;
    padding: 15px;
    background-color: var(--secondary-bg);
    border-radius: 8px;
}



.imagetop {
    width: 30px;
    position: relative;
    top: -32px;
    left: -9px;
}

.verticalTitle {
    position: relative;
    width: 150px;
    top: 75px;
}

.verticalDesc {
    font-size: 11px;
    position: relative;
    width: 150px;
    top: 95px;
    color: var(--text-muted);
}

button:hover {
    background-color: var(--hover-accent);
    color: white;
}

/* Footer */

footer {
    margin-top: 50px;
    background-color: var(--footer-bg-color);
}

.footerclass {
    display: flex;
    padding: 23px 122px;
    justify-content: space-evenly;
}

.footerclass > div {
    width: 266px;
}

.footerclass ul {
    list-style: none;
}

footer .footer-rights {
    padding: 10px 0;
    color: var(--footer-hover-color);
    text-align: center;
}

.footerclass a {
    color: var(--footer-link-color);
    text-decoration: none;
}

.footerclass a:hover {
    color: var(--footer-hover-color);
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .footerclass {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .footerclass > div {
        width: 100%;
        margin-bottom: 20px;
    }

    .footerclass ul {
        padding: 0;
    }

    .footerclass a {
        display: inline-block;
        margin: 5px 0;
    }
}