 :root {
             --primary-color: #64ffda; /* A vibrant mint green */
             --dark-bg: #0a192f;
             --light-bg: #112240;
             --slate: #8892b0;
             --light-slate: #f5f5f5;
             --bs-body-font-family: 'Inter', sans-serif;
         }

         html {
             scroll-behavior: smooth;
         }

         body {
             background-color: var(--dark-bg);
             color: var(--slate);
             background-image: radial-gradient(circle at 1px 1px, rgba(204, 214, 246, 0.05) 1px, transparent 0);
             background-size: 20px 20px;
             cursor: none; /* Hide default cursor */
         }
         
         #bg-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1; /* Place it behind all content */
        }
         
         a, button, .btn {
             cursor: none; /* Apply custom cursor to interactive elements */
         }

         .cursor-dot {
             width: 8px;
             height: 8px;
             background-color: var(--primary-color);
             position: fixed;
             border-radius: 50%;
             pointer-events: none;
             transform: translate(-50%, -50%);
             z-index: 9999;
             transition: width 0.2s, height 0.2s;
         }
         
         .cursor-outline {
             width: 40px;
             height: 40px;
             border: 2px solid var(--primary-color);
             position: fixed;
             border-radius: 50%;
             pointer-events: none;
             transform: translate(-50%, -50%);
             z-index: 9999;
             opacity: 0.5;
             transition: width 0.3s, height 0.3s, opacity 0.3s;
         }

         body:hover .cursor-dot.cursor-hidden,
         body:hover .cursor-outline.cursor-hidden {
             opacity: 0;
         }

         .cursor-dot.grow, .cursor-outline.grow {
             width: 60px;
             height: 60px;
             opacity: 0.2;
         }
         
         .cursor-dot.grow {
             background-color: transparent;
         }


         .navbar {
             transition: all 0.3s ease-in-out;
             background-color: transparent;
         }

         .navbar-scrolled {
             background-color: rgba(10, 25, 47, 0.85);
             backdrop-filter: blur(10px);
             box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
         }

         .nav-link {
             color: var(--light-slate);
             transition: color 0.3s;
             font-weight: 500;
         }

         .nav-link:hover, .navbar-brand:hover {
             color: var(--primary-color);
         }

         .navbar-brand {
             font-weight: 700;
             font-size: 1.75rem;
         }
         
         .navbar-toggler {
             border: none;
         }
         .navbar-toggler:focus {
             box-shadow: none;
         }
         
         /* New Animation for Nav Links */
         .navbar-nav .nav-item {
             animation: fadeInNav 0.5s ease-out forwards;
             opacity: 0;
         }
         @keyframes fadeInNav {
             from { opacity: 0; transform: translateY(-10px); }
             to { opacity: 1; transform: translateY(0); }
         }
         .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
         .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
         .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
         .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
         .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }


         .section {
             padding: 100px 0;
             overflow: hidden;
             position: relative;
             z-index: 2;
         }
         
         main.container, footer {
             position: relative;
             z-index: 2;
         }

         .hero {
             min-height: 100vh;
             display: flex;
             align-items: center;
             padding-top: 80px;
         }
         
         /* Font size adjustment for name */
         .hero h1 {
             font-size: clamp(2.2rem, 4vw, 3.8rem); /* <-- FONT SIZE REDUCED */
             font-weight: 700;
             color: var(--light-slate);
         }

         .hero h2 {
             font-size: clamp(2.2rem, 5vw, 4rem);
             font-weight: 700;
             /* color: var(--slate); */
             color: var(--light-slate);
             min-height: 120px; /* Reserve space for typed text */
         }

         #typed-text {
             color: var(--light-slate);
         }

         .hero .lead {
             max-width: 600px;
             font-size: 1.1rem;
         }

         /* NEW: Staggered animation for hero text */
         .hero > div > * {
             animation: slideUp 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
             opacity: 0;
         }

         @keyframes slideUp {
             from {
                 opacity: 0;
                 transform: translateY(20px);
             }
             to {
                 opacity: 1;
                 transform: translateY(0);
             }
         }

         .hero > div > *:nth-child(1) { animation-delay: 0.1s; } /* Hi, my name is */
         .hero > div > *:nth-child(2) { animation-delay: 0.2s; } /* Name h1 */
         .hero > div > *:nth-child(3) { animation-delay: 0.3s; } /* I build... h2 */
         .hero > div > *:nth-child(4) { animation-delay: 0.4s; } /* Paragraph */
         .hero > div > *:nth-child(5) { animation-delay: 0.5s; } /* Buttons div */

         .btn-outline-primary {
             color: var(--primary-color);
             border-color: var(--primary-color);
             padding: 12px 30px;
             font-weight: 600;
             transition: all 0.3s ease;
             border-width: 2px;
             box-shadow: 0 0 5px 0 rgba(100, 255, 218, 0);
         }

         .btn-outline-primary:hover {
             background-color: rgba(100, 255, 218, 0.1);
             color: var(--primary-color);
             border-color: var(--primary-color);
             transform: translateY(-3px);
             box-shadow: 0 0 15px 5px rgba(100, 255, 218, 0.3);
         }

         .section-title {
             font-weight: 700;
             font-size: 2.5rem;
             color: var(--light-slate);
             margin-bottom: 4rem;
             position: relative;
             display: inline-block;
             transition: text-shadow 0.3s ease;
         }
         .section-title:hover {
             text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
         }

         .section-title::after {
             content: '';
             position: absolute;
             bottom: -10px;
             left: 0;
             width: 50%;
             height: 3px;
             background-color: var(--primary-color);
             transition: width 0.3s ease;
         }
         .section-title:hover::after {
             width: 100%;
         }

         .project-card, .featured-project-card, .certification-card {
             background-color: var(--light-bg);
             border: 1px solid transparent;
             border-radius: 10px;
             transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
             overflow: hidden;
             box-shadow: 0 10px 30px -15px rgba(2,12,27,0.7);
         }

         .project-card:hover, .featured-project-card:hover, .certification-card:hover {
             transform: translateY(-8px);
             box-shadow: 0 20px 30px -15px rgba(2,12,27,0.7);
             border-color: var(--primary-color);
         }
         
         .card-body a, .featured-project-card a {
              color: var(--slate);
              font-size: 1.5rem;
              transition: color 0.3s;
         }
         
         .card-body a:hover, .featured-project-card a:hover {
             color: var(--primary-color);
         }
         
         .skill-badge {
             background-color: var(--light-bg);
             color: var(--light-slate);
             padding: 0.75rem 1.25rem;
             border-radius: 25px;
             display: inline-flex;
             align-items: center;
             gap: 0.75rem;
             font-weight: 500;
             transition: all 0.3s ease;
             border: 1px solid var(--light-bg);
         }
         .skill-badge:hover {
             transform: scale(1.05);
             background-color: var(--dark-bg);
             color: var(--primary-color);
             border-color: var(--primary-color);
         }
         
         .skill-badge i {
             font-size: 1.5rem;
         }

         #contact {
             background-color: transparent;
         }
         
         .social-links a {
             color: var(--slate);
             font-size: 1.75rem;
             transition: color 0.3s, transform 0.3s;
             display: inline-block;
         }
         .social-links a:hover {
             color: var(--primary-color);
             transform: translateY(-5px);
         }
         
         .profile-img-container {
             position: relative;
             animation: pulse-border 2s infinite; /* Pulsing border animation */
             border-radius: 50%;
         }
         
         @keyframes pulse-border {
           0% { box-shadow: 0 0 0 0px rgba(100, 255, 218, 0.3); }
           100% { box-shadow: 0 0 0 15px rgba(100, 255, 218, 0); }
         }

         .certification-card {
             display: flex;
             align-items: center;
             padding: 1.5rem;
             text-decoration: none;
             color: var(--slate);
         }
         .certification-card i {
             font-size: 2.5rem;
             color: var(--primary-color);
             margin-right: 1.5rem;
         }
         .certification-card-body {
             flex-grow: 1;
         }
         .certification-card-body h5 {
             color: var(--light-slate);
             font-weight: 700;
             margin-bottom: 0.25rem;
         }
         .certification-card:hover h5 {
             color: var(--primary-color);
         }
         
         
         /* Chatbot Styles */
         #chat-icon {
             position: fixed;
             bottom: 30px;
             right: 30px;
             width: 60px;
             height: 60px;
             background-color: var(--primary-color);
             color: var(--dark-bg);
             border-radius: 50%;
             display: flex;
             justify-content: center;
             align-items: center;
             font-size: 1.8rem;
             box-shadow: 0 5px 15px rgba(0,0,0,0.3);
             z-index: 1000;
             transition: transform 0.3s ease;
         }
         #chat-icon:hover {
             transform: scale(1.1);
         }

         #chat-window {
             position: fixed;
             bottom: 100px;
             right: 30px;
             width: 350px;
             max-width: 90vw;
             height: 500px;
             max-height: 70vh; /* Added for better height control on mobile */
             background-color: var(--light-bg);
             border-radius: 15px;
             box-shadow: 0 10px 30px rgba(0,0,0,0.5);
             display: flex;
             flex-direction: column;
             overflow: hidden;
             z-index: 999;
             transform: scale(0);
             transform-origin: bottom right;
             transition: transform 0.3s ease-in-out;
         }

         #chat-window.open {
             transform: scale(1);
         }

         #chat-header {
             padding: 1rem;
             background-color: var(--dark-bg);
             color: var(--light-slate);
             font-weight: 600;
         }

         #chat-body {
             flex-grow: 1;
             padding: 1rem;
             overflow-y: auto;
             display: flex;
             flex-direction: column;
             gap: 1rem;
         }
         
         .chat-message {
             padding: 0.75rem 1rem;
             border-radius: 10px;
             max-width: 80%;
         }

         .user-message {
             background-color: var(--primary-color);
             color: var(--dark-bg);
             align-self: flex-end;
             border-bottom-right-radius: 0;
         }

         .bot-message {
             background-color: var(--dark-bg);
             color: var(--light-slate);
             align-self: flex-start;
             border-bottom-left-radius: 0;
         }
         
         .loading-indicator {
             display: flex;
             align-items: center;
             gap: 5px;
             align-self: flex-start;
         }
         .loading-indicator span {
             width: 8px;
             height: 8px;
             background-color: var(--slate);
             border-radius: 50%;
             animation: bounce 1.4s infinite ease-in-out both;
         }
         .loading-indicator span:nth-child(1) { animation-delay: -0.32s; }
         .loading-indicator span:nth-child(2) { animation-delay: -0.16s; }
         @keyframes bounce {
           0%, 80%, 100% { transform: scale(0); }
           40% { transform: scale(1.0); }
         }

         #chat-input {
             border-top: 1px solid var(--dark-bg);
             padding: 1rem;
             display: flex;
         }
         #chat-input input {
             flex-grow: 1;
             border: none;
             background-color: var(--dark-bg);
             color: var(--light-slate);
             border-radius: 20px;
             padding: 0.5rem 1rem;
         }
         #chat-input input:focus {
             outline: none;
             box-shadow: 0 0 0 2px var(--primary-color);
         }

         /* == FIX: CHANGE PLACEHOLDER COLOR == */
         .form-control::placeholder {
             color: var(--light-slate) !important;
             opacity: 0.7; /* Optional: Makes it slightly less bright than typed text */
         }
         /* For older browsers */
         .form-control:-ms-input-placeholder {
             color: var(--light-slate) !important;
         }
         .form-control::-ms-input-placeholder {
             color: var(--light-slate) !important;
         }


         @media (max-width: 991.98px) {
             .navbar .navbar-collapse {
                 background-color: rgba(17, 34, 64, 0.85);
                 backdrop-filter: blur(10px);
                 padding: 1.5rem;
                 border-radius: 10px;
                 margin-top: 1rem;
                 border: 1px solid rgba(100, 255, 218, 0.1);
             }
              .hero h2 {
                 min-height: 180px; /* Taller height on mobile */
             }
         }
         
         /* === RESPONSIVENESS FIX FOR CHATBOT === */
         @media (max-width: 768px) {
             .cursor-dot, .cursor-outline {
                 display: none; /* Hide custom cursor on touch devices */
             }
             body {
                 cursor: auto; /* Restore default cursor on touch devices */
             }
             a, button, .btn {
                 cursor: pointer;
             }

             #chat-window {
                 /* Make it take up the full width, with some margin */
                 width: 95vw;
                 right: 2.5vw;
                 bottom: 85px; /* Position it above the chat icon */
                 height: 65vh; /* Make it taller on mobile */
             }

             #chat-icon {
                 bottom: 20px;
                 right: 20px;
             }
         }