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

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    padding-top: 50px; /* Account for the fixed navbar */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar.bg-transparent {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.profile-container {
    width: 100%;
    margin-top: 0;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 50px;
}

.header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
}

.header h1 {
    font-size: 2.5rem;
    color: #000;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.header p {
    font-size: 1.25rem;
    color: #666;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.about-me {
    flex: 1;
    margin-right: 100px;
}

.about-me h2 {
    font-size: 1.5rem;
    color: #000;
    transition: color 0.3s ease;
}

.about-me p {
    font-size: 1.125rem;
    color: #333;
    margin-top: 10px;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #3671e7;
    text-decoration: none; 
}

.projects-section {
    width: 100%;
    padding: 40px 20px;
    background-color: #f5f5f5;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.projects-section h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.projects-section p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.projects-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 30%;
    text-align: left;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 150px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 20px;
    object-fit: cover;
    object-position: center;
}

.project-card h3 {
    font-size: 1.5rem;
    color: #000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.project-links {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.demo-btn {
    background-color: #000;
    color: #fff;
}

.code-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.demo-btn:hover {
    background-color: #444;
}

.code-btn:hover {
    background-color: #f5f5f5;
}

.skills-section {
    padding: 40px 20px;
    background-color: #f5f5f5;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.skills-section h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.skills-section p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    width: 100px;
    text-align: center;
}

.skill-icon {
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.skill-card p {
    font-size: 1rem;
    color: #000;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.contact-section {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-section h2 {
    font-size: 2rem;
    color: #000;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.contact-section p {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 40px;
    transition: color 0.3s ease;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 15px;
    font-size: 1rem;
    color: #fff;
    background-color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
    background-color: #444;
}

.footer {
    padding: 20px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #666;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

.footer-right a {
    margin-left: 15px;
    color: #666;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: #000;
}

/* Toggle Dark/Light theme*/

.switch {
    font-size: 14px;
    position: relative;
    display: inline-block;
    width: 2.5em; 
    height: 1.4em; 
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    --background: #28096b;
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    transition: .5s;
    border-radius: 30px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1.1em;
    width: 1.1em;
    border-radius: 50%;
    left: 5%;
    bottom: 10%;
    background: var(--background);
    box-shadow: inset 10px 0px 0px 6px #fff000;
    transition: .5s;
  }
  
  input:checked + .slider {
    background-color: #522ba7;
  }
  
  input:checked + .slider:before {
    transform: translateX(100%);
    background-color: #522ba7;
    box-shadow: inset 3px -2px 0px 2px #fff000;
  }
  

/* Dark Mode Styles */
.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

.dark-mode .navbar .navbar-brand,
.dark-mode .navbar .nav-link,
.dark-mode .navbar-toggler-icon {
    color: #ffffff;
}

.dark-mode .navbar-toggler {
    border-color: #ffffff;
}

.dark-mode .navbar.bg-transparent {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

.dark-mode .profile-container {
    background-color: #1e1e1e;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .projects-section {
    background-color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .skills-section {
    background-color: #1e1e1e;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .contact-section {
    background-color: #000000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .footer {
    background-color: #000;
}

.dark-mode .header h1,
.dark-mode .header p,
.dark-mode .about-me h2,
.dark-mode .about-me p,
.dark-mode .projects-section h2,
.dark-mode .projects-section p,
.dark-mode .project-card h3,
.dark-mode .project-card p,
.dark-mode .skills-section h2,
.dark-mode .skills-section p,
.dark-mode .skills-category h3,
.dark-mode .skill-card p,
.dark-mode .contact-section h2,
.dark-mode .contact-section p,
.dark-mode .footer {
    color: #e0e0e0;
}

.dark-mode .project-card {
    background-color: #333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .download-btn,
.dark-mode .submit-btn {
    background-color: #333;
    color: #fff;
}

.dark-mode .download-btn:hover,
.dark-mode .submit-btn:hover {
    background-color: #4333d5;
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #444;
}

.dark-mode .btn {
    border: 1px solid #fff;
}

.dark-mode .demo-btn {
    background-color: #444;
    color: #e0e0e0;
}

.dark-mode .code-btn {
    background-color: #333;
    color: #e0e0e0;
}

.dark-mode .footer-right a {
    color: #e0e0e0;
}

.dark-mode .footer-right a:hover {
    color: #fff;
}

.dark-mode .bi {
    color: #e0e0e0;
}

.form-check-label {
    cursor: pointer;
}

.form-check-input:checked + .form-check-label #theme-icon {
    color: #f39c12;
}

.form-check-input:not(:checked) + .form-check-label #theme-icon {
    color: #f1c40f;
}

.form-check-input {
    width: 50px;
    height: 25px;
    margin-left: 10px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #333;
}

.form-check-input:not(:checked) {
    background-color: #ccc;
}

#confirmationMessage {
    margin-top: 20px;
    padding: 10px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
}



/* Dark mode styles */
.dark-mode .skill-icon {
    color: #FFFFFF;  /* White color for dark mode */
    fill: white;
}


.skill-icon {
    width: 40px;  /* Ensure all icons are of similar size */
    height: 40px;
    margin-bottom: 10px;
    display: inline-block;
    object-fit: contain;  /* Ensure the image fits within the defined width and height */
}

.mobile-text{
    display: none;
}

@media (max-width: 768px) {
    .mobile-text{
        display: inline;
    }
    .desktop-text{
        display: none;
    }

    .profile-container {
        flex-direction: column;
        padding: 20px;
    }

    .header {
        align-items: center;
        text-align: center;
        margin-left: 0;
    }

    .about-me {
        margin: 0;
        margin-top: 20px;
        padding: 0 15px;
        text-align: center;
    }

    .download-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: #000000;
        color: white;
        text-align: center;
        text-decoration: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
    }
    
    .download-btn:hover {
        background-color: #3671e7;
        text-decoration: none; 
    }
    

    .projects-container {
        flex-direction: column;
    }

    .project-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .contact-form {
        width: 100%;
        padding: 0 20px;
    }
}