/* general */

* {
    box-sizing: border-box;
    text-align: center;
    align-items: center;
    align-self: center;
    align-content: center;
    justify-content: center;
    justify-self: center;
}

a{
    color: black !important;
}

a:hover{
    text-decoration: underline;
}

a:link{
    text-decoration: None;
}

a:visited{
    text-decoration: None;
}

body{
    display: block;
    padding: 0px !important;
    min-height: 100vh;
    /* font-family: 'Times New Roman', Times, serif !important; */
}

footer{
    background-color: white;
    padding: 20px 0px;
}

.head {
    display: block;
    position: static;
    width: max-content !important;
    padding: 10px;
    margin: 10px 30px !important;
}

.head h1 {
    margin: 0px;
    font-size: larger;
    padding: 10px 0px;
}

.hidden{
    display: none;
}

.highlighted {
    background-color: bisque;
}

html{
    font-family: 'Times New Roman', Times, serif !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 100%;
    max-width: 100%;
}

iframe{
    width: 100%;
    height: 1100px;
}
  
li{
    display: block;
}

/* styling to improve the look of the list component of bio.html */

#funFacts {
    list-style-type: none;
    padding: 0;
}

#funFacts li {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
    align-content: center;
}

#funFacts li:last-child {
    border-bottom: none;
}

.outlined {
    border: solid rgb(186, 186, 207) !important;
    border-width: 1px 0px 1px 1px !important;
    box-shadow: 2px 2px 4px rgb(186, 186, 207);
}

/* header and footer */

footer ul {
    padding: 0px;
}

.menuHeader {
    position: sticky !important;
    top: 0px;
    background-color: ghostwhite;
    border-bottom: 0.5px rgb(224, 224, 232) solid;
    z-index: 1000;
    padding: 8px 20px !important;
    width: 100vw;
}

.nav li {
    display: block;
    font-weight: 600;
}

.navbar-brand {
    font-weight: 700;
}

.scrolled {
    /* background-color: rgb(181, 181, 181) !important; */
    box-shadow: 0px 1px 2px rgb(186, 186, 207);
}

.scrolled * {
    color: rgb(36, 36, 36) !important;
}

/* intro section */

#b-img{
    width: 100%;
    height: 33vw;
    max-height: 400px;
    min-height: 200px;
}

#bio{
    margin: auto;
}

#introSection {
    height: auto;
    min-height: 200px;
    max-height: 400px;
    padding: 2rem 1rem;
    box-shadow: 2px 2px 4px rgb(186, 186, 207);
}

#introSection div {
    width: 80%;
}

#name{
    margin: 5px 0px;
}

/* projects */

.deets{
    margin: 5px;
}

.p-img{
    width: 305px;
    height: 230px;
}

.proj{
    display: inline-block;
    width: min-content;
    margin: 10px;
}

/* unsure */

.home{
    display: block;
    position: fixed;
    left: 0px;
    float: left;
    height: 100vh;
    width: fit-content;
}

.home #menu{
    position: relative;
    margin: auto;
}

.home #menubutton{
    font-weight: bolder;
    text-decoration: wavy underline;
}

.l-img{
    width: 50px;
    height: auto;
}

#links{
    display: inline-block;
    margin: 0px;
}

#links li{
    float: left;
    padding: 0px 10px;
}

.n-img{
    width: 250px;
    height: 242px;
}

.text{
    padding: 0px 10px;
}

#featured-projects-title{
    text-align: center;
    color: #4a5568;
    margin: 30px 0 20px 0;
    font-size: 1.8em;
}

/* Carousel Styles */
.carousel-container {
    width: 800px;
    margin: 0 auto;
    position: relative;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 800px;
    flex-shrink: 0;
    opacity: 1;
    transition: all 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.project-card {
    display: flex;
    align-items: center;
    padding: 0px 40px;
    gap: 30px;
    width: 800px;
}

.project-image {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.project-content {
    flex: 1;
}

.project-title {
    font-size: 2em;
    color: #2d3748;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.project-description {
    color: #4a5568;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 25px 0;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}

.carousel-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(249, 250, 251, 0.8);
    z-index: 1001;
}

.carousel-btn {
    /* background: rgba(255, 255, 255, 0.9); */
    border: none;
    width: 50px;
    height: 50px;
    margin: 0px 10px 20px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #4a5568;
}

.carousel-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(74, 85, 104, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #667eea;
    transform: scale(1.2);
}

.indicator:hover {
    background: #667eea;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .project-image {
        width: 200px;
        height: 150px;
    }
    
    .carousel-controls {
        padding: 15px 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }
}

/* Timeline Styles */
.timeline-section {
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.timeline-header {
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 20px 0px;
    /* Fallback for browsers that don't support gradient text */
    color: #212529;
}

.timeline-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500;
}

.timeline-container {
    width: 100vw;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    width: 80%;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    padding: 20px 20px 0px 0px;
    border-radius: 10px;
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/*.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}*/

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.timeline-description {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
}

.timeline-type {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-type.education {
    background: var(--tertiary-gradient);
    color: white;
}

.timeline-type.work {
    background: var(--success-gradient);
    color: white;
}

.timeline-type.publication {
    background: var(--secondary-gradient);
    color: white;
}

.timeline-type.award {
    background: var(--warning-gradient);
    color: white;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
    z-index: 10;
}

/* Admin Panel Styles */

.admin-mode {
    color: white !important;
    font-weight: 100;
    text-decoration: none;
    position: absolute;
    bottom: 0px;
    left: 0px;
    z-index: 10;
}

.admin-mode:hover {
    cursor: default;
    text-decoration: none;
}

.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.4s ease;
}

.admin-panel.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.admin-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.close-admin {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-admin:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.admin-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.admin-tab {
    flex: 1;
    padding: 15px 20px;
    background: none;
    border: none;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.admin-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.admin-section {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.admin-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.admin-form h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-weight: 700;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-form textarea {
    resize: vertical;
    min-height: 100px;
}

.admin-form button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.admin-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.admin-list h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-weight: 700;
}

.admin-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
}

.admin-item-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.admin-delete {
    background: var(--secondary-gradient);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

/* Enhanced Styling 
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
} */

#menuHeader {
    background: rgba(248, 250, 252, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#menuHeader.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

#introSection {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

#projectsSection {
    padding: 0px 20px;
    background: transparent;
}

/* Enhanced Features */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.typed-bio-container {
    margin: 20px 0;
    min-height: 30px;
}

#typed-text {
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #667eea; /* fallback */
}

/* improve the CSS of the footer */
footer {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(173, 171, 171, 0.2);
    padding: 40px 20px;
    width: 100vw !important;
}

footer h4 {
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 10px;
    color: #6c757d;
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.animate-in {
    animation: slideInUp 0.6s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced notification styles */
.notification {
    backdrop-filter: blur(10px);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Large Screen Responsive */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    #b-img {
        height: 350px;
        object-fit: cover;
    }
    
    #introSection {
        height: 250px;
        padding: 3rem 2rem;
    }
    
    .carousel-container {
        max-width: 1000px;
    }
    
    #featured-projects-title {
        font-size: 2.5rem;
    }
    
    .timeline-title {
        font-size: 4rem;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    #b-img {
        height: 400px;
    }
    
    #introSection {
        height: 300px;
        padding: 4rem 2rem;
    }
    
    .carousel-container {
        max-width: 1200px;
    }
    
    .project-card {
        padding: 60px;
        gap: 40px;
    }
    
    .project-image {
        width: 300px;
        height: 250px;
    }
    
}

/* Medium Screen Responsive */
@media (min-width: 769px) and (max-width: 1199px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
    
    #b-img {
        height: 300px;
        object-fit: cover;
    }
    
    #introSection {
        height: auto;
        min-height: 200px;
        padding: 2rem 1.5rem;
    }

    .timeline-container::before {
        left: 50%;
    }
    
    .timeline-item {
        flex-direction: row;
    }
    
    .timeline-content {
        width: 45%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        width: 90vw;
    }


    .timeline-content {
        width: 90%;
        margin: 0 !important;
    }
    
    .timeline-dot {
        left: -5px;
    }
    
    .timeline-title {
        font-size: 2rem;
    }
    
    .admin-content {
        width: 95%;
        margin: 20px;
    }
    
    .admin-section {
        padding: 20px;
    }
    
    #typed-text {
        font-size: 1rem;
    }
    
    #particles-js {
        opacity: 0.3;
    }
}

/* Ultra-wide screen support */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    #b-img {
        height: 450px;
    }
    
    #introSection {
        height: 350px;
        padding: 5rem 3rem;
    }
    
    .carousel-container {
        max-width: 1400px;
    }
    
    .project-card {
        padding: 80px;
        gap: 50px;
    }
    
    .project-image {
        width: 350px;
        height: 280px;
    }
    
    .timeline-title {
        font-size: 5rem;
    }
    
    #featured-projects-title {
        font-size: 3rem;
    }
}
