:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --secondary: #10b981;
  --dark: #1e293b;
  --dark-alt: #334155;
  --light: #ffffff;
  --light-alt: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --think-india: #FF5722;
  --nss: #FF9933;
  --grid-line: rgba(0, 0, 0, 0.03);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

header.scrolled {
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease, background-position 0.3s ease;
  background-size: 200% 100%;
}

.nav-links a:hover::after {
  width: 100%;
  background-position: 100% 0;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 150vh;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 60%);
  animation: pulse 8s infinite alternate;
  z-index: -1;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Updated Profile Image Container - Square Border Removed */
.profile-img-container {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.3s ease;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--gray);
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  margin-left: 15px;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gray);
  font-size: 1.1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

/* Tech Icons */
.tech-icons-container {
  margin-top: 30px;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.tech-icon {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.tech-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tech-icon[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--dark);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tech-icon:hover[data-tooltip]::after {
  opacity: 1;
  visibility: visible;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--gray-light);
  bottom: -8px;
  left: 0;
}

/* About Section */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  color: var(--gray);
  line-height: 1.7;
}

/* Experience Section */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.experience-column {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.experience-item {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-light);
}

.experience-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.experience-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.experience-item h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 500;
}

.experience-item p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

.github-stats {
  margin-top: 20px;
}

.github-chart {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.chart-container {
  position: relative;
  height: 300px;
  width: 100%;
}

.volunteering-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.volunteering-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.volunteering-logo img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.think-india {
  background-color: var(--think-india);
}

.nss {
  background-color: var(--nss);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  min-width: 350px;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.project-card:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 180px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.project-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.project-links a i {
  font-size: 0.8rem;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Blog Section */
#blog {
  padding: 80px 0;
  background-color: var(--light-alt);
  position: relative;
  overflow: hidden;
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

/* Gradient background behind the card */
.blog-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    270deg,
    #ff00ff,
    #00ffff,
    #ffcc00,
    #ff0000,
    #00ff00,
    #0000ff
  );
  background-size: 1200% 1200%;
  transform: rotate(45deg);
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: -1;
}

/* Show gradient animation on hover */
.blog-card:hover::before {
  opacity: 1;
  animation: colorfulGradientMove 8s ease infinite;
}

.blog-card:hover {
  transform: translateY(-5px);
  color: white;
}

.blog-title,
.blog-excerpt,
.blog-link {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-title,
.blog-card:hover .blog-excerpt,
.blog-card:hover .blog-link {
  color: white;
}

.blog-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.blog-excerpt {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.6;
}

.blog-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.2s ease;
}

.blog-link:hover {
  transform: translateX(3px);
}

/* Testimonials Section */
#testimonials {
  padding: 80px 0;
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    270deg,
    #ff00ff,
    #00ffff,
    #ffcc00,
    #ff0000,
    #00ff00,
    #0000ff
  );
  background-size: 1200% 1200%;
  transform: rotate(45deg);
  transition: opacity 0.5s ease;
  opacity: 0;
  z-index: -1;
}

/* Gradient appears when hovering */
.testimonial-card:hover::before {
  opacity: 1;
  animation: colorfulGradientMove 10s ease infinite;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  color: white;
}

.testimonial-card p,
.testimonial-card h4 {
  position: relative;
  z-index: 2;
  transition: color 0.3s ease;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 15px;
}

.testimonial-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-card:hover p,
.testimonial-card:hover h4 {
  color: white;
}

/* Gradient Animation Keyframes */
@keyframes colorfulGradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive for mobile */
@media (max-width: 768px) {
  .blog-cards,
  .testimonial-cards {
    grid-template-columns: 1fr;
  }
}
/* Certifications & Achievements Boxes */
.certifications-grid,
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.cert-card,
.achievement-card {
  background-color: white;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-card:hover,
.achievement-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.cert-title,
.achievement-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.cert-org {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.cert-link,
.achievement-link {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 15px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-link:hover,
.achievement-link:hover {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}
.volunteering-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    margin-top: 30px;
}

.volunteering-card {
    background: linear-gradient(135deg, #FF6B6B, #FFD93D, #6BCB77, #4D96FF);
    background-size: 400% 400%;
    border-radius: 20px;
    padding: 25px 20px;
    width: 300px;
    text-align: center;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: gradientAnimation 10s ease infinite;
}

.volunteering-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.volunteering-info h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.volunteering-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: white;
}

/* Animated gradient background */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive */
@media (max-width: 768px) {
    .volunteering-card {
        width: 90%;
    }
}

/* Contact Section */
.contact-section {
  padding: 60px 0; /* Space above and below contact section */
  margin-bottom: 0; /* Remove unnecessary gap before footer */
  text-align: center;
}

.contact-section .section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #0f172a;
}

.contact-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #0f172a;
  color: #f8fafc;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.contact-link:hover {
  background-color: #1e293b;
}

/* Footer Section */
.footer {
  background-color: #000000; /* Black footer */
  color: #ffffff;           /* White text */
  padding: 30px 0;
  margin-top: 0; /* Ensures footer sits directly below contact section */
}

.footer .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1 1 250px;
  text-align: center;
}

.footer-right {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-link {
  color: #0ea5e9; /* Tailwind blue-500 style */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0ea5e9; /* Tailwind blue-500 style */
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Floating Action Button */
.floating-action-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  z-index: 99;
  cursor: pointer;
  transform: translateZ(0);
}

.floating-action-btn:hover {
  transform: scale(1.1) translateZ(10px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes borderAnimation {
  0% {
    border-image: linear-gradient(45deg, var(--primary), var(--secondary)) 1;
  }
  50% {
    border-image: linear-gradient(135deg, var(--primary), var(--secondary)) 1;
  }
  100% {
    border-image: linear-gradient(225deg, var(--primary), var(--secondary)) 1;
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    background-size: 30px 30px;
  }
  
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 30px;
  }
  
  .profile-img-container {
    width: 250px;
    height: 250px;
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 15px;
    display: inline-block;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .tech-icons {
    justify-content: center;
  }
  
  .experience-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-links {
    gap: 15px;
  }
}
