body{
    cursor: none;
}
body, html {overflow-x: hidden; width: 100%; max-width: 100%; margin: 0; scroll-behavior: smooth; padding: 0; background: linear-gradient(to bottom, #080839, #000000);}
#main-content { 
    display: none;   
    position: relative;
    z-index: 2;
    padding-top: 150px; 
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

#cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: #00E5FF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

/* Secondary cursor outline */
#cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 229, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
    transform: translate(-50%, -50%);
}
a:hover ~ #cursor-outline,
button:hover ~ #cursor-outline,
.nav-link:hover ~ #cursor-outline,
input:hover ~ #cursor-outline,
textarea:hover ~ #cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: rgba(0, 229, 255, 0.8);
    background-color: rgba(0, 229, 255, 0.1);
}

/* Trail container */
#cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
    overflow: hidden;
}
.trail-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    color: rgba(0, 229, 255, 0.7);
    font-size: 20px;
    font-weight: bold;
    pointer-events: none;
    user-select: none;
    opacity: 0.8;
    animation: fadeOut 1s forwards;
    text-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

/* Fade out animation for trail particles */
@keyframes fadeOut {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Ensure cursor effects work on mobile too */
@media (max-width: 768px) {
    #cursor-dot, #cursor-outline {
        display: none; /* Hide on touch devices */
    }
}
/* The Intro Screen */
#intro-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, #080839, #000000); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-in-out;
    opacity: 1;
}
#intro-screen.hidden {
    opacity: 0;
    pointer-events: none;
}
#binary-rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to bottom, #080839, #000000); 
    /* NEW: Ensure the canvas itself has no background color */
    /* background-color: transparent;  */
}
/* UPDATE: Ensure the SVG is on top */
#handwriting-svg {
    position: relative; /* Needed for z-index to work */
    z-index: 10; /* Place it on the very top layer */
}


/* SVG Styling */
#handwriting-svg path {
    /* Set the appearance of the line */
    stroke: #FFFFFF; /* The color of the "ink" */
    stroke-width: 2px; /* The thickness of the "ink" */
    fill: none; /* IMPORTANT: No fill, just the line */
    
    /* The magic happens here */
    stroke-dasharray: 1000;  /* A very long dash. We'll fix this with JS. */
    stroke-dashoffset: 1000; /* Start with the dash hidden. We'll fix this too. */
    /* transform: scaleX(-1); */
    /* Apply the animation */
    /* animation: draw-in 4s linear forwards; */
}

/* The Keyframe Animation */
@keyframes draw-in {
    /* Animate the stroke-dashoffset from its initial value to 0 */
    to {
        stroke-dashoffset: 0;
    }
}

#navbar{
    position: fixed;
    top: 5%;
    border-radius: 30px; /* Slightly rounded corners */
    width: 90%; 
    height: 60px;
    background: linear-gradient(to bottom, #292947, #080839);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    color: white;
    padding: 0 20px; /* Spacing around the navbar */
    z-index: 10000; /* Ensure it's above everything else */
    left:50%; /* Center horizontally */
    transform: translateX(-50%);  /* Display items in a row */ /* Ensure items are in a row */
    display: flex;
    justify-content: center; /* Center the UL inside the navbar */
    align-items: center;
    
}
#navbar ul{
    width: 100%; /* Full width of the navbar */
    list-style: none; /* Remove bullet points */
    padding: 0 25px;
    box-sizing: border-box; /* Include padding in width */
    display: flex; /* Use flexbox for layout */
    justify-content: center; 
    gap: 30px; /* Spacing between items */
    align-items: center; /* Space items evenly */ /* Full width of the navbar */
    margin: 0; /* Remove default margin *//* Remove default padding */
}
#navbar li{
    list-style: none; /* Remove bullet points */ /* Spacing between items */
     /* Use flexbox for layout */
    /* Allow items to grow and shrink equally */
 }
#navbar li a{
    color: white; /* White text for links */
    display: block; /* Make links block-level for padding */
    text-decoration: none; /* Remove underline */
    padding: 10px 15px; /* Spacing around the links */
    font-size: 20px; /* Font size for readability */
    transition: color 0.3s ease; /* Smooth color transition */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
     /* Rounded corners for the links */ /* Center the links */

}
#navbar li a:hover {
    color: #00E5FF; /* Change color on hover */ /* Underline on hover */
    background: linear-gradient(to bottom, #2f2f52, #121246);
    transform: translateY(-2px); 
    /* border: solid 1px white; */
    border-radius: 30px; /* Center the links */
}

#navbar li a.active {
    color: #00E5FF; /* Change color on hover */ /* Underline on hover */
    background: linear-gradient(to bottom, #2f2f52, #121246);
    transform: translateY(-2px); 
    /* border: solid 1px white; */
    border-radius: 30px;/* Underline the active link */
}


#main-home{
    display: flex; /* Use flexbox for layout */
    justify-content:center; /* Center the UL inside the navbar */ /* Center the items vertically */
    flex-direction: row; /* Display items in a row */
    padding: 0;
    gap: 24px; /* Remove default padding */
    margin: 0;
    /* position: fixed; */
    z-index: 10000; /* Remove default margin */
}
#home-img img{
    margin-top: 60px; /* Space from the top */
    width: 400px; /* Set a fixed width for the image */
    height: 400px; /* Set a fixed height for the image */
    border-radius: 50%; /* Make the image circular */
     /* Space between the image and text */
    transition: transform 0.3s ease; /* Smooth scaling effect */
}
#About{
    color: white; /* White text for readability */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
}
#About h2{
    font-size: 36px; /* Larger font size for emphasis */
    margin-bottom: 20px; /* Space below the heading */
    font-weight: 900; /* Make it stand out */
}
#About p{
    font-size: 18px; /* Font size for readability */
    line-height: 1.6; /* Improved line spacing for readability */
    margin-bottom: 20px; /* Space below the paragraph */
    text-align: left; /* Align text to the left */
    background: rgba(13, 31, 45, 0.6);
    padding: 20px; /* Padding around the text */
    border-radius: 10px; /* Rounded corners for the text box */
}
#Projects{
    color: white; /* White text for readability */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
}
#Projects h2{
    font-size: 36px; /* Larger font size for emphasis */
    margin-bottom: 20px; /* Space below the heading */
    font-weight: 900; /* Make it stand out */
}
#About, #Projects, #Contact, #Github{
    margin-right:20px;
    padding-left: 45%; /* Make space for the sidebar */
    min-height: 100vh; /* Make sections full height */
    padding-top: 100px; /* Space from the top */
    margin-top: 90px; /* Space from the bottom */
}
#Github{
    color: white; /* White text for readability */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
}
#Github h2{
    font-size: 36px; /* Larger font size for emphasis */
    margin-bottom: 20px; /* Space below the heading */
    font-weight: 900;
    margin-right: 15px;/* Make it stand out */
}
.fas.fa-external-link-alt{
    margin-left: 10px; /* Space between icon and text */ /* Icon color */
    transition: color 0.3s ease; /* Smooth color transition */
    width: 10px; /* Set a fixed width for the icon */
    height: 10px; /* Set a fixed height for the icon */
}
#Home {
    margin-top: 50px; /* Space from the top */
    margin-left: 40px; /* Space from the left */
    width: 50%; /* Full width of the navbar */
    display: flex; /* Use flexbox for layout */
     /* Space items evenly */ /* Full width of the navbar */ /* Slightly rounded corners */
    /* Ensure it's above everything else */ /* Slightly transparent */
    flex-direction: column; /* Stack items vertically */ /* Center the items */
    transition: all 0.5s ease;
}
#Home h1{
     /* Center the text vertically */
    color: white; /* Highlight the home link */
    text-align: left; 
    font-weight: 900; /* Make it stand out */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
    font-size: 76px; /* Larger font size for emphasis */
    /* padding: 10px; Remove default padding */
    margin: 0; /* Remove default margin */
}
#name{
    color: #c0f3f6;
    text-shadow: 0px 0px 10px #000000; /* Subtle shadow for depth */
    
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
}
#social-links{

    padding:0; /* Remove default padding */
    margin: 0; /* Remove default margin */
    display: flex;
    justify-content: left;
    margin-top: 10px; /* Use flexbox for layout */ /* Center the UL inside the navbar */
}
#social-links .download-resume{
    margin: 0; /* Spacing between the links */
    background: transparent;
    color: white; /* White text for links */
    padding: 12px 18px; 
    font-size: 18px;
    font-weight: 600; /* Font size for readability */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel */
    border: solid 2px white;
    border-radius: 30px;
    text-decoration: none;/* Spacing around the links */
}
#social-links .fa-solid.fa-download{
    margin-right: 10px; /* Space between icon and text */
}
#social-links .download-resume:hover {
    color: #121246; /* Change color on hover */
    background-color: white; /* Change background color on hover */
    transform: translateY(-2px); 
    border: solid 2px white; /* Change border color on hover */
}
#description{
    display: flex; /* Center the UL inside the navbar */
    flex-direction: row;/* Use flexbox for layout */ /* White text for readability */ /* Font size for readability */
    font-family: 'Courier New', Courier, monospace; /* Monospace font for a techy feel *//* Space from the top */ /* Improved line spacing for readability */ /* Align text to the left */
    margin: 0;
    padding: 0;
     /* Remove default padding */
}
#description p{
    margin: 0; /* Remove default margin */
    margin-bottom: 15px; /* Space below the paragraph */
    margin-right: 50px;
    text-align: left; /* Align text to the left */
    color: white; /* Highlight the home link */
    font-weight: 900; /* Make it stand out */
    font-size: 20px;
    display: inline-block;
 /* Larger font size for emphasis */ /* Space below the heading */
}
#description .fa-solid.fa-location-dot{
    margin-right: 10px; /* Space between icon and text */
}
 
.github-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
    background: rgba(13, 31, 45, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-right: 10px;
    padding: 20px;
}

.github-card {
    border-radius: 10px;
    padding: 0;
    transition: transform 0.3s ease;
    max-width: 495px;
}

.github-card:hover {
    transform: translateY(-5px);
}

.github-stats-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .github-stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .github-card {
        width: 100%;
        /* max-width: 95%; */
    }
}
.calendar-card {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-radius: 10px;
}

/* Style calendar text to match your site */
/* Replace your existing calendar styles with these */
.calendar {
    /* background: rgba(13, 31, 45, 0.6); */
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    text-align: center;
}

.github-calendar-header {
    color: #00aeff;
    margin-top: 0;
    margin-bottom: 15px;
}

/* Add this to your styles.css */
.github-calendar-img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    background-color: rgba(13, 31, 45, 0.6); /* Dark blue background */
    padding: 10px;
    mix-blend-mode: screen; /* This blend mode will darken the white areas */
    filter: brightness(0.85) contrast(1.2); /* Adjusts the overall brightness */
}

/* Add a dark container behind the image */
.github-calendar-wrapper {
    overflow-x: auto;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    background-color: #050f2c; /* Match your site's dark blue background */
    border-radius: 5px;
    padding: 5px;
}

/* Ensure the text in the calendar is readable */


/* Style the contribution summary text */

/* Contact Section Styles */
#Contact {
    color: white;
    font-family: 'Courier New', Courier, monospace;
}

#Contact h2 {
    font-size: 36px;
    margin-bottom: 30px;
    font-weight: 900;
}

.contact-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 40px;
    margin-right: 10px;
    justify-content: center;
    gap: 10px;
}

/* Contact Form Styles */
.contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(13, 31, 45, 0.6);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding-bottom: 0; /* Add padding at the bottom for the submit button */
}

.contact-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
    color: white;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: calc(100% - 10px);
    padding: 10px; /* Space for the icon */
    margin-right:0;
    background: rgba(8, 8, 57, 0.4);
    border: 1px solid #1074bd;
    border-radius: 5px;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00E5FF;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

.submit-btn {
    background: transparent;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Courier New', Courier, monospace;
    border: solid 2px white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: white;
    color: #080839;
    transform: translateY(-2px);
}

.submit-btn i {
    margin-right: 8px;
}

#form-status {
    margin-top: 15px;
    font-weight: bold;
    height: 20px;
}

/* Contact Links Styles */
.contact-links {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-width: 300px;
    background: rgba(13, 31, 45, 0.6);
    padding: 15px;
    border-radius: 10px;
    margin: 0;
    justify-content: center;
    align-items: center;
    gap: 20px;
}


.social-icons {
    display: flex;
    gap: 50px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(8, 8, 57, 0.6);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: white;
    color: #080839;
    transform: translateY(-5px);
}

.contact-message {
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
    
    #Contact {
        padding-left: 20px;
        padding-right: 20px;
    }
}
.refresh-stats-btn {
    background: rgba(8, 8, 57, 0.6);
    border: 1px solid #1074bd;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    transition: all 0.3s ease;
}

.refresh-stats-btn:hover {
    background: rgba(0, 229, 255, 0.15);
    transform: translateY(-2px);
}

.refresh-stats-btn i {
    margin-right: 5px;
}

/* Add to the bottom of your styles.css file */

/* Media Queries for Responsive Design */

/* Large Tablets and Small Desktops */
/* =====================
   RESPONSIVE STYLES 
   ===================== */

/* Mobile Navigation Toggle Button (Hidden by Default) */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    cursor: pointer;
    background: rgba(8, 8, 57, 0.7);
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.menu-icon {
    width: 30px;
    height: 24px;
    position: relative;
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 2px;
}

/* Transform to X when opened */
.change .bar1 {
    transform: translate(0, 9px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -9px) rotate(45deg);
}

/* Large Tablets and Small Desktops */
@media screen and (max-width: 1024px) {
    #navbar {
        width: 80%;
    }
    
    #About, #Projects, #Contact, #Github {
        padding-left: 5%; 
        margin-right: 5%;
    }
    
    #Home {
        width: 60%;
        margin-left: 20px;
    }
    
    #home-img img {
        width: 350px;
        height: 350px;
    }
}

/* Medium Tablets and Below */
@media screen and (max-width: 768px) {
    html, body{
        max-width: 100%;
    }
    /* Mobile Menu Setup */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 10001;
        background: rgba(8, 8, 57, 0.7);
        border-radius: 5px;
        padding: 10px;
    }
    
    #navbar {
        position: fixed;
        top: 0;
        /* left: 0; Start from left edge */

        width: 100%; /* Full width */
        height: 100vh;
        background: rgba(8, 8, 57, 0.95);
        display: none; /* Hidden by default */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999; /* Below the toggle button */
        text-align: center;
        padding: 50px 20px; /* Padding for the menu */

    }
     #navbar::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(8, 8, 57, 0.95);
        z-index: -1;
    }
    #navbar ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #navbar li {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }
    
    #navbar li a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        width: 80%;
        margin: 0 auto;
    }
    
    /* Home Section Layout */
    #main-home {
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    #Home {
        width: 100%;
        margin: 20px 0;
        margin-left: 12px;
        text-align: center;
        padding: 0 20px;
        text-align: center;
        box-sizing: border-box;
    }
    
    #Home h1 {
        font-size: 64px;
        text-align: center;
    }
    
    #name {
        font-size: 48px;
    }
    
   #home-img {
        position: relative;
        z-index: 1;
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0; /* Lower than the menu z-index */
    }
    
    #home-img img {
        margin-left: 40px;
        width: 300px;
        height: 300px;
        margin: 60px auto 0;
    }
    
    #description {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* width: 100%; */
        margin: 0;
    }
    
    #description p {
        text-align: center;
        font-size: 14px;
        margin: 10px 0;
        margin-right: 0;
        margin-left: 0;
        box-sizing: border-box;
    }
    
    #social-links {
        justify-content: center;
        width: 100%;
    }
    #About {
        margin-left: 0;
        padding: 80px 20px 40px;
        width: 100%;
        box-sizing: border-box;
    }
    #About h2 {
        text-align: center;
        width: 100%;
    }
    
    /* Fix all other section alignments */
    section {
        padding: 80px 20px 40px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    /* Content Section Layout */
    #About, #Projects, #Contact, #Github {
        margin-left: 40px;
        padding: 80px 20px 40px 40px;
        margin-top: 0;
        margin-right: 0;
        width: calc(100% - 20px);
        min-height: auto;
        height: auto;
        overflow: visible;
        box-sizing: border-box;
    }
    .contact-container{
        margin-left: 16px;
    }
    
    /* Section Headers */
    #About h2, #Projects h2, #Contact h2, #Github h2 {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    /* Full Width Content */
    #About p, .project-container, .github-stats-container, .contact-container {
        max-width: 100%;
        padding: 20 20px;
    }
    
    /* Containers and Cards */
    .github-stats-container, .contact-form, .contact-links {
        margin: 20px 0;
        width: 100%;
        padding: 15px;
        box-sizing: border-box;
    }
    .github-stats-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    
    .github-card {
        /* width: 100%; */
        width: 100%;
        max-width: 450px;
        margin: 10px auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .github-stats-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .calendar {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        overflow-x: auto;
    }
    .calendar-card {
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    /* Language distribution visualization */
    .most-used-languages {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        text-align: center;
    }
    /* Form Elements */
    .form-group input, .form-group textarea {
        width: 100%;
        margin-right: 0;
        box-sizing: border-box;
    }
    body.menu-open #home-img {
        visibility: hidden;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 20px 15px;
        box-sizing: border-box;
    }
    
    /* Animation Adjustments */
    #handwriting-svg {
        width: 80%;
        height: auto;
    }
}

/* Small Tablets and Large Phones */
@media screen and (max-width: 600px) {
    #navbar {
        width: 95%;
        padding: 8px 0;
    }
    
    #navbar ul {
        gap: 5px;
    }
    
    #navbar li a {
        font-size: 14px;
        padding: 6px 8px;
    }
    
    #Home h1 {
        font-size: 48px;
    }
    
    #name {
        font-size: 36px;
    }
    
    #home-img img {
        width: 250px;
        height: 250px;
    }
    
    #About, #Projects, #Contact, #Github {
        padding: 70px 15px 30px 15px;
    }
    
    .calendar {
        overflow-x: auto;
    }
    
    .github-stats-container {
        padding: 10px;
    }
}

/* Mobile Phones */
@media screen and (max-width: 480px) {
    #Home h1 {
        font-size: 36px;
    }
    
    #name {
        font-size: 28px;
    }
    
    #description p {
        font-size: 16px;
    }
    
    #home-img img {
        width: 200px;
        height: 200px;
    }
    
    #About h2, #Projects h2, #Contact h2, #Github h2 {
        font-size: 28px;
    }
    
    #About p {
        font-size: 16px;
        padding: 15px;
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .form-group input, .form-group textarea {
        padding: 8px;
    }
    
    .submit-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    #handwriting-svg {
        width: 90%;
    }
}

/* Very Small Phones */
@media screen and (max-width: 360px) {
    #Home h1 {
        font-size: 32px;
    }
    
    #name {
        font-size: 24px;
    }
    
    #home-img img {
        width: 180px;
        height: 180px;
    }
    
    #social-links .download-resume {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .social-icons {
        gap: 15px;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
    }
}
/* Add this to your styles.css file */

/* Common styles for all new sections */
#Skills, #Publications, #Recommendations {
    margin-right: 20px;
    padding-left: 45%; /* Make space for the sidebar */
    min-height: 100vh; /* Make sections full height */
    padding-top: 100px; /* Space from the top */
    margin-top: 90px; /* Space from the bottom */
    font-family: 'Courier New', Courier, monospace; /* Consistent font */
    color: white;
}

#Skills h2, #Publications h2, #Recommendations h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 900;
    color: white;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    background: rgba(13, 31, 45, 0.6);
    border-radius: 10px;
    padding: 30px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(8, 8, 57, 0.6);
    border-radius: 10px;
    padding: 15px;
    transition: transform 0.3s, background 0.3s;
}

.skill-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 229, 255, 0.2);
}

.skill-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #00E5FF;
}

.skill-item span {
    text-align: center;
    color: white;
    font-size: 14px;
}

/* Publications Section */
.publications-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.publication-card {
    background: rgba(13, 31, 45, 0.6);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.publication-card:hover {
    transform: translateY(-5px);
}

.publication-content h3 {
    color: #00E5FF;
    margin-bottom: 10px;
    font-size: 22px;
}

.publication-journal {
    color: #ffffff;
    font-style: italic;
    margin-bottom: 8px;
}

.publication-authors {
    color: #bbbbbb;
    margin-bottom: 15px;
}

.publication-abstract {
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.publication-link {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 8px 15px;
    font-size: 16px;
    border: solid 2px #00E5FF;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.publication-link:hover {
    background-color: rgba(0, 229, 255, 0.2);
    transform: translateY(-2px);
}

/* Recommendations Section */
.recommendations-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.recommendation-card {
    background: rgba(13, 31, 45, 0.6);
    border-radius: 10px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.recommendation-card:hover {
    transform: translateY(-5px);
}

.quote-icon {
    position: absolute;
    top: 15px;
    left: 20px;
    color: rgba(0, 229, 255, 0.2);
    font-size: 24px;
}

.recommendation-content {
    margin-left: 25px;
    margin-bottom: 20px;
    color: white;
    line-height: 1.6;
    font-style: italic;
}

.recommendation-author {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 229, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-right: 15px;
}

.author-info h4 {
    margin: 0;
    color: #00E5FF;
    font-size: 18px;
}

.author-info p {
    margin: 5px 0 0;
    color: #bbbbbb;
    font-size: 14px;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
    #Skills, #Publications, #Recommendations {
        padding-left: 5%;
        margin-right: 5%;
    }
}

@media screen and (max-width: 768px) {
     .refresh-stats-btn {
        margin-left: auto;
        margin-right: auto;
    }
    #Skills, #Publications, #Recommendations {
        margin-left: 20px;
        padding: 80px 20px 40px 20px;
        margin-top: 0;
        margin-right: 0;
        width: calc(100% - 40px);
    }
    
    #Skills h2, #Publications h2, #Recommendations h2 {
        position: relative;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .skills-container {
        justify-content: center;
    }
}

@media screen and (max-width: 600px) {
    .skill-item {
        width: 100px;
        height: 100px;
    }
}
/* Add this to your styles.css file */
.skill-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 229, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 229, 255, 0.2) 100%);
    transition: top 0.5s ease;
    z-index: 1;
}

.skill-item:hover::before {
    top: 0;
}

.skill-item i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.2);
    color: #ffffff;
}

.skill-item span {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-item:hover span {
    transform: translateY(3px);
    color: #00E5FF;
}
/* Add this to your styles.css */
#About h2, #Skills h2, #Projects h2, #Publications h2, #Recommendations h2, #Github h2, #Contact h2 {
    position: relative;
    display: inline-block;
}

#About h2::after, #Skills h2::after, #Projects h2::after, #Publications h2::after, 
#Recommendations h2::after, #Github h2::after, #Contact h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, #00E5FF, transparent);
    transition: width 0.6s ease;
}

#About:hover h2::after, #Skills:hover h2::after, #Projects:hover h2::after, 
#Publications:hover h2::after, #Recommendations:hover h2::after, 
#Github:hover h2::after, #Contact:hover h2::after {
    width: 100%;
}
/* Add this to your styles.css */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: rgba(13, 31, 45, 0.6);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 229, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 57, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 229, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
    line-height: 0;
    padding: 0;
}
.project-link.fas.fa-external-link-alt {
    position: relative;
    top: 0;
    left: 0;
    transform: translate(0, 0);
}
/* More aggressive fix for the external link icon */
.project-link:nth-child(2), 
.project-link:has(.fa-external-link-alt) {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-link:nth-child(2) i, 
.project-link:has(.fa-external-link-alt) i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    line-height: 1;
    width: 1em;
    height: 1em;
    display: block;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    background: #00E5FF;
    color: #080839;
}

.project-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin: 0 0 15px 0;
    color: #00E5FF;
}

.project-info p {
    margin: 0 0 20px 0;
    color: #ffffff;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-tech span {
    font-size: 12px;
    padding: 5px 10px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 20px;
    color: #00E5FF;
    font-family: 'Courier New', Courier, monospace;
    font-style: normal;
}
.project-tech .icon {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}
/* Enhance your existing publication cards */
.publication-card {
    position: relative;
    border-left: 3px solid transparent;
    transition: border-left 0.3s ease, transform 0.3s ease;
}

.publication-card:hover {
    border-left: 3px solid #00E5FF;
}

.publication-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.publication-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #00E5FF;
    transition: width 0.3s ease;
    z-index: -1;
    opacity: 0.2;
}

.publication-link:hover:before {
    width: 100%;
}

.publication-link:hover {
    color: #fff;
}
/* Add this to your styles.css */
.recommendations-slider {
    position: relative;
    padding: 20px 0 50px; /* Add padding at the bottom for controls */
    margin-bottom: 30px;
}

.slider-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    z-index: 10;
    background: rgba(8, 8, 57, 0.6);
    padding: 10px;
    border-radius: 30px;
    width: 200px;
    margin: 0 auto;
}

.slider-btn {
    background: transparent;
    border: none;
    color: #00E5FF;
    font-size: 20px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.slider-btn:hover {
    background: rgba(0, 229, 255, 0.2);
}

.slider-dots {
    display: flex;
    gap: 10px;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #00E5FF;
    transform: scale(1.2);
}

.recommendations-container {
    position: relative;
    height: auto;
    min-height: 280px;
    overflow: visible;
    margin-bottom: 30px;
}

.recommendation-card {
    position: absolute;
    width: calc(100% - 50px);
    left: 0;
    right: 0;
    margin: auto;
    opacity: 0;
    transform: translateX(50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
    padding-bottom: 30px; /* Ensure there's space below the card for controls */
}

.recommendation-card.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}
/* Add this to your styles.css file */
.gradient-text {
    background: linear-gradient(to right, #00E5FF, #007bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-shift 8s ease infinite;
    display: inline-block;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Apply to your main title */
#Home h1 span#name {
    background-size: 200% auto;
}
/* Add these to your styles.css */
.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #8b9cb5;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -20px;
    left: 0;
    font-size: 12px;
    color: #00E5FF;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid rgba(16, 215, 250, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.submit-btn:hover::before {
    left: 100%;
}
/* Add interactive hover effects to GitHub cards */
.github-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(0, 229, 255, 0.1);
}

.github-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.15);
}

/* Style GitHub calendar */
.github-calendar-img {
    border: 1px solid rgba(0, 229, 255, 0.2);
    transition: filter 0.3s ease;
}

.github-calendar-img:hover {
    filter: brightness(1.1) contrast(1.1);
}



/* Add to your styles.css */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Update your particle styling */
.particle {
    position: absolute;
    background-color: rgba(0, 229, 255, 0.4); /* Brighter cyan color */
    border-radius: 50%;
    pointer-events: none;
    z-index: 5; /* Make sure particles are visible above other elements */
    box-shadow: 0 0 5px 2px rgba(0, 229, 255, 0.3); /* Add glow effect */
}
/* Add this to your styles.css file */
#Github {
    position: relative;
}

#Github h2 {
    display: inline-block;
    margin-right: 20px;
}

.refresh-stats-btn {
    position: relative;
    display: block;  /* Changed from inline to block */
    margin-top: 15px;  /* Add spacing below the heading */
    margin-bottom: 25px;  /* Add spacing before stats content */
    background: linear-gradient(45deg, rgba(8, 8, 57, 0.8), rgba(13, 31, 45, 0.8));
    color: white;
    border: 1px solid rgba(0, 229, 255, 0.3);
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    transition: all 0.3s ease;
    max-width: 200px;  /* Limit the width */
}

.refresh-stats-btn:hover {
    background: linear-gradient(45deg, rgba(13, 31, 45, 0.8), rgba(8, 8, 57, 0.8));
    border-color: rgba(0, 229, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 229, 255, 0.2);
}

.refresh-stats-btn i {
    margin-right: 8px;
    transition: transform 0.5s ease;
}

.refresh-stats-btn:hover i {
    transform: rotate(180deg);
}
/* Add this to your styles.css file */
/* Add this to your styles.css file */
/* Add this to your styles.css file */
.site-footer {
  background: rgba(8, 8, 57, 0.8);
  padding: 15px 0;
  text-align: center;
  margin-top: 50px;
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  font-family: 'Courier New', Courier, monospace;
  width: 100%;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  left: 0;
  right: 0;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 20px;
  padding-right: 20px;
}

.site-footer p {
  color: #bbbbbb;
  margin: 5px 0;
  font-size: 14px;
}

/* Social media icons styling */
.social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
}

.social-links a {
  color: #bbbbbb;
  font-size: 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
  color: #00E5FF;
  transform: translateY(-3px);
  background: rgba(0, 229, 255, 0.1);
}

/* Responsive adjustment */
@media screen and (max-width: 768px) {
  .site-footer {
    padding: 10px 0;
    margin-top: 30px;
  }
  
  .social-links {
    gap: 15px;
  }
}