* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f4f7fa;
  color: #3ea6c9;
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: #1a1a2e;
  color: #e0e0e0;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(90deg, #2c3e50, #3498db);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: clamp(1.5rem, 2vw, 2.2rem);  /* Responsive font size */
  font-weight: 750;
  color: #fff;
  letter-spacing: 5px;
  text-transform: uppercase;             /* Makes text all caps */
  font-family: 'Poppins', sans-serif;    /* Clean, modern font */
  text-decoration: none;                 /* Removes underline if it's a link */
  transition: all 0.3s ease-in-out;      /* Smooth animation */
  display: inline-block;
  cursor: pointer;
  position: relative;
}

.logo:hover {
  color: #00bcd4;                         /* Changes color on hover */
  transform: scale(1.09);                /* Slight zoom effect */
}


.nav-links {
  display: flex;
  list-style: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  margin: 0 15px;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 3px 0;
  transition: all 0.3s;
}

/* Dark Mode Toggle */
.dark-toggle {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1620641788421-7a1c342ea42e?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
  filter: brightness(0.5);
  z-index: -1;
  animation: bgFade 10s infinite;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
}


.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.animated-intro {
  font-size: 1.5rem;
  color: #3498db;
  margin-bottom: 20px;
  height: 30px;
}

.typing-text::after {
  content: '|';
  animation: blink 0.7s infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease-out;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s, transform 0.2s;
  animation: fadeInUp 1.4s ease-out;
}

.resume-btn:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1.05); opacity: 1; }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* General Section Styles */
.section {
  padding: 90px 20px;
  width: 100%;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: #3498db;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* About Section */
.about-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #3498db;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.about-content {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1s ease-out;
  transition: all 0.3s ease;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #34495e;
  text-align: justify;
}

.resume-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #3498db;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
}

.resume-btn:hover {
  background: #2980b9;
  transform: translateY(-3px);
}

.skills-section h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
  margin-left: 1.5rem;
}

.skill {
  margin-bottom: 15px;
  margin-left: 1.5rem;
}

.skill span {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #34495e;
  
}

.progress-bar {
  background: #ecf0f1;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  background: linear-gradient(90deg, #3498db, #2ecc71);
  height: 100%;
  transition: width 1s ease-in-out;
}

body.dark-mode .about-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .about-content {
  background: #34495e;
  color: #e0e0e0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .section-title {
  color: #ecf0f1;
}

body.dark-mode .section-title::after {
  background: #2ecc71;
}

body.dark-mode .about-text p {
  color: #e0e0e0;
}

body.dark-mode .skill span {
  color: #e0e0e0;
}

body.dark-mode .progress-bar {
  background: #2c3e50;
}

body.dark-mode .resume-btn {
  background: #2ecc71;
}

body.dark-mode .resume-btn:hover {
  background: #27ae60;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-content {
    padding: 20px;
  }
  .section-title {
    font-size: 2rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* Skills Section */
.skills-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #3498db;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.skills-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: #ecf0f1;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: #3498db;
  color: #fff;
}

.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.category {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 1;
}

.category.hidden {
  display: none;
}

.category:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  justify-items: center;
}

.skill-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.skill-card:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 10;
}

.skill-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
}

.skill-card span {
  font-size: 1rem;
  font-weight: 500;
  color: #34495e;
}

.progress-circle {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 10px;
}

.circular-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.circle-bg {
  fill: none;
  stroke: #ecf0f1;
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 2.8;
  stroke-linecap: round;
  animation: progress 1s ease-out forwards;
}

@keyframes progress {
  0% { stroke-dasharray: 0, 100; }
}

.progress-circle .skill-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
}

body.dark-mode .skills-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .section-title {
  color: #ecf0f1;
}

body.dark-mode .section-title::after {
  background: #2ecc71;
}

body.dark-mode .category {
  background: #34495e;
  color: #e0e0e0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .category-title {
  color: #e0e0e0;
}

body.dark-mode .skill-card {
  background: #2c3e50;
  color: #e0e0e0;
}

body.dark-mode .skill-card span {
  color: #e0e0e0;
}

body.dark-mode .circle-bg {
  stroke: #2c3e50;
}

body.dark-mode .filter-btn {
  background: #34495e;
  color: #e0e0e0;
}

body.dark-mode .filter-btn:hover, body.dark-mode .filter-btn.active {
  background: #2ecc71;
}

/* Gradient for Progress Circle */
svg defs {
  display: none;
}

svg .gradient {
  stop-color: #3498db;
  offset: 0%;
}

svg .gradient stop:nth-child(2) {
  stop-color: #2ecc71;
  offset: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .category {
    padding: 20px;
  }
  .section-title {
    font-size: 2rem;
  }
  .filter-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* Projects Section */
.projects-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #3498db;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.project-card p {
  font-size: 1rem;
  color: #34495e;
  margin-bottom: 15px;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn {
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.demo-btn {
  background: #3498db;
  color: #fff;
}

.demo-btn:hover {
  background: #2980b9;
}

.github-btn {
  background: #2c3e50;
  color: #fff;
}

.github-btn:hover {
  background: #34495e;
}

.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.project-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-content img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 1.1rem;
  color: #34495e;
  margin-bottom: 20px;
}

.modal-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

body.dark-mode .projects-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
body.dark-mode .section-title {
  color: #ecf0f1;
}

body.dark-mode .section-title::after {
  background: #2ecc71;
}

body.dark-mode .project-card {
  background: #34495e;
  color: #e0e0e0;
}

body.dark-mode .project-card h3 {
  color: #e0e0e0;
}

body.dark-mode .project-card p {
  color: #e0e0e0;
}

body.dark-mode .demo-btn {
  background: #2ecc71;
}

body.dark-mode .demo-btn:hover {
  background: #27ae60;
}

body.dark-mode .github-btn {
  background: #7f8c8d;
}

body.dark-mode .github-btn:hover {
  background: #95a5a6;
}

body.dark-mode .modal-content {
  background: #34495e;
  color: #e0e0e0;
}

body.dark-mode .modal-content h3 {
  color: #e0e0e0;
}

body.dark-mode .modal-content p {
  color: #e0e0e0;
}

body.dark-mode .modal-close {
  color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 15px;
  }
  .section-title {
    font-size: 2rem;
  }
  .modal-content {
    padding: 20px;
  }
  .modal-content img {
    height: 200px;
  }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #3498db;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 15px;
  transition: border-color 0.3s ease;
}

.service-card:hover::before {
  border-color: #3498db;
}

.service-card:hover {
  transform: translateY(-10px) rotate(2deg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.service-card p {
  font-size: 1rem;
  color: #34495e;
  margin-bottom: 15px;
  line-height: 1.6;
}

.service-btn {
  padding: 10px 20px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-btn:hover {
  background: #2980b9;
  transform: scale(1.05);
}

.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.service-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2c3e50;
}

.modal-icon {
  font-size: 3rem;
  color: #3498db;
  margin-bottom: 15px;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-content p {
  font-size: 1.1rem;
  color: #34495e;
  margin-bottom: 20px;
}

.contact-btn {
  padding: 10px 20px;
  background: #2ecc71;
  color: #fff;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.contact-btn:hover {
  background: #27ae60;
}

body.dark-mode .services-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .section-title {
  color: #ecf0f1;
}

body.dark-mode .section-title::after {
  background: #2ecc71;
}

body.dark-mode .service-card {
  background: #34495e;
  color: #e0e0e0;
}

body.dark-mode .service-card h3 {
  color: #e0e0e0;
}

body.dark-mode .service-card p {
  color: #e0e0e0;
}

body.dark-mode .service-icon {
  color: #2ecc71;
}

body.dark-mode .service-card::before {
  border-color: #2ecc71;
}

body.dark-mode .service-btn {
  background: #2ecc71;
}

body.dark-mode .service-btn:hover {
  background: #27ae60;
}

body.dark-mode .modal-content {
  background: #34495e;
  color: #e0e0e0;
}

body.dark-mode .modal-content h3 {
  color: #e0e0e0;
}

body.dark-mode .modal-content p {
  color: #e0e0e0;
}

body.dark-mode .modal-close {
  color: #e0e0e0;
}

body.dark-mode .modal-icon {
  color: #2ecc71;
}

/* Responsive Design */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 20px;
  }
  .section-title {
    font-size: 2rem;
  }
  .modal-content {
    padding: 20px;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact Section */
.contact-section {
  padding: 20px 0;
  background: linear-gradient(135deg, #e6f0fa 0%, #d0e1f5 100%);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
  position: relative;
}

.section-title::after {
  content: '';
  width: 60px;
  height: 4px;
  background: #3498db;
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.2rem;
  color: #34495e;
  margin-bottom: 30px;
}

.contact-info {
  max-width: 600px;
  margin: 0 auto;
}

.email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 15px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.email-display:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#email-address {
  font-size: 1.1rem;
  color: #2c3e50;
  font-weight: 500;
  word-break: break-all;
}

.email-icon {
  color: #000;
  font-size: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-icon:hover {
  color: #3498db;
}

#copy-btn {
  background: none;
  border: 2px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3498db;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

#copy-btn:hover {
  color: #2980b9;
  border-color: #2980b9;
  transform: scale(1.1);
}

#copy-btn:hover::after,
.email-icon:hover::after,
.social-icons a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 50%;
  color: #000;
  font-size: 2.1rem;
  transition: transform 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #3498db;
  border-color: #3498db;
}

.toast {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2ecc71;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  z-index: 1000;
  animation: slideInToast 0.5s ease-out, fadeOut 0.5s ease-out 2s forwards;
}

.toast.active {
  display: block;
}

body.dark-mode .contact-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

body.dark-mode .section-title {
  color: #ecf0f1;
}

body.dark-mode .section-title::after {
  background: #2ecc71;
}

body.dark-mode .section-subtitle {
  color: #e0e0e0;
}

body.dark-mode .email-display {
  background: #34495e;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode #email-address {
  color: #e0e0e0;
}

body.dark-mode .email-icon {
  color: #e0e0e0;
}

body.dark-mode .email-icon:hover {
  color: #2ecc71;
}

body.dark-mode #copy-btn {
  border-color: #2ecc71;
  color: #2ecc71;
}

body.dark-mode #copy-btn:hover {
  color: #27ae60;
  border-color: #27ae60;
}

body.dark-mode #copy-btn:hover::after {
  background: #34495e;
}

body.dark-mode .social-icons a {
  color: #e0e0e0;
}

body.dark-mode .social-icons a:hover {
  color: #27ae60;
  border-color: #27ae60;
}

body.dark-mode .social-icons a:hover::after {
  background: #34495e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .email-display {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .social-icons {
    gap: 15px;
  }
  .social-icons a {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #2c3e50;
    padding: 20px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .resume-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .category-title {
    font-size: 1.5rem;
  }
}
