* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }

        body {
            background-color: #ffffff;
            color: #333;
            overflow-x: hidden;
            cursor: none;
            transition: background-color 0.3s, color 0.3s;
        }

        #loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e6dcdb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 5000; /* Ensure it is above other elements */
  color: white;
}


#starfield {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(circle at center, #050505, #000000);
  display: none;
}

.dark-mode #starfield {
  display: block;
}

/* Text Animation Styles */
#loading-text {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  animation: fadeInOut 2s infinite; /* Text fade in and out */
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Loader Animation */
.spinner {
  border: 8px solid rgba(255, 255, 255, 0.3); /* Light transparent border */
  border-top: 8px solid white; /* Solid white border on top */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite; /* Spin animation */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
            padding: 0 20px;
            background-color: rgba(181, 176, 176, 0.949);
            backdrop-filter: blur(10px);
            transition: background-color 0.5s;
            position: fixed;
            width: 100%;
            z-index: 10;

            background: rgba( 255, 255, 255, 0.1 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 14px );
-webkit-backdrop-filter: blur( 14px );
border-radius: 10px;
border: 1px solid rgba( 255, 255, 255, 0.18 );
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;           /* Slightly reduced gap for tighter grouping */
            margin-right: -20%;
        }

        .dark-mode nav {
            background-color: rgba(0, 0, 0, 0.9);
        }

        nav .logo {
            font-size: 1.8rem;
            font-weight: bold;
            color: #333;
        }

        .dark-mode nav .logo {
            color: #f0f0f0;
        }

        nav ul {
            display: flex;
            list-style: none;
            margin-right: 40px;   /* Reduced from 32px to 8px */
        }

        nav ul li {
            margin: 0 15px;
        }

        nav ul li a {
            text-decoration: none;
            color: inherit;
            font-weight: 500;
            transition: text-shadow 0.3s ease, color 0.3s ease;
  /* Initial subtle glow */
  text-shadow: 0 0 18px rgba(36, 37, 37, 0.6);
}

.dark-mode nav ul li a {
           text-decoration: none;
           color: inherit;
           font-weight: 500;
           transition: text-shadow 0.3s ease, color 0.3s ease;
           text-shadow: 0 0 18px whitesmoke;
}

        nav ul li a:hover {
           text-shadow: 0 0 24px rgb(6, 6, 6);
  color: #007bff;
}


.dark-mode nav ul li a:hover {
           text-shadow: 0 0 24px rgb(255, 255, 255);
           color: #007bff;
        }

        nav ul li a.active {
  color: #36383a; /* Highlight color */
  text-shadow: 0 0 28px rgba(0, 123, 255, 1);
  font-weight: bold;
  transform: scale(0.95rem);
}

.dark-mode nav ul li a.active {
  transform: scale(0.9);
  color: #9b9494; /* Highlight color for dark mode */
}

        .toggle-button {
            padding: 8px 12px;
            background-color: #000000;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1rem;
            transition: background-color 0.3s;
            align-self: center;
        }

        .toggle-button:hover {
            background-color: rgba(181, 176, 176, 0.949);
        }

        .dark-mode .toggle-button {
            background-color: #f0f0f0;
            color: #333;
        }

        .dark-mode .toggle-button:hover{
            color: #000000;
            background-color: #000000;
        }

        .dark-mode .cta button{
            border-color: white;
            color: white

        }

        /* 
        /* 
        
        */
 /* Hero Section Styles */
/* Hero Section Styles */
/* Hero Section Styles */
/* General Hero Section */
/* General Styles for Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    color: black;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Fix the z-index issue */
}

/* Image within Hero */
.hero img {
    width: 60%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 6s ease forwards, slideUp 6s ease forwards;
}

/* Header within Hero */
.hero header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    animation: fadeInText 4s ease forwards 3.5s;
    color: black;
}

.hero header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: none;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

.hero header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: black;
    text-shadow: none;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
}

/* Call to Action (CTA) buttons */
.hero .cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    position: relative; /* Ensure positioning context for the buttons */
    z-index: 10; /* Ensure the buttons are above other elements */
}

/* Style for the buttons */
.hero .cta button {
    padding: 12px 20px;
    border: 2px solid black;
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth effect */
    border-radius: 10px;
    position: relative; /* Ensure that the button is positioned correctly */
    z-index: 5; /* Make sure the button is interactive above other elements */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 123, 255, 0.4);
    overflow: visible;
    z-index: 1;
}



.hero .cta button::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    width: 90%;
    height: 32px;
    border-radius: 50%;
    filter: blur(8px); /* Less blur for a sharper glow */
    z-index: -1000;
    background: linear-gradient(90deg, #a259ff, #f857a6, #ff5858, #43cea2, #185a9d);
    background-size: 200% 200%;
    animation: glow-animate 2s linear infinite;
    opacity: 0.5; /* Full opacity for maximum brightness */
    pointer-events: none;
}

@keyframes glow-animate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Hover effect for buttons */
.hero .cta button:hover {
    background-color: black;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow effect on hover for better visual feedback */
}

/* Ensure buttons are clickable, no text selection or interaction above them */
.hero .cta button {
    pointer-events: auto; /* Ensure button interaction is possible */
}

/* Scroll indicator (for scrolling) */
.hero .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: black;
    animation: bounce 1.5s infinite;
}

.dark-mode .hero .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: rgb(255, 255, 255);
    animation: bounce 1.5s infinite;
}

/* Light Mode - Glow Effect for Header */
.hero header h1,
.hero header p {
    text-shadow: 0 0 10px rgb(210, 210, 210), 0 0 20px rgb(227, 225, 225), 0 0 30px rgb(255, 255, 255);
}

/* Dark Mode Styles */
.dark-mode .hero {
    background: #101010;
    color: white;
}

.dark-mode header h1 {
    color: white;
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFA500, 0 0 40px #FF8C00;
}

.dark-mode header p {
    color: white;
    text-shadow: 0 0 5px #00FF00, 0 0 10px #00FF00, 0 0 15px #32CD32, 0 0 20px rgba(50, 205, 50, 0.5);
}

.dark-mode .cta button {
    border-color: white;
    color: white;
}

.dark-mode .cta button:hover {
    background-color: white;
    color: black;
}

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

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}


 

/* Music Button Container */
.hero .music-bar {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Positioned on the right */
    height: 60px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #cdc6c7);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 0, 255, 0.7); /* Glow effect */
    border-radius: 30px;
    transition: width 0.3s ease;
    overflow: hidden;
    z-index: 1000;
}

.hero .music-bar.collapsed {
    width: 60px;
}

/* Music icon button (initially showing as small circle) */
.hero .music-icon {
    position: fixed; /* Change from absolute to fixed */
    right: 20px; /* Positioned on the right */
    bottom: 20px; /* Positioned at the bottom */
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #aeaeae, #ffffff);
    border-radius: 50%;
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 105, 180, 0.8); /* Glow effect */
    z-index: 1001;
    cursor: pointer;
}


.hero .music-bar:not(.collapsed) {
    width: 480px;
}

/* Expanded music controls */
.hero .music-expanded {
  position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 0, 255, 0.7);
    border-radius: 20px;
}

.hero .music-bar:not(.collapsed) .music-expanded {
    opacity: 1;
}

.hero .album-art {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    margin-right: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

/* Music logo */
.hero .controls {
    display: flex;
    justify-content: center; /* Center the buttons */
    align-items: center;
    /* flex: 1; */
    margin-left: 12%;
    gap: 15px; /* Adjusted spacing between buttons */
    flex-shrink: 0;
    flex-grow: 0;
}

/* Control buttons */
.hero .control-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero .control-btn:hover {
    transform: scale(1.2);
}

.hero .progress-bar {
    position: absolute;
    bottom: 5px;
    left: 180px;
    /* right: 200px; */
    width: 35%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.hero .progress {
    width: 0%; /* Dynamic value */
    height: 100%;
    background: rgb(0, 0, 0);
    transition: width 0.3s ease;
}

.expand-music {
  margin-left: 12% ;
  font-size: 10px;
  padding-left: 6px;
  padding-right: 6px;
}


        main {
            padding: 80px 20px;
        }

        .projects-section {
            padding: 80px 20px;
            text-align: center;
        }

        .projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 80px;
    text-align: center; /* Optional for better alignment */
    color: #000000; /* White text color */
        }

.dark-mode .projects-section h2{
    font-size: 2.5rem;
    margin-bottom: 80px;
    text-align: center; /* Optional for better alignment */
    color: #fff; /* White text color */
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800;
    }
    to {
        text-shadow: 0 0 5px #fff, 0 0 15px #fff, 0 0 25px #ffffff, 0 0 35px #ff9800, 0 0 45px #ff9800, 0 0 55px #ff9800;
    }
}



.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10%;
    justify-items: center;
    padding-bottom: 100px;
}

.project-card {
    background-color: rgb(194, 193, 193);
    color: #333;
    width: 100%;
    max-width: 320px; /* Set a reasonable max-width for the card */
    border-radius: 10px;
    box-shadow: 0 0 16px 0 rgba(0,0,0,0.18); /* Even shadow all around */
    overflow: visible;
    margin-bottom: 60px; /* Space for triangle */
    position: relative;  /* Needed for ::after positioning */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -56px; /* Sits just below the card */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 160px solid transparent;  /* Triangle width */
    border-right: 160px solid transparent; /* Triangle width */
    border-top: 60px solid rgb(194, 193, 193); /* Triangle height and color */
    z-index: 0;
    pointer-events: none;
}

.dark-mode .project-card::after {
  border-top: 60px solid #333; /* Dark mode triangle color */
}


.project-card img {
  /* left: 0; */
    width: 100%;
    height: 200px;
    object-fit: fill;
    border-radius: 10px 10px 0 0; /* Rounded corners for the top */
}



.project-card h3 {
    padding: 15px;
    font-size: 1.5rem;
}

.project-card h3 .projectdetails {
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

.dark-mode h3 .projectdetails {
  color: #ccc;
}

.project-card h3 a {
  font-size: 15px;
}


.project-card h3 a img {
    margin-top: 10px;
    width: 50px; /* Adjust size as needed */
    height: 50px; /* Adjust size as needed */
    vertical-align: middle; /* Align with text */
    margin-right: 10px; /* Space between logo and text */
}

.project-card .gitdark {
  display: none;
}

.dark-mode .project-card .gitdark {
  display: inline-block;
}

.dark-mode .gitlight {
  display: none;
}



.project-card h3 a img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    transition: transform 0.3s ease; /* Smooth transition */
}

/* Hover effect with stronger glow */
.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 123, 255, 0.4); /* Enhanced glow on hover */
}

/* Dark mode styling */
.dark-mode .project-card {
    background-color: #333;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(255, 255, 255, 0.1); /* Subtle glow for dark mode */
}

.dark-mode .project-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 255, 255, 0.4); /* Stronger glow for dark mode hover */
}

/* Optional: Media query for responsive adjustments */
@media (max-width: 768px) {
    .projects-container {
        gap: 15px;
    }

    .project-card {
        max-width: 100%; /* Full width on smaller screens */
    }
}


        /* 
        
        */
        /* 
        
        */
        .flash-card {
    position: relative;
    width: 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.2); /* Subtle glow effect */
    margin-bottom: 50px;
    background-color: white;
    display: flex;
    align-items: center;

}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;

}
.flash-card:hover::after, .flash-card:hover::before {
  
  position: absolute;
  content: '';
  height: 100%;
  width: 100%;
  z-index: -10;
  /* padding: 180px; */
  border-radius: 2px;
  background-image: conic-gradient(from var(--angle)red,green,blue,rgb(224, 5, 119),red);
  animation: 3s spin linear infinite;
}

.flash-card:hover::before {
  filter: blur(1.5rem);
  opacity: 1;
}

@keyframes spin {
  from {
    --angle:0deg;
  }
  to {
    --angle:360deg;
  }
}

.flash-card:hover {
    transform: scale(1.05); /* Adds hover scaling effect */
    /* box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 123, 255, 0.4);  */
}

.flash-card img {
    position: relative;
    width: 300px; /* Fixed image size */
    height: 200px; /* Fixed height */
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.flash-card:hover img {
    transform: scale(1.1); /* Slight zoom effect on hover */
    opacity: 0.8; /* Slight transparency on hover */
}

.flash-card .flash-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flash-card-overlay .logo {
  display: block;
  margin-bottom: 8px;
  max-width: 95px;
  max-height: 110px;
}

.flash-card-overlay img[alt="logosajs"] {
    border-radius: 10px; /* Adjust the px value for more/less rounding */
}


.flash-card:hover .flash-card-overlay {
    opacity: 1; /* Show overlay on hover */
}

.flash-card.expanded {
    width: 900px; /* Expand card more horizontally */
    transition: width 0.5s ease;
    display: flex;
    flex-direction: row; /* Arrange content horizontally */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 123, 255, 0.4); /* Maintain glow effect when expanded */
}

.flash-card.expanded img {
    position: relative;
    width: 300px; /* Keep image size fixed */
    height: 200px; /* Keep height fixed */
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking of the image */
}

.flash-card.expanded .flash-card-overlay {
    display: none; /* Hide the overlay after clicking */
}

.flash-card-details {
    display: none;
    flex-grow: 1; /* Fill the remaining expanded space */
    padding: 1rem;
    background-color: white;
    color: #333;
    height: 100%; /* Match card height */
    box-sizing: border-box;
    overflow: auto;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack title and details vertically */
}

.flash-card.expanded .flash-card-details {
    display: flex; /* Display details when expanded */
}

.flash-card-details h3 {
    margin: 0;
    padding: 0.5rem 1rem;
    text-align: left; /* Align institution name to the left */
    font-size: 1.5rem;
    font-weight: bold;
}

.flash-card-details .details-body {
    flex-grow: 1; /* Use remaining space */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Center text vertically */
    justify-content: center; /* Center text horizontally */
    text-align: center; /* Align text within the content box */
    font-size: 1rem;
    line-height: 1.5;
}





        /* 
        
        */
      /* This section ensures that the container is centered properly */
      /* .skill-heading { */
    /* font-size: 2.5rem; */
    /* margin-bottom: 80px; */
    /* text-align: center; Center align text */
    /* color: #000000; Black text color for light mode */
/* } */

/* .dark-mode .skill-heading { */
    /* font-size: 2.5rem; */
    /* margin-bottom: 80px; */
    /* text-align: center; Center align text */
    /* color: #fff; White text color for dark mode */
    /* text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800; */
    /* animation: glow 1.5s infinite alternate; */
/* } */

/* @keyframes glow { */
    /* from { */
        /* text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800; */
    /* } */
    /* to { */
        /* text-shadow: 0 0 5px #fff, 0 0 15px #fff, 0 0 25px #ffffff, 0 0 35px #ff9800, 0 0 45px #ff9800, 0 0 55px #ff9800; */
    /* } */
/* } */


      

      
      #skill-container-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh; /* Full viewport height */
}

#skill-container {
      position: relative;
      width: 400px; /* Smaller container size */
      height: 400px; /* Smaller container size */
      perspective: 1000px;
    }

   /* Light Mode Balls */
/* Light Mode Balls */
/* Light Mode Balls */
.ball {
    position: absolute;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #d3d3d3, #a9a9a9); /* Greyish gradient background */
    color: #000;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 -2px 4px rgba(0, 0, 0, 0.5); /* Strong black shadow effect */
    transform: translate3d(0, 0, 0);
    transition: transform 0.8s ease, box-shadow 0.3s ease, background 0.3s ease; /* Smooth transitions */
    cursor: pointer;
}

.ball:hover {
    background: radial-gradient(circle at 30% 30%, #b3b3b3, #7f7f7f); /* Darker grey gradient on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), inset 0 -4px 6px rgba(0, 0, 0, 0.6); /* Stronger black shadow on hover */
}

/* Subtle texture effect for light mode */
.ball::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent); /* Shiny highlight effect */
    pointer-events: none;
    mix-blend-mode: overlay;
}


/* Dark Mode Balls */
.dark-mode .ball {
    background: radial-gradient(circle at 30% 30%, #5f5fe7, #3c3cb0); /* Deep purple-blue gradient */
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(63, 63, 178, 0.7), inset 0 -2px 4px rgba(64, 64, 64, 0.4); /* Purple-blue glow + inner shadow */
    transform: translate3d(0, 0, 0);
    transition: transform 0.8s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

/* Highlighting text on balls in dark mode */
.dark-mode .ball::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent); /* Shiny highlight */
    pointer-events: none;
    mix-blend-mode: overlay;
}

.dark-mode .ball:hover {
    background: radial-gradient(circle at 30% 30%, #7080f9, #3f4aff); /* Brighter purple-blue gradient on hover */
    box-shadow: 0 15px 30px rgba(102, 102, 255, 0.8), inset 0 -4px 6px rgba(64, 64, 128, 0.5); /* Enhanced glow and shadow */
}

/* Text effect for better visibility in dark mode */
.dark-mode .ball span {
    text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 8px #b3b3ff; /* Glowing text effect with a cool blue highlight */
}




        /* 
        
        */

        #contact {
            padding: 100px 20px;
            text-align: center;
            background: #f9f9f9;
            
        }

        .dark-mode #contact {
            padding: 100px 20px;
    text-align: center;
    /* background:#1c1c1c; */
    background: transparent;
    color: #333; /* You can adjust this color if you want to change the text color */
    animation: glow 1.5s infinite alternate;
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800;
    }
    to {
        text-shadow: 0 0 5px #fff, 0 0 15px #fff, 0 0 25px #ffffff, 0 0 35px #ff9800, 0 0 45px #ff9800, 0 0 55px #ff9800;
    }
}
        

        #contact h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
        }

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

        .contact-form input, .contact-form textarea, .contact-form button {
            width: 100%;
            padding: 10px;
            border: 2px solid #ccc;
            border-radius: 5px;
            font-size: 1rem;
        }

        .contact-form button {
            background-color: #007bff;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .contact-form button:hover {
            background-color: #0056b3;
        }

        .dark-mode .contact-form input, .dark-mode .contact-form textarea {
            background: #333;
            color: white;
            border: 2px solid #555;
        }

        .dark-mode .contact-form button {
            background-color: #f0f0f0;
            color: #333;
        }

        .social-handles {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }

        .social-handles a {
            font-size: 1.5rem;
            color: inherit;
            transition: color 0.3s, transform 0.3s;
        }

        .social-handles a:hover {
            transform: scale(1.2);
            color: #007bff;
        }

        footer {
            padding: 20px;
            text-align: center;
            background-color: #007bff;
            color: white;
        }

        .dark-mode footer {
            /* background-color: #333; */
            background: transparent;
        }

        /* Animations */
        .animated {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s, transform 0.6s;
        }

        .visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Cursor effects */
       /* Apply the custom cursor to all elements */
* {
    cursor: none !important; /* Forces all elements to use the custom cursor */
}

/* Ensure the custom cursor stays visible across the page */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 123, 255, 0.7);
    pointer-events: none; /* Make sure it's always above other content */
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    z-index: 9999; /* Ensure the cursor stays on top */
}

body, html {
    cursor: none; /* Remove default cursor */
}

/* Handling interactions on form elements and buttons */
input, button, textarea, a {
    cursor: none !important; /* Force custom cursor on inputs and buttons */
}

.custom-cursor.click {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(255, 165, 0, 0.7);
}

.mobilenav {
    display: none; /* Hide the mobile navigation by default */
}

.side-panel {
  display: none;;
}



/* Media Queries for Responsiveness */
        @media (max-width: 768px) {
            header h1 {
                font-size: 2.5rem;
            }

            .projects-container {
                grid-template-columns: 1fr 1fr;
            }

            .contact-form {
                width: 90%;
            }
        }

        @media (max-width: 480px) {
            header h1 {
                font-size: 2rem;
            }

            nav ul {
                display: none;
            }

            nav .toggle-button {
                display: block;
            }

            .cta button {
                font-size: 0.9rem;

            }
        }

        /* Analog Clock Styles */
#watch {
  position: relative;
  width: 38px;
  height: 38px;
  margin: 0 8px 0 0;  /* Only right margin for spacing from toggle button */
  display: flex;
  align-items: center;
  justify-content: center;
  left: 15%;
  /* border: 1px black; */
  /* transform: rotate(5deg); */
  
}

#watch .frame-face {
  position: absolute;
  width: 194%;
  height: 194%;
  border-radius: 50%;
  background: #f5f5f5;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: 1; /* Below minute marks */
  border: 1.5px solid #000;
}

.dark-mode #watch .frame-face {
  background: #333; /* Dark mode background */
  box-shadow: 0 0 8px rgba(255,255,255,0.15); /* Lighter shadow for dark mode */
  border: 1.5px solid #fff; /* White border for dark mode */
}

#watch .frame-face:after {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: inset rgba(0, 0, 0, 0.2) 2px;
  background: #fff;
  z-index: 2;
  /* border: 1.5px solid #000000; */
}

.dark-mode #watch .frame-face:after {
  background: #444; /* Dark mode inner face */
  box-shadow: inset rgba(255, 255, 255, 0.2) 2px; /* Lighter shadow for dark mode */
}

#watch .minute-marks {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 3; /* On top of face */
  list-style: none;
  margin: 0;
  padding: 0;
  transform: rotate(6deg) !important;
}


#watch .minute-marks li {
  display: block;
  width: 2px;
  height: 6px;
  background: #929394;
  position: absolute;
  top: 63.5%;
  left: 50%;
  margin: -15px 0 0 -1px;
  transform-origin: 1px 10px;
  /* border-radius: 1px black; */
}

.dark-mode #watch .minute-marks li {
  background: #555; /* Dark mode minute marks */
}

#watch .minute-marks li:nth-child(5n) {
  height: 8px;
  background: #6a6a6a;
}

.dark-mode #watch .minute-marks li:nth-child(5n) {
  background: #fff; /* Dark mode minute marks for every 5th mark */
}

#watch .hand {
  position: absolute;
  width: 2px;
  left: 50%;
  bottom: 50%;
  transform-origin: 50% 100%;
  border-radius: 2px;
  z-index: 3;
  background: #222;
  transform: rotate(4deg);
}

.dark-mode #watch .hand {
  background: #fff; /* Dark mode hands */
}

#watch .hand.hour {
  height: 18px;
  background: #222;
}

.dark-mode #watch .hand.hour {
  background: #fff; /* Dark mode hour hand */
}

#watch .hand.minute {
  height: 24px;
  background: #444;
}

.dark-mode #watch .hand.minute {
  background: #fff; /* Dark mode minute hand */
}

#watch .hand.second {
  height: 16px;
  background: #e33;
}

#watch .center-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #222;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  margin: -3px 0 0 -3px;
  z-index: 4;
}



@media (max-width: 900px) {
    #watch {
        width: 32px;
        height: 32px;
        margin: 0 4px 0 0;
    }
    .nav-right {
        gap: 8px;
    }
    nav ul {
        margin-right: 4px;
    }
}



.loading-cat {
    position: relative;
    display: inline-block;
    width: 480px;
    height: 360px;
    animation: 2.74s linear infinite loading-cat;
  }

  .loading-text {
    position: fixed;
    color: black;
    font-size: 20px;
  }

  /* .loading-cat .loading-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: #333;
    z-index: 10; 
    
} */

  .loading-cat .head, .loading-cat .foot, .loading-cat .body {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    border-radius: 50%;
    width: 240px;
    height: 240px;
  }
  .loading-cat .body {
    background-image: radial-gradient(transparent 0%,
       transparent 35%, #383c4b 35%,
       #383c4b 39%, #eda65d 39%,
        #eda65d 46%, #f2c089 46%,
         #f2c089 60%, #eda65d 60%,
          #eda65d 67%, #383c4b 67%,
           #383c4b 100%);
  }
  .loading-cat .head:before, .loading-cat .foot:before {
    background-image: radial-gradient(transparent 0%, 
    transparent 35%, #383c4b 35%, #383c4b 39%,
     #eda65d 39%, #eda65d 67%, #383c4b 67%,
      #383c4b 100%);
  }
  .loading-cat .head:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    clip-path: polygon(100% 20%, 50% 50%, 70% -10%);
    -webkit-clip-path: polygon(100% 20%, 50% 50%, 70% -10%);
  }
  .loading-cat .head:after {
    content: "";
    width: 66px;
    height: 40px;
    position: absolute;
    top: 13px;
    right: 63px;
    background-image: 
    linear-gradient(#e6dcdb 65%, transparent 65%),
     radial-gradient(#e6dcdb 51%, #383c4b 55%,
      #383c4b 68%, transparent 70%);
    transform: rotate(-66deg);
  }
  .loading-cat .head .face {
    width: 80px;
    height: 60px;
    left: 145px;
    top: 29px;
    position: absolute;
    transform: rotate(-47deg);
    background: radial-gradient(circle, #f2c089 0%,
     #f2c089 23%, transparent 23%) -3px 17px no-repeat,
      radial-gradient(circle, #383c4b 0%, #383c4b 6%,
       transparent 6%) 12px -12px no-repeat,
        radial-gradient(circle, #383c4b 0%, #383c4b 6%, transparent 6%)
         -12px -12px no-repeat, radial-gradient(#eda65d 0%, #eda65d 15%,
          transparent 15%) 0 -11px no-repeat,
           radial-gradient(circle, transparent 5%,
            #383c4b 5%, #383c4b 10%, transparent 10%)
             -3px -5px no-repeat, 
             radial-gradient(circle, transparent 5%,
              #383c4b 5%, #383c4b 10%, transparent 10%)
               3px -5px no-repeat, 
               radial-gradient(circle, #eda65d 45%, transparent 45%)
                0 -3px, linear-gradient(transparent 35%, #383c4b 35%,
                 #383c4b 41%, transparent 41%, transparent 44%,
                  #383c4b 44%, #383c4b 50%, transparent 50%,
                   transparent 53%, #383c4b 53%, #383c4b 59%,
                    transparent 59%);
  }
  .loading-cat .foot:before, .loading-cat .foot:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
  }
  .loading-cat .foot:before {
    border-radius: 50%;
    clip-path: polygon(50% 50%, 0% 50%, 0% 25%);
    -webkit-clip-path: polygon(50% 50%, 0% 50%, 0% 25%);
  }
  .loading-cat .foot .tummy-end {
    width: 24px;
    height: 24px;
    position: absolute;
    border-radius: 50%;
    background-color: #f2c089;
    left: 19px;
    top: 105px;
  }
  .loading-cat .foot .bottom {
    width: 48px;
    height: 15px;
    position: absolute;
    top: 78px;
    left: 12px;
    border: 0 solid #383c4b;
    border-top-width: 6.5px;
    border-radius: 50%;
    transform: rotate(21deg);
    background: #eda65d;
  }
  .loading-cat .hands, .loading-cat .legs, .loading-cat .foot:after {
    width: 10px;
    height: 25px;
    position: absolute;
    border: 6.5px solid #383c4b;
    background-color: #eda65d;
  }
  .loading-cat .hands {
    border-top: 0;
    border-radius: 0 0 13px 13px;
  }
  .loading-cat .hands.left {
    top: 144px;
    right: 161px;
    transform: rotate(-20deg);
  }
  .loading-cat .hands.right {
    top: 123px;
    right: 128px;
    transform: rotate(-25deg);
  }
  .loading-cat .legs {
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
  }
  .loading-cat .legs.left {
    top: 65px;
    left: 49px;
    transform: rotate(25deg);
  }
  .loading-cat .legs.right {
    top: 53px;
    left: 12px;
    transform: rotate(22deg);
  }
  .loading-cat .foot:after {
    width: 8px;
    height: 40px;
    top: 42px;
    left: 36px;
    z-index: -1;
    transform: rotate(25deg);
    background-color: #c6823b;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }
  @keyframes body {
    0% {
      clip-path: polygon(50% 50%, 0% 50%, 0% 100%, 100% 100%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 0% 50%, 0% 100%, 100% 100%, 100% 20%);
    }
    10% {
      clip-path: polygon(50% 50%, 30% 120%, 50% 100%, 100% 100%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 30% 120%, 50% 100%, 100% 100%, 100% 20%);
    }
    20% {
      clip-path: polygon(50% 50%, 100% 90%, 120% 90%, 100% 100%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 100% 90%, 120% 90%, 100% 100%, 100% 20%);
    }
    40% {
      clip-path: polygon(50% 50%, 100% 45%, 120% 45%, 120% 50%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 100% 45%, 120% 45%, 120% 50%, 100% 20%);
    }
    50% {
      clip-path: polygon(50% 50%, 100% 45%, 120% 45%, 120% 50%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 100% 45%, 120% 45%, 120% 50%, 100% 20%);
    }
    65% {
      clip-path: polygon(50% 50%, 100% 65%, 120% 65%, 120% 50%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 100% 65%, 120% 65%, 120% 50%, 100% 20%);
    }
    80% {
      clip-path: polygon(50% 50%, 75% 130%, 120% 65%, 120% 50%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 75% 130%, 120% 65%, 120% 50%, 100% 20%);
    }
    90% {
      clip-path: polygon(50% 50%, -20% 110%, 50% 120%, 100% 100%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, -20% 110%, 50% 120%, 100% 100%, 100% 20%);
    }
    100% {
      clip-path: polygon(50% 50%, 0% 50%, 0% 100%, 100% 100%, 100% 20%);
      -webkit-clip-path: polygon(50% 50%, 0% 50%, 0% 100%, 100% 100%, 100% 20%);
    }
  }
  @keyframes loading-cat {
    0% {
      transform: rotate(0deg);
    }
    10% {
      transform: rotate(-80deg);
    }
    20% {
      transform: rotate(-180deg);
    }
    40% {
      transform: rotate(-245deg);
    }
    50% {
      transform: rotate(-250deg);
    }
    68% {
      transform: rotate(-300deg);
    }
    90% {
      transform: rotate(-560deg);
    }
    100% {
      transform: rotate(-720deg);
    }
  }
  @keyframes foot {
    0% {
      transform: rotate(-10deg);
    }
    10% {
      transform: rotate(-100deg);
    }
    20% {
      transform: rotate(-145deg);
    }
    35% {
      transform: rotate(-190deg);
    }
    50% {
      transform: rotate(-195deg);
    }
    70% {
      transform: rotate(-165deg);
    }
    100% {
      transform: rotate(-10deg);
    }
  }
  .loading-cat .body {
    animation: 2.74s linear infinite body;
  }
  .loading-cat .foot {
    animation: 2.74s linear infinite foot;
  }

  /* .loading-text {
    padding-top: 10%;
  } */


  html {
    scroll-behavior: smooth; /* Smooth scrolling */
  }

  .scroll-down {
    color: black;
    text-decoration: none;
  }

  .dark-mode .scroll-down {
    color: white; /* Change to white for dark mode */
    text-decoration: none;
  }

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.flash-card::before, .flash-card::after {
  position: absolute;
  content: '';
  height: 110%;
  width: 110%;
  top: -5%;
  left: -5%;
  border-radius: 10px;
  background-image: conic-gradient(from var(--angle), red, green, blue, rgb(224, 5, 119), red);
  animation: spin 3s linear infinite;
  z-index: -1;      /* <-- This is key */
  /* padding: 180px; <-- REMOVE this line */
}

.flash-card::before {
  filter: blur(1.5rem);
  opacity: 0.8;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

.music-dropdown {
  position: absolute;
  bottom: 45px;
  left: 60%;         /* Move it closer to the Expand button */
  width: 30%;        /* Make it narrower */
  background: #181818;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem; /* Slightly smaller text */
  max-height: 140px;  /* Less tall */
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 0;         /* Remove extra space */
}
.dropdown-song {
  padding: 10px ;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}
.dropdown-song:hover {
  background: #222;
}
.music-container {
  position: relative; /* Ensure dropdown is positioned correctly */
}


.music-bar, .music-expanded {
  overflow: visible !important; /* Ensure overflow is visible */
}

.music-name {
  min-width: 100px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.hero {
  cursor: none !important;
}

.dark-mode .hero {
  cursor: none !important; /* Ensure custom cursor is used in dark mode */
  background: transparent;
}

.myprojects, .Education, .Skills {
  margin-top: 2%;
}

/* Work Experience Section */
.experience-section {
  padding: 80px 20px;
  background: white;
  text-align: center;
}

.dark-mode .experience-section {
  background: transparent;
}

.experience-section h2 {
  font-size: 2.5rem;
    margin-bottom: 80px;
    text-align: center; /* Optional for better alignment */
    color: #000000; /* White text color */
}


.dark-mode .experience-section h2 {
   font-size: 2.5rem;
    margin-bottom: 80px;
    text-align: center; /* Optional for better alignment */
    color: #fff; /* White text color */
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #ffffff, 0 0 20px #ff9800, 0 0 25px #ff9800, 0 0 30px #ff9800;
    animation: glow 1.5s infinite alternate;
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.experience-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 10px rgba(0,123,255,0.07);
  padding: 32px 28px 24px 28px;
  width: 100%;
  max-width: 600px;
  text-align: left;
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.experience-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 24px rgba(0,123,255,0.18);
  transform: translateY(-4px) scale(1.02);
}
.dark-mode .experience-card:hover {
  box-shadow: 0 8px 32px rgba(0,123,255,0.18), 0 0 24px #a259ff;
  transform: translateY(-4px) scale(1.02);
}

.dark-mode .experience-card {
  background: #23233a;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18), 0 0 10px #007bff;
}

.exp-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #007bff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dark-mode .exp-header {
  color: #ffd700;
}

.exp-role {
  font-weight: bold;
}

.exp-company {
  font-style: italic;
  color: #555;
}

.dark-mode .exp-company {
  color: #b3b3b3;
}

.exp-duration {
  font-size: 0.98rem;
  color: #888;
  margin-bottom: 12px;
}

.dark-mode .exp-duration {
  color: #b3b3b3;
}

.exp-details {
  margin: 0;
  padding-left: 18px;
  color: #333;
  font-size: 1rem;
}

.dark-mode .exp-details {
  color: #e0e0e0;
}

.exp-details li {
  margin-bottom: 7px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 600px) {
  .experience-card {
    padding: 18px 8px 14px 8px;
  }
  /* .experience-section h2 {
    font-size: 1.3rem;
  } */
}

@media (max-width: 768px) {
  .music-expanded {
    width: 50%; /* Full width on smaller screens */
    height: auto; /* Adjust height to content */
    padding: 20px; /* Add padding for better spacing */
  }
  
  .logo {
    max-width: 80px; /* Smaller logo size on mobile */
    max-height: 90px; /* Smaller logo height on mobile */
    font-size: 1.2rem !important; /* Adjust font size for mobile */
  }
  
  .hero .cta button {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .flash-card {
    width: 120px;
    height: 100px;
  }

  .flash-card img {
    width: 180px;
    height: 120px;
  }

  .flash-card-overlay img{
    font-size: 0.2rem; /* Smaller font size for mobile */
    width: 50px;
    height: 50px;
    margin-left: 4px;
  }

  #iiitklogo {
    width: 40px;
  }

  /* .exp-role {
    align-items: center !important;
    display: flex;
    justify-content: center !important;

  } */
  .exp-details li{
    font-size: 0.6rem; /* Smaller font size for mobile */
  }

  .exp-duration {
    font-size: 0.8rem;;
  }

  .exp-company {
    font-size: 0.9rem;
  }

  .flash-card.expanded {
    width: 300px;
  }

  .flash-card.expanded img {
    position: relative;
    width: 100px; /* Keep image size fixed */
    height: 100px; /* Keep height fixed */
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking of the image */
}

.flash-card.expanded .flash-card-overlay {
    display: none; /* Hide the overlay after clicking */
}

.flash-card-details {
    display: none;
    flex-grow: 1; /* Fill the remaining expanded space */
    /* padding: 1rem; */
    background-color: white;
    color: #333;
    /* height: 100%;  */
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: auto;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack title and details vertically */
}

.flash-card.expanded .flash-card-details {
    display: flex; /* Display details when expanded */
}

.flash-card-details h3 {
    margin: 0;
    /* padding: 0.5rem 1rem; */
    text-align: center; /* Align institution name to the left */
    font-size: 10px;
    font-weight: bold;
    padding: 0;
    margin-bottom: 2px;
}

.flash-card-details .details-body {
    flex-grow: 1; /* Use remaining space */
    display: flex; /* Use flexbox for layout */
    /* align-items: flex-start; Center text vertically */
    /* justify-content: flex-start; Center text horizontally */
    text-align: center !important; /* Align text within the content box */
    font-size: 8px;
    line-height: 1.5;
    justify-content: center;
    align-items: center; /* Center text vertically */
}
.sajsdetails {
  padding-left: 40px;
}


.ball {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #d3d3d3, #a9a9a9); /* Greyish gradient background */
    color: #000;
    font-size: 10.5px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.5); /* Strong black shadow effect */
    transform: translate3d(0, 0, 0);
    transition: transform 0.8s ease, box-shadow 0.3s ease, background 0.3s ease; /* Smooth transitions */
    cursor: pointer;
}

.ball:hover {
    background: radial-gradient(circle at 30% 30%, #b3b3b3, #7f7f7f); /* Darker grey gradient on hover */
    box-shadow: 0 7.5px 15px rgba(0, 0, 0, 0.8), inset 0 -4px 6px rgba(0, 0, 0, 0.6); /* Stronger black shadow on hover */
}

.dark-mode .ball {
  font-size: 10.5px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    justify-items: center;
    padding-bottom: 100px;
}

.project-card {
    background-color: rgb(194, 193, 193);
    color: #333;
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1); /* Subtle glow */
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    min-height: 140px;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
    position: absolute;
    left: 50%;
    bottom: -39px; /* Adjust so the triangle sits just below the card */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 48px solid transparent;  /* Width of triangle */
    border-right: 48px solid transparent; /* Width of triangle */
    border-top: 40px solid rgb(194, 193, 193);         /* Height and color of triangle */
    z-index: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
        /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
    
}

.dark-mode .project-card::after {
  border-top: 40px solid #333; /* Dark mode triangle color */
}

/* .project-card:hover::after {
  transform: scale(1.05);
} */
.project-card img {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.project-card h3 {
    padding: 5px;
    font-size: 11px;
    /* padding-right: 10px; */
    padding-left: 0 !important;
    padding-left: 7px;
    padding-right: 4px;
    margin-left: 2px;
    margin-right: 2px;
}

.hero .music-icon {
    position: fixed; /* Change from absolute to fixed */
    right: 20px; /* Positioned on the right */
    bottom: 20px; /* Positioned at the bottom */
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #aeaeae, #ffffff);
    border-radius: 50%;
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 105, 180, 0.8); /* Glow effect */
    z-index: 1001;
    cursor: pointer;
}


.hero .music-bar:not(.collapsed) {
    width: 280px;
}

/* Expanded music controls */
.hero .music-expanded {
  position: relative;
    display: flex;
    align-items: center;
    width: 95%;
    padding: 0 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 0, 255, 0.7);
    border-radius: 20px;
    height: 55px;
    z-index: 10000 !important; /* Ensure it appears above other content */
}

.hero .music-bar:not(.collapsed) .music-expanded {
    opacity: 1;
}

.hero .album-art {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-right: 5px;
    margin-left: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

/* Music logo */
.hero .controls {
    display: flex;
    justify-content: center; /* Center the buttons */
    align-items: center;
    /* flex: 1; */
    margin-left: 4%;
    gap: 5px; /* Adjusted spacing between buttons */
    flex-shrink: 0;
    flex-grow: 0;
}

/* Control buttons */
.hero .control-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero .control-btn:hover {
    transform: scale(1.2);
}

.hero .progress-bar {
    position: absolute;
    bottom: 5px;
    left: 100px;
    /* right: 200px; */
    width: 30%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.hero .progress {
    width: 0%; /* Dynamic value */
    height: 100%;
    background: rgb(0, 0, 0);
    transition: width 0.3s ease;
}

.expand-music {
  margin-left: 6% ;
  font-size: 10px;
  padding-right: 4px;
  padding-left:4px;
}

.music-dropdown {
  position: absolute;
  bottom: 45px;
  left: 60%;         /* Move it closer to the Expand button */
  width: 30%;        /* Make it narrower */
  background: #181818;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
  color: #fff;
  font-family: inherit;
  font-size: 0.65rem; /* Slightly smaller text */
  max-height: 140px;  /* Less tall */
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 0;         /* Remove extra space */
}
.dropdown-song {
  padding: 5px ;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}
.dropdown-song:hover {
  background: #222;
}
.music-container {
  position: relative; /* Ensure dropdown is positioned correctly */
}


.music-bar, .music-expanded {
  overflow: visible !important; /* Ensure overflow is visible */
}

.music-name {
  min-width: 50px;
  max-width: 80px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

#watch {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 8px 0 0;  /* Only right margin for spacing from toggle button */
  display: flex;
  align-items: center;
  justify-content: center;
  left: 10%;
  /* border: 1px black; */
  /* transform: rotate(5deg); */
  
}


.logo {
  margin-left: -25px;
}

.mobilenav {
  display: flex;
}

.navbtn {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
  border: none;
  color: #000000;
  font-size: 1.5rem; /* Slightly reduced font-size */
  padding: 0.3rem 0.8rem; /* Reduced vertical padding to lower the button height */
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(49, 51, 53, 0.5); /* Initial subtle glow */
}

.dark-mode .navbtn {
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent background for dark mode */
  color: #ffffff; /* Change text color to white for dark mode */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Initial subtle glow for dark mode */
}

.navbtn:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #000000;
  text-shadow: 0 0 12px rgba(60, 62, 65, 0.7);
  box-shadow: 0 0 20px rgb(45, 45, 46); /* Enhanced glow on hover */
}

.dark-mode .navbtn:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #ffffff; /* Change text color to white on hover for dark mode */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7); /* Enhanced glow on hover for dark mode */
  box-shadow: 0 0 20px rgb(120, 120, 122); /* Enhanced glow on hover */
}

.side-panel {
  position: fixed;
  top: 0.5vh;
  left: -260px;
  width: 150px;
  height: 99.5vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.18);
  z-index: 2000;
  transition: left 0.3s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  border-radius: 10px;
  /* opacity: 0.8; */
  background: rgba( 255, 255, 255, 0.4 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 3.5px );
-webkit-backdrop-filter: blur( 3.5px );
border-radius: 10px;
border: 1px solid rgba( 255, 255, 255, 0.18 );


}

.dark-mode .side-panel {
  background: rgba( 0, 0, 0, 0.8 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 3.5px );
  -webkit-backdrop-filter: blur( 3.5px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  color: #fff;
}

.side-panel.open {
  left: 0;
}

.side-panel .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
   transition: color 0.2s, text-shadow 0.2s;
  /* Initial subtle glow */
  text-shadow: 0 0 12px rgba(65, 68, 70, 0.7);
}

.side-panel .close-btn:hover {
  /* Enhanced glow on hover */
  text-shadow: 0 0 14px rgba(0, 123, 255, 1);
}

.dark-mode .side-panel .close-btn {
  color: #fff; /* Change to white for dark mode */
  text-shadow: 0 0 12px whitesmoke;
}

.side-panel ul {
  list-style: none;
  padding: 0 0 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-panel ul li a {
  text-decoration: none;
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
  /* Initial subtle glow */
  text-shadow: 0 0 12px rgba(29, 30, 30, 0.7);
}

.dark-mode .side-panel ul li a {
  text-shadow: 0 0 12px whitesmoke;
}

.dark-mode .side-panel ul li a:hover {
  /* Enhanced glow on hover */
  text-shadow: 0 0 18px rgba(0, 123, 255, 1);
}
.side-panel ul li a:hover {
  /* Enhanced glow on hover */
  text-shadow: 0 0 14px rgba(0, 123, 255, 1);
}

.dark-mode .side-panel ul li a {
  color: #fff; /* Change to white for dark mode */
}

/* Active highlight for side panel links */
.side-panel ul li a.active {
  color: #36383a; /* Highlight color */
  text-shadow: 0 0 28px rgba(0, 123, 255, 1);
  font-weight: bold;
  transform: scale(0.95rem);
}

.dark-mode .side-panel ul li a.active {
  color: #9b9494; /* Highlight color for dark mode */
  transform: scale(0.9);
}
/* .side-panel ul li a:hover {
  color: #007bff;
} */


   .projects-container {
  gap:180px;
  /* display: grid;
  grid-template-rows: auto; */
}


.project-card h3 .projectdetails {
  font-size: 12px;
  font-weight: 600;
  padding-left: 12px;
  padding-right: 12px;

}

.project-card h3 {
  font-size: 20px;
}


.project-card h3 a img {
  width: 48px;
  height: 48px;
  margin-right: 5px; /* Adjust spacing for smaller icons */
  vertical-align: middle; /* Align with text */
}

.project-card {
    background-color: rgb(194, 193, 193);
    color: #333;
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1); /* Subtle glow */
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 10px;
    min-height: 140px;
}

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: fill;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
    position: absolute;
    left: 50%;
    bottom: -39px; /* Adjust so the triangle sits just below the card */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 156px solid transparent;  /* Width of triangle */
    border-right: 156px solid transparent; /* Width of triangle */
    border-top: 40px solid rgb(194, 193, 193);         /* Height and color of triangle */
    z-index: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
        /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
    
}

.custom-cursor {
  display: none;
}


}




@media (max-width: 360px) {

  .custom-cursor {
    display: none;
  }
  .music-expanded {
    width: 50%; /* Full width on smaller screens */
    height: auto; /* Adjust height to content */
    padding: 20px; /* Add padding for better spacing */
  }

 
  
  .logo {
    max-width: 80px; /* Smaller logo size on mobile */
    max-height: 90px; /* Smaller logo height on mobile */
    font-size: 1.2rem !important; /* Adjust font size for mobile */
  }
  
  .hero .cta button {
    padding: 6px 10px;
    font-size: 0.8rem;
    border-radius: 6px;
  }

  .flash-card {
    width: 120px;
    height: 100px;
  }

  .flash-card img {
    width: 180px;
    height: 120px;
  }

  .flash-card-overlay img{
    font-size: 0.2rem; /* Smaller font size for mobile */
    width: 50px;
    height: 50px;
    margin-left: 4px;
  }

  #iiitklogo {
    width: 40px;
  }

  .flash-card.expanded {
    width: 300px;
  }

  .flash-card.expanded img {
    position: relative;
    width: 100px; /* Keep image size fixed */
    height: 100px; /* Keep height fixed */
    object-fit: cover;
    flex-shrink: 0; /* Prevent shrinking of the image */
}

.flash-card.expanded .flash-card-overlay {
    display: none; /* Hide the overlay after clicking */
}

.flash-card-details {
    display: none;
    flex-grow: 1; /* Fill the remaining expanded space */
    /* padding: 1rem; */
    background-color: white;
    color: #333;
    /* height: 100%;  */
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: auto;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack title and details vertically */
}

.flash-card.expanded .flash-card-details {
    display: flex; /* Display details when expanded */
}

.flash-card-details h3 {
    margin: 0;
    /* padding: 0.5rem 1rem; */
    text-align: center; /* Align institution name to the left */
    font-size: 10px;
    font-weight: bold;
    padding: 0;
    margin-bottom: 2px;
}

.flash-card-details .details-body {
    flex-grow: 1; /* Use remaining space */
    display: flex; /* Use flexbox for layout */
    /* align-items: flex-start; Center text vertically */
    /* justify-content: flex-start; Center text horizontally */
    text-align: center !important; /* Align text within the content box */
    font-size: 8px;
    line-height: 1.5;
    justify-content: center;
    align-items: center; /* Center text vertically */
}
.sajsdetails {
  padding-left: 40px;
}


.ball {
    position: absolute;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #d3d3d3, #a9a9a9); /* Greyish gradient background */
    color: #000;
    font-size: 10.5px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.5); /* Strong black shadow effect */
    transform: translate3d(0, 0, 0);
    transition: transform 0.8s ease, box-shadow 0.3s ease, background 0.3s ease; /* Smooth transitions */
    cursor: pointer;
}

.ball:hover {
    background: radial-gradient(circle at 30% 30%, #b3b3b3, #7f7f7f); /* Darker grey gradient on hover */
    box-shadow: 0 7.5px 15px rgba(0, 0, 0, 0.8), inset 0 -4px 6px rgba(0, 0, 0, 0.6); /* Stronger black shadow on hover */
}

.dark-mode .ball {
  font-size: 10.5px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    justify-items: center;
    padding-bottom: 100px;
}

.project-card {
    background-color: rgb(194, 193, 193);
    color: #333;
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1); /* Subtle glow */
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    min-height: 140px;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
    position: absolute;
    left: 50%;
    bottom: -39px; /* Adjust so the triangle sits just below the card */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 41px solid transparent;  /* Width of triangle */
    border-right: 41px solid transparent; /* Width of triangle */
    border-top: 40px solid rgb(194, 193, 193);         /* Height and color of triangle */
    z-index: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
        /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
    
}

.dark-mode .project-card::after {
  border-top: 40px solid #333; /* Dark mode triangle color */
}

/* .project-card:hover::after {
  transform: scale(1.05);
} */
.project-card img {
    width: 100%;
    height: 50px;
    object-fit: cover;
}

.project-card h3 {
    padding: 5px;
    font-size: 11px;
    /* padding-right: 10px; */
    padding-left: 0 !important;
    padding-left: 7px;
    padding-right: 4px;
    margin-left: 2px;
    margin-right: 2px;
}

.hero .music-icon {
    position: fixed; /* Change from absolute to fixed */
    right: 20px; /* Positioned on the right */
    bottom: 20px; /* Positioned at the bottom */
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #aeaeae, #ffffff);
    border-radius: 50%;
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 105, 180, 0.8); /* Glow effect */
    z-index: 1001;
    cursor: pointer;
}


.hero .music-bar:not(.collapsed) {
    width: 280px;
}

/* Expanded music controls */
.hero .music-expanded {
  position: relative;
    display: flex;
    align-items: center;
    width: 95%;
    padding: 0 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(255, 0, 255, 0.7);
    border-radius: 20px;
    height: 55px;
    z-index: 10000 !important; /* Ensure it appears above other content */
}

.hero .music-bar:not(.collapsed) .music-expanded {
    opacity: 1;
}

.hero .album-art {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    margin-right: 5px;
    margin-left: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    flex-shrink: 0;
}

/* Music logo */
.hero .controls {
    display: flex;
    justify-content: center; /* Center the buttons */
    align-items: center;
    /* flex: 1; */
    margin-left: 4%;
    gap: 5px; /* Adjusted spacing between buttons */
    flex-shrink: 0;
    flex-grow: 0;
}

/* Control buttons */
.hero .control-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero .control-btn:hover {
    transform: scale(1.2);
}

.hero .progress-bar {
    position: absolute;
    bottom: 5px;
    left: 100px;
    /* right: 200px; */
    width: 30%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.hero .progress {
    width: 0%; /* Dynamic value */
    height: 100%;
    background: rgb(0, 0, 0);
    transition: width 0.3s ease;
}

.expand-music {
  margin-left: 6% ;
  font-size: 10px;
  padding-right: 4px;
  padding-left:4px;
}

.music-dropdown {
  position: absolute;
  bottom: 45px;
  left: 60%;         /* Move it closer to the Expand button */
  width: 30%;        /* Make it narrower */
  background: #181818;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10;
  color: #fff;
  font-family: inherit;
  font-size: 0.65rem; /* Slightly smaller text */
  max-height: 140px;  /* Less tall */
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  display: flex;
  padding: 0;         /* Remove extra space */
}
.dropdown-song {
  padding: 5px ;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}
.dropdown-song:hover {
  background: #222;
}
.music-container {
  position: relative; /* Ensure dropdown is positioned correctly */
}


.music-bar, .music-expanded {
  overflow: visible !important; /* Ensure overflow is visible */
}

.music-name {
  min-width: 50px;
  max-width: 80px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

#watch {
  position: relative;
  width: 32px;
  height: 32px;
  margin: 0 8px 0 0;  /* Only right margin for spacing from toggle button */
  display: flex;
  align-items: center;
  justify-content: center;
  left: 10%;
  /* border: 1px black; */
  /* transform: rotate(5deg); */
  
}


.logo {
  margin-left: -25px;
}

.mobilenav {
  display: flex;
}

.navbtn {
  background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */
  border: none;
  color: #000000;
  font-size: 1.5rem; /* Slightly reduced font-size */
  padding: 0.3rem 0.8rem; /* Reduced vertical padding to lower the button height */
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, text-shadow 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px rgba(49, 51, 53, 0.5); /* Initial subtle glow */
}

.dark-mode .navbtn {
  background: rgba(0, 0, 0, 0.2); /* Semi-transparent background for dark mode */
  color: #ffffff; /* Change text color to white for dark mode */
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Initial subtle glow for dark mode */
}

.navbtn:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #000000;
  text-shadow: 0 0 12px rgba(60, 62, 65, 0.7);
  box-shadow: 0 0 20px rgb(45, 45, 46); /* Enhanced glow on hover */
}

.dark-mode .navbtn:hover {
  background: rgba(0, 123, 255, 0.1);
  color: #ffffff; /* Change text color to white on hover for dark mode */
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.7); /* Enhanced glow on hover for dark mode */
  box-shadow: 0 0 20px rgb(120, 120, 122); /* Enhanced glow on hover */
}

.side-panel {
  position: fixed;
  top: 0.5vh;
  left: -260px;
  width: 150px;
  height: 99.5vh;
  background: #fff;
  box-shadow: 2px 0 16px rgba(0,0,0,0.18);
  z-index: 2000;
  transition: left 0.3s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  border-radius: 10px;
  /* opacity: 0.8; */
  background: rgba( 255, 255, 255, 0.4 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 3.5px );
-webkit-backdrop-filter: blur( 3.5px );
border-radius: 10px;
border: 1px solid rgba( 255, 255, 255, 0.18 );


}

.dark-mode .side-panel {
  background: rgba( 0, 0, 0, 0.8 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 3.5px );
  -webkit-backdrop-filter: blur( 3.5px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  color: #fff;
}

.side-panel.open {
  left: 0;
}

.side-panel .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
   transition: color 0.2s, text-shadow 0.2s;
  /* Initial subtle glow */
  text-shadow: 0 0 12px rgba(65, 68, 70, 0.7);
}

.side-panel .close-btn:hover {
  /* Enhanced glow on hover */
  text-shadow: 0 0 14px rgba(0, 123, 255, 1);
}

.dark-mode .side-panel .close-btn {
  color: #fff; /* Change to white for dark mode */
  text-shadow: 0 0 12px whitesmoke;
}

.side-panel ul {
  list-style: none;
  padding: 0 0 0 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-panel ul li a {
  text-decoration: none;
  color: #222;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
  /* Initial subtle glow */
  text-shadow: 0 0 12px rgba(29, 30, 30, 0.7);
}

.dark-mode .side-panel ul li a {
  text-shadow: 0 0 12px whitesmoke;
}

.dark-mode .side-panel ul li a:hover {
  /* Enhanced glow on hover */
  text-shadow: 0 0 18px rgba(0, 123, 255, 1);
}
.side-panel ul li a:hover {
  /* Enhanced glow on hover */
  text-shadow: 0 0 14px rgba(0, 123, 255, 1);
}

.dark-mode .side-panel ul li a {
  color: #fff; /* Change to white for dark mode */
}

/* Active highlight for side panel links */
.side-panel ul li a.active {
  color: #36383a; /* Highlight color */
  text-shadow: 0 0 28px rgba(0, 123, 255, 1);
  font-weight: bold;
  transform: scale(0.95rem);
}

.dark-mode .side-panel ul li a.active {
  color: #9b9494; /* Highlight color for dark mode */
  transform: scale(0.9);
}
/* .side-panel ul li a:hover {
  color: #007bff;
} */


 .projects-container {
  gap:140px;
  /* display: grid;
  grid-template-rows: auto; */
}


.project-card h3 .projectdetails {
  font-size: 12px;
  padding-left: 4px;
  padding-right: 4px;
}

.project-card h3 {
  font-size: 19px;
}


.project-card h3 a img {
  width: 38px;
  height: 38px;
  margin-right: 5px; /* Adjust spacing for smaller icons */
  vertical-align: middle; /* Align with text */
}

.project-card {
    background-color: rgb(194, 193, 193);
    color: #333;
    width: 100%;
    max-width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1); /* Subtle glow */
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 10px;
    min-height: 140px;
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: fill;
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card::after {
  content: "";
    position: absolute;
    left: 50%;
    bottom: -39px; /* Adjust so the triangle sits just below the card */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 140px solid transparent;  /* Width of triangle */
    border-right: 140px solid transparent; /* Width of triangle */
    border-top: 40px solid rgb(194, 193, 193);         /* Height and color of triangle */
    z-index: 0;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
        /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 10px rgba(0, 123, 255, 0.1);  */
    
}
}

