@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

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

:root {
  --primary-green: #27ae60;
  --secondary-green: #388e3c;
  --light-green: #4caf50;
  --accent-green: #81c784;
  --dark-bg: #1a1a1a;
  --darker-bg: #0f0f0f;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow-light: 0 8px 32px rgba(39, 174, 96, 0.15);
  --shadow-hover: 0 16px 64px rgba(39, 174, 96, 0.25);
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 20px;
  --spacing: 2rem;
}
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background: linear-gradient(180deg, #063f20 0%, #000000 100%);
  color: #cfefff;
  position: relative;
  z-index: 100;
}
canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.grid-background {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      90deg,
      rgba(58, 140, 255, 0.1) 1px,
      transparent 1px
    ),
    linear-gradient(rgba(58, 140, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px;
  z-index: -1;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 200px 200px, -100px -100px;
  }
}

/* Enhanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in-up.show {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.show {
  animation: scaleIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.show {
  animation: slideInRight 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar {
  padding: 1.2rem 0;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.navbar-brand img {
  max-height: 50px;
  transition: var(--transition);
  filter: drop-shadow(2px 2px 8px rgba(39, 174, 96, 0.2));
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: #2e7d32 !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 25px;
  margin: 0 0.3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.navbar-nav .nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  transition: var(--transition);
  z-index: -1;
}

.navbar-nav .nav-link:hover::before {
  left: 0;
}

.theme-toggle {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.3);
  color: var(--primary-green);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  transition: var(--transition);
  z-index: -1;
}

.theme-toggle:hover::before {
  left: 0;
}

.theme-toggle:hover {
  color: white;
  border-color: var(--primary-green);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.theme-toggle i {
  font-size: 18px;
  transition: var(--transition);
}
.theme-toggle:hover i {
  transform: rotate(20deg) scale(1.1);
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}

/* hero section */
.container {
  position: relative;
  z-index: 999 !important;
  padding: 5rem 1rem 3rem;
  text-align: center;
  color: #fff !important;
}
h1 {
  color: #fff !important;
}
.cyber-text {
  text-shadow: 0 0 10px #00ffcc, 0 0 15px #00ffcc;
  animation: glow-pulse 2s infinite alternate;
}
.cyber-visual {
  position: relative;
  width: 300;
  height: 250px;
  margin: 1rem auto;
}

.shield {
  position: absolute;
  top: 0;
  left: 50%;
  width: 350px;
  height: 230px;
  background: radial-gradient(circle at top, #014727, #003333 60%);
  clip-path: polygon(50% 0%, 95% 30%, 80% 100%, 20% 100%, 5% 30%);
  transform: translateX(-50%);
  box-shadow: 0 0 20px #00ffcc, 0 0 40px #00ffee;
  animation: pulse 2s ease-in-out infinite alternate;
}

.lock {
  position: absolute;
  top: 65px;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 145px;
  height: 110px;
  background: #013d1f;
  border: 3px solid #003333;
  border-radius: 6px;
  transform: translateX(-50%);
  box-shadow: 0 0 15px #00ffcc;
}
.lock::before {
  content: "";
  position: absolute;
  left: 33%;
  opacity: 0;
  width: 45px;
  height: 33px;
  border: 3px solid #09a564;
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  transform: translateY(0) rotate(180deg);
  animation: lock-animation 2s ease-in-out infinite alternate;
}
@keyframes lock-animation {
  from {
    opacity: 0;
    transform: translateY(0) rotate(180deg);
  }
  to {
    opacity: 1;
    transform: translateY(-70px) rotate(0deg);
  }
}

@keyframes pulse {
  from {
    box-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffee;
  }
  to {
    box-shadow: 0 0 30px #00ffee, 0 0 60px #00ffcc;
  }
}
/* Glow pulse effect */
@keyframes glow-pulse {
  from {
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc;
  }
  to {
    text-shadow: 0 0 15px #00ff9d, 0 0 30px #00ff6a;
  }
}

.separation {
  font-weight: bold;
  font-size: 1.5rem;
}

/* core skills styling */
.divider {
  height: 4px;
  margin: 0 auto 20px;
  border-radius: 8px;
  background: linear-gradient(90deg, #08c240, #049652, #013320);
  box-shadow: 0 0 12px rgba(8, 178, 194, 0.6), 0 0 24px rgba(2, 161, 69, 0.4);
  animation: divider-pulse 2s infinite alternate;
}

@keyframes divider-pulse {
  0% {
    opacity: 0.6;
    transform: scaleX(0.95);
  }
  100% {
    opacity: 1;
    transform: scaleX(1.05);
  }
}

.core-skills {
  color: var(--accent-green);
  font-family: "Courier New", monospace;
  position: relative;
  z-index: 999;
}

.headline {
  font-size: 3rem;
  font-family: "Courier New", monospace;
  font-weight: 500;
  text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffee;
}
.lead {
  font-family: "Courier New", monospace;
  font-weight: 300;
  text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffee;
}

/* Skill cards */
.skill-card {
  background: rgba(0, 20, 20, 0.85);
  padding: 25px;
  border: 2px solid #00ffcc;
  border-radius: 12px;
  box-shadow: 0 0 10px #00ffcc, inset 0 0 15px #003333;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.4s ease;
  cursor: pointer;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-overflow: ellipsis;
  white-space: normal;
  display: flex;
  align-items: center;
  justify-content: start;
  min-height: 150px; /* adjust based on your design */
}

/* Hover glowing effect */
.skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 10px #013b28, 0 0 15px #027034, inset 0 0 20px #037e44;
  border-color: #00ffee;
  color: #ffffff;
}
/* project */
.project-card {
  background: rgba(0, 20, 20, 0.85);
  border-radius: 12px;
  border: 2px solid #00ffcc;
  padding: 20px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 10px #013b28, 0 0 15px #027034, inset 0 0 20px #037e44;
  border-color: #00ffee;
  color: var(--primary-green);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1), 0 0 60px rgba(255, 0, 255, 0.05);
  opacity: 0.6;
  transition: opacity 0.3s, box-shadow 0.3s;
}

.project-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.4), 0 0 80px rgba(255, 0, 255, 0.2);
}

.project-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: #9aa4b2;
  font-size: 0.95rem;
}

/* optional neon timeline marker */
.timeline {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 2px solid rgb(6, 119, 32);
}
.timeline::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 16px;
  height: 16px;
  background: rgb(6, 119, 32);;
  border-radius: 50%;
  box-shadow: 0 0 10px #0ff, 0 0 20px rgb(3, 109, 65);
  top: 10px;
}
/* tools */
.tools-container {
  display: flex;
  justify-content: center;
}
h2 {
  text-align: center;
  margin-bottom: 40px;
}

.tool-card {
  background: rgba(0, 20, 20, 0.85);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.tool-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
  filter: brightness(0) invert(1);
}

.tool-card:hover img {
  transform: scale(1.2);
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.05), 0 0 40px rgba(255, 0, 255, 0.05);
  opacity: 0.6;
  transition: opacity 0.3s, box-shadow 0.3s;
}

.tool-card:hover::before {
  opacity: 1;
  box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), 0 0 80px rgba(255, 0, 255, 0.2);
}

.tool-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}

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

.tool-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.tool-desc {
  font-size: 0.9rem;
  color: #7cd4ab;
}
/* dark mode styles */
[data-bs-theme="dark"] body {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
  color: #ffffff;
}

[data-bs-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.95) !important;
  border-bottom: 3px solid var(--primary-green);
}

[data-bs-theme="dark"] .navbar-nav .nav-link {
  color: #ffffff !important;
}

[data-bs-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

[data-bs-theme="dark"] .theme-toggle::before {
  background: linear-gradient(135deg, var(--accent-green), var(--light-green));
}

[data-bs-theme="dark"] .theme-toggle:hover {
  color: #000000;
  border-color: var(--accent-green);
  box-shadow: 0 4px 15px rgba(129, 199, 132, 0.4);
}
[data-bs-theme="dark"] .card-title {
  color: #ffffff;
}
[data-bs-theme="dark"] .card-text {
  color: #ffffff;
}
[data-bs-theme="dark"] .main-head {
  color: #ffffff;
}

#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  background: linear-gradient(135deg, var(--primary-green), var(--light-green));
  color: white;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTop:hover {
  background: linear-gradient(135deg, var(--light-green), var(--accent-green));
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 32px rgba(39, 174, 96, 0.4);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.footer {
  background: rgba(0, 20, 20, 0.85);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

.footer-text {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons .icon {
  color: #fff;
  font-size: 1.8rem;
  transition: 0.3s;
}

.social-icons .icon:hover {
  color: #00ff88;
  text-shadow: 0 0 10px #00ffcc, 0 0 15px #00ffcc;
  transform: scale(1.2);
}

@media (max-width: 500px) {
  .footer-text {
    font-size: 1rem;
  }
  .social-icons .icon {
    font-size: 1.5rem;
  }
}
 
.cyber-highlights { 
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 40px;  
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.highlight-card {
  background: rgba(0, 20, 20, 0.85);
  padding: 30px 20px;
  border-radius: 12px;
  transition: 0.3s;
  box-shadow: 0 0 10px #00ffea20;
}

.highlight-card:hover {
  box-shadow: 0 0 20px #03724480;
  transform: translateY(-5px);
}

.highlight-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--light-green);
}

.highlight-card p {
  font-size: 1rem;
  color: #ccc;
  text-align: center;
} 
