* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  padding-top: 70px;
  overflow-x: hidden;
}

/* for the loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: #61dafb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Hide content initially */
#content {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in;
  margin: 0;
  padding: 0;
}
/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1002;
  height: 70px; /* Fixed height */
}


.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}
.logo a {
  color: inherit; /* Inherits text color from parent */
  text-decoration: none; /* Removes underline */
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

/* Hover Animation */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: #007bff;
}

.mobile-menu-icon {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  z-index: 1002;
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #333;
}
.nav-backdrop {
  position: fixed;
  top: 70px; /* Start below navbar */
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.nav-backdrop.active {
  display: block;
}    
/* header ends here*/



.profile-section {
  padding: 4rem 0;
  background: #f8f9fa;
}
.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal columns */
  gap: 4rem;
  align-items: center;
  padding: 0 5%; /* Equal percentage-based padding */
}
.profile-content {
  padding: 0 2rem 0 0; /* Remove left padding */
}
/* .profile-image {
  position: relative;
  max-width: 400px;
} */
.profile-image img {
  width: 100%;
  max-width: 400px; /* Default size for desktop */
  height: auto;
  transition: all 0.3s ease; /* Smooth resizing animation */
}
.profile-image img {
  width: 100%;
  border-radius: 15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 25px 50px -20px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

/* Optional: Add hover effect */
.profile-image img:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); /* Slightly deeper on hover */
}

.greeting {
  font-size: 1.8rem;
  color: #636e72;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.name {
  font-size: 4rem;
  color: #2d3436;
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.title {
  font-size: 2.2rem;
  color: #0984e3;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #0984e3;
}

.bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #57606f;
  margin-bottom: 3rem;
  max-width: 600px;
}

.achievements {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: center;
}

.number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 0.5rem;
}

.label {
  font-size: 0.9rem;
  color: #636e72;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* About section ends here*/

/* Project section start*/
/* 
============================================
 Desktop-First Responsive Card Layout
============================================
*/

/* Wrapper section for the entire portfolio releases */
.releases-section {
  /* Adjust spacing around the section */
  padding: 2rem;
  /* Constrain the max width on very large screens */
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Section header (title + View All button) */
.section-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

/* Main title style */
.section-title {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 600;
  align-items: center;
}

/* Button for "View All" */
.view-all {
  background: none;
  border: none;
  color: #666;
  font-weight: bold;
  cursor: pointer;
  font-size: clamp(0.9rem, 2vw, 1rem);
  padding: 0.5rem 1rem;
}

.view-all:hover {
  color: #000;
}

/* 
============================================
Cards Container & Wrapper
============================================
*/

/* This wrapper holds the scroll arrows and the horizontally scrollable container */
.cards-wrapper {
  position: relative;
  overflow: visible;
  /* Adjust side padding if desired */
  padding: 0 2.5rem;
}

/* The actual container that allows horizontal scrolling with snap */
.cards-container {
  /* Using flex so cards can scroll horizontally on smaller screens if needed */
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* 
     If you prefer no horizontal scroll on desktop, 
     you could switch to display: grid or remove overflow-x here.
  */

  /* Hide default scrollbar in WebKit browsers */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.cards-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}

/* Provide a bit of left/right spacing for the first/last card in the scroll container */
.card:first-child {
  margin-left: 2rem; 
}
.card:last-child {
  margin-right: 2rem;
}

/* 
============================================
Individual Card Styles
============================================
*/
.card {
  /* Snap alignment so each card snaps neatly during horizontal scroll */
  scroll-snap-align: start;

  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  border: 2px solid #e0e0e0;
  box-sizing: border-box;
  position: relative;

  /* 
     DESKTOP-FIRST: By default, show 3 columns on desktop. 
     We do flex: 0 0 calc(33.33% - 2rem) so that 3 fit in a row. 
     The “- 2rem” accounts for the gap/padding. 
     Adjust if you prefer a different spacing or exact widths. 
  */
  flex: 0 0 calc(33.33% - 2rem);

  /* 
     Control the maximum width of each card so they don't grow too large on big screens.
     You can tweak this value as needed. 
  */
  max-width: 420px;

  /* 
     If you need a minimum height, you can add it here:
     min-height: 300px; 
     (uncomment and adjust to taste)
  */
}

/* On hover, give a little "lift" effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* 
============================================
Card Image
============================================
*/
.card-image {
  /* 
     You can remove aspect-ratio if you prefer the image to size automatically.
     Or keep it to force a 16:9 shape. 
  */
  /* aspect-ratio: 16/7; */
  height: 200px;
  width: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain ;
}

/* A small label on the bottom-right corner of the image */
.card-image::after {
  content: "Preview";
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* 
============================================
Card Text Content
============================================
*/
.card-title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.card-description {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.4;
  margin-bottom: auto; /* so that buttons are pushed down */
}

.card-subtitle {
  color: #666;
  font-size: 0.9rem;
}

/* 
============================================
Tech Stack Tags
============================================
*/
.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tech-tag {
  background: #e8f4f8;
  color: #2d7a9c;
  border-radius: 4px;
  font-weight: 500;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  padding: 0.25rem 0.75rem;
}

/* 
============================================
Card Action Buttons
============================================
*/
.card-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.action-button {
  border: none;
  border-radius: 6px;
  background: #f1f3f5;
  color: #2d3436;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.5rem;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  white-space: nowrap;
}

.action-button:hover {
  background: #339af0;
  color: white;
}

/* A GitHub-specific style */
.github-button {
  background: #2d3436;
  color: white;
}
 /* Phones and smaller devices (up to 480px) */
@media (max-width: 480px) {
    .cards-wrapper {
        padding: 0;
    }
    .cards-container {
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    .card {
        flex: 0 0 90%;
    }
    .card:first-child,
    .card:last-child {
        margin: 0 1rem;
    }
    .scroll-arrow {
        display: none; /* Hide arrows for simple scrolling on mobile */
    }
    .card-description {
        display: none;
    }
    .show-more-button {
        display: block;
        width: 100%;
        margin-top: 1rem;
        border: none;
        background: #f1f3f5;
        color: #2d3436;
        padding: 0.5rem;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.2s;
    }
    .show-more-button:hover {
        background: #e9ecef;
    }
}
/* Tablets and smaller laptops (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .card {
        flex: 0 0 calc(50% - 1.5rem);
    }
    .cards-container {
        gap: 1.5rem;
    }
    .scroll-arrow {
        display: block;
    }
    .card-description {
        display: block; /* Ensure description is visible on tablets */
    }
    .show-more-button {
        display: none;
    }
}
/* Large laptops and desktops (769px and up) */
@media (min-width: 769px) {
    .cards-container {
        gap: 2rem;
    }
    .cards-wrapper {
        padding: 0 2.5rem;
    }
    .card {
        flex: 0 0 calc(33.33% - 2rem);
    }
    .card-description {
        display: block; /* Ensure description is visible on desktops */
    }
    .show-more-button {
        display: none;
    }
}
/* 
============================================
Scroll Arrows 
============================================
*/
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 2;
  display: none; /* You can set to 'flex' if you want them always visible */
  align-items: center;
  justify-content: center;
  width: clamp(30px, 5vw, 40px);
  height: clamp(30px, 5vw, 40px);
  transition: opacity 0.3s ease;
}

.scroll-arrow.left {
  left: clamp(-15px, -3vw, -25px);
}
.scroll-arrow.right {
  right: clamp(-15px, -3vw, -25px);
}
.scroll-arrow:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.scroll-arrow svg {
  width: 24px;
  height: 24px;
}

/* 
============================================
MEDIA QUERIES
Now we degrade from desktop to tablet/mobile
============================================
*/

/* Tablet View (max-width: 1024px)
 Show 2 columns instead of 3 
*/
@media (max-width: 1024px) {
.card {
  flex: 0 0 calc(50% - 2rem);
  max-width: 100%; /* Let them stretch up to 50% container width */
}
}

/* Mobile View (max-width: 768px)
 Show 1 column
*/
@media (max-width: 768px) {
.card {
  flex: 0 0 calc(100% - 2rem);
  max-width: 100%;
}
}


    /* High Contrast Mode Support */
/* @media (prefers-contrast: high) {
   .card {
       border: 2px solid #000;
       width: 50%;
   }
} */
/* @media (max-width: 768px) {
   .cards-container {
       padding: 1rem;
       margin: 0 -1rem;
       scroll-padding: 1rem;
       touch-action: pan-y;
   }
   
   .card {
       width: 50%;
       
   }
   
   .card:first-child {
       margin-left: 1rem;
   }
   
   .card:last-child {
       margin-right: 1rem;
   }
} */

   
/* Project section End*/
/*fotter style start*/
/* Base Styles */

footer {
  background-color: rgb(255, 255, 255);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  color: #333;
  width: 100%;
  max-width: 100%; /* Changed from 2560px */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    
  position: relative;
  box-sizing: border-box;
  padding: 25px 0; /* slightly increased padding */
  animation: fadeIn 0.3s ease-in;
}

footer .container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Added for mobile */
}

.footer-item img {
  width: 25px;
  height: auto;
  transition: transform 0.3s ease;
  max-width: 100%;
}
.footer-heading {
  color: #000;
  text-align: center;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: none; /* Disable initial animation */
}
/* Hover Effects */
.footer-item:hover img {
  transform: scale(1.5);
}
footer:target .footer-heading {
  animation: contactHighlight 5s ease-in-out;
}
@keyframes highlight {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}


@keyframes contactHighlight {
  0% {
    font-size: 1.2rem;
    color: #000;
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
  25% {
    font-size: 1.8rem;
    color: #000;
    text-shadow: 0 0 15px rgba(0,0,0,0.0.5);
  }
  50% {
    font-size: 1.8rem;
    color: #000;
    text-shadow: 0 0 15px rgba(0,0,0,0.5);
  }
  100% {
    font-size: 1.2rem;
    color: #000;
    text-shadow: 0 0 10px rgba(0,0,0,0.1);
  }
}
@media (max-width: 798px) {     
.footer-row {
    gap: 15px;
  }

  .footer-item img {
    width: 22px;
  }
  .footer-heading {
    font-size: 1.1rem;
  }
  @keyframes contactHighlight {
    0% { font-size: 1.1rem; }
    25% { font-size: 1.6rem; }
    50% { font-size: 1.6rem; }
    100% { font-size: 1.1rem; }
  }
    
    .footer-heading {
      font-size: 1.1rem;
    }
}
/* Responsive adjustments */

@media (max-width: 480px) {
  .footer-row {
    gap: 12px;
    /* padding: 0 10px; */
  }

  .footer-item img {
    width: 20px;
  }
  .footer-heading {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  @keyframes contactHighlight {
    0% { font-size: 1rem; }
    25% { font-size: 1.4rem; }
    50% { font-size: 1.4rem; }
    100% { font-size: 1rem; }
  }
  
  .footer-heading {
    font-size: 1rem;
  }
}


/* Responsive Design */

/* fotter ends here*/
@media (max-width: 992px) {
  .profile-container {
      grid-template-columns: 1fr;
      padding: 0 5%;
      gap: 2rem;
  }
  
  .profile-image {
      padding: 0;
      max-width: 350px;
      /* max-width: 80%; */
      margin: 0 auto;
  }
 
  .profile-content {
      padding: 0;
      text-align: center;
  }
  .bio {
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      max-width: 90%; /* Adjust this value as needed */
  }
  .title::after {
      left: 50%;
      transform: translateX(-50%);
  }
  
  .achievements {
      justify-content: center;
      flex-wrap: wrap;
  }
  
}

@media (max-width: 768px) {
  .nav-links {
      position: fixed;
      top: 70px; /* Start below navbar */
      right: -100%;
      width: 50%;
      max-width: 300px;
      height: calc(100vh - 70px); /* Account for navbar height */
      flex-direction: column;
      background: #ffffff;
      padding: 2rem 1.5rem;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.1); /* Softer shadow */
      z-index: 1001;
      gap: 1.5rem;
      border-radius: 10px 0 0 10px; /* Rounded left corners */
  }


  .nav-links.active {
      right: 0; /* Changed from left to right */
  }

  .mobile-menu-icon {
      display: block;
  }

  /* Adjust navbar height */
  .navbar {
      padding: 0.8rem 1.5rem;
  }


  .logo {
      font-size: 1.3rem;
  }
  /* footer {
    padding: 15px 0;
  } */


  .name {
    font-size: 3rem;
}

.title {
    font-size: 1.8rem;
}

.profile-image {
    max-width: 100%;
}

.profile-container {
    padding: 0 1.5rem; /* Smaller equal spacing on mobile */
}
}




/* EDUCATION SECTION START */
.education-section {
  padding: 4rem 0; /* Match about/project section padding */
  background: #fff; /* Match background if needed */
}

.education-container {
  max-width: 1200px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 0 2rem; /* Add matching side padding */
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 2.5rem;
  color: #2d3436;
  margin-bottom: 2rem;
  text-align: center;
  padding: 0 2rem;
}
.education-alliner{
  display: flex;
  flex-direction: row;
}
.degree-card {
  /* max-width: 70%;
  gap: clamp(1rem, 3vw, 2rem); */
  background: white;
  border-radius: 10px;
  padding: 2rem;
  margin: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.degree-card:hover {
  transform: translateY(-5px);
}

.degree-title {
  font-size: 1.4rem;
  color: #2d3436;
  margin-bottom: 0.5rem;
}

.university {
  color: #636e72;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.date {
  color: #0984e3;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.gpa-container {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.gpa-item {
  background: #f8f9fa;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.description {
  color: #2d3436;
  line-height: 1.6;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  /* body {
      padding: 1rem;
  } */

  .section-title {
    font-size: 2rem;
    padding: 0 1rem;
  }
  
  .education-container {
    padding: 0 1rem;
  }
  .education-alliner{
    display: flex;
    flex-direction: column;
  }

  .degree-card {
      padding: 1.5rem;
      
  }

  .gpa-container {
      flex-direction: column;
      gap: 0.5rem;
  }
}


/* Education Section END */
.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  width: 100%;
  text-align: center;
  position: relative;
  left: 45%;
  transform: translateX(-50%);
}

.skills-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}
.tech-skills-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.section-title {
  font-size: 2.5rem;
  color: #2d3436;
  position: relative;
}

.sub-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sub-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #495057;
  text-align: center;
}

.skills-container {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-item {
  width: 70px;
  height: 70px;
  background: white;
  border-radius: 15px;
  padding: 12px;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.skill-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



/* Previous styles remain the same */
.skill-item {
  position: relative;
  /* existing styles */
}

.skill-name {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}


.skill-name::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.skill-item:hover .skill-name {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}
@media (max-width: 480px) {
  .skill-item {
      width: 60px;
      height: 60px;
  }
  .tech-skills-icon {
      width: 50px;
      height: 50px;
  }
  .section-title {
      font-size: 2rem;
  }
}

/* Skill section ends */

/* links in about section */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem;
  padding-top: 2%;
  flex-wrap: wrap;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  padding: 0;
}

.social-btn img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.more-btn {
  font-size: 1.8rem;
  line-height: 1;
  color: #555;
}

/* Hover Effects */
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-btn:hover img {
  transform: scale(1.1);
}

.more-btn:hover {
  background: #f0f0f0;
}

.more-btn a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.more-btn a:hover {
  text-decoration: none;
  background: transparent;
}

.more-btn a:focus {
  outline: none;
  box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .social-btn {
    width: 44px;
    height: 44px;
  }
  
  .more-btn {
    font-size: 1.5rem;
  }
  .social-links{
    padding-top: 10%;
  }
}

@media (max-width: 400px) {
  .social-links {
    gap: 1rem;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
  }
}
         

/* ============================================
CSS for certificate section
============================================ */


.certificate-section {
    max-width: 1200px;
    margin: 5% auto;   /* reduced margin */
    padding: 2rem 1rem; /* smaller padding */
}

.certificate-header {
    text-align: center;
    margin-bottom: 2rem; /* reduced spacing */
}

.certificate-container {
    display: flex;               /* use flexbox for natural centering */
    flex-wrap: wrap;             /* allow wrapping on smaller screens */
    justify-content: center;     /* center cards horizontally */
    gap: 1rem;                   /* even spacing */
}

.certificate-card {
    background-color: #2c3e50;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: white;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;          /* responsive base */
    max-width: 300px;     /* capped size */
}


.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    background-color: #34495e;
}

.certificate-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.certificate-issuer {
    font-size: 0.95rem;
    color: #ecf0f1;
}

.certificate-link {
    text-decoration: none;
    color: inherit;
}

/* ✅ Responsive Tweaks */
@media (max-width: 768px) {
    .certificate-section {
        padding: 1.5rem 1rem;
    }
    .certificate-title {
        font-size: 2rem;
    }
    .certificate-subtitle {
        font-size: 1rem;
    }
    .certificate-card {
        max-width: 240px; /* smaller cards for tablets */
        height: 130px;
    }
}

@media (max-width: 480px) {
    .certificate-container {
        gap: 0.8rem; /* tighter gap */
    }
    .certificate-card {
        max-width: 200px; /* narrower cards on phones */
        height: 120px;
        padding: 0.8rem;
    }
    .certificate-name {
        font-size: 1rem;
    }
    .certificate-issuer {
        font-size: 0.85rem;
    }
}
