/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

body {
    background: #1a1a2e;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* AI Background */
.ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle, rgba(30, 30, 50, 0.8), rgba(10, 10, 20, 1));
}

/* Navbar */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    background: rgba(40, 40, 70, 0.9);
    padding: 2rem;
    transition: transform 0.3s ease;
    z-index: 10;
}

.nav-bar .image {
    width: 120px;
    border-radius: 50%;
    border: 2px solid #5e5e9e;
    box-shadow: 0 0 15px rgba(94, 94, 158, 0.5);
}

.nav-items .item a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.nav-items .item a:hover {
    color: #ff6f61;
    background: rgba(255, 111, 97, 0.2);
    transform: translateX(10px);
}

.nav-items .item a.selected {
    background: rgba(255, 111, 97, 0.4);
    color: #ff6f61;
}

.collapse-btn {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Frame */
.frame {
    padding-left: 280px;
    min-height: 100vh;
}

/* Sections */
.detail-box {
    padding: 3rem;
    margin: 2rem 0;
    background: rgba(30, 30, 50, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.heading {
    font-size: 3rem;
    color: #ff6f61;
    margin-bottom: 1rem;
}

.name {
    font-size: 5rem;
    text-shadow: 0 0 10px rgba(255, 111, 97, 0.7);
}

.salmon {
    color: #ff6f61;
}

.tagline {
    font-size: 1.5rem;
    color: #5e5e9e;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.node {
    position: absolute;
    left: -1rem;
    top: 1rem;
    width: 15px;
    height: 15px;
    background: #ff6f61;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.node:hover {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 111, 97, 0.7);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.7rem;
    top: 0;
    height: 100%;
    width: 2px;
    background: #5e5e9e;
}

.content {
    padding: 1rem;
    background: rgba(40, 40, 70, 0.8);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.content:hover {
    transform: translateX(10px);
}

.timeline {
    color: #ff6f61;
    font-size: 1.2rem;
}



/* 
.details.active {
    display: block;
    opacity: 1;
} */

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill-card {
    background: #5e5e9e;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: #ff6f61;
}

/* Resources */
.resources {
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 111, 97, 0.3);
}

.resource-btn {
    background: linear-gradient(45deg, #ff6f61, #e65a50);
    border: none;
    padding: 1rem 2rem;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.resource-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 111, 97, 0.7);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.modal-content {
    background: #1a1a2e;
    margin: 15% auto;
    padding: 2rem;
    width: 50%;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 111, 97, 0.5);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #ff6f61;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    /* background: rgba(20, 20, 40, 0.9); */
}

.contact-info {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.social-links .icon {
    color: #ff6f61;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

.social-links .icon:hover {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-bar {
        width: 100%;
        height: auto;
        transform: translateY(-100%);
    }

    .nav-bar.active {
        transform: translateY(0);
    }

    .collapse-btn {
        display: block;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 11;
    }

    .frame {
        padding-left: 1rem;
    }
}

.details {
    display: block;
    opacity: 1;
    visibility: visible
}

.details.hide {
    display: none; /* Hidden by hide */
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(50, 50, 80, 0.9);
    border-radius: 5px;
    color: #e0e0e0;
    transition: opacity 2s ease;
}

/* Education Logos */
.heading-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0; /* Adds breathing room */
    background: transparent; /* Ensures no background bleed-through */
}

/* Education Heading */
.heading {
    font-size: 3rem;
    color: #ff6f61;
    margin: 0; /* Removes default margin to align with logos */
}

/* Education Logos */
.edu-logos {
    display: flex;
    gap: 1.5rem; /* Increased gap for a cooler, spaced-out look */
    padding: 0.5rem; /* Adds padding to prevent cutting */
}

.edu-logo {
    height: 60px;
    width: auto;
    object-fit: fill;
    background: none;
    padding: 0.2rem;
    border-radius: 50%;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow-x: visible;
}

.edu-logo:hover {
    transform: scale(1.1); /* Slightly larger hover effect */
}

.fa-2x{
    text-shadow: 10px 010px 7px #e3876838, 0px 0px 15px #d178571a, 0px 0px 24px #f39d5c18;
}