/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 20%, #c3cfe2 80%);
    padding: 0 1rem;
  overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: #007bff;
    color: #fff;
}

#home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, #dce35b 0%, #45b649 60%);
    margin-bottom: 2rem;
}

.intro {
    max-width: 50%;
}

.intro h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.intro h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #007bff;
}

.intro p {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background: linear-gradient(to right, #0056b3, #004085);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-pic img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

section {
    padding: 2rem;
    margin-bottom: 2rem;
    margin: auto;
}

#about, #skills, #projects, #contact,#certifications {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

h2 {
    border-bottom: 2px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Keyframes for slide-in and fade-in animation */
@keyframes slideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Starts slightly lower */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Moves to original position */
    }
}

/* Keyframes for hover glow effect */
@keyframes glowEffect {
    0% {
        box-shadow: 0 0 10px rgba(0, 123, 255, 0);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 123, 255, 0);
    }
}

/* Base table styles for light theme */
.skills-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, #F0F5FF, #DCEAFF);

    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideFadeIn 1s ease-out; /* Slide and fade-in animation */
    overflow: hidden;
}

/* Table headers */
.skills-table th {
    background-color: #f8f9fa;
    color: #343a40;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Table cells */
.skills-table td {
    padding: 10px;
    color: #495057;
    vertical-align: top;
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for the entire table */


/* Hover effect for table headers */
.skills-table th:hover {
    background-color: #007bff;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
}

/* Hover effect for table cells */
.skills-table td:hover {
    
    color: #007bff;
    box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.3);
}


.skills-table tr:not(:last-child) th,
.skills-table tr:not(:last-child) td {
    border-bottom: 1px solid #d1d5db;
}
.projects-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem;
    scroll-behavior: smooth;
    
}

.projects-container::-webkit-scrollbar {
    height: 8px;
}

.projects-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.projects-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.projects-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.project-box {
    min-width: 300px;
    background: linear-gradient(135deg, #F8FBFF, #D6E6FF);
    flex: 0 0 300px; 
    border: 2px solid #add8e6; /* Light blue border */
    padding: 1rem;
    background-color: #f9f9f9;
    box-sizing: border-box;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff, #f1f3f5);
}

.project-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.project-box:hover .project-image {
    transform: scale(1.05);
}

.project-box h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: #333;
    font-weight: 600;
}

.project-box .tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-box .tags span {
    background: #e3f2fd;
    color: #1e88e5;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-box p {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    flex-grow: 1;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #24292e;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.github-btn:hover {
    background: #2b3137;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.github-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Dark Theme Styles */
.dark-theme .project-box {
    background: linear-gradient(135deg, #000428, #004e92);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    border: 1px solid #4a5568;
}

.dark-theme .project-box:hover {
    background: linear-gradient(135deg, #1a2634, #2c3e50);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.9);
}

.dark-theme .project-box h3 {
    color: #e0e0e0;
}

.dark-theme .project-box p {
    color: #b0b0b0;
}

.dark-theme .project-box .tags span {
    background: #374151;
    color: #60a5fa;
}

.dark-theme .github-btn {
    background: #238636;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .github-btn:hover {
    background: #2ea043;
}

/* Responsive Adjustments */
@media (max-width: 1450px) {
    .projects-container {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                overflow-x: visible; /* No horizontal scrolling */
            }

            .project-box {
                flex: none; /* Reset flex for grid */
                min-width: auto; /* Fit grid cells */
            }
}
.certifications-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.certification-box {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, #F0F5FF, #DCEAFF);

    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.certification-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.certification-box h3 {
    margin-top: 0;
}

.view-certificate {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.view-certificate:hover {
    background-color: #0056b3;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.project-box, .certification-box, .strength-box {
    position: relative;
}

.clickable-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    color: #007bff;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.clickable-icon::after {
    content: '\2197';
}

.project-box:hover .clickable-icon,
.certification-box:hover .clickable-icon,
.strength-box:hover .clickable-icon {
    transform: scale(1.1);
}

.modal {
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    height: 90%;
    max-width: 600px;
    position: relative;
    transition: all 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
  margin-top: 20px; /* Add spacing between header and content */
    overflow: auto;
}
/* Enhanced Modal Styles */
.project-modal-content {
    padding: 20px;
}

.project-modal-content h3 {
    color: #007bff;
    margin: 20px 0 10px 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.project-modal-content h4 {
    color: #333;
    margin: 15px 0 10px 0;
}

.project-modal-content ul {
    list-style-type: none;
    padding-left: 20px;
}

.project-modal-content ul li {
    margin: 8px 0;
    position: relative;
}

.project-modal-content ul li:before {
    content: "•";
    color: #007bff;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.project-modal-content .feature-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}  
    
.dark-theme .project-modal-content h3 {
    color: #64ffda;
    border-bottom-color: #444;
}

.dark-theme .project-modal-content h4 {
    color: #e0e0e0;
}

.dark-theme .project-modal-content .feature-section {
    background: #2c3e50;
}

.dark-theme .project-modal-content ul li:before {
    color: #64ffda;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f0f4f8;

}
.close-btn:hover,
.close-btn:focus {
    color: #007bff;
    background-color: #e0e6ed;
    transform: rotate(90deg);
}

#modal-details h2 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 24px;
}

#modal-details p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
}
#modal-details a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

#modal-details a:hover {
    background: linear-gradient(to right, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.github-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #24292e;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.github-btn: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: 0.5s;
}

.github-btn:hover:before {
    left: 100%;
}

.github-btn:hover {
    background: #2b3137;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.github-btn i {
    margin-right: 8px;
    font-size: 16px;
}

/* Dark theme support */
.dark-theme .github-btn {
    background: #238636;
    border-color: rgba(255, 255, 255, 0.2);
}

.dark-theme .github-btn:hover {
    background: #2ea043;
}

/* Adjust project box styling to accommodate the button */
.project-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

.project-box p {
    margin-bottom: auto;
    padding-bottom: 15px;
}
/* Dark Theme Styles with Linear Gradients */
body.dark-theme {
    background: #000000;
    color: #e0e0e0;
}

header.dark-theme {
    background: linear-gradient(to right, #2c3e50, #3a506b);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header.dark-theme .logo {
    color: #64ffda;
}

nav.dark-theme ul li a {
    color: #ffffff;
}

nav.dark-theme ul li a:hover {
    background: linear-gradient(to right, #4ecca3, #45b7a0);
    color: #1a1c20;
}

#home.dark-theme {
    background: linear-gradient(135deg, #243b55 40%, #141e30 60%);
}

.intro.dark-theme h1, .intro.dark-theme h3 {
    color: #64ffda;
}

.intro.dark-theme p {
    color: #ffffff;
}

#about.dark-theme, #projects.dark-theme, #certifications.dark-theme,  #contact.dark-theme {
    background-image: linear-gradient(145deg, #000000 0%, #2c3e50 74%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

h2.dark-theme {
    color: #64ffda;
    border-bottom: 2px solid #64ffda;
}

/* Dark Theme Styles with Linear Gradients */
/* ... (keep all other dark theme styles the same) ... */

.skills-table.dark-theme {
    background: linear-gradient(135deg, #2c3e50 100%, #34495e 0%);
    border: 1px solid #4a5568;
}

.skills-table.dark-theme th {
    background-color: rgba(0, 0, 0, 0.5);
    color: #64ffda;
    
}

.skills-table.dark-theme td {
    color: #e0e0e0;
  border: 1px solid #4a5568
}
#skills.dark-theme {
    background-image: linear-gradient(145deg, #000000 0%, #2c3e50 74%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
}


/* ... (keep all other dark theme styles the same) ... */

.project-box.dark-theme, .certification-box.dark-theme {
    background-image: linear-gradient(315deg, #130f40 0%, #000000 74%);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    border: 1px solid #4a5568;
}
/* Glowing aura effect */
.project-box.dark-theme:hover::before, .certification-box.dark-theme:hover::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 12px;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.5), rgba(41, 128, 185, 0.5));
    opacity: 0.8;
    filter: blur(10px);
    z-index: -1;
    transition: opacity 0.4s ease;
}

.clickable-icon.dark-theme {
    color: #64ffda;
    background-color: rgba(0, 0, 0, 0.4);
}

footer.dark-theme {
    background: linear-gradient(to right, #2c3e50, #3a506b);
}

.btn.dark-theme {
    background: linear-gradient(to right, #4ecca3, #45b7a0);
    color: #1a1c20;
}

.btn.dark-theme:hover {
    background: linear-gradient(to right, #45b7a0, #4ecca3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal.dark-theme {
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-content.dark-theme {
    background: linear-gradient(135deg, #1a2634 0%, #2c3e50 100%);
    color: #e0e0e0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.close-btn.dark-theme {
    color: #e0e0e0;
    background-color: #34495e;
}

.close-btn.dark-theme:hover,
.close-btn.dark-theme:focus {
    color: #64ffda;
    background-color: #2c3e50;
}

#modal-details.dark-theme h2 {
    color: #64ffda;
}

#modal-details.dark-theme p {
    color: #e0e0e0;
}

#modal-details.dark-theme a {
    background: linear-gradient(to right, #4ecca3, #45b7a0);
    color: #1a1c20;
}

#modal-details.dark-theme a:hover {
    background: linear-gradient(to right, #45b7a0, #3a9a8a);
}

.close-btn.dark-theme {
    color: #ffffff;
}

.close-btn.dark-theme:hover,
.close-btn.dark-theme:focus {
    color: #64ffda;
}

a.dark-theme {
    color: #64ffda;
}

a.dark-theme:hover {
    color: #45b7a0;
}

#contact.dark-theme h2 {
    color: #64ffda;
}

#contact.dark-theme a {
    color: #64ffda;
}

#contact.dark-theme a:hover {
    color: #45b7a0;
}

.view-certificate.dark-theme {
    background-color: #4ecca3;
    color: #1a1c20;
}

.view-certificate.dark-theme:hover {
    background-color: #45b7a0;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

section {
    animation: fadeIn 0.8s ease-out;
}
nav ul li a {
    position: relative;
    overflow: hidden;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn:hover {
    animation: pulse 1s infinite;
}
.clickable-icon {
    transition: transform 0.3s ease;
}

.project-box:hover .clickable-icon,
.certification-box:hover .clickable-icon {
    transform: rotate(45deg);
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.intro h1 {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1.5s steps(40, end);
}
body, header, nav ul li a, #home, #about, #skills, #projects, #contact, footer, .btn {
    transition: all 0.6s ease;
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .intro, .profile-pic {
        text-align: center;
        margin-bottom: 1rem;
    }

    .profile-pic img {
        width: 200px;
        height: 200px;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0;
    }

    .projects-container, .certifications-container {
        flex-direction: column;
    }

    .project-box, .certification-box {
        width: 100%;
    }

    footer {
        text-align: center;
        padding: 1rem;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Zoom effect for sections */
#about, #skills, #projects, #certifications, #contact {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about:hover, #skills:hover, #projects:hover, #certifications:hover, #contact:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Adjust for dark mode */
#about.dark-theme:hover, #skills.dark-theme:hover, #projects.dark-theme:hover, #certifications.dark-theme:hover, #contact.dark-theme:hover {
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

/* Ensure smooth transition for content inside sections */
#about *, #skills *, #projects *, #certifications *, #contact * {
    transition: all 0.3s ease;
}
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideInFromLeft {
  0% { opacity: 0; transform: translateX(-100px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  0% { opacity: 0; transform: translateX(100px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes rotateIn {
  0% { opacity: 0; transform: rotateY(-90deg); }
  100% { opacity: 1; transform: rotateY(0); }
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.sr-fadeInScale { visibility: hidden; }
.sr-slideInLeft { visibility: hidden; }
.sr-slideInRight { visibility: hidden; }
.sr-rotateIn { visibility: hidden; }
.dark-theme .project-icon {
  color: #4285F4; /* Google blue for dark theme */
}

/* Specific styling for AWS icon */
.project-box:nth-child(2) .project-icon {
  color: #FF9900; /* AWS orange color */
}

.dark-theme .project-box:nth-child(2) .project-icon {
  color: #FF9900; /* Keep AWS orange in dark theme */
}
/* Add these new styles to styles.css */

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Improved navigation for mobile */
    header {
        padding: 0.5rem;
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    /* Better home section layout */
    #home {
        padding: 1rem;
        text-align: center;
    }

    .intro {
        max-width: 100%;
        padding: 1rem;
    }

    .intro h1 {
        font-size: 2rem;
    }

    .profile-pic img {
        width: 200px;
        height: 200px;
        margin: 1rem auto;
    }

    /* Improved skills table for mobile */
    .skills-table {
        display: block;
        overflow-x: auto;
    }

    /* Better project and certification boxes */
    .project-box, .certification-box {
        min-width: 100%;
        margin: 0.5rem 0;
    }

    /* Modal improvements for mobile */
    .modal-content {
        width: 95%;
        margin: 10px;
        padding: 15px;
    }
}

/* New Interactive Features */

/* Ripple effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform .5s, opacity 1s;
}

.btn:active::after {
    transform: scale(0, 0);
    opacity: .3;
    transition: 0s;
}

/* Tilt effect for project and certification boxes */
.project-box, .certification-box {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #4ecca3, #45b7a0);
    z-index: 9999;
}

/* Floating Labels for Contact Form */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 0;
    left: 10px;
    background: #fff;
    padding: 0 5px;
    font-size: 12px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}
/* From Uiverse.io by Galahhad */ 
.theme-switch {
  --toggle-size: 30px;
  /* the size is adjusted using font-size,
     this is not transform scale,
     so you can choose any size */
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  /* radius 0 - minecraft mode :) */
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

/* actions */

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}
/* From Uiverse.io by jdm-encompass */ 
.linkedin-button {
  background-color: #ffffff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.5);
  animation: sway 2s infinite alternate;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  display: inline-block;
margin-left: 10px;
vertical-align: middle;
  perspective: 500px;
  transition: transform 0.5s, box-shadow 0.5s;
}

.linkedin-button:hover {
  transform: scale(1.25) rotate(-360deg) translateY(-1em);
  box-shadow: 0 0 20px 0 rgba(29, 161, 242, 0.5);
}

.icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s;
}

.icon:hover {
  transform: scale(8);
  filter: drop-shadow(1px 2px 4px rgba(0,0,0,0.9))
}
#leetcode {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.leetcode-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.leetcode-stats {
    text-align: center;
}

.leetcode-stats h3 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.leetcode-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.badge {
    padding: 1.5rem;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    box-shadow: 5px 5px 15px #d9d9d9, -5px -5px 15px #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px #d1d1d1, -8px -8px 20px #ffffff;
}

.badge i {
    font-size: 2rem;
    color: #ffa116;
    margin-bottom: 1rem;
}

.badge span {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.8rem;
}

.badge .count {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.problem-distribution {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.problem-distribution h4 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.problem-counts {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    padding: 1rem;
}

.problem-type {
    display: grid;
    grid-template-columns: 100px 80px 1fr;
    align-items: center;
    gap: 1.5rem;
}

.problem-type .label {
    font-weight: 600;
    font-size: 1.1rem;
}

.problem-type .count {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
}

.progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Problem difficulty colors */
.easy .progress {
    background: linear-gradient(90deg, #00b8a3, #00d4bd);
}

.medium .progress {
    background: linear-gradient(90deg, #ffa116, #ffb344);
}

.hard .progress {
    background: linear-gradient(90deg, #ef4743, #ff5c59);
}

.easy .label {
    color: #00b8a3;
}

.medium .label {
    color: #ffa116;
}

.hard .label {
    color: #ef4743;
}

.leetcode-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ffa116, #ff8c00);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 161, 22, 0.3);
}

.leetcode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 161, 22, 0.4);
    text-decoration: none;
    color: white;
}

.leetcode-btn i {
    margin-right: 0.5rem;
}

/* Dark theme support */
.dark-theme #leetcode {
    background-image: linear-gradient(145deg, #000000 0%, #2c3e50 74%);
}

.dark-theme .leetcode-stats h3,
.dark-theme .problem-distribution h4 {
    color: #e0e0e0;
}

.dark-theme .badge {
    background-image: linear-gradient(315deg, #130f40 0%, #000000 74%);
    box-shadow: 5px 5px 15px #243342, -5px -5px 15px #3c4f66;
}

.dark-theme .badge:hover {
    box-shadow: 8px 8px 20px #243342, -8px -8px 20px #3c4f66;
}

.dark-theme .badge span {
    color: #b0b0b0;
}

.dark-theme .badge .count {
    color: #e0e0e0;
}

.dark-theme .problem-distribution {
    background: linear-gradient(145deg, #34495e, #2c3e50);
}

.dark-theme .problem-type .count {
    color: #e0e0e0;
}

.dark-theme .progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .leetcode-badges {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .problem-type {
        grid-template-columns: 80px 60px 1fr;
        gap: 1rem;
    }

    .problem-type .label,
    .problem-type .count {
        font-size: 1rem;
    }

    .leetcode-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animation for progress bars */
@keyframes progressFill {
    from { width: 0; }
    to { width: 100%; }
}

.progress {
    animation: progressFill 1.5s ease-out;
}
/* Add to styles.css */
/* Dock Navigation Styles */
.dock-nav {
    position: relative;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    max-width: 100%;
}

/* Flex layout for navigation items */
.dock-nav ul {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.dock-item {
    position: relative;
    transition: transform 0.2s ease;
}

.dock-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    gap: 0.5rem; /* Space between icon and text */
}
.dock-link i {
    font-size: 1.8rem;
    transition: transform 0.2s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Update dock-label styles */
.dock-label {
    font-size: 0.75rem;
    color: #333;
    opacity: 0.9;
    transition: all 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2; /* Ensure label stays on top */
    background: rgba(255, 255, 255, 0.9); /* Light mode background */
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Hover Effects */
.dock-item:hover .dock-label {
    opacity: 1;
    transform: translateY(0);
    color: #007bff;
    background: rgba(255, 255, 255, 1); /* Solid background on hover */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Adjustments */
.dark-theme .dock-label {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.7); /* Dark mode background */
}

.dark-theme .dock-item:hover .dock-label {
    color: #64ffda;
    background: rgba(0, 0, 0, 0.9); /* Dark mode hover background */
}

/* Adjust reflective underline position */
.dock-link::after {
    bottom: -1.8rem; /* Move below label */
    width: 60%;
}

/* Ensure proper spacing */
.dock-link {
    padding: 0.5rem 0.8rem;
}

/* Hover Effects */
.dock-item:hover {
    transform: translateY(-8px);
}

.dock-item:hover .dock-link i {
    transform: scale(1.2);
}

.dock-item:hover .dock-label {
    opacity: 1;
}

/* Reflective Underline Effect */
.dock-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 40%;
    height: 6px;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dock-item:hover .dock-link::after {
    opacity: 1;
}

/* Dark Mode Adaptations */
.dark-theme .dock-nav {
    background: rgba(40, 40, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.dark-theme .dock-link {
    color: #fff;
}

.dark-theme .dock-label {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.dark-theme .dock-link::after {
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 80%);
}

@media (max-width: 968px) {
    .dock-nav {
        display: none; /* Completely hide the dock on mobile */
    }
}
/* Existing Header Adjustments */
header {
    padding: 0.8rem 1rem;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: transparent !important;
    box-shadow: none !important;
}

@media (min-width: 769px) {
    header {
        flex-direction: row;
        justify-content: space-between;
    }
}

.dock-nav {
    margin: 0 auto;
}
/* Add to styles.css */
:root {
    --primary-light: #2563eb;
    --primary-dark: #7dd3fc;
    --accent-light: #4f46e5;
    --accent-dark: #a5b4fc;
    --text-light: #1e293b;
    --text-dark: #f8fafc;
}

/* Compact Header */
header {
    padding: 0.8rem 2rem;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-light), var(--accent-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.dark-theme .logo-text {
    background: linear-gradient(45deg, var(--primary-dark), var(--accent-dark));
}

/* Compact Dock Navigation */
.dock-nav {
    padding: 0.4rem 1.2rem;
    height: 65px;
}

.dock-link {
    padding: 0.4rem 0.6rem;
    gap: 0.3rem;
}

.dock-link i {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.dark-theme .dock-link i {
    color: var(--primary-dark);
}

.dock-label {
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .dock-label {
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-dark);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.dock-item:hover .dock-link i {
    color: var(--accent-light);
    transform: scale(1.15);
}

.dark-theme .dock-item:hover .dock-link i {
    color: var(--accent-dark);
}

.dock-item:hover .dock-label {
    background: rgba(255, 255, 255, 1);
    color: var(--accent-light);
}

.dark-theme .dock-item:hover .dock-label {
    background: rgba(15, 23, 42, 0.95);
    color: var(--accent-dark);
}

/* Reflective Effect Update */
.dock-link::after {
    bottom: -1.2rem;
    height: 3px;
    background: linear-gradient(
        to right,
        transparent 20%,
        rgba(37, 99, 235, 0.3) 50%,
        transparent 80%
    );
}

.dark-theme .dock-link::after {
    background: linear-gradient(
        to right,
        transparent 20%,
        rgba(125, 211, 252, 0.3) 50%,
        transparent 80%
    );
}
/* CSS Variables for Light Theme */
:root {
  --chat-bg: #ffffff;
  --chat-border: #eee;
  --chat-shadow: rgba(0, 0, 0, 0.15);
  --chat-header-bg: #0b65c2;
  --chat-header-color: #ffffff;
  --chat-input-border: #ddd;
  --chat-icon-bg: #0b65c2;
  --user-msg-bg: #e3f2fd;
  --bot-msg-bg: #f5f5f5;
}

/* CSS Variables for Dark Theme */
.dark-theme {
  --chat-bg: #2e2e2e;
  --chat-border: #444;
  --chat-shadow: rgba(0, 0, 0, 0.5);
  --chat-header-bg: #1c1c1c;
  --chat-header-color: #ffffff;
  --chat-input-border: #555;
  --chat-icon-bg: #1c1c1c;
  --user-msg-bg: #3a3a3a;
  --bot-msg-bg: #4a4a4a;
}

/* Chat Widget Container */
.chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Roboto', sans-serif;
}

/* Chat Icon */
.chat-icon {
  width: 60px;
  height: 60px;
  background-color: var(--chat-icon-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--chat-shadow);
  transition: transform 0.3s;
}

.chat-icon:hover {
  transform: scale(1.1);
}

.chat-icon i {
  color: #fff;
  font-size: 24px;
}

/* Chat Box */
.chat-box {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 320px;
  max-height: 500px;
  background-color: var(--chat-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--chat-shadow);
  display: none; /* Toggle display with JS */
  flex-direction: column;
  overflow: hidden;
}

/* Chat Header */
.chat-header {
  padding: 15px;
  background-color: var(--chat-header-bg);
  color: var(--chat-header-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h4 {
  margin: 0;
  font-size: 18px;
}

.minimize-btn {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
}

/* Chat Messages */
.chat-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  background-color: var(--chat-bg);
}

/* Message Bubbles */
.message {
  margin-bottom: 10px;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 80%;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message.user {
  background-color: var(--user-msg-bg);
  align-self: flex-end;
}

.message.bot {
  background-color: var(--bot-msg-bg);
  align-self: flex-start;
}

/* Chat Input Area */
.chat-input {
  padding: 10px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--chat-border);
  background-color: var(--chat-bg);
}

.chat-input input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid var(--chat-input-border);
  border-radius: 20px;
  outline: none;
  font-size: 14px;
  background-color: var(--chat-bg);
  color: inherit;
}

.chat-input button {
  background-color: var(--chat-header-bg);
  color: #fff; 
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}

.chat-input button:hover {
  opacity: 0.9;
}
.container {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.container::before {
  content: "";
  position: absolute;
  inset: -145%;
  rotate: -45deg;
  background: #000000;
  background-image: radial-gradient(
      4px 100px at 0px 235px,
      rgb(255, 140, 17),
      #0000
    ),
    radial-gradient(4px 100px at 300px 235px, rgb(255, 119, 0), #884e2800),
    radial-gradient(
      1.5px 1.5px at 150px 117.5px,
      rgb(255, 144, 9) 100%,
      #0000 150%
    );
  background-size: 300px 235px;
  animation: hi 150s linear infinite;
}

@keyframes hi {
  0% {
    background-position: 0px 220px, 3px 220px, 151.5px 337.5px;
  }
  to {
    background-position: 0px 6800px, 3px 6800px, 151.5px 6917.5px;
  }
}
body.dark-theme .container {
  display: block;
}

body:not(.dark-theme) .container {
  display: none;
}
body.dark-theme .container {
  display: block;
}

body:not(.dark-theme) .container {
  display: none;
}
.relevant-coursework {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.relevant-coursework h3 {
    margin-top: 0;
    color: #007bff;
    font-size: 1.2rem;
}

.relevant-coursework p {
    margin-bottom: 0;
}

.dark-theme .relevant-coursework {
    background: rgba(255, 255, 255, 0.05);
}

.dark-theme .relevant-coursework h3 {
    color: #64ffda;
}
