
 
body.dark-mode .timeline.creative-timeline .project-card-exp {
  background: #181a1b !important;
  color: #fafafa;
}
body.dark-mode .timeline.creative-timeline .project-card-exp .project-desc {
  color: #fafafa;
}
body.dark-mode .timeline.creative-timeline .project-card-exp a {
  color: var(--accent);
}
body.dark-mode .timeline.creative-timeline .project-logo-exp {
  background: #23243a;
  border-radius: 8px;
}
/* Project Highlights Title */
.project-highlights-title {
  font-size: 2.4rem;
  color: var(--primary, #4CAF50);
  letter-spacing: 1px;
  text-align: center;
}

.project-summary-creative {
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
body.dark-mode .project-summary-creative {
  color: #fafafa;
}


.project-summary-icon {
  font-size: 2.5rem;
  vertical-align: middle;
}
.project-summary-heading {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.7rem 0 1.5rem 0;
  letter-spacing: 1px;
}
.project-summary-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

body.dark-mode .project-summary-subcard {
  background: #e21474;
  color: #ee1414;
  background: #ebcccc;
  box-shadow: 0 1px 8px rgba(23, 245, 31, 0.07);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  width: 100%;
  max-width: 500px;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-summary-subcard {
  background: #fff;
  box-shadow: 0 1px 8px rgba(23, 245, 31, 0.07);
  border-radius: 12px;
  padding: clamp(0.7rem, 3vw, 1.2rem) clamp(1rem, 5vw, 1.5rem);
  width: 100%;
  max-width: 500px;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.project-summary-title.ai { color: #4CAF50; font-weight: 700; font-size: clamp(0.9rem, 2vw, 1.2rem); }
.project-summary-title.automation { color: #2196F3; font-weight: 700; font-size: clamp(0.9rem, 2vw, 1.2rem); }
.project-summary-title.software { color: #FF9800; font-weight: 700; font-size: clamp(0.9rem, 2vw, 1.2rem); }
.project-summary-subicon {
  font-size: 1.7rem;
  vertical-align: middle;
  margin-left: 0.5rem;
}
.project-summary-desc { margin-top: 0.5rem; font-size: clamp(0.9rem, 2vw, 1.08rem); color: #333; }
.project-summary-tagline { color: #888; font-size: clamp(0.8rem, 1.8vw, 0.98rem); }
.project-summary-footer { margin-top: 2.2rem; font-size: clamp(0.95rem, 2vw, 1.18rem); color: #222; font-weight: 500; }
.project-summary-footer-tagline { color: #4CAF50; font-size: clamp(0.85rem, 1.8vw, 1.05rem); }

/* Light theme (default) */
.project-summary-card {
  background: linear-gradient(135deg,#e3f2fd 0%,#fffde7 100%);
  box-shadow: 0 2px 16px rgba(76,175,80,0.10);
}
/* Dark theme override */
body.dark-mode .project-summary-card {
  background: #181a1b;
  box-shadow: 0 2px 16px rgba(76,175,80,0.18);
}




/* Blue and orange subcards */
.project-summary-subcard:nth-child(2) {
  box-shadow: 0 1px 8px rgba(221, 108, 2, 0.07);
}
.project-summary-subcard:nth-child(3) {
  box-shadow: 0 1px 8px rgba(255,152,0,0.07);
}


.contact-btn {
  position: static !important;
  display: block;
  margin: 1.2rem auto 0 auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
  background: #4CAF50;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  transition: background 0.2s, transform 0.2s;
}
.contact-btn:hover {
  background: #388e3c;
  transform: scale(1.07);
}
/* Main card for prominent sections */
.main-card {
  background: var(--bg-light, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 1.5rem;
  margin: 2rem auto;
  width: 90%;
  display: block;
  position: relative;
}
body.dark-mode .main-card {
  background: #181a1b;
}
.main-card h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary, #4CAF50);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}
.main-card h3 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
body.dark-mode .main-card h2 {
  color: var(--accent);
}
body.dark-mode .main-card h3 {
  color: #fafafa;
}
.main-card.visible {
  display: block;
}
body.dark-mode .main-card {
  background: #23272a;
}
.header-home-bg {
  position: relative;
  width: 100vw;
  overflow: hidden;
}
.hero-bg.creative-bg {
  width: 100vw;
  min-height: 520px;
  background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 40%, #ede7f6 80%, #fffde7 100%);
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
}
.navbar {
  position: relative;
  top: 0;
  z-index: 10;
  background: transparent;
}
/* Header card unique style */
.header-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 1.5rem 2.5rem;
  margin: 1.5rem auto 2rem auto;
  width: 80%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
}
.header-card .logo {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary, #4CAF50);
  letter-spacing: 2px;
}
.header-card nav {
  display: flex;
  gap: 1.2rem;
}
.header-card .social-icons {
  display: flex;
  gap: 1rem;
}
.header-card .mode-toggle {
  margin-left: 0.5rem;
}
body.dark-mode .header-card {
  background: #181a1b;


}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
body.dark-mode .projects-summary.card,
body.dark-mode .projects-summary.card h2,
body.dark-mode .projects-summary.card p:first-of-type {
  color: #fff;
}
body.dark-mode .projects-summary.card p,
body.dark-mode .projects-summary.card ul,
body.dark-mode .projects-summary.card li {
  color: #111;
}
body.dark-mode .projects-summary.card p:last-of-type {
  color: #fff;
}
body.dark-mode .projects-summary.card {
  background: #181a1b !important;
  border-color: #23243a;
  color: #fafafa;
}
:root {
  --bg-light: #f9f9f9;
  --text-light: #222;
  --bg-dark: #121212;
  --text-dark: #eee;
  --accent: #4CAF50;
  --font-main: 'Poppins', sans-serif;
}
/* Download CV Button Styling */
.hero-cv-btn {
  background: linear-gradient(90deg, #4CAF50 0%, #43a047 100%);
  color: #222 !important;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35), 0 1px 0 #333;
  font-weight: 600;
  border-radius: 32px;
  padding: 0.7rem 1.5rem;
  font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(76,175,80,0.18);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 2px solid #388e3c;

  /* Project Highlights Title */
  .project-highlights-title {
    font-size: 2.4rem;
    color: var(--primary, #4CAF50);
    letter-spacing: 1px;
    text-align: center;
  }

  /* Project Summary Card and Subcard backgrounds for light theme */
  

  .project-summary-title.ai {
    color: #4CAF50;
    font-weight: 700;
    font-size: 1.2rem;
  }
  .project-summary-title.automation {
    color: #2196F3;
    font-weight: 700;
    font-size: 1.2rem;
  }
  .project-summary-title.software {
    color: #FF9800;
    font-weight: 700;
    font-size: 1.2rem;
  }
  .project-summary-desc {
    margin-top: 0.5rem;
    font-size: 1.08rem;
    color: #333;
  }
  .project-summary-tagline {
    color: #888;
    font-size: 0.98rem;
  }
  .project-summary-footer {
    margin-top: 2.2rem;
    font-size: 1.18rem;
    color: #222;
    font-weight: 500;
  }
  body.dark-mode .project-summary-footer {
    color: #fff;
  }
  }
  .project-summary-footer-tagline {
    color: #4CAF50;
    font-size: 1.05rem;
  }
  .project-summary-subicon {
    font-size: 1.7rem;
    vertical-align: middle;
    margin-left: 0.5rem;
  }
  .project-summary-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .project-summary-icon {
    font-size: 2.5rem;
    vertical-align: middle;
  }
  .project-summary-heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.7rem 0 1.5rem 0;
    letter-spacing: 1px;
  }

  /* Blue and orange subcards */
  .project-summary-subcard:nth-child(2) {
    box-shadow: 0 1px 8px rgba(33,150,243,0.07);
  }
  .project-summary-subcard:nth-child(3) {
    box-shadow: 0 1px 8px rgba(255,152,0,0.07);
  }

    .project-summary-subcard {
      background: #cbccd1e3;
      box-shadow: 0 1px 8px rgba(76,175,80,0.13);
      color: #e0e0e0;
    }
    .project-summary-heading,
    .project-summary-desc,
    .project-summary-tagline,
    .project-summary-footer,
    .project-summary-footer-tagline {
      color: #f30e0e;
    }
    .project-summary-title.ai { color: #81c784; }
    .project-summary-title.automation { color: #64b5f6; }
    .project-summary-title.software { color: #ffb74d; }
    .project-summary-tagline { color: #05f7f7; }
    .project-summary-footer-tagline { color: #69d66f; }
    .project-summary-subcard:nth-child(2) {
      box-shadow: 0 1px 8px rgba(33,150,243,0.13);
    }
    .project-summary-subcard:nth-child(3) {
      box-shadow: 0 1px 8px rgba(255,152,0,0.13);
    }
  
body.dark-mode .creative-timeline a {
  color: #90caf9;
}
body.dark-mode .creative-timeline a:hover {
  color: #64b5f6;
}
body.dark-mode .project-desc {
  background: #23243a;
  color: #fafafa;
  box-shadow: 0 1px 4px rgba(76,175,80,0.15);
}
/* Project Description Styles */
.project-desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.97rem;
  color: #444;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  box-shadow: 0 1px 4px rgba(76,175,80,0.07);
}
/* Creative Timeline Styles */
.creative-timeline .timeline-item {
  background: linear-gradient(135deg, #e3f2fd 0%, #fffde7 100%);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(76,175,80,0.10);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  border-left: 6px solid var(--accent);
}
.creative-timeline .timeline-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  max-width: 900px;
  width: 100%;
}
.creative-timeline .timeline-icon {
  font-size: 2rem;
  color: var(--accent);
  background: #fff;
  border-radius: 50%;
  padding: 0.3rem 0.5rem;
  box-shadow: 0 2px 8px rgba(76,175,80,0.10);
}
.creative-timeline .internship-label {
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 8px;
  padding: 0.2rem 0.6rem;
  margin-left: 0.5rem;
  font-weight: 600;
}
.creative-timeline .timeline-date {
  margin-left: auto;
  font-size: 0.95rem;
  color: #388e3c;
  font-weight: 500;
}
.creative-timeline ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}
.creative-timeline ul ul {
  margin-top: 0.3rem;
}
.creative-timeline a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s;
}
.creative-timeline a:hover {
  color: #388e3c;
}
/* Certificate Modal Styles */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.cert-modal img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px rgba(76,175,80,0.18);
  background: #fff;
  padding: 1rem;
}
.cert-modal-close {
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  position: absolute;
  top: 2rem;
  right: 2rem;
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
}
.cert-modal-close:hover {
  color: var(--accent);
}
/* Skill group backgrounds */
.about-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}


@keyframes floatProfile {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}
.skills-group {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.3rem 0;
}
.main-skill-card {
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  box-shadow: 0 2px 8px rgba(76,175,80,0.07);
  margin-bottom: 0.2rem;
}
.programming-bg { background: #e8f5e9; }
.ml-bg { background: #f1f8e9; }
.scraping-bg { background: #e3f2fd; }
.db-bg { background: #fffde7; }
.pm-bg { background: #fce4ec; }
.nlp-bg { background: #ede7f6; }
.data-bg { background: #e0f7fa; }
.cyber-bg { background: #f3e5f5; }
.collab-bg { background: #f5f5f5; }
.main-skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: var(--accent);
}
.main-skill-card .skill-badges {
  flex-wrap: wrap;
  gap: 0.3rem;
}
.skills-group hr {
  border: none;
  border-top: 1px dashed #c8e6c9;
  margin: 0.2rem 0 0.4rem 0;
}
/* style.css for Ahmed Abdelrasoul Portfolio - Single Page */
/* ...existing code... */

/* About Section Flex Layout for Name/Title/Image */
.about-details-flex {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  margin-bottom: 1.2rem;
}


.about-img-wrap {
  min-width: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.about-profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  box-shadow: 0 8px 32px rgba(76,175,80,0.18), 0 0 0 8px #fffde7;
  transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), box-shadow 0.3s;
  animation: floatProfile 3s ease-in-out infinite;
  background: linear-gradient(135deg, #e3f2fd 0%, #fffde7 100%);
}
.about-name-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-name-title h2 {
  margin: 0 0 0.3rem 0;
  font-size: 2rem;
  font-weight: 700;
}
.about-name-title .about-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: #388e3c;
}

/* ...existing code... */
body {
  font-family: var(--font-main);
  background: var(--body-bg, linear-gradient(135deg, #c2d5e2 0%, #f1f8e9 40%, #ede7f6 80%, #fffde7 100%));
  color: var(--body-text, #222);
  margin: 0;
  transition: background 0.3s, color 0.3s;
}
.main-skill-card.ml-bg { background: #f1f8e9; }
.main-skill-card.scraping-bg { background: #e3f2fd; }
.main-skill-card.db-bg { background: #fffde7; }
.main-skill-card.pm-bg { background: #fce4ec; }
.main-skill-card.nlp-bg { background: #ede7f6; }
.main-skill-card.data-bg { background: #e0f7fa; }
.main-skill-card.cyber-bg { background: #f3e5f5; }
.main-skill-card.collab-bg { background: #f5f5f5; }
body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.navbar {
  position: relative;
  body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-light);
    margin: 0;
    transition: background 0.3s, color 0.3s;
  }
}
nav {
  display: flex;
  width:75%;
  gap: 1.5rem;
}
nav a {
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover {
  color: var(--accent);
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-icons a {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.social-icons a:hover {
  transform: scale(1.2);
}
.mode-toggle {
  background: linear-gradient(90deg, #ffe066 0%, #ffd700 100%);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
  margin-left: 1rem;
  box-shadow: 0 0 8px 0 rgba(255, 215, 0, 0.3);
  transition: box-shadow 0.3s, background 0.3s, border 0.3s;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mode-toggle:hover {
  box-shadow: 0 0 16px 2px var(--accent);
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  border-color: #fff176;
}
.mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), color 0.3s;
}
.mode-toggle.active .mode-icon {
  transform: rotate(360deg) scale(1.2);
  color: #fff176;
  text-shadow: 0 0 8px #fff176;
}
body.dark-mode .mode-toggle {
  background: linear-gradient(90deg, #232526 0%, #414345 100%);
  border-color: #fff;
  color: #fff176;
}
body.dark-mode .mode-toggle .mode-icon {
  color: #fff176;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  margin-left: 1rem;
}
.hero {
  text-align: center;
  padding: 5rem 2rem 3rem 2rem;
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #f9f9f9 0%, #e3f2fd 100%);
}
body.dark-mode .hero {
  background: linear-gradient(120deg, #232526 0%, #414345 100%);
  overflow: hidden;
}
/* Animated floating shapes for hero background */
.hero-bg-anim {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
  animation: heroFloat 12s linear infinite alternate;
}
.hero-bg-anim.shape1 {
  width: 140px; height: 140px; background: #e3f2fd; top: 12%; left: 10%; animation-delay: 0s;}
.hero-bg-anim.shape2 {
  width: 90px; height: 90px; background: #f5f5f5; top: 70%; left: 80%; animation-delay: 2s;}
.hero-bg-anim.shape3 {
  width: 70px; height: 70px; background: #c8e6c9; top: 60%; left: 20%; animation-delay: 4s;}
.hero-bg-anim.shape4 {
  width: 100px; height: 100px; background: #4CAF50; top: 30%; left: 70%; animation-delay: 6s; opacity: 0.12;}
@keyframes heroFloat {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.08); }
  100% { transform: translateY(0) scale(1); }
}
.creative-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 60% 40%, #ffe066 0%, #ffd700 40%, #e3f2fd 100%);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
  animation: bgMove 8s linear infinite alternate;
}
@keyframes bgMove {
  0% { background-position: 60% 40%; }
  100% { background-position: 40% 60%; }
}
.hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}
.hero-img-wrap {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-profile-img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 24px rgba(76,175,80,0.18);
  background: linear-gradient(135deg, #e3f2fd 0%, #fffde7 100%);
  animation: floatProfile 3s ease-in-out infinite;
}
.hero-content {
  text-align: left;
  max-width: 480px;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.wave {
  display: inline-block;
  animation: waveAnim 2s infinite;
}
@keyframes waveAnim {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(20deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(20deg); }
  40% { transform: rotate(-5deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}
.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
  min-height: 2.2rem;
  transition: color 0.3s;
}
body.dark-mode .hero-subtitle {
  color: #ffe066;
}
.hero-desc {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.about-section.styled-expertise {
  margin-left: 96px;
  transition: color 0.3s;
}
body.dark-mode .hero-desc {
  color: #ffd700;
}
.hero-cv-btn {
  font-size: 1.1rem;
  padding: 0.7rem 1.5rem;
  border-radius: 32px;
  background: linear-gradient(90deg, #ffe066 0%, #ffd700 100%);
  color: #333;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.18);
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-cv-btn:hover {
  background: linear-gradient(90deg, #ffd700 0%, #ffe066 100%);
  box-shadow: 0 4px 24px rgba(255, 215, 0, 0.28);
  transform: scale(1.07);
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: linear-gradient(135deg, #4CAF50 0%, #81c784 100%);
  opacity: 0.08;
  pointer-events: none;
}
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 0.5rem;
}
.hero h2 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(76,175,80,0.08);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}
.btn:hover {
  background: #388e3c;
  transform: translateY(-2px);
}
.about {
  padding: 3rem 1rem;
  background: none;
}
.about-content {
  display: flex;
  gap: 2rem;
  align-items: center;
  width:80%;
  margin: 0 auto;
}
.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(76,175,80,0.10);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}
.button-wrapper {
    grid-column: 2; /* Place button in 2nd column */
    text-align: center;
  }
.card {

/* About section cards */
.section-card {
  background: var(--bg-light, #fff);
  }
  .about-card.profile-bg { background: #e3f2fd; }
  .about-card.education-bg { background: #fffde7; }
  .about-card.expertise-bg { background: #f1f8e9; }
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s, background 0.2s;
}
body.dark-mode .section-card {
  background: #181a1b;
}
.about-card, .project-card, .cert-card, .main-skill-card {
  background: var(--bg-light, #fff);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-height: 340px;
  display: block;
}
  
/* Projects section cards */
  /* Removed project-card styles */
  /* body.dark-mode .project-card { */
  /*   background: #1e1e1e; */
  /* } */
body.dark-mode .about-card {
  background: #23272a;
}

/* Projects section cards */
.project-card {
  background: var(--bg-light);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-height: 340px;
}
body.dark-mode .project-card {
  background: #4e5457;
}

/* Certificate section cards */
.cert-card {
  background: var(--bg-light);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 0.7rem 0.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-height: 90px;
}
body.dark-mode .cert-card {
  background: #23243a;
}

/* Skills section cards */
.main-skill-card {
  background: var(--bg-light);
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  padding: 0.6rem 0.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  min-height: 60px;
}
body.dark-mode .main-skill-card {
  background: #23243a;
}

.card .btn {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  right: auto;
  margin-top: 0;
}
.card .btn:hover {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  right: auto;
  margin-top: 0;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(76,175,80,0.12);
  transform: translateY(-4px);
}
.tech-stack {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}
/* Skill badges */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.2rem 0;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
}
.skill-badge {
  display: inline-block;
  background: rgba(3, 243, 11, 0.18);
  color: #35a596;
  font-weight: 600;
  border-radius: 16px;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(76,175,80,0.13);
  margin: 0.1rem 0.1rem;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.2s;
}
.skill-badge:hover {
  background: #4CAF50;
  color: #fff;
  transform: scale(1.08);
}
.cert-logo {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
  border-left: 2px solid var(--accent);
}
.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}
body.dark-mode .timeline-item {
  background: #181a1b !important;
  color: #fafafa;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid #fff;
}
.contact {
  padding: 3rem 1rem;
}
.contact-card {
  max-width: 500px;
  margin: 0 auto;
}
#contact-form input, #contact-form textarea {
  width: 100%;
  padding: 0.7rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: var(--font-main);
  font-size: 1rem;
}
#contact-form input.error, #contact-form textarea.error {
  border-color: #e53935;
}
footer {
  text-align: center;
  padding: 1.5rem 0 1rem 0;
  background: var(--bg-light);
  color: #888;
  font-size: 1rem;
  margin-top: 2rem;
}
body.dark-mode footer {
  background: #181a1b;
  color: #fafafa;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edeef1;
  padding: 10px 20px;
  color: rgb(221, 207, 207);
  position: relative;
  z-index: 1000;
  width:50p
}
body.dark-mode .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #323a52;
  padding: 10px 20px;
  color: white;
  position: relative;
  z-index: 1000;
}
nav.open {
    display: flex;
    gap: 0;
  }
body.dark-mode nav.open {
    display: flex;
    gap: 0;
  }
.nav-links {
  display: flex;
  background: #edeef1;
  gap: 15px;
}
body.dark-mode .nav-links {
  background: #323a52;
  gap: 15px;
}
.nav-links a {
  text-decoration: none;
  color: rgb(15, 13, 13);
  font-weight: 500;
  transition: color 0.2s;
}

body.dark-mode .nav-links a {
  text-decoration: none;
  color: rgb(248, 248, 248);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: #4CAF50;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 40px;
  height: 3px;
  background: rgb(245, 245, 245);
  margin: 2px 0;
  border-radius: 2px;
}
.impact-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #e3f2fd 0%, #fffde7 100%);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,175,80,0.10);
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  gap: 1rem;
}

.impact-icon {
  color: #FFD600;
  font-size: 2rem;
}

.impact-text .highlight {
  color: #2196F3;
  font-weight: 700;
}

.impact-text .highlight-green {
  color: #4CAF50;
  font-weight: 700;
}
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  
  .about-details-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    width: 10%;
    height: auto;
  }
  .about-profile-img {
    width: 140px;
    height: 140px;
  }
  .card-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .header-card {
    padding: 0.7rem 1rem;
    width: 10%;
    gap: 1rem;
  }
  .header-card .logo {
    font-size: 1.3rem;
}
}
@media (max-width: 700px) {
  .navbar {
    position: relative !important; /* Change from fixed to relative */
    width: 90%;
    flex-direction: row;
    gap: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    min-height: unset;
    align-items: center;
  }
  nav {
    gap: 0;
    display: none;
    margin-bottom: 10%;
  }
  nav a {
    font-size: 0.8rem;
    margin: 0.5px;
    gap: 0;
  }
  nav.open {
    display: flex;
    gap: 0;
  }
  body.dark-mode nav.open {
    display: flex;
    gap: 0;
}
.social-icons {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.social-icons a {
  font-size: 0.71rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.social-icons a:hover {
  transform: scale(1.2);
}
.mode-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform 0.5s cubic-bezier(.68,-0.55,.27,1.55), color 0.3s;
}
.mode-toggle {
  background: linear-gradient(90deg, #ffe066 0%, #ffd700 100%);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--accent);
  margin-left: 1rem;
  box-shadow: 0 0 8px 0 rgba(255, 215, 0, 0.3);
  transition: box-shadow 0.3s, background 0.3s, border 0.3s;
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
  .hero {

    padding: 1rem 0.5rem 0.5rem 0.5rem;
    font-size: 0.7rem;
  }
  .hero-profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 24px rgba(76,175,80,0.18);
  background: linear-gradient(135deg, #e3f2fd 0%, #fffde7 100%);
  animation: floatProfile 3s ease-in-out infinite;
}
.hero-content {
  text-align: left;
  max-width: 90%;
}
.hero-title { font-size: 1rem !important; }
  .hero-subtitle { font-size: 0.7rem !important; }
  .hero-desc { font-size: 0.7rem !important; }
  .hero-cv-btn { font-size: 0.7rem !important; padding: 0.3rem 0.7rem !important; }
  

    /* Make #projects-list section and its cards even smaller and more compact */
    #projects-list .section-card {
    padding: 0.4rem 0.2rem !important;
    width: 90vw !important;         /* Make section card 90% of viewport width */
    max-width: 10p !important;
    min-width: 225px !important;
    font-size: 0.6rem !important;
    border-radius: 8px !important;
    min-height: 8rem !important;    /* Set a constant min height */
    max-height: 820px !important;   /* Set a constant max height */
    margin: 0 auto !important;      /* Center the card */
    box-sizing: border-box;
    flex-direction: row;
  }
   .card-grid1 {
    grid-template-columns: 1fr !important; /* 1 card per row on phones */
    gap: 1.5rem !important;
    padding: 0.7rem 0 !important;
    width: 100% !important;
    margin-bottom: 100px;
  }
  #projects-list .project-card.card {
    font-size: 0.55rem !important;
    border-radius: 8px !important;
    width: 225px !important;
    min-height: 12rem !important;
    max-height: 12rem !important;
    margin: 15px auto !important;
    flex-direction: column;
    box-sizing: border-box;
    gap:5rem !important;
  }
    #projects-list .project-card.card h3 {
      font-size: 0.6rem !important;
      margin-bottom: 0.3rem !important;
    }
    #projects-list .project-card.card p,
    #projects-list .project-card.card ul,
    #projects-list .project-card.card .btn {
      font-size: 0.4rem !important;
    }
    #projects-list .project-card.card ul {
      margin-bottom: 0.2rem !important;
      padding-left: 1rem !important;
    }
    #projects-list .btn {
      padding: 0.2rem 0.5rem !important;
      font-size: 0.6rem !important;
    }
  .timeline {
    padding-left: 0.5rem;
    font-size: 0.7rem;
  }
  .header-card {
    flex-direction: row;
    align-items: left;
    justify-content: flex-start; /* Align all items to the left */
    gap: 0.5rem;
    width: 90%;
    padding: 0 0.5rem;
  }
  .header-card .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    margin-right: 1rem;
    display: block;
  }
  .styled-expertise {
    margin-left: 0 !important;
    font-size: 0.7rem !important;
    padding: 0.3rem 0.2rem !important;
  }
  .styled-expertise-list {
    gap: 0.2rem !important;
  }
  .expertise-badge {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.3rem !important;
  }
  .expertise-emoji {
    font-size: 0.8rem !important;
    margin-right: 0.1rem !important;
  }
  .about-details-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
    width: 100%;
    height: auto;
    font-size: 0.7rem;
  }
  .about-profile-img {
    width: 60px;
    height: 60px;
  }
   .about-card, .cert-card, .main-skill-card {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.7rem;
    border-radius: 10px;
    margin: 1px 0 !important;
  }
  .project-highlights-title,
  .project-summary-heading,
  .project-summary-title,
  .project-summary-desc,
  .project-summary-tagline,
  .project-summary-footer,
  .project-summary-footer-tagline {
    font-size: 0.7rem !important;
  }
  .project-summary-icon,
  .project-summary-subicon {
    font-size: 1rem !important;
  }
  .cert-logo {
    width: 30px !important;
    height: 30px !important;
  }
  .main-skill-card h3 {
    font-size: 0.7rem !important;
  }
  .skill-badge {
    font-size: 0.6rem !important;
    padding: 0.1rem 0.3rem !important;
  }
  .project-summary-subcard {
  background: #fff;
  box-shadow: 0 1px 8px rgba(23, 245, 31, 0.07);
  border-radius: 12px;
  padding: clamp(0.7rem, 3vw, 1.2rem) clamp(1rem, 5vw, 1.5rem);
  width: 80%;
  max-width: 500px;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.dark-mode .project-summary-subcard {
  background: #e21474;
  color: #ee1414;
  background: #e0b8b8;
  box-shadow: 0 1px 8px rgba(23, 245, 31, 0.07);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  width: 80%;
  max-width: 500px;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.header-home-bg
{
  height : 50px !important;
}
.timeline-header {
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  gap: 0.2rem;
}
.timeline-item {
  margin-left: 0 !important;         /* Remove any default left margin */
  padding-left: 0 !important;        /* Remove any default left padding */
  align-items: flex-start !important;/* Align content to the left */
  text-align: left !important;       /* Make sure text is left-aligned */
}

/* If you want the whole timeline to be more left-aligned, you can also adjust: */
.timeline.creative-timeline {
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.project-desc {
  font-size: 0.5rem !important;
  line-height: 1.4;
}

.project-desc strong {
  font-size: 0.7rem !important;
}

.project-desc code {
  font-size: 0.75rem !important;
  padding: 0.1em 0.3em;
}
.project-logo-exp {
  width: 36px !important;
  height: 36px !important;
  border-radius: 6px !important;
}
.contact-card input[type="text"],
.contact-card input[type="email"],
.contact-card textarea {
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  height: 2.2rem;
  min-height: 2.2rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  box-sizing: border-box;
}

.contact-card textarea {
  height: 5rem;
  min-height: 3rem;
  max-height: 8rem;
  resize: vertical;
}
.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 40px; /* Place below navbar */
    left: 0;
    width: 150px;
    padding: 1px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 8px rgba(230, 4, 4, 0.12);
    z-index: 101;
  }

  .nav-links.active {
    display: flex;
  }

  .burger {
    order: -1; /* Move burger to the far left */
    width: 50%;
    margin-left: 0;
    display: flex;
  }
  .impact-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #e3f2fd 0%, #fffde7 100%);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(76,175,80,0.10);
  padding: 1.2rem 2rem;
  margin: 2rem auto;
  max-width: 600px;
  font-size: 0.6rem;
  font-weight: 600;
  color: #333;
  gap: 1rem;
}

.impact-icon {
  color: #FFD600;
  font-size: 2rem;
}

.impact-text .highlight {
  color: #2196F3;
  font-weight: 700;
}

.impact-text .highlight-green {
  color: #4CAF50;
  font-weight: 700;
}
}