body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  color: #2a2a2a;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
#contact a {
  color: #0077b5; /* LinkedIn blue */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

#contact a:hover {
  text-decoration: underline;
  color: #005582; /* darker blue on hover */
}

#contact a:visited {
  color: #0077b5; /* keep same color when visited */
}

/* 🌷 Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.logo {
  color: #8a4fff;
  font-weight: 600;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  color: #2a2a2a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.nav-links li a:hover {
  color: #8a4fff;
  transform: scale(1.05);
}
.nav-links li a i {
  margin-right: 6px;
  font-size: 18px;
}

/* Container */
.container {
  text-align: center;
  padding: 100px 20px 40px;
}

h1 {
  font-size: 2.8rem;
  color: #4a148c;
}

h2 {
  font-size: 1.3rem;
  color: #6a1b9a;
}

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

/* ✨ Sections */
section {
  max-width: 850px;
  margin: 40px auto;
  padding: 25px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* 🧭 Offset for sticky navbar when scrolling to sections */
section,
.container {
  scroll-margin-top: 100px; /* adjust if navbar height changes */
}

/* Gradient Section Titles */
section h3 {
  font-size: 2rem;
  background: linear-gradient(90deg, #8a4fff, #b388ff, #8a4fff);
  background-size: 200% 200%; /* needed for smooth animation */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; /* fallback for some browsers */
  animation: gradientMove 3s ease infinite;
}

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


/* 🌸 Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project Hover Effect */
.project {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin-bottom: 20px;
}

.project:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(138, 79, 255, 0.3);
}
/* 🤝 Volunteer Experience Cards */
.volunteer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.volunteer-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(138, 79, 255, 0.15);
  transition: all 0.3s ease;
}

.volunteer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(138, 79, 255, 0.25);
}

.volunteer-card h4 {
  font-size: 1.3rem;
  color: #4a148c;
  margin-bottom: 5px;
}

.volunteer-card .organization {
  font-weight: 500;
  color: #6a1b9a;
}

.volunteer-card .date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.volunteer-card .description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* 💼 Work Experience Cards */
.work-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.work-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(138, 79, 255, 0.15);
  transition: all 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(138, 79, 255, 0.25);
}

.work-card h4 {
  font-size: 1.3rem;
  color: #4a148c;
  margin-bottom: 5px;
}

.work-card .company {
  font-weight: 500;
  color: #6a1b9a;
}

.work-card .date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.work-card .description {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

/* 💌 Contact Form */
#contactForm input,
#contactForm textarea {
  width: 95%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin-top: 10px;
  font-family: inherit;
}

#contactForm button {
  margin-top: 10px;
  padding: 12px 25px;
  background-color: #8a4fff;
  border: none;
  color: white;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

#contactForm button:hover {
  background-color: #b388ff;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #8a4fff, #b388ff);
  color: white;
  box-shadow: 0 4px 15px rgba(138, 79, 255, 0.35);
}

.btn.secondary {
  background: transparent;
  color: #8a4fff;
  border: 2px solid #8a4fff;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn.primary:hover {
  box-shadow: 0 6px 20px rgba(138, 79, 255, 0.45);
}

.btn.secondary:hover {
  background: #8a4fff;
  color: white;
}


/* 🌺 Footer */
.footer {
  text-align: center;
  margin: 50px 0;
  color: #4a148c;
}
/* 📱 Floating Social Icons */
.social-icons {
  position: fixed;
  bottom: 20%;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.social-icons img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(0); 
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons img:hover {
  transform: scale(1.25);
  opacity: 1;
}

.hero {
  display: flex;
  justify-content: center;   
  align-items: center;
  padding: 80px 100px;
  gap: 60px;
}

.hero-text {
  max-width: 600px;
  text-align: left;
}


.hero-text h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-text h2 {
  font-size: 22px;
  font-weight: 500;
  opacity: 0.9;
}

.cube-container {
  width: 220px;
  height: 220px;
  perspective: 900px;
  margin-left: 100px; 
}


.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 7s infinite linear;
}

.cube .side {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Faces */
.cube .side:nth-child(1) { transform: rotateY(0deg) translateZ(100px); }
.cube .side:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.cube .side:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.cube .side:nth-child(4) { transform: rotateY(-90deg) translateZ(100px); }
.cube .side:nth-child(5) { transform: rotateX(90deg) translateZ(100px); }
.cube .side:nth-child(6) { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.cube img {
  width: 100px;
  height: 100px;
}
