/* General Styles */
/* Light Mode (Default) */
body.light-mode {
    background-color: #ffffff;
    color: #000000;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Additional styles for dark mode elements */
body.dark-mode .navbar {
    background-color: #1a1a1a;
}

body.dark-mode .nav-link {
    color: #ffffff;
}

body.dark-mode .btn-outline-light {
    border-color: #ffffff;
    color: #ffffff;
}

body.dark-mode .btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
}


body {
    background-color: #0a192f;
    color: #ccd6f6;
    /* font-family: 'Arial', sans-serif; */
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}


/* Navbar */
.navbar {
    background-color: #000;
}

.navbar-brand {
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    padding-left: 10px;
}

.navbar-nav .nav-link {
    color: #f8f9fa !important;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    margin: 0.4rem;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #00adee !important;
}

.container-fluid {
    height: 2.5rem
}




/* Home Section */

/* Home Section Background */
.home-section {
    background-image: url('../assets/img/light_home.jpg'); /* Default background for light mode */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark Mode Home Section Background */
body.dark-mode .home-section {
    background-image: url('../assets/img/dark__home.jpg'); /* Background for dark mode */
}

.home-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #0a192f;
    color: #ccd6f6;
}

.home-section h1 {
    font-size: 3rem;
    font-weight: bold;
    animation: fadeIn 2s ease-in-out;
}

.home-section p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
    /* font-family: inherit; */
}

.home-section p.lead {
    font-size: 1.2rem; /* Relative to the root font size */
    margin-bottom: 1.25rem; /* Relative to the root font size */
    margin-left: 7.5rem; /* Relative to the root font size */
    margin-right: 7.5rem; /* Relative to the root font size */
    opacity: 0.9;
}
@media (max-width: 768px) {
    .home-section p.lead {
        padding: 0 2rem;
    }
}

.home-section .btn {
    padding: 10px 20px;
    font-size: 1.2rem;
    transition: all 0.3s ease-in-out;
}

.home-section .btn:hover {
    background-color: #00adee;
    color: #fff;
}

/* Sections */
section {
    padding: 60px 0;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #072147;
    color: #ccd6f6;
}

.main-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

.heading-sec {
    text-align: center;
    margin-bottom: 40px;
}

.heading-sec__main {
    font-size: 2.0rem;
    font-weight: bold;
    color: #64ffda;
}

.heading-sec__sub {
    font-size: 1.2rem;
    color: #8892b0;
    margin-top: 10px;
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.about__content-main,
.about__content-skills {
    background: #112240;
    padding: 20px;
    border-radius: 10px;
}

.about__content-title {
    font-size: 1.5rem;
    color: #64ffda;
    margin-bottom: 15px;
}

.about__content-details-para {
    font-size: 0.9rem;
    color: #ccd6f6;
    line-height: 1.6;
    text-align: justify;
    text-justify: inter-word;
}


/* About Section Image + Text Layout */
.about__image-text-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    
}

.about__image {
    
    width: 350px; /* Adjust as needed */
    height: 400px;
    border-radius: 5%; /* Makes it circular - remove if you want square */
    object-fit: cover;
    border: 3px solid #000; /* Accent color border */
    flex-shrink: 0; /* Prevents image from shrinking */
}

.about__text-content {
    flex: 1; /* Takes remaining space */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about__image-text-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .about__image {
        margin-bottom: 20px;
    }
}


/* Projects Section */
.projects-section {
    background-color: #0a192f;
    color: #ccd6f6;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Changed from 350px */
    gap: 2rem;
}

.project-card {
    background: #112240;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%; /* Ensures equal height */
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px -15px rgba(100, 255, 218, 0.2);
}

.project-card__image {
    height: 180px; /* Slightly reduced height */
    overflow: hidden;
    display: flex;
    align-items: center; /* Vertically center image */
    justify-content: center; /* Horizontally center image */
    background: #0a192f; /* Fallback background */
}

.project-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.project-card:hover .project-card__image img {
    transform: scale(1.02);
}

.project-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__header {
    margin-bottom: 1rem;
}

.project-card__links {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.5rem;
}

.project-card__link {
    color: #ccd6f6;
    transition: color 0.3s ease;
}

.project-card__link:hover {
    color: #64ffda;
}

.project-card__title {
    font-size: 1.25rem;
    color: #e6f1ff;
    margin-bottom: 0.75rem;
}

.project-card__desc {
    font-size: 0.95rem;
    color: #a8b2d1;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-highlights {
    padding-left: 1.2rem;
    margin-bottom: 1.0rem;
}

.project-highlights li {
    color: #ccd6f6;
    font-size: 0.75rem;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.7;
    margin-bottom: 0.1rem;
    position: relative;
}

.project-highlights li::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    color: #64ffda;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: auto;
}

.project-tech span {
    font-size: 0.75rem;
    color: #64ffda;
    font-family: 'SF Mono', monospace;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

/* Light Mode Adjustments */
.light-mode .projects-section {
    background-color: #f8f9fa;
}

.light-mode .project-card {
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.light-mode .project-card:hover {
    box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.1);
}

.light-mode .project-card__title {
    color: #0a192f;
}

.light-mode .project-card__desc,
.light-mode .project-highlights li {
    color: #4a5568;
}

.light-mode .project-tech span {
    color: #0b4a8d;
    background: rgba(11, 74, 141, 0.1);
}

/* Light mode adjustments */
.light-mode .project-card__image {
    background: #f8f9fa;
}

.light-mode .project-title-link:hover {
    color: #0b4a8d; /* Dark blue for light mode */
}

.project-title-link {
    color: inherit; /* Inherits the title color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title-link:hover {
    color: #64ffda; /* Teal accent color on hover */
}

/* Responsive */
/* For larger screens - enforce 3 columns */
@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr); /* Strict 3 columns */
    }
}

/* Tablet view - 2 columns */
@media (max-width: 1199px) and (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile view - 1 column */
@media (max-width: 767px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* Creative Projects Section - Inherits most styles from projects-section */
/* Optional subtle differentiation */
#creative-projects .project-tech span {
    font-size: 0.75rem;
    color: #64ffda;
    font-family: 'SF Mono', monospace;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
}

.light-mode #creative-projects .project-tech span {
    color: #0b4a8d;
    background: rgba(11, 74, 141, 0.1);
}


/* Contact Section */
.contact {
    background-color: #072147;
    padding: 4rem 0;
}

.contact__info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact__text {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact__detail {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #8892b0;
    margin-top: 10px;
}

.contact__detail i {
    font-size: 1.2rem;
    color: #000;
}


/*  */

/* Footer */
footer {
    background-color: #000;
    text-align: center;
    padding: 10px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Social Icons */
.home-hero__socials {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.home-hero__social {
    background-color: rgba(255, 255, 255, 0.1); /* Light gray background */
    border-radius: 20%; /* Circular edges */
    width: 50px; /* Fixed size */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.home-hero__social:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Slightly darker on hover */
    transform: translateY(-5px); /* Lift effect on hover */
}

.home-hero__social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes icons white in dark mode */
    transition: filter 0.3s ease-in-out;
}


/* Contact socials */
/* Contact Section Social Icons */
.contact__socials {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between icons */
    margin-top: 20px; /* Space above the icons */
}

.contact__social {
    background-color: rgba(255, 255, 255, 0.1); /* Light background for icons */
    border-radius: 50%; /* Circular shape */
    width: 50px; /* Fixed size */
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.contact__social:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Slightly darker on hover */
    transform: translateY(-5px); /* Lift effect on hover */
}

.contact__social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Makes icons white in dark mode */
    transition: filter 0.3s ease-in-out;
}

/* Light mode adjustments */
.light-mode .contact__social {
    background-color: rgba(0, 0, 0, 0.1); /* Light gray background in light mode */
}

.light-mode .contact__social:hover {
    background-color: rgba(0, 0, 0, 0.2); /* Slightly darker on hover in light mode */
}

.light-mode .contact__social-icon {
    filter: brightness(0) invert(0); /* Reverts to original color in light mode */
}


/* Light mode adjustments */
.light-mode .home-hero__social {
    background-color: rgba(0, 0, 0, 0.2); /* Light gray background in light mode */
}

.light-mode .home-hero__social:hover {
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker on hover in light mode */
}

.light-mode .home-hero__social-icon {
    filter: brightness(0) invert(0); /* Reverts to original color in light mode */
}

.light-mode .home-hero__social-icon-link:hover .home-hero__social-icon {
    filter: brightness(0) invert(1); /* Makes icons white on hover in light mode */
}

.color-scheme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it's above other elements */
}

.theme-icon {
    
    width: 30px; /* Set a fixed size */
    height: 30px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.6); /* Light background for visibility */
    border-radius: 50%; /* Circular shape */
    padding: 8px; /* Add padding to the icon */
    transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.theme-icon:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    background-color: rgba(255, 255, 255, 0.6); /* Slightly darker on hover */
}



/* Toggle theme */

/* Light Color Scheme */
body.light-mode {
    background-color: #f8f9fa;
    color: #333;
}

.light-mode .navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.light-mode .navbar-brand,
.light-mode .navbar-nav .nav-link {
    color: #f8f9fa !important;
}

.light-mode .navbar-nav .nav-link:hover {
    color: #5f98d4 !important;
}

.light-mode .home-section {
    background-color: #f8f9fa;
    color: #333; /* Ensure text is visible */
}

.light-mode .home-section h1,
.light-mode .home-section p {
    color: #333; /* Change home text to dark */
}

.light-mode .home-section p {
    color: #333; /* Change home text to dark */
    font-size: 1.2rem;
}

.light-mode .home-section .btn {
    border-color: #333;
    color: #333;
}

.light-mode .home-section .btn:hover {
    background-color: #333;
    color: #fff;
}

.light-mode .about {
    background-color: #e9ecef;
    color: #333;
}

.light-mode .about__content-title {
    color: #000;
    font-weight: bold;
}

.light-mode .about__content-details-para {
    font-size: 0.9rem;
    color: #000;
    line-height: 1.6;
}

.light-mode .heading-sec__main {
    color: #000; /* Change heading color to black */
}


.light-mode .heading-sec__sub {
    color: #555; /* Change subheading color to dark gray */
}

.light-mode .about__content-main,
.light-mode .about__content-skills {
    background-color: #ffffff;
    color: #333;
}

.light-mode .skills__skill {
    background-color: #e9ecef;
    color: #333;
}

.light-mode .projects-section,
.light-mode .creative-projects-section {
    background-color: #f8f9fa;
    color: #333;
}

.light-mode .project-card {
    background-color: #ffffff;
    color: #333;
}

.light-mode .project-card__title {
    color: #000; /* Change project title color to blue */
}

.light-mode .project-card__desc {
    color: #555; /* Change project description color to dark gray */
}

.light-mode .project-card__links .btn {
    border-color: #333;
    color: #000;
}

.light-mode .project-card__links .btn:hover {
    background-color: #0b4a8d;
    color: #fff;
    font-weight: bold;
}

.light-mode .contact {
    background-color: #efebe9;
    color: #333;
}


.light-mode .contact__detail {
    color: #333;
    font-weight: bold;
    font-size: 1.1rem; 
}

.light-mode footer {
    background-color: #000;
    color: #333;
}

.light-mode .home-hero__social-icon {
    filter: brightness(0) invert(0); /* Reverts to original color */
}

.light-mode .home-hero__social-icon-link:hover .home-hero__social-icon {
    filter: brightness(0) invert(1); /* Makes icons white on hover */
}


/* Theme Popup for dark mode*/
.theme-popup {
    position: absolute;
    bottom: 2.5rem; /* Position above the theme toggle button */
    right: 0;
    background-color: #333; /* Dark background */
    color: #fff; /* White text */
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.7rem;
    opacity: 0; /* Initially hidden */
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 1000; /* Ensure it's above other elements */
}

.theme-popup::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Arrow pointing to the button */
    right: 10px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #333; /* Arrow color matches popup background */
}

/* Show popup */
.theme-popup.show {
    opacity: 1;
    visibility: visible;
}


/* Full screen view */

/* Lightbox Styles */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay */
    z-index: 1000; /* Ensure it's above other elements */
    text-align: center;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%; /* Center vertically */
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: 4rem;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #ccc;
}

/* New skills section */

/* Skills Section */
.skills-section {
    background-color: #0a192f;
    color: #ccd6f6;
}

.skills-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-category {
    background: #112240;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
}

.skills-category__title {
    color: #64ffda;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.skills-category__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.skill-item {
    display: flex;
    align-items: center;
    background: rgba(100, 255, 218, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

.skill-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
    .skills-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .skills-category__items {
        grid-template-columns: 1fr;
    }
}

/* Light mode adjustments */
.light-mode .skills-section {
    background-color: #f8f9fa;
    color: #333;
}

.light-mode .skills-category {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.light-mode .skills-category__title {
    color: #0b4a8d;
}

.light-mode .skill-item {
    background: rgba(11, 74, 141, 0.1);
}

.light-mode .skill-item:hover {
    background: rgba(11, 74, 141, 0.2);
}


/* Award Badge */
.award-badge {
    display: inline-block;
    
    font-size: 1.2rem;
    cursor: help;
    position: relative;
    /* filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
    transition: transform 0.3s ease, filter 0.3s ease; */
}

.award-badge:hover {
    transform: scale(1.2);
    /* filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)); */
}

/* Tooltip */
.award-badge {
    display: inline-block;  
    font-size: 1.2em;
    cursor: pointer;
    position: relative;
    /* animation: glow 2s infinite alternate; */
    transform: translateY(-2px);
}

.award-badge::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 10;
    margin-bottom: 10px;
    pointer-events: none;
}

.award-badge:hover::before {
    opacity: 1;
    visibility: visible;
}

.project-card {
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
}

.project-card__content {
    position: relative;
    z-index: 1;
}