@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Space+Mono&display=swap');

:root {
    --deep-space: #0a0a0a;
    --cosmic-navy: #1a237e;
    --nebula-purple: #4a148c;
    --starry-night: #0d47a1;
    --silver-stardust: #b0bec5;
    --cosmic-black: #000000;
    --starry-white: #ffffff;
    --nebula-pink: #880e4f;
    --solar-yellow: #ffd600;
    --mars-red: #b71c1c;
    --background-color: var(--deep-space);
    --text-color: var(--starry-white);
    --primary-color: var(--cosmic-navy);
    --secondary-color: var(--nebula-purple);
    --accent-color: var(--silver-stardust);
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Space Background */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars, .twinkling, .nebula {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background: var(--cosmic-black) url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/stars.png') repeat top center;
    z-index: -3;
}

.twinkling {
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/twinkling.png') repeat top center;
    z-index: -2;
    animation: move-twink-back 200s linear infinite;
}

.nebula {
    background: transparent url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1231630/nebula.png') repeat top center;
    z-index: -1;
    opacity: 0.5;
    animation: move-nebula 300s linear infinite;
}

@keyframes move-twink-back {
    from {background-position: 0 0;}
    to {background-position: -10000px 5000px;}
}

@keyframes move-nebula {
    from {background-position: 0 0;}
    to {background-position: 10000px -5000px;}
}

/* Header and Navigation */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    font-family: var(--font-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav ul li a i {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav ul li a:hover::after {
    transform: scaleX(1);
}

/* Main Content */
main {
    padding-top: 60px;
}

section {
    margin-bottom: 1rem;
    padding: 2rem 0;
    position: relative;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    color: var(--starry-white);
    text-shadow: 0 0 10px rgba(176, 190, 197, 0.7);
}

h2 {
    font-size: 2.5rem;
    color: var(--silver-stardust);
    text-align: center;
    text-shadow: 0 0 5px rgba(74, 20, 140, 0.7);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0;
}

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--cosmic-navy), var(--nebula-purple));
    box-shadow: 0 0 20px rgba(176, 190, 197, 0.3);
}

.planet-orbit {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border: 2px solid rgba(176, 190, 197, 0.2);
    border-radius: 50%;
    animation: orbit 20s linear infinite;
}

.planet {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--solar-yellow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--solar-yellow);
}

@keyframes orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-title {
    font-size: 4rem;
    color: var(--starry-white);
    text-shadow: 0 0 10px rgba(176, 190, 197, 0.7);
    margin-bottom: 0.5rem;
    animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
    from { text-shadow: 0 0 5px rgba(176, 190, 197, 0.7); }
    to { text-shadow: 0 0 20px rgba(176, 190, 197, 0.9), 0 0 30px rgba(74, 20, 140, 0.8); }
}

.subtitle {
    font-size: 1.8rem;
    color: var(--silver-stardust);
    margin-bottom: 1rem;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--silver-stardust);
    font-family: var(--font-secondary);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--accent-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--starry-night);
    transform: scale(1.2) rotate(15deg);
}

/* About Section */
.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.space-bubble {
    position: relative;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 300px;
    border: 2px solid var(--nebula-purple);
    box-shadow: 0 0 20px rgba(74, 20, 140, 0.3);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.space-bubble::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    border: 10px solid transparent;
    border-top-color: var(--nebula-purple);
    transform: translateX(-50%);
}

/* Skills Section */
#skills {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

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

.section-title {
    color: var(--solar-yellow);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.section-title i {
    margin-right: 0.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: var(--solar-yellow);
    margin-bottom: 1rem;
}

.skill-category h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.skill-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: var(--text-color);
}

.skill-list li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-list li:hover {
    color: var(--solar-yellow);
    transform: translateX(5px);
}

/* Cosmic background elements */
#skills::before,
#skills::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--solar-yellow) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(30px);
}

#skills::before {
    top: -100px;
    left: -100px;
    animation: float 15s infinite alternate;
}

#skills::after {
    bottom: -100px;
    right: -100px;
    animation: float 20s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .tagline {
        font-size: 1 rem;
    }

    .skill-category,
    .project-card,
    .blog-card {
        padding: 1 rem;
    }

    .achievement-list {
        padding: 1rem;
    }

    .contact-form,
    .contact-info {
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skills-icon,
    .project-icon,
    .blog-icon {
        font-size: 2rem;
    }

    .floating-astronaut {
        width: 60 px;
        height: 60px;
    }

    @media (hover: none) and (pointer: coarse) {
        nav ul li a,
        .btn-download,
        .project-link,
        .read-more,
        form button {
            padding: 0.8rem 1rem;
        }
    
        .scroll-to-top {
            width: 50px;
            height: 50px;
        }
    }

}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .skill-category,
    #skills::before,
    #skills::after {
        animation: none;
    }
}

/* Projects Section */
:root {
    --bg-primary: #0a0a0a;
    --text-primary: #ffffff;
    --accent-color: #ffd54f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover-border: var(--accent-color);
    --tag-bg: rgba(255, 255, 255, 0.1);
  }
  
  .intergalactic-projects {
    padding: 2rem 0;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    position: relative;
    overflow: hidden;
  }
  
  .intergalactic-projects::before,
  .intergalactic-projects::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(30px);
  }
  
  .intergalactic-projects::before {
    top: -100px;
    left: -100px;
    animation: float 15s infinite alternate;
  }
  
  .intergalactic-projects::after {
    bottom: -100px;
    right: -100px;
    animation: float 20s infinite alternate-reverse;
  }
  
  @keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
  }
  
  .section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 213, 79, 0.5);
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(5px);
  }
  
  .project-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 213, 79, 0.1);
  }
  
  .project-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
  }
  
  .project-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .project-details {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  
  .tag {
    background-color: var(--tag-bg);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
  }
  
  .tag:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
  }
  
  .project-link {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: bold;
  }
  
  .project-link:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
  }
  
  @media (max-width: 768px) {
    .project-grid {
      grid-template-columns: 1fr;
    }
  }
  
  /* Accessibility */
  @media (prefers-reduced-motion: reduce) {
    .project-card,
    .intergalactic-projects::before,
    .intergalactic-projects::after {
      animation: none;
      transition: none;
    }
  }
  
  .project-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }

  .more-projects-card {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    height: 210px;
    width: 250px;
    margin: 0 auto;
    margin-top: 7rem;
    text-align: center;
  }
  
  .more-projects-card .project-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
  }
  
  .more-projects-card .project-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .more-projects-card .project-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
  
  @media (max-width: 768px) {
    .project-grid {
      grid-template-columns: 1fr 1fr;
    }
    
    .more-projects-card {
      grid-column: span 2;
    }
  }
  
  @media (max-width: 480px) {
    .project-grid {
      grid-template-columns: 1fr;
    }
    
    .more-projects-card {
      grid-column: span 1;
    }
  }

/* Achievements Section */
.achievement-list {
    list-style-type: none;
}

.achievement-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--mars-red);
    transition: all 0.3s ease;
}

.achievement-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(183, 28, 28, 0.2);
}

.achievement-icon {
    font-size: 2rem;
    color: var(--accent-color);
    min-width: 40px;
    text-align: center;
}

.achievement-content h3 {
    font-size: 1.2rem;
    color: var(--solar-yellow);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.achievement-content p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

/* Resume Section */
.resume-content {
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--nebula-purple);
}

.resume-download {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-download {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--cosmic-navy);
    color: var(--starry-white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.btn-download:hover {
    background-color: var(--nebula-purple);
    transform: translateY(-2px);
}

.resume-section h3 {
    color: var(--solar-yellow);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.resume-item {
    margin-bottom: 1.5rem;
}

.resume-item h4 {
    color: var(--starry-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.resume-date {
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.resume-item ul {
    list-style-type: none;
    padding-left: 1rem;
}

.resume-item ul li {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.resume-item ul li::before {
    content: '•';
    color: var(--solar-yellow);
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Blogs Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--nebula-purple);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(176, 190, 197, 0.1) 50%,
        transparent 100%
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.blog-card:hover::before {
    top: -100%;
    left: -100%;
}

.blog-icon {
    font-size: 3rem;
    color: var(--solar-yellow);
    margin-bottom: 1rem;
}

.blog-card h3,
.blog-card p,
.read-more {
    color: white; /* Set text color to white */
}

.blog-card h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.blog-card p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--solar-yellow);
    transform: translateX(5px);
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}


/* Contact Section */
.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.contact-form {
    flex: 1;
    
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--nebula-purple);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--solar-yellow);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

form input, form textarea {
    background-color: rgba(176, 190, 197, 0.1);
    border: 1px solid rgba(176, 190, 197, 0.2);
    color: var(--text-color);
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

form button {
    background: linear-gradient(45deg, var(--cosmic-navy), var(--nebula-purple));
    border: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(176, 190, 197, 0.2);
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--solar-yellow);
    margin-right: 1rem;
}

.contact-item p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: rgba(10, 10, 10, 0.8);
    color: var(--text-color);
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .space-bubble {
        margin-top: 0.5rem;
    }

    .skill-list,
    .project-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.floating-astronaut {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background: url('https://assets.codepen.io/1231630/astronaut.png') no-repeat center/contain;
    animation: float 6s ease-in-out infinite;
    z-index: 1000;
}

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

.skill-list li i,
.project-icon,
.blog-icon {
    animation: twinkle 2s infinite;
}

.skill-list li, .project-card, .achievement-list li {
    transition: all 0.3s ease;
}

.skill-list li:hover, .project-card:hover, .achievement-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(176, 190, 197, 0.1);
}

/* Cosmic Dust */
.cosmic-dust {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.dust-particle {
    position: absolute;
    background-color: var(--silver-stardust);
    border-radius: 50%;
    opacity: 0;
    animation: dust-float 15s infinite;
}

@keyframes dust-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--deep-space);
}

::-webkit-scrollbar-thumb {
    background: var(--cosmic-navy);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--nebula-purple);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--cosmic-navy);
    color: var(--starry-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}
/* Add these new styles to your existing CSS file */

/* Skill bars */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
}

.skill-bar {
    height: 10px;
    background-color: rgba(176, 190, 197, 0.2);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--solar-yellow);
    width: 0;
    transition: width 1s ease-in-out;
}

/* Project card expansion */
.project-card {
    transition: all 0.3s ease;
}

.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.project-card.expanded .project-details {
    max-height: 500px; /* Adjust this value as needed */
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

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

/* Adjustments for better responsiveness */
@media screen and (max-width: 768px) {
    .skill-list,
    .project-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form,
    .contact-info {
        width: 100%;
    }
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1000;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(10, 10, 10, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }

    nav.show {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 1rem 0;
    }
}

@media print {
    body {
        background: white;
        color: black;
    }
    
    header, footer, .floating-astronaut, .scroll-to-top {
        display: none;
    }
    
    #resume {
        page-break-before: always;
    }
    
    .resume-content {
        border: none;
    }
    
    .btn-download {
        display: none;
    }
}