/* ===============================
   TABLE OF CONTENTS:
   1. Reset & Base Styles
   2. Typography
   3. Layout & General
   4. Navigation
   5. Hero Section
   6. About Section
   7. Skills Section
   8. Projects Section
   9. Contact Section
   10. Footer
   11. Animations
   12. Theme Modes
   13. Particle Background
   14. Media Queries
   =============================== */

/* ===============================
   1. Reset & Base Styles
   =============================== */
   html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  /* ===============================
     2. Typography
     =============================== */
  h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-weight: 800;
    letter-spacing: 0.5px;
  }

  h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
  }
  
  .highlight-text {
    background: linear-gradient(135deg, #2ECC71, #1ABC9C);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .heading-underline {
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #2ECC71, #1ABC9C, #16A085);
    margin: 15px auto 0;
    border-radius: 0;
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
  }
  
  /* Custom background colors for badges */
  .bg-primary-subtle { background-color: rgba(63, 90, 54, 0.1); }
  .bg-success-subtle { background-color: rgba(46, 204, 113, 0.1); }
  .bg-info-subtle { background-color: rgba(22, 160, 133, 0.1); }
  .bg-warning-subtle { background-color: rgba(26, 188, 156, 0.1); }
  .bg-danger-subtle { background-color: rgba(63, 90, 54, 0.1); }
  .bg-secondary-subtle { background-color: rgba(63, 90, 54, 0.1); }
  
  /* ===============================
     3. Layout & General
     =============================== */
  section {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
  }
  
  section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .container {
    position: relative;
    z-index: 2;
  }
  
  .card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .btn {
    padding: 1rem 2.5rem;
    border-radius: 0;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
  }

  .btn:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    transition: 0.5s;
  }

  .btn:hover:after {
    left: 100%;
  }

  .btn:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.25);
  }
  
  /* ===============================
     4. Navigation
     =============================== */
  .navbar {
    transition: all 0.5s ease, box-shadow 0.5s ease;
    background: rgba(0, 0, 0, 0.2) !important;
    z-index: 1000;
  }
  
  .navbar.scrolled {
    background: rgba(33, 37, 41, 0.75) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  }
  
  .nav-link {
    position: relative;
    padding-bottom: 0.25rem !important;
  }
  
  .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, #2ECC71, #16A085);
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .nav-link.active::after {
    width: 100%;
  }
  
  .nav-link:hover::after {
    width: 70%;
  }
  
  /* Theme toggle button */
  #theme-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  #theme-toggle:hover {
    transform: rotate(30deg);
  }
  
  /* ===============================
     5. Hero Section
     =============================== */
  .hero {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #1a1a2e);
    color: white;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
  }
  
  .hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  
  /* Typewriter effect */
  .typewriter-container {
    min-height: 3.5rem;
    margin: 1rem 0;
  }
  
  .typewriter {
    color: #2ECC71;
    border-right: 3px solid;
    animation: blink 0.75s step-end infinite;
  }
  
  @keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: #2ECC71 }
  }
  
  .highlight-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 0;
    padding: 2rem;
    max-width: 650px;
    margin: 2rem auto;
    border: 3px solid rgba(255, 255, 255, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    position: relative;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.1);
  }

  .highlight-box::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: rgba(46, 204, 113, 0.3);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  }

  .elevator-pitch {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
  }

  /* Enhanced button styles - Geometric */
  .btn-group {
    gap: 1.5rem;
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
  }

  .btn-glow {
    position: relative;
    background: linear-gradient(135deg, #2ECC71, #1ABC9C);
    border: 3px solid #2ECC71;
    box-shadow: 8px 8px 0 rgba(46, 204, 113, 0.3);
  }

  .btn-glow:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 11px 11px 0 rgba(46, 204, 113, 0.4);
  }

  .btn-outline-light {
    border-width: 3px;
    background: transparent;
  }

  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) translateX(-3px);
    border-color: white;
  }
  
  /* Enhanced social icons */
  .social-icons {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .icon-hover {
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
  }
  
  .icon-hover:hover {
    opacity: 1;
    transform: translateY(-3px);
    color: #2ECC71;
  }
  
  /* Scroll indicator */
  .scroll-indicator {
    position: absolute;
    bottom: 0.25rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    transition: opacity 0.3s;
    animation: bounce 2s infinite;
  }
  
  .mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
  }
  
  .wheel {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 2s infinite;
  }
  
  .scroll-indicator p {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
  }
  
  @keyframes wheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
  }
  
  /* ===============================
     6. About Section - Bold & Geometric
     =============================== */
  .about {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
  }

  /* Geometric background accent */
  .about::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #2ECC71 0%, #1ABC9C 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.08;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
  }

  .about::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: -3%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #16A085 0%, #3f5a36 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    opacity: 0.08;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
  }

  /* Story Card Styles - Bold & Geometric with Flow */
  .story-card {
    border-radius: 0;
    padding: 3rem;
    padding-left: 4rem;
    box-shadow: -8px 8px 0 rgba(22, 160, 133, 0.15), 8px -8px 0 rgba(46, 204, 113, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 0;
    border-left: 8px solid transparent;
    border-right: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #2ECC71, #1ABC9C, #16A085) border-box;
    position: relative;
    clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px);
    margin-left: -2rem;
    margin-right: -1rem;
  }

  [data-theme="dark"] .story-card {
    background: linear-gradient(#16213e, #16213e) padding-box,
                linear-gradient(135deg, #2ECC71, #1ABC9C, #16A085) border-box;
  }

  .story-card::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 80px;
    height: 80px;
    background: transparent;
    border: 4px solid #2ECC71;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    opacity: 0.7;
  }

  .story-card::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 4px solid #16A085;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.7;
  }

  .story-card:hover {
    transform: translateY(-6px) translateX(-6px) rotate(-0.5deg);
    box-shadow: -12px 12px 0 rgba(22, 160, 133, 0.2), 12px -12px 0 rgba(46, 204, 113, 0.15);
  }

  .story-card:hover::before {
    width: 90px;
    height: 90px;
  }

  .story-card:hover::after {
    width: 70px;
    height: 70px;
  }

  .story-card .lead {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
  }

  .story-card p {
    font-size: 1.05rem;
    line-height: 1.8;
  }

  /* Info Cards Styles - Bold & Geometric */
  .info-card {
    border-radius: 0;
    padding: 2.5rem;
    height: 100%;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid;
    position: relative;
    overflow: visible;
    background-color: white;
  }

  [data-theme="dark"] .info-card {
    background-color: #16213e;
  }

  /* Different border colors for each card + Staggered Layout */
  .info-card.education {
    border-color: #16A085;
    margin-top: 0;
  }

  .about .row .col-md-4:nth-child(2) .info-card {
    border-color: #2ECC71;
    margin-top: 3rem;
  }

  .about .row .col-md-4:nth-child(3) .info-card {
    border-color: #1ABC9C;
    margin-top: 0;
  }

  /* Geometric corner accent */
  .info-card::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 40px;
    height: 40px;
    background: inherit;
    border: 3px solid inherit;
    border-left: none;
    border-bottom: none;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    transition: all 0.4s ease;
  }

  .info-card.education::before {
    background: #16A085;
    border-color: #16A085;
  }

  .about .row .col-md-4:nth-child(2) .info-card::before {
    background: #2ECC71;
    border-color: #2ECC71;
  }

  .about .row .col-md-4:nth-child(3) .info-card::before {
    background: #1ABC9C;
    border-color: #1ABC9C;
  }

  .info-card::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: -3px;
    width: 30px;
    height: 30px;
    background: inherit;
    border: 3px solid inherit;
    border-right: none;
    border-top: none;
    clip-path: polygon(0 100%, 100% 100%, 0 0);
    transition: all 0.4s ease;
  }

  .info-card.education::after {
    background: #16A085;
    border-color: #16A085;
  }

  .about .row .col-md-4:nth-child(2) .info-card::after {
    background: #2ECC71;
    border-color: #2ECC71;
  }

  .about .row .col-md-4:nth-child(3) .info-card::after {
    background: #1ABC9C;
    border-color: #1ABC9C;
  }

  .info-card:hover {
    transform: translateY(-8px) translateX(-4px) rotate(-1deg);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.15);
  }

  .info-card:hover::before {
    width: 50px;
    height: 50px;
  }

  .info-card:hover::after {
    width: 40px;
    height: 40px;
  }

  .card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
  }

  .info-card.education .card-icon {
    color: #16A085;
  }

  .about .row .col-md-4:nth-child(2) .card-icon {
    color: #2ECC71;
  }

  .about .row .col-md-4:nth-child(3) .card-icon {
    color: #1ABC9C;
  }

  .info-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
  }

  .info-card h5 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  /* Education Card Specific Styles */
  .education-item .institution {
    font-weight: 600;
    margin-bottom: 0.5rem;
  }
  
  .education-item .major,
  .education-item .gpa {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .coursework-title {
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .coursework ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .coursework li {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    position: relative;
    padding-left: 1.2rem;
  }
  
  .coursework li::before {
    content: '•';
    color: #2ECC71;
    position: absolute;
    left: 0;
    top: 0;
  }
  
  /* Skills and Interests Cards Specific Styles */
  .card-content {
    text-align: left;
  }
  
  .skill-category,
  .interest-category {
    margin-bottom: 1rem;
  }
  
  .category-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
  }
  
  .skill-category p:not(.category-title),
  .interest-category p:not(.category-title) {
    font-size: 0.9rem;
    margin: 0;
  }
  
  /* ===============================
     7. Skills Section - Bold & Geometric
     =============================== */
  .skills-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
  }

  /* Geometric background accents for Skills */
  .skills-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #16A085 0%, #3f5a36 100%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    opacity: 0.06;
    z-index: 0;
    animation: float 10s ease-in-out infinite;
  }

  .skills-section::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #2ECC71 0%, #1ABC9C 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.05;
    z-index: 0;
    animation: float 15s ease-in-out infinite reverse;
  }

  .skill-category {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 0;
    background-color: white;
    backdrop-filter: none;
    position: relative;
    overflow: visible;
    border-radius: 0 !important;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
  }

  [data-theme="dark"] .skill-category {
    background-color: #16213e;
  }

  /* Varied border styles and shapes for visual interest */
  .skill-category:nth-child(1) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #16A085, #2ECC71) border-box;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
  }

  [data-theme="dark"] .skill-category:nth-child(1) {
    background: linear-gradient(#16213e, #16213e) padding-box,
                linear-gradient(135deg, #16A085, #2ECC71) border-box;
  }

  .skill-category:nth-child(2) {
    border: 4px solid #1ABC9C;
    margin-top: 2rem;
  }

  .skill-category:nth-child(3) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3f5a36, #16A085) border-box;
    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
  }

  [data-theme="dark"] .skill-category:nth-child(3) {
    background: linear-gradient(#16213e, #16213e) padding-box,
                linear-gradient(135deg, #3f5a36, #16A085) border-box;
  }

  .skill-category:nth-child(4) {
    border: 4px solid #2ECC71;
    margin-top: 1.5rem;
    border-left-width: 8px;
  }

  .skill-category:nth-child(5) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(90deg, #2ECC71, #1ABC9C, #16A085) border-box;
  }

  [data-theme="dark"] .skill-category:nth-child(5) {
    background: linear-gradient(#16213e, #16213e) padding-box,
                linear-gradient(90deg, #2ECC71, #1ABC9C, #16A085) border-box;
  }

  /* Corrected selector for Soft Skills card (6th column) */
  .skills-section .row > div:nth-child(6) .skill-category {
    border: 4px solid #2ECC71 !important;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
    margin-top: 2.5rem;
  }

  .skill-category:nth-child(7) {
    border: 4px solid #1ABC9C;
    border-top-width: 8px;
  }

  .skill-category:nth-child(8) {
    border: 4px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #16A085, #3f5a36) border-box;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    margin-top: 1rem;
  }

  [data-theme="dark"] .skill-category:nth-child(8) {
    background: linear-gradient(#16213e, #16213e) padding-box,
                linear-gradient(135deg, #16A085, #3f5a36) border-box;
  }

  /* Geometric corner accents for skill cards - varied positions */
  .skill-category:nth-child(1)::after,
  .skill-category:nth-child(4)::after,
  .skill-category:nth-child(7)::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 40px;
    height: 40px;
    border: 4px solid #2ECC71;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transition: all 0.4s ease;
  }

  .skill-category:nth-child(2)::after,
  .skill-category:nth-child(5)::after,
  .skill-category:nth-child(8)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    border: 4px solid #16A085;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transition: all 0.4s ease;
  }

  .skill-category:nth-child(3)::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    border: 4px solid #1ABC9C;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transition: all 0.4s ease;
  }

  /* Corrected selector for Soft Skills card corner accent */
  .skills-section .row > div:nth-child(6) .skill-category::after {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
    border: 4px solid #2ECC71 !important;
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    transition: all 0.4s ease;
  }


  /* Skill Category Hover Effect (Green) - REMOVED */
  .skill-category:hover {
    /* Hover effect removed */
  }
  
  /* Reset hover rotation for improved legibility */

  .skill-category:hover::after {
    /* Hover effect removed */
  }

  .progress-wrapper {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0;
    border-left: 4px solid #2ECC71;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
  }

  [data-theme="dark"] .progress-wrapper {
    background: #1a1a2e;
  }

  .progress-wrapper:hover {
    transform: translateX(5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.12);
  }

  .progress {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 0;
    overflow: visible;
    position: relative;
  }

  [data-theme="dark"] .progress {
    background-color: #2a2a3e;
  }

  .progress-bar {
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #2ECC71, #1ABC9C);
    border-radius: 0;
    width: 0;
    position: relative;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
  }

  /* Geometric tip on progress bar */
  .progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #1ABC9C;
  }
  
  /* ===============================
     8. Projects Section - Bold & Geometric
     =============================== */
  .projects {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
  }

  /* Geometric background accents for Projects */
  .projects::before {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #1ABC9C 0%, #2ECC71 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.05;
    z-index: 0;
    animation: float 12s ease-in-out infinite reverse;
  }
  
  .carousel-3d-container {
    position: relative;
    perspective: 2000px;
    height: 600px;
    margin: 0 auto;
  }
  
  .carousel-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.5s;
  }
  
  .carousel-3d-card {
    position: absolute;
    width: 400px;
    left: 50%;
    transform-origin: center;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(-50%) translateZ(-600px);
  }
  
  .carousel-3d-card.active {
    opacity: 1;
    transform: translateX(-50%) translateZ(0);
    z-index: 3;
  }
  
  .carousel-3d-card.prev {
    opacity: 0.7;
    transform: translateX(-150%) translateZ(-300px) rotateY(25deg);
    z-index: 2;
  }
  
  .carousel-3d-card.next {
    opacity: 0.7;
    transform: translateX(50%) translateZ(-300px) rotateY(-25deg);
    z-index: 2;
  }
  
  .carousel-3d-prev,
  .carousel-3d-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #2ECC71, #1ABC9C);
    border: 3px solid #2ECC71;
    border-radius: 0;
    width: 55px;
    height: 55px;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    font-weight: 900;
    font-size: 1.2rem;
  }

  .carousel-3d-prev:hover,
  .carousel-3d-next:hover {
    background: linear-gradient(135deg, #1ABC9C, #2ECC71);
    transform: translateY(-50%) translateX(-3px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.25);
  }
  
  .carousel-3d-prev {
    left: 5%;
  }
  
  .carousel-3d-next {
    right: 5%;
  }
  
  .card-img-top {
    height: 250px;
    object-fit: cover;
    border-bottom: 4px solid #2ECC71;
  }

  .carousel-3d-card .card {
    border: 3px solid #2ECC71;
    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.15);
  }

  .carousel-3d-card.active .card {
    border-color: #1ABC9C;
  }

  .carousel-3d-card.prev .card,
  .carousel-3d-card.next .card {
    border-color: #16A085;
  }

  .card-body {
    padding: 2rem;
  }

  .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2d3436;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  [data-theme="dark"] .card-title {
    color: #fff;
  }

  .card-text {
    color: #636e72;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  [data-theme="dark"] .card-text {
    color: #a8b2d1;
  }

  .tech-stack {
    margin-top: 1rem;
  }

  .tech-stack .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 0;
    border: 2px solid currentColor;
    background: transparent !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .card-links .btn {
    padding: 0.6rem 1.3rem;
    border-radius: 0;
    transition: all 0.3s;
    font-weight: 700;
    border: 2px solid;
    margin-right: 0.5rem;
  }

  .card-links .btn:hover {
    transform: translateY(-3px) translateX(-2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
  }
  
  /* Projects Overlay */
  .projects-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    text-align: center;
    top: 0;
    left: 0;
  }

  .projects-overlay.active {
    display: flex;
  }
  
  /* ===============================
     9. Contact Section - Bold & Geometric
     =============================== */
  .contact-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
  }

  /* Geometric background accent for Contact */
  .contact-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #16A085 0%, #2ECC71 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    opacity: 0.04;
    z-index: 0;
  }

  .contact-section::after {
    content: '';
    position: absolute;
    bottom: -5%;
    right: -3%;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #1ABC9C 0%, #3f5a36 100%);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: 0.05;
    z-index: 0;
    animation: float 12s ease-in-out infinite reverse;
  }

  .contact-container {
    max-width: 650px;
    margin: auto;
    padding: 3rem;
    border-radius: 0;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    border: 4px solid #2ECC71;
    background: white;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
  }

  /* Sphere/Circle shape (top left) */
  .contact-container::before {
    content: '';
    position: absolute;
    top: -300px;
    left: -50x;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(46, 204, 113, 0.15) 0%, rgba(22, 160, 133, 0.05) 70%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    animation: float 16s ease-in-out infinite;
  }

  [data-theme="dark"] .contact-container {
    background: #16213e;
  }

  .contact-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #2ECC71, #1ABC9C);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  }

  .contact-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  .contact-container input,
  .contact-container textarea {
    border-radius: 0;
    border: 3px solid #2ECC71;
    border-left-width: 6px;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: transparent;
  }

  .contact-container input:focus,
  .contact-container textarea:focus {
    border-color: #1ABC9C;
    outline: none;
    transform: translateX(5px);
    box-shadow: 5px 5px 0 rgba(46, 204, 113, 0.1);
  }

  .contact-container button {
    width: 100%;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(135deg, #2ECC71, #1ABC9C);
    border: 3px solid #2ECC71;
    color: white;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
    clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
  }

  .contact-container button:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #1ABC9C, #2ECC71);
  }
  
  .contact-info {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }
  
  .contact-info i {
    margin-right: 10px;
    color: #2ECC71;
  }
  
  /* Contact Overlay */
  .contact-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
    text-align: center;
    top: 0;
    left: 0;
    pointer-events: none;
  }

  .contact-overlay.active {
    display: flex;
  }
  
  /* ===============================
     10. Footer
     =============================== */
  footer {
    background: #343a40;
    color: white;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
  }
  
  footer a {
    color: #f8f9fa;
    transition: color 0.3s;
    transform: scale(1.8);
    padding: 10px;
  }
  
  footer a:hover {
    color: #2ECC71;
  }
  
  /* ===============================
     11. Animations
     =============================== */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
  }
  
  .fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
  }
  
  .fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* ===============================
     12. Theme Modes
     =============================== */
  :root {
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #fff;
    --card-shadow: rgba(0, 0, 0, 0.1);
  }
  
  [data-theme="dark"] {
    --text-color: #fff;
    --bg-color: #1a1a2e;
    --card-bg: #16213e;
    --card-shadow: rgba(0, 0, 0, 0.3);
  }
  
  body {
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .card, .story-card, .info-card, .skill-category {
    background-color: var(--card-bg);
    box-shadow: 0 10px 30px var(--card-shadow);
  }
  
  /* ===============================
     13. Particle Background
     =============================== */
  #particle-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none; /* Allow clicks to pass through */
  }
  
  [data-theme="dark"] #particle-network {
    opacity: 0.8;
    filter: saturate(1.2); /* Enhance colors in dark mode */
  }
  
  [data-theme="light"] #particle-network {
    opacity: 0.5;
    filter: saturate(0.8); /* Soften colors in light mode */
  }
  
  /* ===============================
     14. Media Queries
     =============================== */
  @media (max-width: 1200px) {
    .hero h1 {
      font-size: 4rem;
    }
  }
  
  @media (max-width: 992px) {
    .hero h1 {
      font-size: 3.5rem;
    }
    
    .carousel-3d-card {
      width: 350px;
    }
  }
  
  @media (max-width: 768px) {
    .hero h1 {
      font-size: 3rem;
    }
    
    .highlight-box {
      margin: 2rem 1rem;
    }
    
    .btn-group {
      flex-direction: column;
      align-items: center;
    }
    
    .btn {
      width: 100%;
      max-width: 300px;
      margin-bottom: 1rem;
    }
    
    .story-card,
    .info-card {
      padding: 1.5rem;
    }
  
    .card-icon {
      font-size: 2rem;
    }
  
    .info-card h5 {
      font-size: 1.1rem;
    }
    
    .carousel-3d-card {
      width: 320px;
    }
    
    .carousel-3d-prev {
      left: 0;
    }
    
    .carousel-3d-next {
      right: 0;
    }
  }
  
  @media (max-width: 576px) {
    .hero h1 {
      font-size: 2.5rem;
    }
    
    .social-icons {
      gap: 1rem;
    }
    
    .icon-hover {
      font-size: 1.5rem;
    }
    
    .carousel-3d-container {
      height: 550px;
    }
    
    .carousel-3d-card {
      width: 280px;
    }
  }

  .btn-view-all {
    display: inline-block;
    background: linear-gradient(135deg, #2ECC71, #1ABC9C);
    color: white;
    text-decoration: none;
    padding: 1rem 3rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 3px solid #2ECC71;
    clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
    position: relative;
    overflow: hidden;
  }

  .btn-view-all::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(
      120deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    transition: 0.5s;
  }

  .btn-view-all:hover::before {
    left: 100%;
  }

  .btn-view-all:hover {
    transform: translateY(-3px) translateX(-3px);
    box-shadow: 11px 11px 0 rgba(0, 0, 0, 0.25);
    color: white;
  }


/* ===============================
   GEOMETRIC DECORATIVE PATTERNS
   =============================== */

/* Diagonal stripe pattern */
.geometric-stripes {
  position: relative;
}

.geometric-stripes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(46, 204, 113, 0.03) 10px,
    rgba(46, 204, 113, 0.03) 20px
  );
  pointer-events: none;
  z-index: 1;
}

/* Geometric grid dots */
.geometric-dots {
  position: relative;
}

.geometric-dots::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle,
    rgba(46, 204, 113, 0.08) 1px,
    transparent 1px
  );
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

/* Geometric corner accent (reusable) */
.corner-accent {
  position: relative;
}

.corner-accent::before {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2ECC71, #1ABC9C);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 1;
}

/* ===============================
   GitHub Contributions Section
   =============================== */
.github-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Geometric background accent */
.github-section::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #2ECC71 0%, #1ABC9C 100%);
  clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
  opacity: 0.06;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}

.github-section::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 380px;
  height: 380px;
  background: linear-gradient(135deg, #16A085 0%, #3f5a36 100%);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  opacity: 0.05;
  z-index: 0;
  animation: float 14s ease-in-out infinite reverse;
}

.github-container {
  max-width: 900px;
  margin: 0 auto;
}

.github-card {
  background: white;
  border: 4px solid #2ECC71;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 3rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] .github-card {
  background: #16213e;
}

.github-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25px;
  height: 25px;
  background: linear-gradient(135deg, #2ECC71, #1ABC9C);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.github-card:hover {
  transform: translateY(-8px) translateX(-4px);
  box-shadow: 16px 16px 0 rgba(46, 204, 113, 0.2);
}

.github-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid #2ECC71;
}

.github-icon {
  font-size: 3.5rem;
  color: #2ECC71;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
}

.github-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  color: #2ECC71;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.github-info p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  opacity: 0.8;
}

[data-theme="dark"] .github-info p {
  color: #a8b2d1;
}

.github-stats {
  margin: 2rem 0;
}

.github-link {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.github-link:hover {
  transform: translateX(5px);
}

.github-chart {
  width: 100%;
  height: auto;
  border: 3px solid #16A085;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.github-chart:hover {
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.12);
}

.github-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 3px solid #16A085;
}

.github-cta .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.github-cta .btn i {
  margin-right: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .github-card {
    padding: 2rem;
  }

  .github-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .github-icon {
    font-size: 2.5rem;
  }

  .github-info h3 {
    font-size: 1.5rem;
  }
}
