:root {
    --primary-color: #6c63ff;
    --secondary-color: #f50057;
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #f8f9fa;
    --border-color: #eaeaea;
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
  }
  
  .dark-mode {
    --primary-color: #bb86fc;
    --secondary-color: #ff4081;
    --text-color: #e1e1e1;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }
  
  /* Add padding to the body */
  body {
    padding: 0 20px; /* Add padding to prevent content from touching the edges */
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    overflow-x: hidden;
  }
  
  body::after {
    content: "";
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 9999;
    display: block; /* Always visible */
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  /* Add padding to sections */
  section {
    padding: var(--section-padding) 20px; /* Add horizontal padding to sections */
  }
  
  .highlight {
    color: var(--primary-color);
  }
  
  /* Custom Cursor */
  .cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(108, 99, 255, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    display: none;
  }
  
  /* Theme Toggle */
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .theme-toggle i {
    color: #fff;
    font-size: 18px;
  }
  
  .theme-toggle .fa-sun {
    display: none;
  }
  
  .dark-mode .theme-toggle .fa-moon {
    display: none;
  }
  
  .dark-mode .theme-toggle .fa-sun {
    display: block;
  }
  
  /* Header & Navigation */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 100;
    transition: var(--transition);
  }
  
  .logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  nav ul {
    display: flex;
  }
  
  nav ul li {
    margin: 0 15px;
  }
  
  nav ul li a {
    font-size: 16px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
  }
  
  nav ul li a:hover,
  nav ul li a.active {
    color: var(--primary-color);
  }
  
  nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  nav ul li a:hover::after,
  nav ul li a.active::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Hero Section */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
  }
  
  .hero-content {
    width: 50%;
    z-index: 1;
  }
  
  .hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.5s;
  }
  
  .hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
  }
  
  .hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.7s;
  }
  
  .cta-buttons {
    display: flex;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.9s;
  }
  
  .hero-image {
    width: 40%;
    position: relative;
  }
  
  .shape {
    width: 350px;
    height: 350px;
    background-color: var(--primary-color);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphShape 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
  }
  
  /* Profile Image Animation */
  .animated-profile {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .animated-profile.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .animated-profile:hover {
    transform: scale(1.1) rotate(5deg);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  /* Hero Profile Image */
  .hero-profile {
    width: 350px; /* Increase size */
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease-in-out;
    animation: pulse 2s infinite; /* Add live animation */
  }
  
  .hero-profile:hover {
    transform: scale(1.15); /* Slightly larger on hover */
  }
  
  /* Live Animation: Pulse */
  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
  }
  
  /* Live Animation: Bounce */
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
  }
  
  .btn.primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
  }
  
  .btn.secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
  }
  
  .btn.primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
  }
  
  .btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
  }
  
  .btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  /* Section Headers */
  .section-header {
    text-align: center;
    margin-bottom: 60px;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
  }
  
  .underline {
    height: 4px;
    width: 60px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 5px;
  }
  
  /* About Section */
  .about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 0 20px; /* Add padding to the edges */
  }
  
  .about-image {
    flex: 1;
    text-align: center;
  }
  
  .about-image img {
    width: 80%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block; /* Ensures the image is properly displayed */
    margin: 0 auto; /* Centers the image */
    object-fit: cover; /* Makes sure the image covers the area nicely */
  }
  
  .about-image img:hover {
    transform: scale(1.05);
  }
  
  .about-text {
    flex: 1;
  }
  
  .about-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
  }
  
  .about-text ul {
    margin-top: 20px;
    padding-left: 20px;
  }
  
  .about-text ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .stats {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
  }
  
  .stat {
    text-align: center;
  }
  
  .stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .stat .label {
    font-size: 0.9rem;
  }
  
  /* Projects Section */
  .project-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    padding: 8px 20px;
    border: none;
    background-color: var(--card-bg);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
  }
  
  .filter-btn.active, .filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  }
  
  .project-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
  }
  
  .project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .project-card:hover .project-img img {
    transform: scale(1.05);
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  
  .project-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #666;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .project-tags span {
    padding: 4px 10px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
  }
  
  .project-links {
    display: flex;
    gap: 10px;
  }
  
  .view-more {
    text-align: center;
  }
  
  /* Skills Section */
  .skills-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .skill {
    margin-bottom: 30px;
  }
  
  .skill-name {
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
  }
  
  .skill-bar {
    height: 10px;
    background-color: var(--card-bg);
    border-radius: 5px;
    overflow: hidden;
  }
  
  .skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    position: relative;
    text-align: right;
    color: white;
    font-size: 0.7rem;
    line-height: 10px;
    padding-right: 5px;
    transition: width 1.5s ease-in-out;
  }
  
  /* Contact Section */
  .contact-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
  }
  
  .contact-info, .contact-form {
    flex: 1;
  }
  
  .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
  }
  
  .contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 5px;
  }
  
  .contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
  }
  
  .social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
  }
  
  .social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
  }
  
  .form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  }
  
  .form-group textarea {
    height: 150px;
    resize: none;
  }
  
  /* Footer */
  footer {
    background-color: var(--card-bg);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
  }
  
  .footer-content p {
    margin: 5px 0;
    font-size: 0.9rem;
  }
  
  /* Animations */
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes morphShape {
    0% {
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
      border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
      border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
      border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
  }
  
  .typing::after {
    content: '|';
    animation: blink 1s infinite;
  }
  
  @keyframes blink {
    0%, 100% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
  }
  
  /* Experience Section */
  .experience-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
  }
  
  .experience-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    height: calc(100% - 40px);
    width: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
  }
  
  .experience-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
  }
  
  .experience-item:last-child {
    margin-bottom: 0;
  }
  
  .experience-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.2);
  }
  
  .experience-info {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .experience-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  }
  
  .experience-year {
    display: inline-block;
    font-size: 0.9rem;
    padding: 5px 12px;
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    margin-bottom: 10px;
  }
  
  .experience-position {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .experience-company {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
  }
  
  .experience-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
  }
  
  .experience-location i {
    margin-right: 5px;
  }
  
  .experience-info p {
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
  
  .experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
  }
  
  .experience-skills span {
    padding: 4px 10px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
  }
  
  /* Education Section */
  .education-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
  }
  
  .education-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    height: calc(100% - 40px);
    width: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
  }
  
  .education-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 50px;
  }
  
  .education-item:last-child {
    margin-bottom: 0;
  }
  
  .education-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(245, 0, 87, 0.2);
  }
  
  .education-info {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .education-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
  }
  
  .education-year {
    display: inline-block;
    font-size: 0.9rem;
    padding: 5px 12px;
    background-color: rgba(245, 0, 87, 0.1);
    color: var(--secondary-color);
    border-radius: 20px;
    margin-bottom: 10px;
  }
  
  .education-degree {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
  }
  
  .education-institution {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
  }
  
  .education-grade {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--secondary-color);
  }
  
  .education-details p {
    margin-bottom: 15px;
    font-size: 0.95rem;
  }
  
  .education-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
  }
  
  .education-skills span {
    padding: 4px 10px;
    background-color: rgba(108, 99, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
  }
  
  .education-achievements h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-color);
  }
  
  .education-achievements ul {
    padding-left: 20px;
  }
  
  .education-achievements li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    position: relative;
  }
  
  .education-achievements li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: -15px;
  }
  
  /* Responsive Design */
  @media (max-width: 992px) {
    .hero {
      flex-direction: column;
      text-align: center;
      gap: 50px;
    }
    
    .hero-content {
      width: 100%;
    }
    
    .cta-buttons {
      justify-content: center;
    }
    
    .about-content {
      flex-direction: column;
      text-align: center;
    }
    
    .stats {
      justify-content: center;
      flex-wrap: wrap;
      gap: 30px;
    }
    
    .contact-content {
      flex-direction: column;
    }
  }
  
  @media (max-width: 768px) {
    header {
      padding: 0 20px;
    }
    
    nav {
      position: fixed;
      top: 80px;
      left: 0;
      width: 100%;
      background-color: var(--bg-color);
      box-shadow: var(--shadow);
      padding: 20px 0;
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
      transition: var(--transition);
    }
    
    nav.active {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    nav ul {
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
    
    .menu-toggle {
      display: block;
    }
    
    .project-grid {
      grid-template-columns: 1fr;
    }
  
    .experience-timeline::before {
      left: 15px;
    }
    
    .experience-item {
      padding-left: 45px;
    }
    
    .experience-item::before {
      left: 7px;
    }
  
    .education-timeline::before {
      left: 15px;
    }
    
    .education-item {
      padding-left: 45px;
    }
    
    .education-item::before {
      left: 7px;
    }
  }
