/*------------------------------------
  CSS Variables and Global Styles
------------------------------------*/
:root {
    --primary-color: #2563eb;
    --secondary-color: #60a5fa;
    --text-color: #1f2937;
    --bg-color: #ffffff;
    --accent-color: #dbeafe;
    --card-bg: #ffffff;
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #f8fafc;
    --shadow-color: rgba(31, 38, 135, 0.15);
    --transition: all 0.3s ease;
  }
  [data-theme="dark"] {
    --primary-color: #60a5fa;
    --secondary-color: #3b82f6;
    --text-color: #f3f4f6;
    --bg-color: #111827;
    --accent-color: #1e3a8a;
    --card-bg: #1f2937;
    --navbar-bg: rgba(31, 41, 55, 0.8);
    --footer-bg: #111827;
    --shadow-color: rgba(0, 0, 0, 0.3);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    
  }

  .main-content {
    position: relative;
    z-index: 1;
  }
  

  
  /*------------------------------------
    Navbar Styles
  ------------------------------------*/
  .navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: var(--transition);
  }
  .nav-links a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
  }
  .nav-links a:hover {
    color: #3b82f6; 
}
  .nav-links a.active::after { width: 100%; }
  .theme-toggle { cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: var(--transition); }
  .theme-toggle:hover { background: var(--accent-color); }
  .theme-toggle i { font-size: 1.2rem; color: var(--text-color); transition: var(--transition); }
  .hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 9999;
  }
  .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  @media (max-width: 768px) {
    .hamburger-menu { display: flex; }
    .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 50vh;
      background: var(--navbar-bg);
      backdrop-filter: blur(25px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 1.5rem;
      padding: 1.5rem;
      transform: translateY(-100%);
      transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
      z-index: 9998;
      visibility: hidden;
      opacity: 0;
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;
    }
    .nav-links.active {
      transform: translateY(0);
      visibility: visible;
      opacity: 1;
    }
    .nav-links a { font-size: 1.8rem; margin: 0.5rem 0; }
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  }
  
  /*------------------------------------
    Hero Section Styles
  ------------------------------------*/

.hero {
  min-height: 100vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
                             var(--bg-color) 0%, 
                             var(--accent-color) 30%, 
                             var(--bg-color) 70%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* Text Content Styling */
.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.subtitle {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 40px;
  opacity: 0;
  animation: fadeInSlideRight 0.8s ease forwards 0.2s;
}

.subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
  transform: translateY(-50%);
}

.text-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInSlideDown 0.8s ease forwards 0.4s;
}

.highlight {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  animation: lineExpand 1s ease forwards 1.2s;
}

.hero-description {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 500px;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.6s;
}

/* Button Group Styling */
.button-group {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInSlideUp 0.8s ease forwards 0.8s;
}

.cta-button, .secondary-button {
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(3px) translateY(-3px);
}

.secondary-button {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
  position: relative;
}

.secondary-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Tech Stack Section */
.tech-stack {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.tech-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.tech-icons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px var(--shadow-color);
  transition: all 0.3s ease;
}

.tech-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--shadow-color);
}

/* Visual Element / Code Animation */
.visual-element {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.8s;
}

.code-animation {
  width: 100%;
  perspective: 1000px;
}

.code-container {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 20px 40px var(--shadow-color);
  overflow: hidden;
  transform: rotateY(3deg) rotateX(3deg);
  transition: all 0.5s ease;
  animation: float 6s ease-in-out infinite;
}

.code-container:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.code-controls {
  display: flex;
  gap: 6px;
  padding: 1rem;
  background: var(--accent-color);
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control:nth-child(1) {
  background-color: #ff5f56;
}

.control:nth-child(2) {
  background-color: #ffbd2e;
}

.control:nth-child(3) {
  background-color: #27c93f;
}

.code-block {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Code syntax highlighting */
.keyword {
  color: #c678dd;
}

.variable {
  color: #d19a66;
}

.string {
  color: #98c379;
}

.property {
  color: #e06c75;
}

.function {
  color: #61afef;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.4s, bounce 2s ease-in-out infinite 2s;
}

.scroll-indicator span {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator svg {
  color: var(--primary-color);
  animation: scrollBounce 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeInSlideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineExpand {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes float {
  0%, 100% {
    transform: rotateY(3deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: rotateY(5deg) rotateX(5deg) translateY(-15px);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Responsive Design */
@media (min-width: 768px){
  .hero{
    padding-top: 125px;
    padding-bottom: 80px;
  }

}


@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .text-content {
    align-items: center;
    order: 2;
  }
  
  .visual-element {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .subtitle {
    padding-left: 0;
    display: inline-block;
  }
  
  .subtitle::before {
    display: none;
  }
  
  .text-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 0 1.5rem;
  }
  
  .text-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .button-group {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-button, .secondary-button {
    width: 100%;
    justify-content: center;
  }

}
@media (max-width: 786px){
  .visual-element{
    display: none;
  }
  
}


  
  /*------------------------------------
    About Section Styles
  ------------------------------------*/
  .about {
    padding: 6rem 2rem;
    background: var(--bg-color);
    transition: background-color 0.3s ease;
}

.section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    transition: color 0.3s ease;
}

.skills-container {
    margin-bottom: 4rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: var(--transition);
    z-index: 2;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}





.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }
  
  /* Base styling for skill cards */
  .skill-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    /* For animation (if using IntersectionObserver) */
    opacity: 0;
    transform: translateY(20px);
  }
  
  /* Animation when card becomes visible */
  .skill-card.animate {
    animation: fadeInUp 0.5s ease forwards;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Skill icon container */
  .skill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Ensure inline SVGs scale appropriately */
  .skill-icon svg {
    width: 3rem;
    height: 3rem;
  }
  
  /* Mobile-specific styles: two items per row and icon above text */
  @media (max-width: 768px) {
    .skill-card {
      flex-direction: column;
      text-align: center;
    }
    .skills-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  
  /*------------------------------------
    Education Section Styles
  ------------------------------------*/
  .education { margin-top: 4rem; }
  .education h3 { text-align: center; margin-bottom: 2rem; font-size: 1.8rem; color: var(--text-color); }
  .education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1000px;
    z-index: 2;
  }
  .edu-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    z-index: 2;
  }
  .edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
  }
  .edu-card:hover {
    transform: translateY(-10px) rotateX(10deg);
    box-shadow: 0 20px 40px var(--shadow-color);
  }
  .edu-card:hover::before { opacity: 0.1; }
  .edu-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
  }
  .edu-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
  }
  .edu-card span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  .edu-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--accent-color);
  }
  
  .edu-card.expanded .edu-details {
    max-height: 200px; /* Adjust based on your content */
    opacity: 1;
    padding-top: 1rem;
  }
  
  .edu-card {
    cursor: pointer;
  }
  
  .edu-card::after {
    content: "+";
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
  }
  
  .edu-card.expanded::after {
    content: "−";
    transform: rotate(180deg);
  }






  /*------------------------------------
    Portfolio Section Styles
  ------------------------------------*/
  .portfolio { padding: 6rem 2rem; background: var(--bg-color); }
  .projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  .project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: var(--transition);
    z-index: 2;
  }
  .project-card:hover { transform: translateY(-5px); }
  .project-info { padding: 1.5rem; }
  .project-info h3 { margin-bottom: 0.5rem; color: var(--text-color); }
  .project-info p { color: var(--text-color); opacity: 0.8; }
  .project-tags { margin: 1rem 0; display: flex; gap: 0.5rem; }
  .project-tags span {
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
  }
  .project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
  }
  .project-links a {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Live Demo Button */
  .demo-link {
    background: #2563eb;
    color: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
  }
  
  .demo-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(37, 99, 235, 0.3);
  }
  
  /* View Code Button */
  .code-link {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
  }
  
  .code-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    background: rgba(37, 99, 235, 0.1);
    transition: width 0.3s ease;
    transform: translateX(-50%);
    z-index: -1;
  }
  
  .code-link:hover {
    transform: translateY(-2px);
  }
  
  .code-link:hover::after {
    width: 100%;
  }
  

  @media (min-width: 568px) {
    


    .projects-grid:has(.project-card:only-child) {
        display: flex;
        justify-content: left;
    }
    
    .projects-grid .project-card:only-child {
        width: 33%;
    }
    
    }
    









  /*------------------------------------
    Contact Section Styles
  ------------------------------------*/
  .contact {
    padding: 6rem 2rem;
    background: var(--bg-color);
    transition: background-color 0.3s ease;
  }
  
  .contact-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }
  
  .contact-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
  }
  
  .contact-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
  }
  
  /* Form styles */
  .contact-form {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    z-index: 2;
  }
  
  .form-group {
    position: relative;
    margin-bottom: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--accent-color);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: 0.4s;
  }
  
  .form-group input:focus ~ .focus-border,
  .form-group textarea:focus ~ .focus-border {
    width: 100%;
  }
  
  .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
  }
  
  .submit-btn span {
    position: relative;
    z-index: 1;
  }
  
  .submit-btn i {
    position: relative;
    z-index: 1;
    transform: translateX(-5px);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  }
  
  .submit-btn:hover i {
    transform: translateX(5px);
    opacity: 1;
  }
  
  /* Social links */
  .social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  
  .social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    text-decoration: none;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
    z-index: 2;
  }
  
  .social-card:nth-child(1) {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
  }
  
  .social-card:nth-child(2) {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.6s;
  }
  
  .social-card:nth-child(3) {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.8s;
  }
  
  .social-card:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
  }
  
  .social-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
  }
  
  .social-card:hover .social-icon {
    color: white;
    transform: scale(1.2);
  }
  
  .social-card p {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
  }
  
  .social-card:hover p {
    color: white;
  }
  
  /* Responsive design */
  @media (max-width: 1024px) {
    .contact-content {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .contact-text {
      text-align: center;
      max-width: 600px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 786px) {
    .social-links {
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    
    .social-card {
      padding: 1.5rem;
    }
    
    .social-icon {
      font-size: 2rem;
    }
  }
  

  
  @media (max-width: 480px) {
    .social-links {
      grid-template-columns: 1fr;
      max-width: 300px;
      margin: 0 auto;
    }
    
    .contact-form {
      padding: 1.5rem;
    }
  }


  
  /*------------------------------------
    Footer Styles
  ------------------------------------*/
/* Modern Footer with Blur Effect */
.modern-footer {
  position: relative;
  padding: 1.5rem 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
  backdrop-filter: blur(10px); /* Blur effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
}

.modern-footer p {
  color: var(--text-color);
  margin: 0;
  font-size: 0.9rem;
}

.legacy-link a {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.8rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.legacy-link a:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* Old Footer Styles */
.old-footer {
  background: var(--card-bg);
  padding: 1.5rem 2rem;
  text-align: center;
}

.old-footer p {
  color: var(--text-color);
  margin: 0;
  font-size: 0.9rem;
}

/* Dark Theme Adjustments */
[data-theme="dark"] .modern-footer {
  background: rgba(17, 24, 39, 0.8); /* Dark semi-transparent background */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .old-footer {
  background: var(--card-bg);
}
  /*------------------------------------
    Additional Animations
  ------------------------------------*/
  @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
  @keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
  
  /*------------------------------------
    Particle Canvas Background
  ------------------------------------*/
  #particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
  }
  
  /*------------------------------------
    Standardized Headings & Text Alignment
  ------------------------------------*/
  #about, #portfolio, #contact { text-align: left; }
  #about h1, #portfolio h1, #contact h1 { font-size: 2.5rem; }
  #about h2, #portfolio h2, #contact h2 { font-size: 2rem; }
  #about h3, #portfolio h3, #contact h3 { font-size: 1.75rem; text-align: left;}






/* Add this to your style.css file */
.edu-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
  opacity: 0;
  padding: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--accent-color);
}

.edu-card.expanded .edu-details {
  max-height: 200px; /* Adjust based on your content */
  opacity: 1;
  padding-top: 1rem;
}

.edu-card {
  cursor: pointer;
}

.edu-card::after {
  content: "+";
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.edu-card.expanded::after {
  content: "−";
  transform: rotate(180deg);
}









