* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  list-style: none;
  scroll-behavior: smooth;
}

/* Ensure smooth scrolling works on all browsers */
html {
  scroll-behavior: smooth;
}

:root {
  /* Light Daytime Theme */
  --bg-color: #ffffff;
  --second-bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --text-color: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.16);
  
  /* Typography */
  --big-font: 3.5rem;
  --h2-font: 2.6rem;
  --h3-font: 2rem;
  --p-font: 1.08rem;
  --small-font: 0.9rem;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Add subtle animated background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 191, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Animated radar pulse effect */
body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(0, 191, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: radarPulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes radarPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* Additional wave effect */
.wave-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.wave-effect::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.1), transparent);
  animation: waveMove 12s linear infinite;
}

.wave-effect::after {
  content: '';
  position: absolute;
  top: 60%;
  right: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.08), transparent);
  animation: waveMove 15s linear infinite reverse;
}

@keyframes waveMove {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(100%);
  }
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 20px 12%;
  border-bottom: 1px solid var(--border-color);
  transition: all .45s ease;
}

.logo {
  color: var(--text-color);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 2px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

span {
  color: var(--accent-color);
  font-weight: 900;
}

.navlist {
  display: flex;
  gap: 2rem;
}

.navlist a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  transition: all .3s ease;
  padding: 8px 16px;
  border-radius: 6px;
}

.navlist a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all .3s ease;
  transform: translateX(-50%);
}

.navlist a:hover {
  color: var(--text-color);
  background: rgba(0, 191, 255, 0.1);
}

.navlist a:hover::before {
  width: 80%;
}

.navlist a.active {
  color: var(--accent-color);
  background: rgba(0, 191, 255, 0.1);
}

.navlist a.active::before {
  width: 80%;
}

#menu-icon {
  font-size: 35px;
  color: var(--text-color);
  z-index: 10001;
  cursor: pointer;
  margin-left: 25px;
  display: none;
  transition: all 0.3s ease;
  border-radius: 4px;
  padding: 4px;
}

#menu-icon:hover {
  background: rgba(0, 191, 255, 0.1);
  color: var(--accent-color);
}

#menu-icon:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

section {
  padding: 160px 12% 120px;
}

/* HOME SECTION */
.home {
  position: relative;
  height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Add animated background elements */
.home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 191, 255, 0.05) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.home-text {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.home-text h1 {
  font-size: var(--big-font);
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.1;
  margin: 0 0 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-text h2 {
  font-size: var(--h2-font);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 20px;
}

.home-text h3 {
  color: var(--text-color);
  margin: 0 0 30px;
  font-size: var(--h3-font);
  font-weight: 600;
  line-height: 1.2;
}

.home-text p {
  color: var(--text-secondary);
  font-size: var(--p-font);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--gradient-primary);
  border-radius: 8px;
  color: var(--bg-color);
  font-size: 1.1rem;
  letter-spacing: 1px;
  font-weight: 700;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn:active {
  transform: translateY(0);
}

header.sticky {
  background: rgba(10, 10, 10, 0.98);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 12%;
  backdrop-filter: blur(20px);
}

/* Header: Profile picture layout and animations */
/* Keep the hero profile image on the right (desktop) and animate ring/heartbeat/sway */
@media (min-width: 961px) {
  .home-content { grid-template-columns: 1fr 0.9fr; column-gap: 3rem; align-items: center; }
  .home-text { order: 1; align-items: flex-start; text-align: left; }
  .hero-socials { justify-content: flex-start; }
  .home .button { justify-content: flex-start; }
  .home-image { order: 2; display: flex; justify-content: flex-start; align-items: center; }
}

/* Ensure container allows animation and glow to render cleanly */
.home-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  will-change: transform;
  animation: heartbeatScale 4s ease-in-out infinite;
}

/* Container-based neon ring: tighter, darker, more neon, confined to the thin strip */
.home-image::after {
  content: '';
  position: absolute;
  inset: -6px; /* thin ring just around the image */
  border-radius: 50%;
  background: transparent;
  border: 4px solid rgba(59,130,246,0.85); /* darker neon blue ring */
  box-shadow:
    0 0 10px rgba(59,130,246,0.55),
    0 0 2px rgba(59,130,246,0.9) inset; /* crisp neon edge */
  z-index: 0;
  animation: neonPulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

/* Profile picture image: float baseline + hover sway */
.profile-pic-hero {
  position: relative;
  z-index: 1;
  border: 6px solid var(--accent-color);
  box-shadow:
    0 0 30px rgba(59,130,246,0.55),
    0 8px 24px rgba(15, 23, 42, 0.10);
  animation: heroFloat 5.5s ease-in-out infinite;
}
.profile-pic-hero:hover { animation: heroFloat 5.5s ease-in-out infinite, hoverSway 2.4s ease-in-out infinite; }
.profile-pic-hero::after { content: none; }

/* Keyframes for profile picture effects */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); box-shadow: 0 0 28px rgba(0,170,255,0.52), 0 8px 24px rgba(15,23,42,0.10); }
  50% { transform: translateY(-8px); box-shadow: 0 0 38px rgba(0,170,255,0.66), 0 14px 34px rgba(15,23,42,0.12); }
}
@keyframes hoverSway { 0%,100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(4px) rotate(0.4deg); } }
@keyframes heartbeatScale {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.02); }
  50% { transform: scale(1.035); }
  75% { transform: scale(1.02); }
}
@keyframes neonPulse {
  0%, 100% {
    border-color: rgba(59,130,246,0.85);
    box-shadow:
      0 0 10px rgba(59,130,246,0.55),
      0 0 2px rgba(59,130,246,0.9) inset;
  }
  50% {
    border-color: rgba(59,130,246,1);
    box-shadow:
      0 0 14px rgba(59,130,246,0.75),
      0 0 3px rgba(59,130,246,1) inset;
  }
}

/* ABOUT SECTION */
.about {
  background: var(--second-bg-color);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 30% 20%, rgba(0, 191, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0, 191, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-text h2 {
  font-size: var(--h2-font);
  line-height: 1.2;
  margin-bottom: 30px;
  position: relative;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: var(--p-font);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-soft);
}

.stat h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.stat p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

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

.cyber-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 300px;
  height: 300px;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;               /* lets it grow alongside text */
  min-width: 300px;      /* ensures space on small screens */
  padding: 1rem;
}


.profile-pic {
  width: 100%;
  max-width: 400px;   /* was 300px — bump up to 400 or 450 */
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #00aaff; /* thicker cyber border */
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.6);
  animation: floating 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes floating {
  0%, 100% {
    transform: translateZ(0px) scale(1);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.6);
  }
  50% {
    transform: translateZ(15px) scale(1.05);
    box-shadow: 0 0 45px rgba(0, 170, 255, 0.8);
  }
}




.grid-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.grid-item:hover::before {
  opacity: 0.1;
}

.grid-item:nth-child(1), .grid-item:nth-child(3), .grid-item:nth-child(5), .grid-item:nth-child(7), .grid-item:nth-child(9) {
  animation: pulse 2s ease-in-out infinite;
}

.grid-item:nth-child(2), .grid-item:nth-child(4), .grid-item:nth-child(6), .grid-item:nth-child(8) {
  animation: pulse 2s ease-in-out infinite 1s;
}

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

@media (min-width: 1024px) {
  .profile-pic {
    max-width: 500px; /* massive bubble on big screens */
  }
}

/* SKILL SECTION */
.skills {
  background: var(--bg-color);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 191, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.skills-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.skills-header h2 {
  font-size: var(--h2-font);
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.skills-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.skills-header p {
  color: var(--text-secondary);
  font-size: var(--p-font);
  max-width: 600px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.tool-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.05) 0%, rgba(0, 153, 204, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card:hover::before {
  transform: scaleX(1);
}

.tool-card:hover::after {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-medium);
}

.tool-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-soft);
}

.tool-icon i {
  font-size: 2.5rem;
  color: var(--bg-color);
}

.tool-card h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.tool-card p {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.tool-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.tool-card:hover .tool-description {
  opacity: 1;
}

@media screen and (max-width: 990px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 990px) {
  .case-studies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media screen and (max-width: 650px) {
  :root {
    font-size: 12px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tool-card {
    padding: 2rem 1.5rem;
  }
  
  .tool-icon {
    width: 70px;
    height: 70px;
  }
  
  .tool-icon i {
    font-size: 2rem;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .case-study-card {
    padding: 2rem 1.5rem;
  }
  
  .project-status {
    font-size: 0.7rem;
    padding: 3px 6px;
    margin-bottom: 1.2rem;
  }
}

/* PROJECTS SECTION */
.projects {
  background: var(--second-bg-color);
  position: relative;
}

.projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 191, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(0, 191, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.projects-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.projects-header h2 {
  font-size: var(--h2-font);
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.projects-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.projects-header p {
  color: var(--text-secondary);
  font-size: var(--p-font);
  max-width: 600px;
  margin: 0 auto;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.case-study-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.case-study-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.03) 0%, rgba(0, 153, 204, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-study-card:hover::before {
  transform: scaleX(1);
}

.case-study-card:hover::after {
  opacity: 1;
}

.case-study-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-medium);
}

.case-study-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.case-study-card:hover .case-study-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-soft);
}

.case-study-icon i {
  font-size: 2rem;
  color: var(--bg-color);
}

.case-study-card h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.case-study-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.project-status {
  display: inline-block;
  background: #f1c40f;
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.case-study-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.case-study-tag {
  background: var(--second-bg-color);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.case-study-card:hover .case-study-tag {
  background: var(--accent-color);
  color: var(--bg-color);
  border-color: var(--accent-color);
}

.read-report-btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--bg-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  border: none;
  cursor: pointer;
  letter-spacing: 0.5px;
}

.read-report-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  color: var(--bg-color);
}

/* CERTIFICATIONS SECTION */
.certifications {
  background: var(--second-bg-color);
  position: relative;
}

.certifications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(0, 191, 255, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(0, 191, 255, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.certifications-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.certifications-header h2 {
  font-size: var(--h2-font);
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
}

.certifications-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.certifications-header p {
  color: var(--text-secondary);
  font-size: var(--p-font);
  max-width: 600px;
  margin: 0 auto;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cert-card:hover::before {
  transform: scaleX(1);
}

.cert-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-color);
  box-shadow: var(--shadow-medium);
}

.cert-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.cert-card:hover .cert-icon {
  transform: scale(1.1);
}

.cert-icon i {
  font-size: 2rem;
  color: var(--bg-color);
}

.cert-card h3 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.cert-date {
  background: var(--accent-color);
  color: var(--bg-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.cert-date.in-progress {
  background: var(--warning-color);
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(255, 165, 2, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.6);
  }
}

/* CONTACT SECTION */
.contact {
  background: var(--bg-color);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(0, 191, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 191, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.contact-text {
  position: relative;
  z-index: 2;
}

.contact-text h2 {
  font-size: var(--h2-font);
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
  font-weight: 700;
}

.contact-text h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.contact-text p {
  color: var(--text-secondary);
  font-size: var(--p-font);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 500px;
  font-weight: 400;
}



.social-links h3 {
  color: var(--accent-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.social-icons a:hover {
  color: var(--bg-color);
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.social-icons i {
  font-size: 1.2rem;
}

@media (max-width: 920px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* CONTACT FORM SECTION */
.contact-form {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.send-message-btn {
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  background: var(--gradient-primary);
  color: var(--bg-color);
  padding: 18px 50px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  cursor: pointer;
  letter-spacing: 1px;
}

.send-message-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.send-message-btn:hover::before {
  left: 100%;
}

.send-message-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.send-message-btn:active {
  transform: translateY(0);
}



/* FOOTER SECTION */
.footer {
  background: var(--second-bg-color);
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-primary);
}



.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 12%;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer-copyright p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}



.back-to-top {
  transition: all 0.3s ease;
}

.back-to-top i {
  padding: 12px;
  border-radius: 12px;
  font-size: 18px;
  color: var(--bg-color);
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top:hover i {
  box-shadow: var(--shadow-medium);
}

@media (max-width: 1100px) {
  :root {
    --big-font: 3rem;
    --h2-font: 2.2rem;
    --h3-font: 1.8rem;
    --p-font: 1rem;
    transition: .1s;
  }

  .home-text h3 {
    font-size: 2.2rem;
  }

  .home {
    height: 90vh;
  }

  .portfolio-content {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 1480px) {
  header {
    padding: 12px 2.5%;
    transition: .1s;
  }

  header.sticky {
    padding: 10px 2.5%;
    transition: .1s;
  }

  section {
    padding: 110px 3% 60px;
  }


}

@media (max-width: 840px) {
  #menu-icon {
    display: block;
    color: var(--accent-color);
    transition: all 0.3s ease;
  }

  #menu-icon:hover {
    color: var(--text-color);
  }

  .navlist {
    position: absolute;
    top: -1000px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    text-align: left;
    transition: all .45s ease;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .navlist a {
    display: block;
    margin: 10px 20px;
    font-size: 18px;
    transition: all .45s ease;
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 8px;
  }

  .navlist a:hover {
    color: var(--accent-color);
    background: rgba(0, 191, 255, 0.1);
  }

  .navlist a.active {
    color: var(--accent-color);
    background: rgba(0, 191, 255, 0.1);
  }

  .navlist.open {
    top: 100%;
  }

  .portfolio-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .cyber-grid {
    width: 250px;
    height: 250px;
  }



  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 5%;
    text-align: center;
  }


}

/* Light Theme Overrides – Daytime, clean, modern */
/* ================================================= */
:root {
  --bg-color: #ffffff;
  --second-bg-color: #f7f9fc;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --text-color: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-medium: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 20px 60px rgba(15, 23, 42, 0.16);
}

body { background: var(--second-bg-color); }
body::before, body::after { display: none !important; }
.wave-effect { display: none !important; }

header {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(10px) !important;
  padding: 16px 12% !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04) !important;
}
header.sticky {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 14px 12% !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
}

.navlist a:hover,
.navlist a.active { background: rgba(59, 130, 246, 0.10) !important; }
#menu-icon:hover { background: rgba(59, 130, 246, 0.10) !important; color: var(--accent-color) !important; }

section.home {
  background: var(--gradient-secondary) !important;
}
.home::before { display: none !important; }
.home-text h1 {
  -webkit-text-fill-color: initial !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: var(--text-color) !important;
  letter-spacing: -0.02em;
}
.btn, .read-report-btn, .send-message-btn { color: #ffffff !important; }

.about { background: var(--bg-color) !important; }
.profile-pic {
  border: 4px solid var(--border-color) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  animation: none !important;
}

.projects, .certifications { background: var(--second-bg-color) !important; }
.projects::before, .certifications::before, .skills::before, .contact::before { display: none !important; }

.case-study-card::before,
.tool-card::before { background: var(--accent-color) !important; }
.case-study-card::after,
.tool-card::after { background: linear-gradient(135deg, rgba(59,130,246,0.04) 0%, rgba(37,99,235,0.04) 100%) !important; }
.case-study-icon i, .tool-icon i, .cert-icon i { color: #ffffff !important; }

.case-study-tag {
  background: #eef2ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #dbeafe !important;
}
.case-study-card:hover .case-study-tag {
  background: var(--accent-color) !important;
  color: #ffffff !important;
  border-color: var(--accent-color) !important;
}

.social-icons a:hover { color: #ffffff !important; background: var(--accent-color) !important; border-color: var(--accent-color) !important; }

.footer { background: var(--second-bg-color) !important; border-top: 1px solid var(--border-color) !important; }
.back-to-top i { color: #ffffff !important; }

@media (max-width: 840px) {
  .navlist {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter: blur(10px) !important;
  }
  .navlist a:hover,
  .navlist a.active {
    color: var(--accent-color) !important;
    background: rgba(59, 130, 246, 0.10) !important;
  }
}

/* Hero Rotating Rectangle - Light Subtle Animation */
.home {
  position: relative;
}
.hero-rotator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.rotating-rect {
  width: min(70vw, 680px);
  height: min(40vw, 380px);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(96,165,250,0.18) 0%, rgba(59,130,246,0.18) 100%);
  box-shadow: 0 24px 60px rgba(59, 130, 246, 0.08), inset 0 0 0 1px rgba(59,130,246,0.12);
  filter: blur(0.2px);
  animation: rectSpin 28s linear infinite;
  transform-origin: center;
}
@keyframes rectSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.55; }
  50% { transform: rotate(180deg) scale(1.02); opacity: 0.5; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.55; }
}
/* Place content above animation */
.home-text { position: relative; z-index: 2; }

@media (max-width: 640px) {
  .rotating-rect {
    width: min(90vw, 520px);
    height: min(55vw, 320px);
    border-radius: 20px;
    animation-duration: 32s;
  }
}

/* Hero Cloud Animation - Light, subtle, parallax */
.home { position: relative; overflow: hidden; }
.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.cloud-layer {
  position: absolute;
  width: 140%;
  left: -20%;
  height: 50%;
}
.layer-back { top: 8%; opacity: 0.18; filter: blur(0.4px); }
.layer-mid { top: 24%; opacity: 0.22; filter: blur(0.2px); }
.layer-front { top: 40%; opacity: 0.26; }

.cloud {
  position: absolute;
  display: block;
  width: 360px;
  height: 120px;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0.0) 70%),
              radial-gradient(ellipse at 65% 50%, rgba(224,242,254,0.9) 0%, rgba(224,242,254,0.5) 55%, rgba(224,242,254,0.0) 70%),
              linear-gradient(180deg, rgba(96,165,250,0.25), rgba(59,130,246,0.18));
  border-radius: 100px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  transform: translateX(-10%);
  animation: drift 60s linear infinite;
}
/* Sub-cloud bumps using pseudo-elements */
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  filter: blur(0.2px);
}
.cloud::before {
  width: 200px; height: 140px; left: 60px; top: -50px; border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
}
.cloud::after {
  width: 140px; height: 100px; left: 180px; top: -30px; border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
}

/* Individual cloud positions and speeds */
.c1 { left: 0%; animation-duration: 70s; }
.c2 { left: 35%; animation-duration: 64s; }
.c3 { left: 10%; animation-duration: 58s; }
.c4 { left: 55%; animation-duration: 54s; }
.c5 { left: 25%; animation-duration: 50s; }

/* Parallax drift */
.layer-back .cloud { animation-name: driftSlow; }
.layer-mid .cloud { animation-name: drift; }
.layer-front .cloud { animation-name: driftFast; }

@keyframes driftSlow { 0% { transform: translateX(-20%); } 100% { transform: translateX(20%); } }
@keyframes drift { 0% { transform: translateX(-25%); } 100% { transform: translateX(25%); } }
@keyframes driftFast { 0% { transform: translateX(-30%); } 100% { transform: translateX(30%); } }

/* Ensure hero content is above clouds */
.home-text { position: relative; z-index: 2; }

@media (max-width: 768px) {
  .cloud { width: 280px; height: 100px; }
  .cloud::before { width: 160px; height: 120px; left: 50px; top: -40px; }
  .cloud::after { width: 110px; height: 80px; left: 150px; top: -24px; }
}

/* Hero layout: text left, image right */
.home-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
}
.home-image { display: flex; align-items: center; justify-content: center; }

/* Hero socials under heading */
.hero-socials {
  display: flex;
  gap: 0.75rem;
  margin: 16px 0 12px;
  flex-wrap: wrap;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.hero-socials a:hover {
  color: #ffffff;
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.hero-socials i { font-size: 1.1rem; }

/* Neon glow + hover animation for hero profile image */
.profile-pic-hero {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 6px solid #00aaff;
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.55), 0 8px 24px rgba(15, 23, 42, 0.10);
  animation: heroFloat 5.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); box-shadow: 0 0 28px rgba(0,170,255,0.52), 0 8px 24px rgba(15,23,42,0.10); }
  50% { transform: translateY(-8px); box-shadow: 0 0 38px rgba(0,170,255,0.66), 0 14px 34px rgba(15,23,42,0.12); }
}
.profile-pic-hero:hover { transform: translateY(-3px) scale(1.01); }

/* Hero social icons: larger and centered under heading */
.hero-socials { gap: 0.9rem; justify-content: center; }
.hero-socials a { width: 50px; height: 50px; }
.hero-socials a i { font-size: 20px; }

/* Ensure hero text area centers its inner content on desktop */
.home-text { display: flex; flex-direction: column; align-items: center; }

/* Center hero stack (heading, socials, CTA) */
.home-content { display: grid; grid-template-columns: 1fr; justify-items: center; row-gap: 0.75rem; }
.home-text { order: 1; align-items: center; text-align: center; }
.hero-socials { order: 2; display: flex; gap: 1rem; margin: 10px 0 8px; justify-content: center; flex-wrap: wrap; }
.home .button { order: 3; }

/* Reference-style social buttons: black circles with brand icons */
.hero-socials a {
  width: 62px; height: 62px;
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #000000; border: none;
  box-shadow: 0 8px 18px rgba(15,23,42,0.12);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.hero-socials a i { font-size: 26px; line-height: 1; }
/* White or brand-tinted icons on black */
.hero-socials a[data-brand="youtube"] i { color: #ffffff; }
.hero-socials a[data-brand="instagram"] i { color: #ffffff; }
.hero-socials a[data-brand="twitter"] i { color: #ffffff; }
.hero-socials a[data-brand="linkedin"] i { color: #ffffff; }

/* Force GitHub icon to white */
.hero-socials a[data-brand="github"] i { color: #ffffff !important; }

/* Hover: subtle lift/brightness; keep black circle */
.hero-socials a:hover { transform: scale(1.06); filter: brightness(1.05); box-shadow: 0 12px 28px rgba(15,23,42,0.18); }

/* Responsive sizing */
@media (max-width: 960px) {
  .hero-socials a { width: 58px; height: 58px; }
  .hero-socials a i { font-size: 24px; }
}
@media (max-width: 640px) {
  .hero-socials a { width: 54px; height: 54px; }
  .hero-socials a i { font-size: 22px; }
}

@media (max-width: 960px) {
  /* Mobile-first vertical layout order */
  .home-content { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
  .home-text { order: 1; align-items: center; }
  .hero-socials { order: 2; justify-content: center; }
  .home-image { order: 3; }
  .button { order: 4; }

  /* Increase spacing for clarity on mobile */
  .home-text h3 { margin-bottom: 10px; }
  .hero-socials { margin: 6px 0 4px; }
  .home-image { margin: 6px 0 8px; }
  .button { margin-top: 6px; }
}

@media (max-width: 640px) {
  .hero-socials a { width: 48px; height: 48px; }
  .hero-socials a i { font-size: 19px; }
}

/* Contact centered layout and prominent heading */
.contact-centered { text-align: center; margin-left: auto; margin-right: auto; }
.contact .contact-text.contact-centered h2 {
  font-size: calc(var(--h2-font) + 0.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.contact .contact-text.contact-centered h2::after { left: 50%; transform: translateX(-50%); }
.contact .contact-form.contact-centered { justify-content: center; margin-top: 12px; }

/* Section reveal transitions for single-scroll landing flow */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Section headers unified */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: var(--h2-font); line-height: 1.2; position: relative; }
.section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--gradient-primary); border-radius: 2px; }
.section-header p { color: var(--text-secondary); max-width: 640px; margin: 14px auto 0; }

/* Featured landing feel for projects & certifications */
.projects .projects-header h2, .certifications .certifications-header h2 { letter-spacing: -0.01em; }
.projects .case-study-card, .certifications .cert-card { border-radius: 18px; }
.projects .case-study-card:hover, .certifications .cert-card:hover { transform: translateY(-10px); }

/* CTA Final Contact Section */
.cta-final { background: linear-gradient(180deg, var(--second-bg-color) 0%, var(--bg-color) 100%); }
.cta-final .send-message-btn { padding: 20px 56px; font-size: 1.05rem; border-radius: 14px; box-shadow: 0 12px 30px rgba(59,130,246,0.18); }
.cta-final .send-message-btn:hover { box-shadow: 0 16px 40px rgba(59,130,246,0.22); }

@media (max-width: 840px) {
  .section-header { margin-bottom: 2.2rem; }
}

/* Desktop: place profile image to the RIGHT of hero text */
@media (min-width: 961px) {
  .home-content { grid-template-columns: 1fr 0.9fr; column-gap: 3rem; }
  .home-text { order: 1; align-items: flex-start; text-align: left; }
  .hero-socials { justify-content: flex-start; }
  .home .button { justify-content: flex-start; }
  .home-image { order: 2; justify-content: flex-start; }
}

/* Pulsing neon-blue ring around profile picture (use theme accent) */
.profile-pic-hero {
  position: relative;
  z-index: 1;
  border: 6px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(59,130,246,0.55), 0 8px 24px rgba(15, 23, 42, 0.10);
  animation: heroFloat 5.5s ease-in-out infinite;
}
.profile-pic-hero::after {
  content: '';
  position: absolute;
  inset: -12px; /* ring thickness */
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59,130,246,0.50), rgba(59,130,246,0.18) 60%, rgba(59,130,246,0.0) 72%);
  filter: blur(6px);
  z-index: -1;
  animation: ringPulse 4.8s ease-in-out infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.04); }
}
/* On hover: add gentle sway while continuing float */
@keyframes hoverSway { 0%,100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(4px) rotate(0.4deg); } }
.profile-pic-hero:hover { animation: heroFloat 5.5s ease-in-out infinite, hoverSway 2.4s ease-in-out infinite; }

/* Desktop placement: image on the right aligned with text */
@media (min-width: 961px) {
  .home-content { grid-template-columns: 1fr 0.9fr; column-gap: 3rem; align-items: center; }
  .home-text { order: 1; align-items: flex-start; text-align: left; }
  .hero-socials { justify-content: flex-start; }
  .home .button { justify-content: flex-start; }
  .home-image { order: 2; display: flex; justify-content: flex-start; align-items: center; }
}

/* Prevent fixed header overlap on small screens */
@media (max-width: 840px) {
  header { min-height: 72px; padding-top: 12px; padding-bottom: 12px; }
  body { padding-top: 72px; }
}

/* Heartbeat animations: gentle scale + glowing blue shadow */
@keyframes heartbeatScale {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.02); }
  50% { transform: scale(1.035); }
  75% { transform: scale(1.02); }
}
@keyframes heartbeatGlow {
  0%, 100% {
    box-shadow:
      0 0 26px rgba(59,130,246,0.45),
      0 8px 24px rgba(15, 23, 42, 0.10);
  }
  50% {
    box-shadow:
      0 0 40px rgba(59,130,246,0.70),
      0 12px 30px rgba(15, 23, 42, 0.12);
  }
}

/* Ensure container allows animation and glow to render cleanly */
.home-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  will-change: transform;
}

/* Heartbeat: scale the container smoothly at all sizes */
.home-image { animation: heartbeatScale 4s ease-in-out infinite; }

/* Container-based neon ring: tighter, darker, more neon, confined to the thin strip */
.home-image::after {
  content: '';
  position: absolute;
  inset: -6px; /* thin ring just around the image */
  border-radius: 50%;
  background: transparent;
  border: 4px solid rgba(59,130,246,0.85); /* darker neon blue ring */
  box-shadow:
    0 0 10px rgba(59,130,246,0.55),
    0 0 2px rgba(59,130,246,0.9) inset; /* crisp neon edge */
  z-index: 0;
  animation: neonPulse 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes neonPulse {
  0%, 100% {
    border-color: rgba(59,130,246,0.85);
    box-shadow:
      0 0 10px rgba(59,130,246,0.55),
      0 0 2px rgba(59,130,246,0.9) inset;
  }
  50% {
    border-color: rgba(59,130,246,1);
    box-shadow:
      0 0 14px rgba(59,130,246,0.75),
      0 0 3px rgba(59,130,246,1) inset;
  }
}

/* Keep image above the glow and run only float (+ sway on hover) */
.profile-pic-hero {
  position: relative;
  z-index: 1;
  border: 6px solid var(--accent-color);
  box-shadow:
    0 0 30px rgba(59,130,246,0.55),
    0 8px 24px rgba(15, 23, 42, 0.10);
  animation: heroFloat 5.5s ease-in-out infinite;
}
.profile-pic-hero:hover { animation: heroFloat 5.5s ease-in-out infinite, hoverSway 2.4s ease-in-out infinite; }

/* Disable any prior pseudo-glow directly on the image to avoid double glow */
.profile-pic-hero::after { content: none; }
