:root {
  --primary-color: #9fef00;
  --secondary-color: #a4b1cd;
  --bg-color: #0a0a0a;
  --card-bg: #1a2332;
  --terminal-border: #2a3b52;
}

/* Base Styles */
body {
  background-color: var(--bg-color);
  color: var(--secondary-color);
  font-family: 'Courier New', monospace;
  padding-top: 80px;
}

/* Header */
.terminal-header {
  background: rgba(10, 16, 27, 0.95);
  border-bottom: 2px solid var(--terminal-border);
  backdrop-filter: blur(5px);
}

.logo {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--secondary-color) !important;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(45deg, var(--bg-color) 0%, #0f1923 100%);
}

.profile-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin-bottom: 2rem;
}

.social-icons {
  margin: 2rem 0;
}

.social-icons a {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin: 0 1rem;
  transition: all 0.3s;
}

.social-icons a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

/* Buttons */
.btn-terminal {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: 1rem 2rem;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-terminal:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(159, 239, 0, 0.3);
}

.btn-outline-terminal {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  padding: 1rem 2rem;
  transition: all 0.3s;
}

.btn-outline-terminal:hover {
  background: var(--primary-color);
  color: var(--bg-color);
}

/* Cards */
.skill-card,
.experience-card,
.education-card,
.service-card,
.badge-card,
.certificate-card,
.ctf-badge {
  background: var(--card-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s;
  height: 100%;
}

.skill-card:hover,
.experience-card:hover,
.education-card:hover,
.service-card:hover,
.badge-card:hover,
.certificate-card:hover,
.ctf-badge:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* TryHackMe Badge Container */
.platform-badge {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.badge-iframe-container {
  width: 100%;
  height: 250px;
  overflow: hidden !important;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--terminal-border);
}

.platform-iframe {
  width: calc(100% + 20px); /* Compensate for hidden overflow */
  height: calc(100% + 20px);
  border: none;
  margin: -10px; /* Counteract extra width/height */
  display: block;
}

.stats-box {
  background: var(--card-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 300px;
  overflow: hidden;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.stat-label {
  color: var(--secondary-color);
  font-weight: 600;
}

.stat-value {
  color: var(--primary-color);
  font-family: monospace;
}

/* CTF Badges Section */
.ctf-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--terminal-border);
  padding-bottom: 0.5rem;
  display: inline-block;
  margin: 3rem 0 2rem;
}

.ctf-badge {
  padding: 1.5rem;
  text-align: center;
}

.ctf-image {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.ctf-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

.ctf-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Contact Form */
#contactForm .form-control {
  background: var(--card-bg);
  border: 1px solid var(--terminal-border);
  color: var(--secondary-color);
}

#contactForm .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

#contactForm .form-control::placeholder {
  color: #6c757d;
  opacity: 0.8;
}

#contactForm .form-control:focus::placeholder {
  color: transparent;
}

/* Certifications */
.certificate-thumbnail {
  height: 200px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.certificate-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-img {
    width: 200px;
    height: 200px;
  }

  .hero {
    padding-top: 100px;
    text-align: center;
  }

  .platform-badge {
    height: auto;
    padding: 2rem 0;
  }

  .badge-iframe-container {
    height: 200px;
  }

  .stats-box {
    max-width: 100%;
  }
}
.title-profile-img {
    width: 250px;              /* Adjust size as needed */
    height: 250px;             /* Must match width to be a perfect circle */
    border-radius: 50%;        /* Makes the image round */
    object-fit: cover;         /* Ensures image doesn't look squashed */
    
    /* The Neon Ring Effect */
    border: 4px solid #39ff14; /* The physical ring (Neon Green) */
    box-shadow: 
        0 0 15px #39ff14,      /* Inner glow */
        0 0 30px #39ff14,      /* Middle glow */
        0 0 60px #39ff14;      /* Outer glow */
        
    transition: all 0.3s ease; /* Smooth transition for hover */
}

/* Optional: Make it pulse brighter when you hover over it */
.title-profile-img:hover {
    box-shadow: 
        0 0 20px #39ff14, 
        0 0 50px #39ff14, 
        0 0 100px #39ff14;
    transform: scale(1.05);    /* Slight zoom effect */
}