/* CSS Variables */
:root {
    --primary-color: #00ff88;
    --secondary-color: #ff6b6b;
    --accent-color: #4ecdc4;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #888888;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --gradient-1: linear-gradient(135deg, #667eeab2 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: transparent;/*rgba(10, 10, 10, 0.95);*/
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section with Gaming Setup Background */
.hero-section {
    min-height: 100vh;
    background: url('https://imgs.search.brave.com/ntvUgvtbzcdH6zcGrB5bWC8l-n1X20M7rvYY5Hpv4Ek/rs:fit:860:0:0:0/g:ce/aHR0cHM6Ly93YWxs/cGFwZXJzLmNvbS9p/bWFnZXMvaGQvcGMt/Z2FtaW5nLXNldHVw/LXJnYi00ay1mdDF5/bTM3eWp5YjdscDE5/LmpwZw') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.greeting {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-location i {
    color: var(--primary-color);
}

.hero-buttons {
  display: flex;
  justify-content: space-between; /* Push buttons to edges */
  max-width: 500px;               /* Limit container width */
  margin: 0 auto 0 auto;          /* Center container horizontally */
  gap: 1rem;                     /* Space between buttons */
  flex-wrap: nowrap;
}

/* Buttons */
/* --- Corrected Button Styles --- */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    
    /* ADD THESE TWO LINES FOR THE RIPPLE EFFECT */
    position: relative;
    overflow: hidden;
}

/* Add this new rule for the ripple span */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none; /* Prevents the ripple from interfering with other clicks */
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.btn-primary {
    background: var(--gradient-3);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(79, 172, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(79, 172, 254, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.3);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-mouse {
    width: 20px;
    height: 35px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
    margin: 0 auto 0.5rem;
}

.scroll-wheel {
    width: 2px;
    height: 8px;
    background: var(--primary-color);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

/* Sections */
.section {
    padding: 6rem 0;
}

/* .about-section {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
}

.projects-section {
    background: var(--dark-bg);
}

.skills-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
}

.contact-section {
    background: var(--dark-bg);
} */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.goals h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.goals-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.goals-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.goals-list i {
    color: var(--primary-color);
    width: 20px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary-color);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;            /* Use inline-flex for proper alignment */
  align-items: center;             /* Vertically center icon and text */
  gap: 0.5rem;                    /* Space between icon and text */
  padding: 0.5rem 1rem;            /* Add consistent padding */
  border-radius: 8px;              /* Rounded corners for button look */
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.project-link i {
  font-size: 1rem;
  line-height: 1;
}

/* Differentiate buttons by style if you want */
.project-link:first-child {
  background-color: var(--primary-color);
  color: var(--text-primary);
}

.project-link:first-child:hover {
  background-color: #00cc6a; /* Slightly darker for hover */
}

.project-link:last-child {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.project-link:last-child:hover {
  background-color: var(--primary-color);
  color: var(--dark-bg);
}


/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow);
}   

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* --- Updated Skills Section: Grid Alignment & Full Icon Colors --- */

/* Use a grid for a clean 2-column layout */
.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: start; /* Aligns tags to the left */
}

/* Align icons and text in category headings */
.skill-category h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Align icons and text inside the skill tags */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Give icons a fixed width for perfect alignment */
.skill-tag i {
    width: 20px;
    text-align: center;
}

/* --- 1. Default Icon Colors --- */
/* Official Brand Icons */
.skill-tag .fab.fa-python { color: #3776AB; }
.skill-tag .fab.fa-java { color: #f89820; }
.skill-tag .fab.fa-js-square { color: #F7DF1E; }
.skill-tag .fab.fa-html5 { color: #E34F26; }
.skill-tag .fab.fa-css3-alt { color: #1572B6; }
.skill-tag .fab.fa-docker { color: #2496ED; }
.skill-tag .fab.fa-git-alt { color: #F05032; }
.skill-tag .fab.fa-aws { color: #FF9900; }
.skill-tag .fab.fa-linux { color: #FCC624; }

/* Custom Brand-like Colors for Generic Icons */
.skill-icon-c { color: #5C96B8; }
.skill-icon-django { color: #0C4B33; }
.skill-icon-fastapi { color: #009688; }
.skill-icon-postman { color: #FF6C37; }
.skill-icon-wireshark { color: #1E67C6; }
.skill-icon-mysql { color: #4479A1; }
.skill-icon-supabase { color: #3ECF8E; } /* Supabase has its own green */

/* When the tag is hovered, the icon inside changes to the text hover color */
.skill-tag:hover i {
    color: var(--dark-bg);
    transition: color 0.3s ease;k
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-info p {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s ease;
        backdrop-filter: blur(20px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid,
    .skills-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .greeting {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .github-stats-section {
    /* background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%); */
      padding: 0 1rem;
}
    
    .project-card,
    .skill-category,
    .contact-card {
        padding: 1.5rem;
    }
}
/* Typing Animation Styles */
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#typewriter-text {
    font-family: 'Inter', monospace;
    font-weight: 500;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
    font-weight: 400;
}

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

/* Updated Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce-arrow 2s infinite;
}

.scroll-down-arrow i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-down-arrow:hover i {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.scroll-down-arrow:active i {
    transform: scale(0.95);
}

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

/* Remove old scroll indicator styles */
.scroll-indicator,
.scroll-mouse,
.scroll-wheel {
    display: none;
}
/* Existing Typing Animation and Scroll Arrow Styles */
.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.4s both;
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

#typewriter-text {
    font-family: 'Inter', monospace;
    font-weight: 500;
}

.cursor {
    color: var(--primary-color);
    animation: blink 1s infinite;
    font-weight: 400;
}

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

/* Updated Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: bounce-arrow 2s infinite;
}

.scroll-down-arrow i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    display: block;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-down-arrow:hover i {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.scroll-down-arrow:active i {
    transform: scale(0.95);
}

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

/* GitHub Stats Section Styling */
/* --- Stats Section Styling --- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* UPDATED STATS CARD STYLES */
.stats-card {
    background: var(--card-bg); /* Applies the new transparent blue background */
    backdrop-filter: blur(10px); /* Keeps the frosted glass effect */
    border: 1px solid var(--border-color); /* Applies the new matching border color */
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    /* The border now glows with the primary green on hover for a nice effect */
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow);
}

.stats-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.languages-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.languages-card img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Responsive Design */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Languages Chart Styling */
.languages-chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.language-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.language-percentage {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}

.language-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
    animation: progressLoad 1.5s ease;
}

.language-progress.python {
    background: linear-gradient(90deg, #3776ab, #4b8bbe);
}

.language-progress.cpp {
    background: linear-gradient(90deg, #00599c, #004482);
}

.language-progress.c {
    background: linear-gradient(90deg, #a8b9cc, #283593);
}

.language-progress.html {
    background: linear-gradient(90deg, #e34f26, #ff6347);
}

.language-progress.powershell {
    background: linear-gradient(90deg, #012456, #5391fe);
}

.language-progress.cython {
    background: linear-gradient(90deg, #fedf5b, #f9ca24);
}

@keyframes progressLoad {
    0% { width: 0%; }
    100% { width: var(--target-width, 0%); }
}

/* Responsive Design for Stats */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .language-info {
        font-size: 0.85rem;
    }
    
    .profile-badge {
        position: static;
        text-align: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .stats-card h3 {
        font-size: 1.1rem;
    }
    
    .stat-label, .language-name {
        font-size: 0.85rem;
    }
    
    .stat-value, .language-percentage {
        font-size: 0.9rem;
    }
    
    .language-bar {
        height: 6px;
    }
}

#network-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;          /* behind everything */
  background: var(--bg-color);
}

/* --- Error Handling Styles for Stat Cards --- */

/* Style for the card when an image fails to load */
.stats-card.error {
    border-color: var(--secondary-color, #ff6b6b); /* Use the red secondary color for the border */
}

/* Style for the fallback error message element */
.error-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-muted, #888888);
    font-size: 0.9rem;
    height: 100%;
}

.error-fallback p {
    margin: 0;
}

.error-fallback span {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color, #ff6b6b);
}

.hero-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem; /* Adjusts space between icons */
    margin-bottom: 3rem; /* Space before the buttons below */
    animation: fadeInUp 1s ease-out 0.7s both; /* Staggered fade-in animation */
}

.hero-socials a {
    color: var(--text-secondary);
    font-size: 1.5rem; /* Size of the icons */
    transition: all 0.3s ease;
}

.hero-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px); /* Lifts the icon slightly on hover */
}
