/* Create CSS custom properties for consistent colors */
:root {
    --primary-color: #4a9eff;
    --primary-hover: #5cacff;
    --background-dark: #181414;
    --text-light: #efefef;
    --text-light-transparent: #efefefed;
    --border-grey: #808080;
    /* Light theme colors */
    --light-bg: #ffffff;
    --light-text: #333333;
    /* Dark theme colors (current) */
    --dark-bg: #181414;
    --dark-text: #efefef;
    /* Theme colors */
    --bg-color: var(--dark-bg);
    --text-color: var(--dark-text);
}

body {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: normal;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 80px; /* Adjust this value based on your navbar height */
}
html {
    scroll-behavior: smooth;
}
/* Sticky Navbar */
.whole-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background-dark);
    z-index: 1000;
    padding: 15px 100px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.1);
    backdrop-filter: blur(8px);
}

/* Navigation styles */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-right {
    width: 100%;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navigation li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navigation li a:hover {
    color: var(--primary-color);
}



/* Adjust main content for sticky header */
body {
    padding-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whole-header {
        padding: 15px 20px;
    }

    .navigation {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .whole-header {
        padding: 15px;
    }

    .navigation {
        gap: 1.5rem;
        font-size: 0.9rem;
    }
}

/* Header */
.heading {
    background-color: #181414;
    color: #efefef;
    margin: 30px 100px 0;
    text-align: left;
    font-size: 50px;
}

.dot {
    color: #4a9eff;
    font-size: 50px;
    margin: 0 100px;
}

/* Images */
.stackImagesC {
    margin-left: auto;
    margin-right: auto;
    display: inline;
    justify-content: center;
    text-align: center;
    padding: 20px 100px;
    padding-left: 20px;
    padding-right: 20px;
}
.StackImagesM {
    width: auto;
    height: auto;
    padding-left: 20px;
    padding-right: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    min-height: 50px;
    contain: layout size;
    content-visibility: auto;
}

/* About Button */
.button-padding {
    text-align: center;
    padding: 20px 0 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.about-button {
    position: relative;
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    padding: 12px 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
    overflow: hidden;
}

.about-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
    opacity: 0;
}

.about-button:hover {
    background: rgba(74, 158, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.2);
    border-radius: 25px;
}

.about-button:hover::before {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.about-button:active {
    transform: translateY(0);
}

/* More Projects Button */
.ProjectBtn-padding {
    padding: 1px 1px;
    text-align: left;
}
.ProjectBtn-button {
    background-color: transparent;
    color: rgb(234, 228, 228);
    font-size: medium;
    border: 1px solid grey;
    border-radius: 20px;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}
.ProjectBtn-button:hover {
    background-color: lightgrey;
    color: #333333;
}

/* Section Divider */
.section-divider {
    border: none;
    margin: 50px 100px;
    height: 1px;
    background-image: linear-gradient(
        to right,
        transparent,
        rgba(74, 158, 255, 0.2),
        rgba(74, 158, 255, 0.5),
        rgba(74, 158, 255, 0.2),
        transparent
    );
}

/* Make divider responsive */
@media (max-width: 768px) {
    .section-divider {
        margin: 40px 50px;
        background-image: linear-gradient(
            to right,
            transparent,
            rgba(74, 158, 255, 0.3),
            transparent
        );
    }
}

@media (max-width: 480px) {
    .section-divider {
        margin: 30px 20px;
    }
}

/* About Section */
.about-section {
    margin: 30px 100px;
    text-align: left;
    color: #efefef;
}
.about-title {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.about-content {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 40px;
    color: #efefefed;
}

/* Socials */
.social_section {
    margin: 20px 100px;
    color: #efefefed;
}
.social_nest {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #efefefed;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

/* Social Icons Section */
.social-section-top {
    margin: 0 100px;
    display: flex;
    justify-content: center;
}

.linkedin-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

.linkedin-link {
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.linkedin-custom-badge {
    background: transparent;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(74, 158, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: block;
    filter: brightness(0.9);
    transition: all 0.3s ease;
    object-fit: contain;
}

/* Hover Effects */
.linkedin-link:hover {
    transform: translateY(-2px);
}

.linkedin-link:hover .linkedin-custom-badge {
    background: rgba(74, 158, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.15);
}

.linkedin-link:hover .social-icon {
    filter: brightness(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .social-section-top {
        margin: 0 50px;
    }
    
    .linkedin-section {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .social-section-top {
        margin: 0 30px;
    }
}

/* Projects */
.heading-section {
    margin: 30px 100px;
    text-align: left;
    color: #efefef;
}
.project-card-section {
    padding: 5px 100px;
}
.project-card {
    border: 1px solid var(--border-grey);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: var(--background-dark);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.1);
}
.project-title {
    margin: 0 0 4px 0;  /* Reduced bottom margin */
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 500;
}
.project-description {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 5px;
    color: #ffffff;
}

/* Project Button Padding */
.ProjectBtnPadding {
    padding: 5px 100px;
}

/* Style for the first project card */
.project-card-section:first-child .project-card {
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(74, 158, 255, 0.2);
}

/* Hover effect for the first card */
/* .project-card-section:first-child .project-card:hover {
    border: 1px solid var(--primary-hover);
    box-shadow: 0 0 25px rgba(74, 158, 255, 0.4);
    transform: translateY(-2px);
} */

/* Skills Section */
.skills-section {
    margin: 50px 100px;
    background: var(--background-dark);
    border-radius: 10px;
}

.skills-subtitle {
    color: var(--text-light-transparent);
    font-size: 0.9rem;
    margin-top: 5px;
    font-style: italic;
    opacity: 0.8;
}

/* Skills Grid Redesign */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 20px 0;
    justify-content: center;
}

.skill-item {
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    padding: 6px 15px;
    font-size: 1rem;
    color: var(--text-light);
    background: transparent;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(74, 158, 255, 0.1);
}

.skill-rating {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-left: 5px;
    opacity: 0.9;
}

/* Remove old skill bar styles */
.skill-bar, .progress, .progress-bar {
    display: none;
}

@media (max-width: 768px) {
    .skills-section {
        margin: 30px 40px;
    }
    
    .skills-grid {
        gap: 0.8rem;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .skills-section {
        margin: 20px 30px;
    }
}

/* Update existing heading-title styles if needed */
.heading-title {
    margin-bottom: 0;
}

/* Responsive Styling */
@media (max-width: 1200px) {
    .about-section {
        margin: 20px 80px;
    }
    .social_section {
        margin: 20px 80px;
    }
    .heading-section {
        margin: 20px 80px;
    }
    .project-card-section {
        padding: 3px 80px;
    }
    .name {
        font-size: 20px;
    }
    .heading {
        font-size: 40px;
        margin: 20px 80px;
    }
    .dot {
        font-size: 40px;
    }
    .SingleStackImages {
        width: 40px;
        height: 40px;
    }
    .ProjectBtnPadding {
        padding: 5px 80px;
    }
    .skills-section {
        margin: 50px 80px;
    }
    
}

/* Mobile view */
@media (max-width: 768px) {
    .about-section {
        margin: 10px 40px;
    }
    .social_section {
        margin: 20px 65px;
    }
    .heading-section {
        margin: 10px 40px;
    }
    .project-card-section {
        padding: 5px 40px;
    }
    .name {
        font-size: 16px;
    }
    .heading {
        font-size: 30px;
        margin: 10px 40px;
    }
    .dot {
        font-size: 30px;
    }
    .SingleStackImages {
        width: 35px;
        height: 35px;
    }
    .navbar-right {
        gap: 8px;
    }
    
    .about-button {
        width: 180px;  /* Slightly smaller width */
        margin: 0 auto;
        padding: 10px 25px;  /* Reduced padding */
        font-size: 0.9rem;  /* Smaller font */
    }
    .ProjectBtnPadding {
        padding: 5px 65px;
    }
    .skills-section {
        margin: 50px 40px;
    }
    
}

/* Hover link animation */
a {
    color: #5a6e79;
    position: relative;
    text-decoration: none;
}
a:link {
    color: #5a6e79;
    position: relative;
    text-decoration: none;
}
a:visited {
    color: #5a6e79;
    position: relative;
    text-decoration: none;
}
a:link,
a:visited {
    color: #5a6e79;
    position: relative;
    text-decoration: none;
}
a::before,
a:visited {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    border-radius: 4px;
    background-color: #5a6e79;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
}
a:hover::before,
a:visited {
    transform-origin: left;
    transform: scaleX(1);
}

/* Navigation hover effect */
.navigation li a:hover {
    color: #4a9eff;
    transition: color 0.3s ease;
}

/* Section headings (like "Projects", "About_Me", etc.) */
.heading-title h3 {
    color: #4a9eff;
}

/* Links in project descriptions */
.project-description a {
    color: #4a9eff !important; /* Override the existing link color */
}
.project-description a:hover {
    color: #5cacff !important;
}

/* Name in navbar */
.name:hover {
    color: #4a9eff;
    cursor: pointer;
    transition: color 0.3s ease;
}



/* Improve mobile layout */
@media (max-width: 480px) {
    .heading {
        font-size: 24px;
        margin: 20px 40px 0;
    }
    
    .project-card {
        padding: 15px;
    }
    .button-padding {
        padding: 15px 0 60px;  /* Even more bottom padding for smaller screens */
        flex-direction: column;
    }
    
    .about-button {
        width: 160px;  /* Even smaller for mobile */
        padding: 8px 20px;  /* Further reduced padding */
        font-size: 0.85rem;  /* Slightly smaller font */
    }

    .whole-header {
        padding: 15px 15px;
    }

    body {
        padding-top: 50px;
    }
}

/* Reduce paint operations */
.project-card {
    will-change: transform;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Add this to your stylesheet */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility - Visually hidden elements */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Improve focus visibility */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Custom focus styles for interactive elements */
.project-card:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color);
}

.SingleStackImages {
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    display: block;
    flex-shrink: 0;
}

/* Ensure LinkedIn badge has fixed dimensions */
.LI-profile-badge {
    width: 100%;
    max-width: 400px;
    height: auto;
    min-height: 200px;
}

/* Use GPU acceleration for animations */
.project-card {
    transform: translateZ(0);
    will-change: transform;
}

/* Custom LinkedIn Badge */
.linkedin-section {
    text-align: left;
    max-width: 800px;
    margin: 0rem 0px;
    padding: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.linkedin-custom-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-dark);
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.3s ease;
    min-width: 10px;
    cursor: pointer;
    text-decoration: none;
}

.linkedin-custom-badge:hover {
    background-color: lightgrey;
    color: #333333;
    transform: translateY(-2px);
}

/* Responsive adjustments for social buttons */
@media (max-width: 768px) {
    .linkedin-section {
        margin: 0rem 0px;
        gap: 0.8rem;
    }
    
    .linkedin-custom-badge {
        font-size: 0.9rem;
        min-width: 10px;
        
    }
}

/* Ensure consistent icon sizes */
.linkedin-custom-badge img {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.linkedin-custom-badge span {
    white-space: nowrap;
}

/* Update heading style */
#linkedin-title {
    color: var(--primary-color);
    font-size: 20px;
    margin: 0 100px 1.5rem;
    font-weight: normal;
}

/* Remove link underline animation for social buttons */
.linkedin-link::before {
    display: none;
}

/* Match other section headings */
.heading-title h3,
#linkedin-title {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    #linkedin-title {
        margin: 0 40px 1.5rem;
    }
}

/* Animation for skill bars */
@keyframes fillBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Stats container */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.stat-item h4 {
    margin: 5px 0 0;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: normal;
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .stats-container {
        gap: 2rem;
        margin: 25px 0;
    }

    .stat-item {
        min-width: 100px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-item h4 {
        font-size: 0.9rem;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .stats-container {
        gap: 1.5rem;
        margin: 20px 0;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-item h4 {
        font-size: 0.8rem;
    }
}

/* Project Filters */
.filter-container {
    display: flex;
    gap: 1rem;
    margin: 0 100px 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--text-light);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Timeline Styles */
.timeline-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 50%;
    padding: 0 2rem;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: rgba(30, 30, 30, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.timeline-content h3 {
    margin: 0 0 1rem;
    color: var(--text-light);
}

.timeline-content p {
    margin: 0;
    color: var(--text-light-transparent);
}

/* Mobile responsive timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 1rem;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 22px;
    }
}

/* Projects Header Section */
.projects-header {
    margin: 50px 100px 20px;
    text-align: center;
    background: var(--background-dark);
    padding: 40px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.projects-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.projects-header h2 {
    color: var(--text-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.projects-header p {
    color: var(--text-light-transparent);
    margin-bottom: 2rem;
}

.featured-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.featured-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.2);
}

.featured-button .arrow {
    transition: transform 0.3s ease;
}

.featured-button:hover .arrow {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .projects-header {
        margin: 30px 20px;
        padding: 30px 20px;
    }
    
    .projects-header h2 {
        font-size: 1.5rem;
    }
}

.heading-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.view-all-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.view-all-button:hover {
    background: var(--primary-hover);
}

@media (max-width: 768px) {
    .heading-flex {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .view-all-button {
        width: 100%;
        justify-content: center;
    }
}

/* GitHub Dashboard */
.github-dashboard {
    margin: 50px 80px;
    padding: 20px;
    background: var(--background-dark);
    border-radius: 10px;
}

.github-container {
    margin-top: 20px;
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.github-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stat-label {
    display: block;
    color: var(--text-light-transparent);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-value {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.recent-activity {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.recent-activity h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.activity-list {
    color: var(--text-light);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-icon {
    font-size: 1.2rem;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.activity-date {
    font-size: 0.8rem;
    color: var(--text-light-transparent);
}

.top-repositories {
    margin-top: 2rem;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.top-repo {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.top-repo:hover {
    transform: translateY(-2px);
}

.top-repo h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.top-repo p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.repo-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-light-transparent);
    font-size: 0.8rem;
}

/* GitHub Profile Button */
.github-view-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;
}

.github-view-button:hover {
    background-color: var(--primary-hover);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Update heading-flex for GitHub section */
.github-dashboard .heading-flex {
    display: flex;
    justify-content: space-between;
    
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Add styling for medium screens */
@media (max-width: 768px) {
    .github-dashboard {
        margin: 30px 65px;
    }
    
    .github-view-button {
        width: 200px; /* Set a fixed width for medium screens */
    }
}

/* Mobile view styling */
@media (max-width: 600px) {
    .github-dashboard .heading-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .github-view-button {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .github-dashboard {
        margin: 30px 20px;
    }
}

/* Footer Styles */
.footer {
    margin-top: 50px;
    padding: 20px;
    background: var(--background-dark);
    border-top: 1px solid rgba(74, 158, 255, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-light-transparent);
    font-size: 0.9rem;
}

.footer-content p {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .footer {
        margin-top: 30px;
        padding: 15px;
    }
    
    .footer-content {
        font-size: 0.8rem;
    }
}

.error-message {
    color: var(--text-light-transparent);
    text-align: center;
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
}

.github-stats-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    margin-bottom: 20px;
}

.github-stat-card {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .github-stats-cards {
        padding: 10px;
    }
    
    .github-stat-card {
        width: 100%;
    }
}

/* Privacy Policy Styles */
.privacy-content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    color: var(--text-light);
}

.policy-section {
    margin-bottom: 40px;
    background: rgba(30, 30, 30, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(74, 158, 255, 0.1);
}

.policy-section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.policy-section ul {
    list-style-type: none;
    padding-left: 20px;
}

.policy-section ul li {
    margin: 10px 0;
    position: relative;
}

.policy-section ul li:before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: -20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-link {
    color: var(--text-light-transparent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Tech Stack Pills */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 12px 0 15px;
}

.tech-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    background: transparent;
    opacity: 0.8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .tech-stack {
        gap: 0.4rem;
        margin: 8px 0 12px;
    }

    .tech-item {
        font-size: 0.75rem;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .tech-stack {
        gap: 0.3rem;
        margin: 4px 0 8px;
    }

    .tech-item {
        font-size: 0.7rem;
        padding: 1px 5px;
        border-radius: 10px;
    }

    .project-card {
        padding: 15px;  /* Reduce card padding on mobile */
    }
}

/* Remove old tech stack styles */
.tech-icon {
    display: none;
}

/* Optimized tooltip */
.tech-icon {
    position: relative;
    cursor: pointer;
}

.tech-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

/* Mobile adjustments for button padding */
@media (max-width: 768px) {
    .button-padding {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }

    .about-button {
        width: 180px;  /* Slightly smaller width */
        margin: 0 auto;
        padding: 10px 25px;  /* Reduced padding */
        font-size: 0.9rem;  /* Smaller font */
    }
}

@media (max-width: 480px) {
    .button-padding {
        padding: 15px 0 ;
    }

    .about-button {
        width: 160px;  /* Even smaller for mobile */
        padding: 8px 20px;  /* Further reduced padding */
        font-size: 0.85rem;  /* Slightly smaller font */
    }
}

.location-subtitle {
    color: var(--text-light-transparent);
    font-size: 1.1rem;
    margin: 10px 100px 0;
    font-weight: normal;
    opacity: 0.8;
}

@media (max-width: 1200px) {
    .location-subtitle {
        margin: 10px 80px 0;
    }
}

/* Make it responsive */
@media (max-width: 768px) {
    .location-subtitle {
        margin: 10px 40px 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .location-subtitle {
        margin: 10px 40px 0;
        font-size: 0.9rem;
    }
}

.social-section-top{
    
    margin: 0 100px;
}

@media (max-width: 1200px) {
    .social-section-top {
        margin: 0 80px;
    }
}

@media (max-width: 768px) {
    .social-section-top {
        margin: 0 40px;
    }
}

@media (max-width: 480px) {
    .social-section-top {
        margin: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

/* Add scroll margin for sections */
#about,
#projects,
.skills-section {
    scroll-margin-top: 100px; /* Adjust this value based on your navbar height plus some padding */
}

@media (max-width: 768px) {
    #about,
    #projects,
    .skills-section {
        scroll-margin-top: 80px; /* Slightly smaller offset for mobile */
    }
}

/* Title styles - for main section titles */
.about-title h2,
.heading-title h3,
.skills-section .heading-title h3 {
    font-size: 1.875rem;  /* 30px */
    font-weight: 500;
    margin-bottom: 30px;  /* 20px */
    font-family: 'IBM Plex Mono', monospace;
    color: var(--primary-color);
}

/* Content text styles */
.about-content p,
.project-description,
.skills-subtitle {
    font-size: 1rem;  /* 16px */
    line-height: 1.6;
    color: var(--text-light);
}

/* Heading styles */
.heading {
    font-size: 2.5rem;  /* 40px */
    
}

/* Location subtitle */
.location-subtitle {
    font-size: 1.125rem;  /* 18px */
}

/* Skills items */
.skill-item {
    font-size: 1rem;  /* 14px */
    
}

/* Project title */
.project-title {
    font-size: 1.25rem;  /* 20px */
}

/* Button text */
.about-button {
    font-size: 1rem;  /* 16px */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-title h2,
    .heading-title h3,
    .skills-section .heading-title h3 {
        font-size: 1.625rem;  /* 26px */
    }

    .about-content p,
    .project-description,
    .skills-subtitle {
        font-size: 0.9375rem;  /* 15px */
    }

    .heading {
        font-size: 1.875rem;  /* 30px */
    }
}

@media (max-width: 480px) {
    .about-title h2,
    .heading-title h3,
    .skills-section .heading-title h3 {
        font-size: 1.5rem;  /* 24px */
    }

    .about-content p,
    .project-description,
    .skills-subtitle {
        font-size: 0.875rem;  /* 14px */
    }

    .heading {
        font-size: 1.5rem;  /* 24px */
    }

    .location-subtitle {
        font-size: 0.875rem;  /* 14px */
    }
}

/* Education Section */
.education-section {
    margin: 50px 100px;
    background: var(--background-dark);
    border-radius: 10px;
}

.education-content {
    padding: 1rem 0;
}

.education-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0rem;
}

.education-main {
    flex: 1;
}

.education-item h4 {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 0;
    margin-bottom: 0.5rem;
}

.education-details {
    text-align: right;
    min-width: 200px;
}

.education-item .location,
.education-item .duration {
    margin-top: 0px;
    font-size: 0.875rem;
    color: var(--text-light-transparent);
    display: inline-block;
}



.education-item .institution {
    font-size: 1rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
    display: block;
}

@media (max-width: 1200px) {
    .education-section {
        margin: 50px 80px;
    }
}

@media (max-width: 768px) {
    .education-section {
        margin: 40px 40px;
    }

    .education-item {
        padding: 1rem 0rem;
    }

    .education-item h4 {
        font-size: 1.125rem;
    }

    .education-details {
        min-width: 160px;
    }

    .education-item .location,
    .education-item .duration {
        font-size: 0.875rem;
    }

    .education-item .institution {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .education-section {
        margin: 30px 30px;
    }

    .education-item {
        padding: 0rem;
        flex-direction: column;
    }

    .education-details {
        text-align: left;
        min-width: auto;
        margin-top: 0.5rem;
    }

    .education-item h4 {
        font-size: 1rem;
    }

    .education-item .location,
    .education-item .duration,
    .education-item .institution {
        font-size: 0.875rem;
    }
}
