/*------------------------ General Body Styling ------------------------*/
body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

body.active {
    overflow: hidden;
    z-index: -1;
}


/*------------------------ custom cursor ------------------------

body {
    cursor: url('../assets/blackcurs.png'), auto;
}

a, button,#mobile-menu-open,#mobile-menu-close, .file-label, #remove-file:hover,[role="button"], input[type="button"], input[type="submit"],button[type="submit"] .fa, #lead-down, #to-top {
    cursor: url('../assets/blackpointer.svg'), pointer;
}
*/

/*------------------------ Experience Timeline Styling ------------------------*/

.no-js #experience-timeline > div {
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #dcd9d9;
}

.no-js #experience-timeline > div h3 {
    font-size: 1.5em;
    font-weight: 300;
    color: #374054;
    display: inline-block;
    margin: 0;
}

.no-js #experience-timeline > div h4 {
    font-size: 1.2em;
    font-weight: 300;
    color: #7e8890;
    margin: 0 0 15px 0;
}

.no-js #experience-timeline > div p {
    color: #74808a;
    font-size: 0.9em;
    margin: 0;
}

.no-js #experience-timeline:before,
.no-js #experience-timeline:after {
    content: none;
}

/*------------------------ Footer Styling ------------------------*/

footer {
    padding: 50px 0;
}

.copyright {
    padding-top: 20px;
}

.copyright p {
    margin: 0;
    color: #74808a;
}

/*------------------------ Scroll to Top Button ------------------------*/

.top {
    text-align: center;
}

.top span {
    display: block;
    margin: 15px auto 0 auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #b9bfc4;
    text-align: center;
}

.top i {
    color: #74808a;
}

/*------------------------ Social Icons Styling ------------------------*/

.social {
    text-align: right;
}

.social ul {
    margin: 5px 0 0 0;
    padding: 0;
}

.social li {
    display: inline-block;
    font-size: 1.25em;
    list-style: none;
}

.social a {
    display: block;
    color: #74808a;
    padding: 10px;
}

.social a:hover {
    color: #4e538d;
}


/*------------------------ Shadow Styling ------------------------*/

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.shadow-large {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.15);
}

/*------------------------ Heading Styling ------------------------*/

.heading {
    position: relative;
    display: inline-block;
    font-size: 2em;
    font-weight: 300;
    margin: 0 0 30px 0;
}

.heading:after {
    position: absolute;
    content: '';
    top: 100%;
    height: 1px;
    width: 50px;
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #3498db;
}

/*------------------------ Lead Section Styling ------------------------*/

#lead {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1080px;
    background: url(../images/lead/leadimage_leaf.jpg) no-repeat center center; 
    background-size: cover;
    overflow: hidden;
}

#lead-content {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

#lead-content h1 {
    color: #fff;
    font-weight: 900;
    font-size: clamp(3em, 8vw, 5em);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin: 0 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#lead-content h2 {
    color: #bdd4e4;
    font-weight: 500;
    font-size: clamp(1.5em, 4vw, 2.25em);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#lead-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(60, 58, 61, 0.8), rgba(28, 27, 29, 0.8));
    z-index: 1;
}

#lead-down {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 40px;
    color: #fff;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

#lead-down span {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #a0cfee;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

#lead-down span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

#lead-down i {
    font-size: 1.5em;
    line-height: 44px;
    animation: bounce 2s infinite;
}

/*------------------------ Alternative Background ------------------------*/

.background-alt {
    background: #f2f2f5;
}

/*------------------------ Keyframes for Animations ------------------------*/

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    #lead-content h1 {
        font-size: clamp(2.5em, 10vw, 4em);
    }
    #lead-content h2 {
        font-size: clamp(1.2em, 5vw, 1.8em);
    }
}

/*------------------------ About Section Styling ------------------------*/

#about {
    padding: 75px 15px;
    border-bottom: 1px solid #dcd9d9;
}

#about h2 {
    color: #374054;
}

#about p {
    color: #74808a;
    margin: 0;
}

/*------------------------ Experience Section Styling ------------------------*/

#experience {
    padding: 50px 15px;
    text-align: center;
    border-bottom: 1px solid #dcd9d9;
}

#experience h2 {
    color: #374054;
}

#experience-timeline {
    margin: 30px auto 0 auto;
    position: relative;
    max-width: 1000px;
}

#experience-timeline:before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 303px;
    right: auto;
    height: 100%;
    width: 3px;
    background: #475a7e;
    z-index: 0;
}

#experience-timeline:after {
    position: absolute;
    content: '';
    width: 3px;
    height: 40px;
    background: #475a7e;
    background: linear-gradient(to bottom, #475a7e, rgba(52, 152, 219, 0));
    top: 100%;
    left: 303px;
}

.vtimeline-content {
    margin-left: 350px;
    background: #fff;
    border: 1px solid #475a7e;
    padding: 15px;
    border-radius: 3px;
    text-align: left;
}

.vtimeline-content h3 {
    font-size: 1.5em;
    font-weight: 300;
    color: #374054;
    display: inline-block;
    margin: 0;
}

.vtimeline-content h4 {
    font-size: 1.2em;
    font-weight: 300;
    color: #7e8890;
    margin: 0 0 15px 0;
}

.vtimeline-content p {
    color: #74808a;
    font-size: 0.9em;
    margin: 0;
}

.vtimeline-point {
    position: relative;
    display: block;
    margin-bottom: 30px;
}

.vtimeline-icon {
    position: relative;
    color: #fff;
    width: 50px;
    height: 50px;
    background: #475a7e;
    border-radius: 50%;
    float: left;
    z-index: 99;
    margin-left: 280px;
}

.vtimeline-icon i {
    display: block;
    font-size: 2em;
    margin-top: 10px;
}

.vtimeline-date {
    width: 260px;
    text-align: right;
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 300;
    color: #374054;
}

/*------------------------ Education Section Styling ------------------------*/

#education {
    padding: 50px 15px 20px 15px;
    border-bottom: 1px solid #dcd9d9;
    text-align: center;
}

#education h2 {
    color: #374054;
    margin-bottom: 50px;
}

.education-block {
    max-width: 700px;
    margin: 0 auto 30px auto;
    padding: 15px;
    border: 1px solid #dcd9d9;
    text-align: left;
    border-radius: 3px;
}

.education-block h3 {
    font-weight: 500;
    float: left;
    margin: 0;
    color: #374054;
}

.education-block span {
    color: #74808a;
    float: right;
}

.education-block h4 {
    color: #74808a;
    clear: both;
    font-weight: 500;
    margin: 0 0 15px 0;
}

.education-block p,
.education-block ul {
    margin: 0;
    color: #74808a;
    font-size: 0.9em;
}

.education-block ul {
    padding: 0 0 0 15px;
}

/*------------------------ Projects Section Styling ------------------------*/

#projects {
    padding: 50px 15px;
    border-bottom: 1px solid #dcd9d9;
    text-align: center;
}

#projects h2 {
    color: #374054;
    margin-bottom: 50px;
}

.project {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 300px;
    display: flex;
}

.project-image {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.project-info {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.8em;
    font-weight: 500;
    color: #374054;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.project-description {
    background: #ecedef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
body.dark-mode .project-description {
    background: #2d2d2d;
    border-left: 4px solid #bb86fc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.project-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

body.dark-mode .project-text {
    color: #e0e0e0;
}

.project-text:last-child {
    margin-bottom: 0;
}

.project-highlight {
    margin-top: 15px;
    text-align: center;
}

.highlight {
    background-color: rgba(37, 99, 235, 0.15);
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.05em;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Dark mode styles */
body.dark-mode .highlight {
    background-color: rgba(126, 27, 219, 0.15);
    color: #ffffff;
}

.project-links {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.project-btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    background: #f0f2f5;
    color: #374054;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid #e0e3e9;
}

.project-btn:hover {
    background: #e4e6e9;
}

/* Dark mode adjustments */
body.dark-mode .project-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
    transition: all 0.3s ease;
}

body.dark-mode .project-btn:hover {
    background: #444;
}

.project-btn::after {
    display: none;
}

/* Dark mode adjustments */
body.dark-mode .project {
    background: #2a2a2a;
}

body.dark-mode .project-title {
    color: #e0e0e0;
}

body.dark-mode .project-description {
    background: #2d2d2d;
    border-left: 4px solid #bb86fc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode .project-text {
    color: #e0e0e0;
}

body.dark-mode .project-btn {
    background: #333;
    color: #e0e0e0;
    border-color: #444;
    transition: all 0.3s ease;
}

body.dark-mode .project-btn:hover {
    background: #444;
}

/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    .project {
        flex-direction: column;
        min-height: auto;
    }

    .project-image {
        border-radius: 12px 12px 0 0;
    }

    .project-image img {
        border-radius: 12px 12px 0 0;
    }

    .project-info {
        padding: 20px;
    }

    .project-title {
        font-size: 1.5em;
    }
}

/*------------------------ AI Assistance Styling ------------------------*/
.fa-info-circle {
    font-size: 0.84em; 
    color: #4CAF50; 
    margin-left: 8px;
    vertical-align: middle;
    transition: color 0.3s ease;
}

.fa-info-circle:hover {
    color: #388E3C; 
    text-decoration: none;
    cursor: help;
}

#mdai:hover {
   cursor: help;
}
/*------------------------ Custom Popup Styling ------------------------*/
.custom-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #f8f9fa;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 90%;
}

.close-popup {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    color: #6b7280;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-popup:hover {
    color: #4b5563;
}
body.dark-mode #popup-message {
    color: #c7c7ca;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}
#popup-message {
    color: #6b6b6b;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}
/*------------------------ View More ------------------------*/

.project {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.more-projects {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.more-projects .project {
    opacity: 0;
    transform: translateY(20px);
}

.more-projects .project.show {
    opacity: 1;
    transform: translateY(0);
}

.view-more-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    color: #495057;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto;
}

.view-more-button:hover {
    background-color: #e9ecef;
    color: #212529;
}

.chevron-down {
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.view-more-button.active .chevron-down {
    transform: rotate(180deg);
}

/*------------------------ Skills Section Styling ------------------------*/

#skills {
    padding: 70px 15px;
    text-align: center;
    background-color: #f8f9fa;
}

#skills h2 {
    color: #374054;
    margin-bottom: 50px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.skill-item i {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.skill-item span {
    display: block;
    font-size: 1.1em;
    color: #374054;
    font-weight: 500;
    margin-bottom: 10px;
}

.skill-bar {
    background-color: #e0e0e0;
    border-radius: 20px;
    height: 10px;
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.skill-level {
    height: 100%;
    background-color: #3498db;
    border-radius: 20px;
    position: relative;
    text-align: right;
    padding-right: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 0.85em;
}
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/*------------------------ Contact Section Styling ------------------------*/

#contact {
    padding: 100px 0;
    background: #f2f2f2; 
    text-align: center;
    color: #333; 
    border: 1px solid #ccc;
}

#contact h2 {
    margin: 0 0 40px 0;
    font-weight: 300;
    font-size: 3em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #374054; 
    text-shadow: none; 
}

/*------------------------ Contact Form Styling ------------------------*/

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9); 
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(10px);
}

#contact-form input,
#contact-form textarea {
    display: block;
    width: 100%;
    padding: 18px;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1); 
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.9); 
    color: #333; 
    font-size: 16px;
    transition: all 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: #6155558c; 
    background: rgba(255, 255, 255, 1); 
    box-shadow: 0 0 15px rgba(97, 85, 85, 0.5); 
}

#contact-form textarea {
    height: 180px;
    resize: vertical;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(51, 51, 51, 0.7); 
}

#contact-form button {
    display: inline-block;
    background: linear-gradient(135deg, #6d83f3, #374054); 
    color: #fff; 
    font-size: 18px;
    font-weight: 600;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

#contact-form button:hover {
    background: linear-gradient(135deg, #566dc7, #2f3747);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

#contact-form button.loading {
    color: transparent;
    pointer-events: none; 
}

#contact-form button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5em;
    height: 0.5em;
    margin-left: -1em;
    border-radius: 50%;
    background: #fff;
    animation: loadingDots 1s infinite linear;
    box-shadow: 1em 0 0 0 #fff, 2em 0 0 0 #fff;
}

@keyframes loadingDots {
    0% {
        box-shadow: 1em 0 0 0 #fff, 2em 0 0 0 #fff;
    }
    33% {
        box-shadow: 1em 0 0 0 #374054, 2em 0 0 0 #fff;
    }
    66% {
        box-shadow: 1em 0 0 0 #374054, 2em 0 0 0 #374054;
    }
    100% {
        box-shadow: 1em 0 0 0 #fff, 2em 0 0 0 #374054;
    }
}


/*------------------------ File Upload Styling ------------------------*/

.file-upload {
    position: relative;
    margin-bottom: 25px;
    text-align: left;
}

.file-input {
    position: absolute;
    left: -9999px;
}

.file-label {
    display: inline-block;
    padding: 12px 20px;
    background: #374054; 
    color: #fff; 
    border: 2px solid rgba(0, 0, 0, 0.1); 
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #444a4a;
}

.file-label i {
    margin-right: 10px;
}

.file-name {
    margin-left: 15px;
    font-style: italic;
    color: #333333ae;
}


/*------------------------ Result Message Styling ------------------------*/

#resultMessage.success {
    background-color: rgba(62, 63, 62, 0.9);
    color: #fff;
}

#resultMessage.error {
    background-color: rgb(142, 23, 10);
    color: #fff;
}

#resultMessage {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 10px 20px;
    color: #fff;
    background-color: #4f524f;
    text-align: center;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
}

#resultMessage.show {
    display: block;
    opacity: 1;
}

#resultMessage.fade {
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.success {
    background-color: #5b97be;
}

.error {
    background-color: #dc3545;
}

/*------------------------ Dark Mode Toggle Button ------------------------*/

#dark-mode-toggle.btn-dark-mode {
    position: relative;
    margin-top: 20px;
    padding: 16px 32px;
    background: linear-gradient(145deg, #2a4858, #1e3b4d);
    color: #fff;
    border: none;
    border-radius: 60px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

#dark-mode-toggle.btn-dark-mode:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.4s;
}

#dark-mode-toggle.btn-dark-mode:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.18), 0 5px 5px rgba(0, 0, 0, 0.12);
}

#dark-mode-toggle.btn-dark-mode:hover:before {
    left: 100%;
}

#dark-mode-toggle.btn-dark-mode:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

#dark-mode-toggle.btn-dark-mode:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 126, 158, 0.5);
}

#dark-mode-toggle.btn-dark-mode {
    position: relative;
    z-index: 1;
}

#dark-mode-toggle.btn-dark-mode:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(78, 126, 158, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(78, 126, 158, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(78, 126, 158, 0);
    }
}

#dark-mode-toggle.btn-dark-mode:hover {
    animation: pulse 1.5s infinite;
}

@media screen and (max-width: 768px) {
    #dark-mode-toggle.btn-dark-mode {
        padding: 12px 24px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    #dark-mode-toggle.btn-dark-mode {
        padding: 10px 20px;
        font-size: 16px;
    }
}


/*------------------------ Dark Mode ------------------------*/

body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode header ul {
    background-color: #2c2a2a;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

body.dark-mode header a {
    color: #bb86fc;
}

body.dark-mode header a:hover {
    color: #ff79b0;
    background: #333;
}

body.dark-mode #mobile-menu-open {
    background: #333;
}

body.dark-mode #mobile-menu-close {
    background: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .copyright p {
    color: #a0a0a0;
}

body.dark-mode .top span {
    border-color: #333;
}

body.dark-mode .top i {
    color: #a0a0a0;
}

body.dark-mode .social a {
    color: #a0a0a0;
}

body.dark-mode .social a:hover {
    color: #bb86fc;
}

body.dark-mode .shadow,
body.dark-mode .shadow-large {
    box-shadow: none;
}

body.dark-mode .heading:after {
    background: #bb86fc;
}

body.dark-mode #lead-content h1 {
    color: #ffffff;
}

body.dark-mode #lead-content h2 {
    color: #bb86fc;
}

body.dark-mode #lead-overlay {
    background: linear-gradient(135deg, rgba(28, 27, 29, 0.8), rgba(60, 58, 61, 0.8));
}

body.dark-mode #lead-down span {
    border: 3px solid #bb86fc;
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode #lead-down span:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-mode .background-alt {
    background: #1f1f1f;
}

body.dark-mode #about,
body.dark-mode #contact,
body.dark-mode #experience {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode #experience h2,
body.dark-mode #experience h3,
body.dark-mode #education h2,
body.dark-mode #projects h2,
body.dark-mode #skills h2,
body.dark-mode #contact h2, 
body.dark-mode #about h2 {
    color: #e0e0e0;
}

body.dark-mode #about p,
body.dark-mode #experience-timeline .vtimeline-content p,
body.dark-mode .education-block p,
body.dark-mode .project-info p,
body.dark-mode #contact-form input,
body.dark-mode #contact-form textarea,
body.dark-mode .vtimeline-content p,
body.dark-mode .vtimeline-content h4 {
    color: #a0a0a0;
}

body.dark-mode .vtimeline-content {
    background: #353535;
    border: 1px solid #555555;
}

body.dark-mode .vtimeline-icon {
    background: #bb86fc;
}

body.dark-mode .vtimeline-content h3,
body.dark-mode .vtimeline-date {
    color: #d0d0d0;
}

body.dark-mode .education-block {
    background: #1e1e1e;
    border: 1px solid #333;
}

body.dark-mode .project {
    background-color: #333333;
    border-color: #444444;
}
body.dark-mode #projects {
    border-bottom: 1px solid #444444; 
}

body.dark-mode .project-info h3 {
    color: #ffffff;
}

body.dark-mode #projects {
    background-color: #2a2a2a;
}

body.dark-mode #projects h2 {
    color: #e5e5e5;
}

body.dark-mode .view-more-button {
    background-color: #333;
    border: 1px solid #444;
    color: #e0e0e0;
}

body.dark-mode .view-more-button:hover {
    background-color: #444;
    color: #bb86fc;
}

body.dark-mode #skills {
    background-color: #1e1e1e;
}

body.dark-mode .skill-item {
    background-color: #333;
    color: #e0e0e0;
}

body.dark-mode .skill-item span {
    color: #e0e0e0;
}

body.dark-mode #contact-form {
    background: rgba(43, 42, 42, 0.9); 
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2); 
}

body.dark-mode #contact-form input,
body.dark-mode #contact-form textarea {
    background: rgba(60, 60, 60, 0.9); 
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

body.dark-mode #contact-form input::placeholder,
body.dark-mode #contact-form textarea::placeholder {
    color: rgba(220, 220, 220, 0.7); 
}

body.dark-mode #contact-form button {
    background: linear-gradient(135deg, #bb86fc, #333);
    color: #fff;
}

body.dark-mode #contact-form button:hover {
    background: linear-gradient(135deg, #bb86fc, #444);
}

/* Loading state for button */
body.dark-mode #contact-form button.loading {
    color: transparent;
    pointer-events: none;
}

body.dark-mode #contact-form button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5em;
    height: 0.5em;
    margin-left: -1em;
    border-radius: 50%;
    background: #000;
    animation: loadingDots 1s infinite linear;
    box-shadow: 1em 0 0 0 #bb86fc, 2em 0 0 0 #bb86fc; 
}

@keyframes loadingDots {
    0% {
        box-shadow: 1em 0 0 0 #fff, 2em 0 0 0 #fff;
    }
    33% {
        box-shadow: 1em 0 0 0 #374054, 2em 0 0 0 #fff;
    }
    66% {
        box-shadow: 1em 0 0 0 #374054, 2em 0 0 0 #374054;
    }
    100% {
        box-shadow: 1em 0 0 0 #fff, 2em 0 0 0 #374054;
    }
}

body.dark-mode .file-label {
    background: #333;
    color: #e0e0e0;
}

body.dark-mode .file-label:hover {
    background: #444;
}

body.dark-mode .file-name {
    color: #d0d0d0;
}

body.dark-mode #resultMessage.success {
    background-color: rgba(200, 200, 200, 0.9);
    color: #000;
}

body.dark-mode #resultMessage.error {
    background-color: rgb(142, 23, 10);
    color: #fff;
}

body.dark-mode .cursor-trail {
    border-color: #bb86fc;
}

body.dark-mode a {
    color: #bb86fc;
}

body.dark-mode a:hover {
    color: #ff79b0;
}

body.dark-mode .btn-dark-mode {
    background-color: #bb86fc;
    color: #121212;
}

body.dark-mode .btn-dark-mode:hover {
    background-color: #ff79b0;
    transform: translateY(-2px);
}
body.dark-mode .popup-content {
    background-color: #333;
    color: #fff;
    border-color: #555;
}

body.dark-mode .close-popup {
    color: #ddd;
}

body.dark-mode .close-popup:hover,
body.dark-mode .close-popup:focus {
    color: #fff;
}

/*------------------------ Cursor & trail styling ------------------------*/

.cursor-trail {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #FF674D;
    top: 0;
    left: 0;
    position: absolute;
    mix-blend-mode: exclusion;
    pointer-events: none;
    will-change: transform;
    transition: transform linear .125s, opacity .125s ease-in .125s, width .2s, height .2s;
    opacity: 0;
    z-index: 9999;
}

/*
.cursor {
    background-color: whitesmoke;
    width: 24px;
    height: 24px;
    transform-origin: center;
    top: 0;
    left: 0;
    position: absolute;
    mix-blend-mode: exclusion;
    pointer-events: none;
    will-change: transform;
    transition: transform linear .125s, opacity .125s ease-in .125s;
    border-radius: 50%;
    opacity: 0;
    z-index: 9999;
}
*/

@media (hover: none) and (pointer: coarse) {
    .cursor,
    .cursor-trail {
        display: none;
    }
}


/*------------------------ Media Queries ------------------------*/

@media only screen and (max-width: 768px) {
    #contact-form {
        padding: 30px;
        margin: 13px;
    }
    
    #contact h2 {
        font-size: 2.5em;
    }
}

@media only screen and (max-width: 750px) {
    #experience-timeline:before,
    #experience-timeline:after {
        left: 23px;
    }
    
    .vtimeline-date {
        width: auto;
        text-align: left;
        position: relative;
        margin-bottom: 15px;
        display: block;
        margin-left: 70px;
    }
    
    .vtimeline-icon {
        margin-left: 0;
    }
    
    .vtimeline-content {
        margin-left: 70px;
    }
}

@media only screen and (max-width: 992px) {
    #lead {
        height: auto;
        min-height: auto;
        max-height: auto;
        padding: 100px 15px;
    }
    
    #lead-content {
        position: relative;
        transform: none;
        left: auto;
        top: auto;
    }
    
    #lead-content h1 {
        font-size: 3em;
    }
    
    #lead-content h2 {
        font-size: 1.75em;
    }
    
    #about {
        text-align: center;
    }
    
    #about p {
        text-align: left;
    }
}

@media only screen and (max-width: 768px) {
    header {
        position: fixed;
        display: none;
        z-index: 999;
        animation: none;
        bottom: 0;
        height: 100%;
    }
    
    #mobile-menu-open,
    #mobile-menu-close {
        display: block;
    }
    
    #menu {
        height: 100%;
        overflow-y: auto;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
    }
    
    #menu li {
        display: block;
        margin-bottom: 10px;
    }
    
    #lead-content h1 {
        font-size: 1.7em;
    }
    
    #lead-content h2 {
        font-size: 1.1em;
    }
    
    #lead-content a {
        padding: 10px 20px;
    }
    
    #lead-down {
        display: none;
    }
    
    .education-block h3,
    .education-block span {
        float: none;
    }
    
    .project-image {
        display: none;
    }
    
    .project-info {
        position: relative;
        margin: 0;
        padding: 30px 15px;
        top: auto;
        transform: none;
    }
    
    footer {
        text-align: center;
    }
    
    .social {
        text-align: center;
    }
}

@media only screen and (max-width: 480px) {
    #lead-content h1 {
        font-size: 1.2em;
    }
    
    #lead-content h2 {
        font-size: 0.8em;
    }
    
    #lead-content a {
        font-size: 0.9em;
        padding: 5px 10px;
    }
}

/*------------------------ General Link Styling ------------------------*/

a {
    color: #4b7eb4;
    text-decoration: none !important;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #0057b399;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

a:hover {
    color: #0057b399;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/*------------------------ Specific Link Stylings ------------------------*/

.project-info a {
    color: #718f79;
}

.project-info a::after {
    background-color: #718f7989;
}

body.dark-mode .project-info a::after {
    background-color: #1ed4e889;
}

.project-info a:hover {
    color: #718f7989;
}

a .fa {
    color: inherit;
    text-shadow: none;
    text-decoration: none;
    position: static;
    display: inline;
}
 
.no-underline {
    text-decoration: none !important;
}

.no-underline::after {
    content: none;
    text-decoration: none !important;
}

/*------------------------ Feather Icons ------------------------*/

.feather-moon{
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
}

.feather-sun{
    width: 50px;
    height: 30px;
    display: flex;
    align-items: center;
}

@media screen {
    .feather-moon{
        width: 30px;
        height: 25px;
        display: flex;
        align-items: center;
    }
    
    .feather-sun{
        width: 30px;
        height: 25px;
        display: flex;
        align-items: center;
    }
}

/*------------------------ highlight ------------------------*/

body.dark-mode .highlight {
    background-color: rgba(126, 27, 219, 0.15);  
    color: #ffffff;  
    padding: 4px 12px;  
    border-radius: 6px;  
    font-weight: 600;  
    box-shadow: 0 2px 4px rgba(126, 27, 219, 0.15);  
    border: 1.5px solid rgba(126, 27, 219, 0.25);  
    transition: all 0.2s ease; 
}

body.dark-mode .highlight:hover {
    background-color: rgba(126, 27, 219, 0.25);  
    box-shadow: 0 3px 6px rgba(126, 27, 219, 0.25);
    transform: translateY(-1px);
    cursor: default;
}

.highlight {
    background-color: rgba(37, 99, 235, 0.15);  
    color: #1e40af;  
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

.highlight:hover {
    background-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 3px 6px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
    cursor: default;
}

/* Dark mode styles */
body.dark-mode .highlight {
    background-color: rgba(126, 27, 219, 0.15);  
    color: #ffffff;  
    border: 1.5px solid rgba(126, 27, 219, 0.25);
    box-shadow: 0 2px 4px rgba(126, 27, 219, 0.15);
}

body.dark-mode .highlight:hover {
    background-color: rgba(126, 27, 219, 0.25);  
    box-shadow: 0 3px 6px rgba(126, 27, 219, 0.25);
    transform: translateY(-1px);
}

/*------------------------ Custom Scrollbar ------------------------*/

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 85, 104, 0.5) rgba(203, 213, 224, 0.1);
  }
  
  *::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  *::-webkit-scrollbar-track {
    background: rgba(203, 213, 224, 0.1);
    border-radius: 10px;
    margin: 4px;
    backdrop-filter: blur(4px);
  }

  *::-webkit-scrollbar-thumb {
    background: linear-gradient(
      45deg,
      rgba(74, 85, 104, 0.6),
      rgba(74, 85, 104, 0.8)
    );
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
  }
  
  *::-webkit-scrollbar-corner {
    background: transparent;
  }
  
  *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      45deg,
      rgba(74, 85, 104, 0.8),
      rgba(74, 85, 104, 1)
    );
    border: 2px solid transparent;
    background-clip: content-box;
  }
  
  *::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
      45deg,
      rgba(74, 85, 104, 1),
      rgba(74, 85, 104, 0.8)
    );
  }
  
  body.dark-mode * {
    scrollbar-color: rgba(113, 128, 150, 0.5) rgba(45, 55, 72, 0.1);
  }
  
  body.dark-mode *::-webkit-scrollbar-track {
    background: rgba(45, 55, 72, 0.1);
    backdrop-filter: blur(4px);
  }
  
  body.dark-mode *::-webkit-scrollbar-thumb {
    background: linear-gradient(
      45deg,
      rgba(113, 128, 150, 0.6),
      rgba(113, 128, 150, 0.8)
    );
  }
  
  body.dark-mode *::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      45deg,
      rgba(160, 174, 192, 0.8),
      rgba(160, 174, 192, 1)
    );
  }
  
  body.dark-mode *::-webkit-scrollbar-thumb:active {
    background: linear-gradient(
      45deg,
      rgba(160, 174, 192, 1),
      rgba(160, 174, 192, 0.8)
    );
  }
  
  .hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
  
  .show-scrollbar {
    overflow: auto;
    scrollbar-width: thin;
  }