/* 🌙 VS Code-Inspired Dark Theme */
body {
    font-family: 'Fira Code', monospace; /* Monospace for a coding feel */
    background-color: #1e1e1e;
    color: #d4d4d4;
    margin: 0;
    padding: 0;
    display: flex;
    min-height: 100vh;
}

/* 🔹 Sidebar (Mimics VS Code File Explorer) */
.sidebar {
    width: 200px;
    background-color: #252526;
    padding: 15px;
    color: #c5c5c5;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #ffffff;
}

.sidebar a {
    color: #d4d4d4;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s ease-in-out;
}

.sidebar a:hover {
    background: #333;
}

/* 🔹 Main Layout (Mimics VS Code Editor) */
.container {
    display: flex;
    flex-grow: 1;
    max-width: 1200px;
    margin: auto;
}

/* 🔥 "Editor Window" Styling */
.editor {
    flex: 2;
    background: #1e1e1e;
    border-left: 2px solid #252526;
    padding: 20px;
    border-radius: 8px;
}

/* 🟡 GitHub Activity Section */
.github-activity {
    flex: 1;
    background-color: #252526;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    /* Remove or comment out these lines if you don't want scrolling:
       max-height: 400px;
       overflow-y: auto;
    */
}

/* 🎨 Minimal Scrollbar */
.github-activity::-webkit-scrollbar {
    width: 6px;
}

.github-activity::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.github-activity::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 🎭 Social Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
    align-items: center;
}

/* 🔗 Social Icons */
.social-links a {
    color: #d4d4d4;
    font-size: 18px;
    transition: transform 0.2s ease-in-out;
}

.social-links a:hover {
    transform: scale(1.2);
    color: #4db8ff;
}

/* 🔥 About Me Section (Typing Animation) */
.about-me {
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 10px;
    max-width: 800px;
}

/* 🔥 Blinking Cursor */
.cursor {
    font-weight: bold;
    font-size: 1.2em;
    color: #4db8ff;
    animation: blink 0.7s infinite;
    display: inline-block;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
    /* Stack everything vertically */
    .container {
      flex-direction: column;
      margin: 0; /* Remove any large side margins if needed */
    }
  
    /* Make the sidebar full-width on mobile */
    .sidebar {
      width: 100%;
      text-align: center;
      margin-bottom: 20px; /* Space between sidebar and main content */
    }
  
    /* Center or left-align sidebar text if desired */
    .sidebar h3 {
      text-align: left;
      padding-left: 15px; 
    }
  
    .sidebar a {
      display: block;
      margin: 5px 0;
    }
  
    /* Make sure the "editor" or main content is also full-width */
    .editor,
    .github-activity {
      width: 100%;
      max-width: 100%; 
      margin: 0;
    }
  
    /* Adjust your contact form to be full width */
    .contact-form {
      width: 100%;
      max-width: 100%;
    }
  }  

/* 🎯 Custom Image Icons for LeetCode & Replit */
.custom-icon {
    width: 24px; /* Ensures proper sizing */
    height: 24px; 
    object-fit: contain; /* Prevents distortion */
    transition: transform 0.2s ease-in-out;
}

/* 🔥 Hover Effect (Same as Other Icons) */
.custom-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5));
}

.pdf-icon i {
    /* 
       5s = each animation cycle duration
       ease-in-out = easing function
       infinite = repeats indefinitely
    */
    animation: intermittentShake 4s ease-in-out infinite;
}

/* Fade-in (slide up) keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animation to the main heading */
.editor h1 {
    animation: fadeInUp 1s ease forwards;
}

.github-activity a,
.github-activity a:visited {
  color: #4db8ff; 
  text-decoration: none;
}

.github-activity a:hover {
  color: #ffffff; 
  text-decoration: underline;
}

/* Fade transition for page container */
.fade-transition {
    opacity: 0;
    transition: opacity 0.5s ease-in-out; 
}

/* When the page has loaded, add .loaded to fade in */
.fade-transition.loaded {
    opacity: 1;
}

/* Optional fade-out class */
.fade-transition.fade-out {
    opacity: 0;
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    max-width: 400px;       /* Limit form width if desired */
    margin-top: 20px;       /* Spacing from top */
    gap: 10px;              /* Space between elements */
}

.contact-form label {
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box; /* Ensures padding is included in total width */
    background-color: #2e2e2e;
    color: #d4d4d4;           
    border: 1px solid #444; 
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4db8ff;    /* Highlight color when focused */
}

.contact-form button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #4db8ff; /* Button color */
    color: #1e1e1e;            /* Contrast text color */
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #70ccff; /* Lighter hover effect */
}

.activity-note {
    color: #999;       /* Lighter color than main text */
    font-size: 0.85rem;
    margin-top: 10px;  /* Space above the note */
    line-height: 1.4;
}

body {
    overflow-x: hidden; /* Prevent horizontal overflow if needed */
  }
  
  img, iframe {
    max-width: 100%;
    height: auto;
  }
  
  .container {
    padding: 10px; /* or add top/bottom padding for breathing room */
  }

  /* Mobile Optimization */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px;
        padding: 10px;
    }

    /* Adjust Sidebar */
    .explorer {
        width: 100%; /* Full width on mobile */
        text-align: center;
        margin-bottom: 20px;
    }

    /* Make Content Full Width */
    .container {
        flex-direction: column;
      }

    /* Stack Sections Vertically */
    .content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* GitHub Activity Section */
    #activity {
        overflow-x: auto; /* Prevents text from being cut off */
        word-wrap: break-word;
        padding: 10px;
    }

    /* Contact Form */
    .contact-form {
        width: 100%;
        max-width: 400px;
        margin: auto;
    }

    .contact-form input,
    .contact-form textarea {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .contact-form button {
        width: 100%;
        padding: 12px;
        background: #007bff;
        color: white;
        border: none;
        cursor: pointer;
    }

    .sidebar {
        display: none;
      }

    .editor, 
    .github-activity {
        width: 100%;
        margin-bottom: 20px; /* spacing between sections */
    }
}

@keyframes rotateIn {
    0% {
      opacity: 0;
      transform: rotate(-45deg) scale(0.8);
    }
    100% {
      opacity: 1;
      transform: rotate(0deg) scale(1);
    }
  }
  
  .github-activity {
    animation: rotateIn 1.7s ease forwards;
  }
  
  @keyframes intermittentShake {
    0%,
    90% {
      transform: translateX(0);
    }
    92% {
      transform: translateX(-4px);
    }
    94% {
      transform: translateX(4px);
    }
    96% {
      transform: translateX(-4px);
    }
    98% {
      transform: translateX(4px);
    }
    100% {
      transform: translateX(0);
    }
  }
  