/* VS Code–Inspired Color Variables */
:root {
    --bg-color: #0F0F0F;
    --primary-color: #007ACC;    /* Main accent color (VS Code blue) */
    --accent-color: #0A84FF;     /* Secondary accent (slightly lighter blue) */
    --text-color: #D4D4D4;       /* Light gray text, typical in VS Code */
    --border-color: #3C3C3C;     /* Dark gray borders/panels */
    --card-bg: #1A1A1A;          /* Slightly lighter than the background */
    --glow-color: rgba(0, 122, 204, 0.4);
  }
  
  /* Global Reset & Base Styles */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  body {
    /* Use a code-like font for that developer feel */
    font-family: 'Fira Code', Consolas, 'Courier New', monospace;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }
  
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 122, 204, 0.35) 50%, transparent 70%);
    animation: globalShimmer 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
  }
  
  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(0, 150, 255, 0.28) 60%, transparent 80%);
    animation: globalShimmer2 20s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
  }
  
  @keyframes globalShimmer {
    0% { 
      transform: translateX(-100%) translateY(-100%) rotate(45deg);
      opacity: 0;
    }
    25% { 
      opacity: 0.3;
    }
    50% { 
      transform: translateX(100%) translateY(100%) rotate(45deg);
      opacity: 0.1;
    }
    75% { 
      opacity: 0.3;
    }
    100% { 
      transform: translateX(-100%) translateY(-100%) rotate(45deg);
      opacity: 0;
    }
  }
  
  @keyframes globalShimmer2 {
    0% { 
      transform: translateX(100%) translateY(-100%) rotate(-45deg);
      opacity: 0;
    }
    25% { 
      opacity: 0.2;
    }
    50% { 
      transform: translateX(-100%) translateY(100%) rotate(-45deg);
      opacity: 0.05;
    }
    75% { 
      opacity: 0.2;
    }
    100% { 
      transform: translateX(100%) translateY(-100%) rotate(-45deg);
      opacity: 0;
    }
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  
  /* Navbar */
  .navbar {
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 20px 20px;
  }
  .navbar .wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    padding: 0.5rem 1rem;
  }
  .logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    color: var(--text-color);
    transition: all 0.3s ease;
  }
  
  .logo:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
  }
  .logo i {
    margin-right: 0.5rem;
  }
  .navlinks {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  .navlinks li a {
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
  }
  .navlinks li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-1px);
  }

  
  /* Mobile Navigation */
  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
  }
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
    .navlinks {
      display: none;
      flex-direction: column;
      width: 100%;
      background: rgba(15, 15, 15, 0.98);
      position: absolute;
      top: 60px;
      left: 0;
      border-top: 1px solid var(--border-color);
      backdrop-filter: blur(15px);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    .navlinks.active {
      display: flex;
    }
    .navlinks li {
      text-align: center;
      border-bottom: 1px solid var(--border-color);
    }
  }
  
  /* Hero Section (Index Page) */
  .hero-header {
    padding: 120px 1rem 50px;
    text-align: center;
    background: linear-gradient(135deg, #1A1A1A, #0F0F0F);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
  }
  .hero-wrapper {
    max-width: 1200px;
    margin: auto;
  }
  .hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .hero-text {
    flex: 1;
    max-width: 600px;
    margin-bottom: 2rem;
  }
  .hero-text h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  .hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  .hero-text p {
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  .btn-group {
    margin: 1.5rem 0;
  }
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin-right: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
    background: rgba(0, 122, 204, 0.1);
    box-shadow: 0 0 10px var(--glow-color);
  }
  .btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 25px var(--glow-color);
    transform: translateY(-2px);
  }

  
  /* Social Icons */
  .social a {
    margin: 0 0.5rem;
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: inline-block;
  }
  .social a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
    text-shadow: 0 0 15px var(--glow-color);
  }
  
  /* Skills Section */
  .skills-section {
    padding: 3rem 0;
    background: var(--bg-color);
    text-align: center;
    margin-top: 60px;
  }
  
  .skills-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
  }
  
  .projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
  }
  
  .research-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
  }
  
  .experience-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
  }
  

  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.15);
  }
  
  .skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .skill-category h3 i {
    font-size: 1.1rem;
  }
  
  .skills-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }
  
  .skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 122, 204, 0.1);
    border: 1px solid rgba(0, 122, 204, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .skill-icon:hover {
    background: rgba(0, 122, 204, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
  }
  
  .skill-icon i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
  }
  
  .skill-icon span {
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
  }
  
  .skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
  }
  
  .skill-level {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .skill-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
  }
  
  .skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
    position: relative;
  }
  
  .skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
  }
  
  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
  }
  
  @media (max-width: 768px) {
    .skills-grid {
      grid-template-columns: 1fr;
      padding: 0 1rem;
    }
    
    .skill-category {
      padding: 1.5rem;
    }
  }
  
  /* Experience & Education Timeline */
  .experience-section {
    padding: 4rem 0;
    background: var(--bg-color);
    text-align: center;
    margin-top: 60px;
  }
  
  .experience-section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
  }
  
  .experience-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
  }
  
  .timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color), var(--primary-color));
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  .timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
  }
  
  .timeline-item:last-child {
    margin-bottom: 0;
  }
  
  .timeline-item:nth-child(odd) {
    animation-delay: 0.1s;
  }
  
  .timeline-item:nth-child(even) {
    animation-delay: 0.2s;
  }
  
  .timeline-item:nth-child(3) {
    animation-delay: 0.3s;
  }
  
  .timeline-item:nth-child(4) {
    animation-delay: 0.4s;
  }
  
  .timeline-item:nth-child(5) {
    animation-delay: 0.5s;
  }
  
  .timeline-item:nth-child(6) {
    animation-delay: 0.6s;
  }
  
  .timeline-item:nth-child(7) {
    animation-delay: 0.7s;
  }
  
  .timeline-item:nth-child(8) {
    animation-delay: 0.8s;
  }
  
  @keyframes fadeInUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: 4px solid var(--bg-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.3);
  }
  
  .timeline-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--bg-color);
    border-radius: 50%;
  }
  
  .timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background: linear-gradient(135deg, var(--card-bg), rgba(26, 26, 26, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: fit-content;
    max-width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
  }
  
  .timeline-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 122, 204, 0.2);
    border-color: var(--primary-color);
  }
  
  .timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 12px solid transparent;
    transform: translateY(-50%);
  }
  
  .timeline-item:nth-child(odd) .timeline-content::before {
    right: -24px;
    border-left-color: var(--card-bg);
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -24px;
    border-right-color: var(--card-bg);
  }
  
  .timeline-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-size: 1.3rem;
    font-weight: 600;
  }
  
  .timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .timeline-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    font-weight: 600;
  }
  
  .timeline-header h3 i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-size: 1.1em;
  }
  
  .timeline-date {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(10, 132, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(10, 132, 255, 0.2);
  }
  
  /* Visual distinctions for work vs education */
  .timeline-item.work-experience .timeline-content {
    border-left: 4px solid var(--primary-color);
  }
  
  .timeline-item.education .timeline-content {
    border-left: 4px solid var(--accent-color);
  }
  
  .timeline-item.work-experience .timeline-marker {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  }
  
  .timeline-item.education .timeline-marker {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  }
  
  .timeline-company {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
    line-height: 1.4;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(60, 60, 60, 0.3);
  }
  
  .timeline-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .timeline-highlights li {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
  }
  
  .timeline-highlights li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-size: 0.8em;
    transform: rotate(90deg);
  }
  
  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
  }
  
  @media (max-width: 768px) {
    .timeline::before {
      left: 2rem;
    }
    
    .timeline-marker {
      left: 2rem;
      transform: none;
    }
    
    .timeline-content {
      width: calc(100% - 4rem);
      margin-left: 4rem !important;
      margin-right: 0 !important;
    }
    
    .timeline-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
    }
    
    .timeline-date {
      white-space: normal;
    }
    
    .timeline-header h3 {
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
    }
  }
  
  /* Contact Page Styles */
  .contact-hero {
    padding: 100px 0 3rem;
    background: linear-gradient(135deg, #1A1A1A, #0F0F0F);
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  
  .contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 122, 204, 0.1) 50%, transparent 70%);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
  }
  
  .contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    align-items: start;
  }
  
  .contact-info h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
  }
  
  .contact-intro {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
  }
  
  .contact-methods {
    margin-bottom: 1.75rem;
  }
  
  .contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .contact-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--glow-color);
  }
  
  .contact-method i {
    font-size: 1.3rem;
    color: var(--primary-color);
    width: 35px;
    text-align: center;
  }
  
  .contact-method h4 {
    color: var(--text-color);
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
  }
  
  .contact-method a,
  .contact-method span {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  .contact-method a:hover {
    color: var(--primary-color);
  }
  
  .social-links {
    margin-bottom: 1.75rem;
  }
  
  .social-links h4 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1rem;
  }
  
  .social-icons {
    display: flex;
    gap: 0.75rem;
  }
  
  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.4rem;
    transition: all 0.3s ease;
  }
  
  .social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--glow-color);
  }
  
  .btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 122, 204, 0.1);
    color: var(--primary-color);
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--glow-color);
    border: 1px solid var(--primary-color);
    font-size: 0.95rem;
  }
  
  .btn-resume:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--glow-color);
  }
  .btn-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
  }
  .btn-resume:hover::before {
    left: 100%;
  }
  
  /* Contact Form Styles */
  .contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
  }
  
  .contact-form h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.875rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
  }
  
  .form-group textarea {
    resize: vertical;
    min-height: 150px;
  }
  
  .btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 122, 204, 0.1);
    color: var(--primary-color);
    padding: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px var(--glow-color);
  }
  
  .btn-submit:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--glow-color);
  }
  .btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
  }
  .btn-submit:hover::before {
    left: 100%;
  }
  
  @media (max-width: 768px) {
    .contact-container {
      grid-template-columns: 1fr;
      gap: 2rem;
      padding: 0 1rem;
    }
    
    .contact-info h2 {
      font-size: 2rem;
    }
    
    .contact-form-container {
      padding: 1.5rem;
      position: static;
      top: auto;
    }
    
    .contact-hero {
      padding: 80px 1rem 2rem;
    }
    
    .contact-method {
      padding: 1rem;
    }
    
    .social-icons {
      justify-content: center;
    }
  }
  
  @media (max-width: 480px) {
    .contact-container {
      padding: 0 0.75rem;
    }
    
    .contact-info h2 {
      font-size: 1.75rem;
    }
    
    .contact-form-container {
      padding: 1.25rem;
    }
    
    .contact-method {
      flex-direction: column;
      text-align: center;
      gap: 0.5rem;
      padding: 1rem;
    }
    
    .contact-method i {
      width: auto;
    }
    
    .contact-hero {
      padding: 70px 0.75rem 1.5rem;
    }
  }
  
  /* Animation Classes */
  .animate-in {
    animation: fadeInUp 0.8s ease forwards;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Ripple Effect */
  .btn {
    position: relative;
    overflow: hidden;
  }
  
  .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
  }
  
  @keyframes ripple-animation {
    to {
      transform: scale(4);
      opacity: 0;
    }
  }
  

  
  /* Hover Effects */
  .skill-category:hover,
  .project-card:hover,
  .research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--glow-color);
  }
  
  /* Loading Animation for Skills */
  .skill-progress {
    animation: loadProgress 1.5s ease-out forwards;
  }
  
  @keyframes loadProgress {
    from { width: 0; }
    to { width: var(--progress-width); }
  }
  
  /* Parallax Effect for Hero */
  .hero-header {
    position: relative;
    overflow: hidden;
    background: transparent;
  }
  

  
  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
  }
  
  /* Smooth Transitions */
  * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Focus States */
  .btn:focus,
  .social-icon:focus,
  .navlinks a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  
  /* Accessibility Improvements */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Smooth Scrolling and Anchor Offset */
  html {
    scroll-behavior: smooth;
  }
  
  /* Offset for fixed navbar when scrolling to anchors */
  #skills,
  #experience {
    scroll-margin-top: 80px;
  }
  
  /* Active navigation state */
  .navlinks a.active {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--glow-color);
  }
  
  /* Resume Section */
  .resume-section {
    padding: 2rem 1rem;
    background: var(--bg-color);
    text-align: center;
    margin-top: 60px;
  }
  .resume-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  .resume-section p {
    margin-bottom: 1rem;
    color: var(--text-color);
  }
  .resume-container {
    max-width: 800px;
    margin: auto;
    padding: 1rem;
  }
  .resume-container img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
  }
  
  /* Contact Section */
  .contact-section {
    padding: 120px 1rem 60px;
    background: var(--bg-color);
    text-align: center;
    min-height: calc(100vh - 60px);
    margin-top: 60px;
  }
  
  .contact-container {
    max-width: 600px;
    margin: auto;
  }
  
  .contact-section h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
  }
  
  .contact-content {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .about-me p {
    color: var(--text-color);
    line-height: 1.6;
  }
  .contact-details p {
    margin: 0.5rem 0;
    color: var(--text-color);
  }
  .contact-details a {
    color: var(--primary-color);
  }
  
  /* Utility Wrapper */
  .wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 0 1rem;
  }
  
  /* Code Panel (VS Code Style) */
  .code-panel {
    flex: 1;
    max-width: 500px;
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-left: 0;
    text-align: left;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
    position: relative;
  }
  .code-panel-header {
    background: #2d2d2d;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
  }
  .code-panel-header .circle {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    display: inline-block;
  }
  .code-panel-header .red {
    background: #ff5f56;
  }
  .code-panel-header .yellow {
    background: #ffbd2e;
  }
  .code-panel-header .green {
    background: #27c93f;
  }
  .code-panel pre {
    margin: 0;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    white-space: pre-wrap;  /* Wrap lines instead of scrolling */
    word-break: break-all;  /* Break long words if needed */
  }
  
  /* Syntax Highlighting for Code Panel */
  .code-panel .comment {
    color: #6A9955;  /* VS Code comment green */
  }
  .code-panel .keyword {
    color: #569CD6;  /* VS Code blue for keywords */
  }
  .code-panel .string {
    color: #CE9178;  /* VS Code string orange */
  }
  .code-panel .number {
    color: #B5CEA8;  /* Soft greenish tint for numbers */
  }
  .code-panel .operator {
    color: #d4d4d4;
  }
  .code-panel {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 0;
    text-align: left;
    width: 100%;
    /* remove or increase this line: */
    max-width: 1100px;  /* or none */
  }
  .hero-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
  }
  .code-panel pre {
    white-space: pre-wrap;
    word-break: break-all;
  }
  @media (max-width: 768px) {
    .hero-container {
      flex-direction: column;
      align-items: center;
    }
    .hero-text {
      width: 100%;
      text-align: center;
    }
    .code-panel {
      width: 100%;
      max-width: 100%;
      margin-top: 2rem;
    }
  }
  
  /* Projects Section */
  .projects-section {
    padding: 3rem 0;
    background: var(--bg-color);
    text-align: center;
    margin-top: 80px;
  }
  
  .projects-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
  }
  
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.15);
  }
  

  
  .project-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .project-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.9;
    z-index: 1;
  }
  
  .project-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  }
  
  .project-placeholder span {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .project-placeholder p {
    font-size: 0.9rem;
    opacity: 0.9;
    z-index: 2;
    position: relative;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  
  /* Project-specific styling */
  .project-placeholder.ecoharvestors::before {
    background: linear-gradient(135deg, #2d5a27, #4a7c59);
  }
  
  .project-placeholder.exoplanet::before {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
  }
  
  .project-placeholder.resume::before {
    background: linear-gradient(135deg, #2c3e50, #34495e);
  }
  
  .project-placeholder.image-caption::before {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
  }
  
  .project-placeholder.cement::before {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
  }
  
  .project-placeholder.video-analysis::before {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
  }
  
  .project-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
    z-index: 1;
  }
  
  @keyframes shimmer {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
  }
  
  .project-card:hover .project-placeholder::before {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.3s ease;
  }
  
  .project-card:hover .project-placeholder i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
  }
  
  .project-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
}
  
  .project-card h3 a {
    color: var(--primary-color);
    transition: color 0.3s;
  }
  
  .project-card h3 a:hover {
    color: var(--accent-color);
  }
  
  .project-card p {
    padding: 0 1.5rem 1rem;
    color: var(--text-color);
    line-height: 1.6;
  }
  
  .project-tech {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-tag {
    background: rgba(0, 122, 204, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 122, 204, 0.3);
  }
  
  @media (max-width: 768px) {
    .projects-container {
      grid-template-columns: 1fr;
      padding: 0 1rem;
    }
    
    .project-card {
      margin-bottom: 1rem;
    }
  }
  
  /* Call-to-Action Section */
  .cta-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    text-align: center;
    position: relative;
    margin-top: 60px;
  }
  
  .cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
  }
  
  .cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .cta-section .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }
  
  .cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }
    
    .cta-section h2 {
      font-size: 2rem;
    }
  }
  
  /* Research Section */
  .research-section {
    padding: 3rem 0;
    background: var(--bg-color);
    text-align: center;
    margin-top: 80px;
  }

  .research-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
  }

  .research-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    height: fit-content;
    min-height: fit-content;
    align-items: stretch;
  }
  
  .research-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
  }
  
  .research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 122, 204, 0.15);
  }

  .research-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  
  .research-icon i {
    font-size: 1.5rem;
    color: white;
  }
  
  .research-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .research-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    flex: 1;
  }

  .research-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .research-type {
    background: rgba(0, 122, 204, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 122, 204, 0.3);
    white-space: nowrap;
  }

  .research-year {
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
  }

  .research-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s;
  }

  .research-link:hover {
    color: var(--accent-color);
  }

  .research-link i {
    font-size: 0.9rem;
  }

  .research-link {
    margin-top: auto;
    flex-shrink: 0;
  }


  
  /* Responsive Design */
  @media (max-width: 768px) {
    .skills-grid,
    .projects-container,
    .research-container {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .skill-category,
    .project-card,
    .research-card {
      padding: 1.5rem;
    }
    
    .skills-icons {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-section h2,
    .research-section h2 {
      font-size: 2rem;
    }
    
    .timeline {
      padding: 0 1rem;
    }
    
    .timeline-content {
      padding: 1.25rem;
    }
    
    .research-container {
      grid-template-columns: 1fr;
      max-width: 100%;
      padding: 0 1rem;
    }
  }
  
  @media (max-width: 480px) {
    .timeline-content {
      padding: 1rem;
      margin-left: 3rem !important;
      width: calc(100% - 3rem);
    }
    
    .timeline-marker {
      left: 1.5rem;
    }
    
    .timeline::before {
      left: 1.5rem;
    }
    
    .research-card {
      padding: 1.25rem;
    }
    
    .timeline-header h3 {
      font-size: 1.1rem;
    }
    
    .timeline-date {
      font-size: 0.8rem;
    }
  }
  
  /* Mobile responsive improvements for timeline */
  @media (max-width: 768px) {
    .timeline {
      padding: 0 1rem;
    }
    
    .timeline-content {
      width: 90%;
      margin: 0 auto 2rem auto;
      padding: 1.5rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
      margin: 0 auto 2rem auto;
    }
    
    .timeline-content::before {
      display: none;
    }
    
    .timeline-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
    }
    
    .timeline-header h3 {
      font-size: 1.2rem;
      line-height: 1.3;
    }
    
    .timeline-date {
      margin-top: 0;
      font-size: 0.9rem;
      align-self: flex-start;
    }
    
    .timeline-company {
      font-size: 1rem;
      margin-bottom: 1rem;
    }
    
    .timeline-highlights li {
      font-size: 0.9rem;
      margin-bottom: 0.6rem;
    }
    
    .experience-section h2 {
      font-size: 2.2rem;
      margin-bottom: 2rem;
    }
    
    .experience-section {
      padding: 3rem 0;
    }
  }
  