/* ==========================================================================
   Base Styles and Variables
   ========================================================================== */
   :root {
    /* Shadowed Bliss Palette */
    --primary-color: #a45dbb; /* Vibrant Magenta */
    --secondary-color: #2e1a47; /* Deep Purple */
    --text-color: #000000; /* Black */
    --text-color-light: #5c4b8a; /* Lighter Purple */
    --bg-color: #ffffff; /* White (or very light gray if needed) */
    --bg-color-alt: #f9f9f9; /* Slightly darker white */
    --border-color: #a45dbb; /* Magenta (or a muted version) */
  
    /* Accent Color */
    --accent-color: #f1c40f; /* Bright Yellow */
    --accent-light: #f5ece1; /* Light version of bg-color */
  
    /* Text Sizes */
    --text-xs: 0.75rem; /* 12px */
    --text-sm: 0.875rem; /* 14px */
    --text-md: 1rem; /* 16px */
    --text-lg: 1.125rem; /* 18px */
    --text-xl: 1.25rem; /* 20px */
    --text-2xl: 1.5rem; /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem; /* 36px */
    --text-5xl: 3rem; /* 48px */
  
    /* Spacing */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.5rem; /* 8px */
    --space-md: 1rem; /* 16px */
    --space-lg: 1.5rem; /* 24px */
    --space-xl: 2rem; /* 32px */
    --space-2xl: 3rem; /* 48px */
  
    /* Transitions */
    --transition: all 0.3s ease;
  
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  }
  
  /* Dark Mode Variables (Adjust as needed) */
  .dark-theme {
    --primary-color: #f1c40f; /* Yellow */
    --secondary-color: #000000; /* Black */
    --text-color: #ffffff; /* White */
    --text-color-light: #a45dbb; /* Magenta (or lighter version) */
    --bg-color: #2e1a47; /* Deep Purple */
    --bg-color-alt: #4a3b70; /* Lighter Purple */
    --border-color: #f1c40f; /* Yellow */
    --accent-light: #523e6b; /* Slightly lighter purple */
    --dark-shadow-color: rgba(255, 255, 255, 0.1); /* Light shadow for dark mode */
  }
  
  /* ==========================================================================
     Reset and Base Styles
     ========================================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
  }
  
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
  }
  
  p {
    margin-bottom: var(--space-md);
  }
  
  a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  a:hover {
    color: var(--primary-color);
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  ul {
    list-style: none;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
  }
  
  .section-header h2 {
    font-size: var(--text-4xl);
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
  }
  
  .section-header h2 span {
    color: var(--primary-color);
  }
  
  .section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: var(--text-md);
  }
  
  .primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
  }
  
  .primary-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
  }
  
  .secondary-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
  }
  
  .secondary-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
  }
  
  /* ==========================================================================
     Header and Navigation
     ========================================================================== */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .header.scrolled {
    box-shadow: var(--shadow-md);
  }
  
  /* Adjust shadow color for dark mode */
  .dark-theme .header {
    box-shadow: 0 2px 8px var(--dark-shadow-color);
  }

  .dark-theme .header.scrolled {
    box-shadow: 0 4px 16px var(--dark-shadow-color);
  }
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
  }
  
  .logo a {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-color);
  }
  
  .logo a span {
    color: var(--primary-color);
  }
  
  .nav-links ul {
    display: flex;
    gap: var(--space-lg);
  }
  
  .nav-links a {
    position: relative;
    font-weight: 500;
    padding: var(--space-xs) 0;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: 100%;
  }
  
  .menu-toggle {
    display: none;
    cursor: pointer;
  }
  
  .hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
  }
  
  .hamburger::before,
  .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
  }
  
  .hamburger::before {
    transform: translateY(-8px);
  }
  
  .hamburger::after {
    transform: translateY(8px);
  }
  
  .menu-toggle.active .hamburger {
    background-color: transparent;
  }
  
  .menu-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
  }
  
  .menu-toggle.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
  }
  
  /* ==========================================================================
     Hero Section
     ========================================================================== */
  .hero {
    padding-top: 160px;
    padding-bottom: var(--space-2xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
  
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-2xl);
  }
  
  .hero-text {
    animation: fadeInLeft 1s ease;
  }
  
  .intro-text {
    font-size: var(--text-lg);
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
  }
  
  .name {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-xs);
  }
  
  .name span {
    color: var(--primary-color);
  }
  
  .title {
    font-size: var(--text-2xl);
    color: var(--text-color-light);
    margin-bottom: var(--space-md);
  }
  
  .description {
    font-size: var(--text-lg);
    color: var(--text-color-light);
    margin-bottom: var(--space-lg);
  }
  
  .hero-buttons {
    display: flex;
    gap: var(--space-md);
  }
  
  .hero-image {
    text-align: center;
    animation: fadeInRight 1s ease;
  }
  
  .image-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .image-container img {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    border: 4px solid var(--primary-color);
  }
  
  .image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    border: 2px dashed var(--primary-color);
    z-index: -1;
    opacity: 0.5;
    animation: rotate 20s linear infinite;
  }
  
  .scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
  }
  
  .scroll-text {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: var(--text-sm);
    color: var(--text-color-light);
  }
  
  .scroll-icon {
    font-size: var(--text-xl);
    color: var(--primary-color);
  }
  
  /* ==========================================================================
     About Section
     ========================================================================== */
  .about {
    background-color: var(--bg-color-alt);
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-2xl);
    align-items: center;
  }
  
  .about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-md);
  }
  
  .about-text h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-color);
  }
  
  .about-text p {
    color: var(--text-color-light);
    margin-bottom: var(--space-md);
  }
  
  .personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
  }
  
  .info-item {
    margin-bottom: var(--space-md);
  }
  
  .info-title {
    font-weight: 600;
    margin-right: var(--space-xs);
    color: var(--text-color);
  }
  
  .info-value {
    color: var(--text-color-light);
  }
  
  .about-buttons {
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-md);
  }
  
  /* ==========================================================================
     Skills Section
     ========================================================================== */
  .skills-text {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
  }
  
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
  }
  
  .skill-card {
    background-color: var(--bg-color-alt);
    border-radius: 10px;
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  
  .skill-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: var(--space-md);
  }
  
  .skill-card h3 {
    margin-bottom: var(--space-md);
  }
  
  .skill-level {
    position: relative;
    height: 8px;
    background-color: var(--accent-light);
    border-radius: 10px;
    overflow: hidden;
  }
  
  .progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    transition: width 1s ease-in-out;
  }
  
  /* ==========================================================================
     Projects Section
     ========================================================================== */
  .projects {
    background-color: var(--bg-color-alt);
  }
  
  .projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }
  
  .filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: var(--text-sm);
    transition: var(--transition);
  }
  
  .filter-btn.active,
  .filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
  }
  
  .project-card {
    background-color: var(--bg-color-alt);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }
  
  .project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
  }
  
  .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(164, 93, 187, 0.9); /* Magenta with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
  }
  
  .project-card:hover .project-overlay {
    opacity: 1;
  }
  
  .project-card:hover .project-image img {
    transform: scale(1.1);
  }
  
  .project-links {
    display: flex;
    gap: var(--space-md);
  }
  
  .project-link,
  .github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    font-size: var(--text-lg);
    transition: var(--transition);
  }
  
  .project-link:hover,
  .github-link:hover {
    background-color: var(--text-color);
    color: white;
  }
  
  .project-info {
    background-color: var(--bg-color);
    box-shadow: 1 8px 16px var(--dark-shadow-color);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure full height for vertical alignment */
    justify-content: space-between; /* Distribute items vertically */
  }
  
  .project-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
  }
  
  .project-description {
    color: var(--text-color-light);
    text-align: justify;
    font-size: var(--text-sm);
    margin-top: var(--space-md);
  }

  p.project-description {
    margin-bottom: 0;
  }
  
  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
  }
  
  .project-tech span {
    background-color: var(--accent-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: var(--text-xs);
    font-weight: 500;
  }
  
  .projects-more {
    text-align: center;
    margin-top: var(--space-xl);
  }
  
  /* ==========================================================================
     Contact Section
     ========================================================================== */
  .contact {
    background-color: var(--bg-color);
  }
  
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--accent-light);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: var(--text-xl);
  }
  
  .info-details h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
  }
  
  .info-details p {
    color: var(--text-color-light);
    margin-bottom: 0;
  }
  
  .social-links {
    display: flex;
    /* justify-content: space-evenly */
    gap: var(--space-lg);
    margin-top: var(--space-md);
  }
  
  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-light);
    border-radius: 50%;
    color: var(--text-color);
    font-size: var(--text-lg);
    transition: var(--transition);
  }
  
  .social-link:hover {
    background-color: var(--primary-color);
    color: white;
  }
  
  .contact-form-container {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
  }
  
  .form-group {
    margin-bottom: var(--space-md);
  }
  
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: var(--text-md);
    transition: var(--transition);
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .contact-form textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .submit-btn {
    width: 100%;
    gap: var(--space-sm);
  }
  
  .submit-btn i {
    transition: var(--transition);
  }
  
  .submit-btn:hover i {
    transform: translateX(5px);
  }

  .contact-content {
  display: flex;
  justify-content: space-evenly; /* Adjust as needed */
  align-items: center; /* Or center, etc. */
  gap: 20px; /* Optional: Add spacing between the divs */
}

.contact-info {
  flex: 1; /* Take up available space, adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
}

.info-item {
  text-align: center; /* Center horizontally */
  display: flex;
  justify-content: center;
}

.social-links {
  flex: 1; /* Take up available space, adjust as needed */
  display: flex;
  justify-content: center; /* Center the icons horizontally */
}

blockquote {
  font-style: italic;
}
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--space-lg) 0;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .footer-logo a {
    color: white;
  }
  
  .copyright {
    font-size: var(--text-sm);
    margin-bottom: 0;
  }
  
  /* ==========================================================================
     Utility Components
     ========================================================================== */
  .scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }
  
  .scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .theme-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--text-color-light);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    z-index: 999;
  }
  
  .theme-toggle:hover {
    transform: rotate(30deg);
  }
  
  /* ==========================================================================
     Animations
     ========================================================================== */
  @keyframes fadeInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
      transform: translateY(0) translateX(-50%);
    }
    40% {
      transform: translateY(-20px) translateX(-50%);
    }
    60% {
      transform: translateY(-10px) translateX(-50%);
    }
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  /* ==========================================================================
     Media Queries
     ========================================================================== */
  @media screen and (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-content {
      grid-template-columns: 1fr;
    }
  
    .hero-image {
      order: -1;
      margin-bottom: var(--space-xl);
    }
  
    .hero-text,
    .about-text {
      text-align: center;
    }
  
    .personal-info {
      justify-content: center;
    }
  
    .about-buttons {
      justify-content: center;
    }
  }
  
  @media screen and (max-width: 768px) {
    :root {
      --text-5xl: 2.5rem;
      --text-4xl: 2rem;
      --text-3xl: 1.75rem;
      --text-2xl: 1.25rem;
    }
  
    .nav-links {
      position: fixed;
      top: 80px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 80px);
      background-color: var(--bg-color);
      transition: var(--transition);
      z-index: 999;
    }
  
    .nav-links.active {
      left: 0;
    }
  
    .nav-links ul {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: 100%;
    }
  
    .nav-links li {
      margin: var(--space-md) 0;
    }
  
    .menu-toggle {
      display: block;
    }
  
    .hero-buttons {
      justify-content: center;
    }
  
    .footer-content {
      flex-direction: column;
      gap: var(--space-md);
      text-align: center;
    }
  }
  
  @media screen and (max-width: 576px) {
    .projects-grid {
      grid-template-columns: 1fr;
    }
  
    .skill-card {
      padding: var(--space-md);
    }
  
    .contact-form-container {
      padding: var(--space-lg);
    }
  
    .personal-info {
      grid-template-columns: 1fr;
    }
  }
