/* Base Styles with Theme Variables */
:root {
  /* Dark Theme (Default) */
  --primary-color: #0a192f;
  --secondary-color: #64ffda;
  --accent-color: #ff6b6b;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --bg-color: #0a192f;
  --card-bg: #112240;
  --border-color: #233554;
  --transition: all 0.3s ease;
  --glow: 0 0 20px rgba(100, 255, 218, 0.3);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Light Theme */
[data-theme="light"] {
  --primary-color: #ffffff;
  --secondary-color: #0066cc;
  --accent-color: #ff4757;
  --text-primary: #2c3e50;
  --text-secondary: #7f8c8d;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --glow: 0 0 20px rgba(0, 102, 204, 0.2);
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: var(--transition);
}

.container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 50px 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  color: var(--text-primary);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  box-shadow: var(--glow);
}

h1,
h2,
h3,
h4 {
  margin-bottom: 15px;
  line-height: 1.2;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
}

.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-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: var(--glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="light"] #navbar {
  background-color: rgba(248, 249, 250, 0.95);
}

#navbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 20px; /* Reduced from 40px to 20px to make buttons closer */
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 40px; /* Increased from 10px to 40px to add more space between Contact and theme button */
  margin-left: 40px; /* Added margin to create more separation from nav links */
}

.theme-toggle {
  background: none;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: scale(1.1);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--text-primary);
  transition: var(--transition);
}

/* Cyber Background Effects */
.cyber-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  opacity: 0.1;
}

.binary-rain {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.network-nodes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.data-streams {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Matrix Background */
.matrix-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.1;
  z-index: -1;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
}

.hero .container {
  width: 100%;
}

.hero-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--secondary-color);
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  justify-content: flex-start;
}

/* Security Stats */
.security-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Terminal Window */
.terminal-window {
  background-color: #1e1e1e;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  width: 100%;
}

[data-theme="light"] .terminal-window {
  background-color: #2d3748;
  border: 1px solid var(--border-color);
}

.terminal-header {
  background-color: #2d2d2d;
  padding: 10px 15px;
  border-radius: 8px 8px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="light"] .terminal-header {
  background-color: #4a5568;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-buttons span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-close {
  background-color: #ff5f56;
}

.btn-minimize {
  background-color: #ffbd2e;
}

.btn-maximize {
  background-color: #27ca3f;
}

.terminal-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.terminal-body {
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  max-height: 300px;
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 10px;
}

.prompt {
  color: var(--secondary-color);
}

.command {
  color: var(--text-primary);
}

.cursor {
  color: var(--secondary-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.terminal-output {
  margin-top: 10px;
  color: var(--text-secondary);
}

/* Hero Image */
.profile-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  box-shadow: var(--glow);
}

.profile-image img {
  width: 100%;
  height: 127%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.1);
}

/* Floating Elements */
.floating-elements {
  display: none;
}

.floating-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--secondary-color);
  opacity: 0.7;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
  top: 10%;
  left: 10%;
}

.floating-icon:nth-child(2) {
  top: 20%;
  right: 10%;
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 15%;
}

.floating-icon:nth-child(4) {
  bottom: 10%;
  right: 15%;
}

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

/* SOC Dashboard */
.soc-dashboard {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 350px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.dashboard-header h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin: 0;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #27ca3f;
  box-shadow: 0 0 10px rgba(39, 202, 63, 0.5);
  animation: pulse 2s infinite;
}

.dashboard-content {
  margin-bottom: 20px;
}

.metric {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(35, 53, 84, 0.5);
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.metric-value {
  color: var(--text-primary);
  font-weight: 600;
}

.metric-value.health {
  color: #27ca3f;
}

.threat-feed {
  max-height: 120px;
  overflow-y: auto;
}

.feed-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(35, 53, 84, 0.3);
  font-size: 0.8rem;
}

.threat-type {
  color: var(--text-secondary);
  font-weight: 500;
}

.threat-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.threat-status.blocked {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--accent-color);
}

.threat-status.detected {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

/* About Section */
.about {
  background-color: rgba(17, 34, 64, 0.3);
  padding-top: 40px;
  padding-bottom: 40px;
}

[data-theme="light"] .about {
  background-color: rgba(248, 249, 250, 0.5);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

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

.security-timeline {
  margin-top: 30px;
}

.timeline-event {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background-color: rgba(17, 34, 64, 0.5);
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
}

[data-theme="light"] .timeline-event {
  background-color: rgba(255, 255, 255, 0.8);
}

.event-time {
  color: var(--secondary-color);
  font-weight: 600;
  margin-right: 20px;
  min-width: 60px;
}

.event-desc {
  color: var(--text-primary);
}

.about-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.info-title {
  font-weight: 600;
  color: var(--secondary-color);
  margin-right: 10px;
}

.info-value {
  color: var(--text-secondary);
}

/* Experience Section */
.experience {
  padding-top: 40px;
  padding-bottom: 40px;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Desktop Timeline Styles */
.timeline-date {
  position: absolute;
  top: 12px;
  right: -220px;
  color: var(--secondary-color);
  font-weight: 600;
  background-color: var(--bg-color);
  padding: 10px 20px;
  border-radius: 6px;
  z-index: 10;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -220px;
  right: auto;
  text-align: center;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--secondary-color), var(--border-color));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
  z-index: 1;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  top: 15px;
  z-index: 2;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
  animation: pulse 2s infinite;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-content h3 {
  color: var(--secondary-color);
  font-size: 1.5rem;
}

.timeline-content h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.timeline-content ul {
  padding-left: 20px;
}

.timeline-content ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
  color: var(--text-secondary);
}

.timeline-content ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
  .timeline::after {
    left: 31px;
    margin-left: 0;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
    left: 0 !important;
  }

  .timeline-item:nth-child(even) {
    left: 0 !important;
  }

  .timeline-dot {
    left: 21px !important;
    right: auto;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: 21px !important;
  }

  .timeline-date {
    position: relative;
    right: auto !important;
    left: auto !important;
    top: auto;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    min-width: auto;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline-item:nth-child(even) .timeline-date {
    left: auto !important;
    right: auto !important;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .timeline {
    padding: 0 10px;
  }

  .timeline::after {
    left: 25px;
  }

  .timeline-item {
    padding-left: 60px;
    padding-right: 15px;
    margin-bottom: 40px;
  }

  .timeline-dot {
    left: 15px !important;
    width: 16px;
    height: 16px;
    top: 20px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: 15px !important;
  }

  .timeline-date {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-radius: 20px;
    border-width: 1px;
  }

  .timeline-content {
    padding: 15px;
    border-radius: 8px;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }

  .timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .timeline-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .timeline-content ul {
    padding-left: 15px;
  }

  .timeline-content ul li {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 6px;
    padding-left: 15px;
  }

  .timeline-content ul li::before {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .timeline {
    padding: 0 5px;
  }

  .timeline::after {
    left: 20px;
    width: 3px;
  }

  .timeline-item {
    padding-left: 50px;
    padding-right: 10px;
    margin-bottom: 35px;
  }

  .timeline-dot {
    left: 12px !important;
    width: 14px;
    height: 14px;
    top: 25px;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px !important;
  }

  .timeline-date {
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    max-width: 90%;
  }

  .timeline-content {
    padding: 12px;
    border-radius: 6px;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .timeline-content h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
  }

  .timeline-content p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  .timeline-content ul {
    padding-left: 12px;
  }

  .timeline-content ul li {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 5px;
    padding-left: 12px;
  }

  .timeline-content ul li::before {
    font-size: 0.8rem;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .timeline-item {
    padding-left: 45px;
    padding-right: 8px;
  }

  .timeline-date {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .timeline-content {
    padding: 10px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content h4 {
    font-size: 0.9rem;
  }

  .timeline-content p {
    font-size: 0.85rem;
  }

  .timeline-content ul li {
    font-size: 0.8rem;
    padding-left: 10px;
  }
}

/* Skills Section */
.skills {
  padding-top: 40px;
  padding-bottom: 40px;
}

.skills-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-category {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  flex: 1;
  min-width: 300px;
  max-width: 350px;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
  position: relative;
  padding-bottom: 10px;
}

.skill-category h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-item {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--secondary-color);
  transition: var(--transition);
  cursor: pointer;
}

[data-theme="light"] .skill-item {
  background-color: rgba(0, 102, 204, 0.1);
  border: 1px solid var(--secondary-color);
}

.skill-item:hover {
  background-color: rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(100, 255, 218, 0.2);
}

/* Resume Section */
.resume {
  background-color: rgba(17, 34, 64, 0.2);
  padding-top: 40px;
  padding-bottom: 40px;
}

[data-theme="light"] .resume {
  background-color: rgba(248, 249, 250, 0.3);
}

.resume-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.resume-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.resume-icon {
  font-size: 4rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.resume-info h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.resume-info p {
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.file-size {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

.resume-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.resume-stats .stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.resume-stats .stat-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

/* Education Section */
.education {
  padding-top: 40px;
  padding-bottom: 40px;
}

.education-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.education-section {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  flex: 1;
  min-width: 300px;
  max-width: 350px;
}

.education-section:hover {
  transform: translateY(-5px);
}

.education-section h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

.education-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

.education-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.education-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.education-item h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.institution {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 5px;
}

.year {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 5px;
}

.details {
  color: var(--text-secondary);
}

/* Extracurricular Section */
.extracurricular {
  background-color: rgba(17, 34, 64, 0.2);
  padding-top: 40px;
  padding-bottom: 40px;
}

[data-theme="light"] .extracurricular {
  background-color: rgba(248, 249, 250, 0.3);
}

.extracurricular-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.extracurricular-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  flex: 1;
  min-width: 400px;
  max-width: 450px;
}

.extracurricular-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.extracurricular-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.extracurricular-content h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.role-item {
  margin-bottom: 15px;
  padding: 15px;
  background-color: rgba(35, 53, 84, 0.3);
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
}

[data-theme="light"] .role-item {
  background-color: rgba(255, 255, 255, 0.5);
}

.role-item h4 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.role-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Achievements Section */
.achievements {
  padding-top: 40px;
  padding-bottom: 40px;
}

.achievements-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.achievement-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.achievement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.achievement-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-right: 20px;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.achievement-content h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.achievement-content p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact Section */
.contact {
  padding-top: 40px;
  padding-bottom: 40px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  display: flex;
  margin-bottom: 30px;
}

.contact-icon {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-right: 20px;
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.contact-text h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-text p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact-text a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--secondary-color);
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(35, 53, 84, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
  background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.form-status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.form-status.success {
  background-color: rgba(39, 202, 63, 0.2);
  color: #27ca3f;
  border: 1px solid #27ca3f;
}

.form-status.error {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

/* Footer */
.footer {
  background-color: rgba(10, 25, 47, 0.9);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

[data-theme="light"] .footer {
  background-color: rgba(248, 249, 250, 0.9);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  font-size: 1.5rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

/* Enhanced Cybersecurity Animations */
@keyframes dataFlow {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

@keyframes networkPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes binaryFall {
  0% {
    transform: translateY(-100vh);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

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

.data-stream {
  position: absolute;
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, var(--secondary-color), transparent);
  animation: dataFlow 3s linear infinite;
}

.network-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  animation: networkPulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--secondary-color);
}

.binary-digit {
  position: absolute;
  color: var(--secondary-color);
  font-family: monospace;
  font-size: 12px;
  animation: binaryFall 4s linear infinite;
  opacity: 0.3;
}

/* Add pulsing effect for rotating numbers */
.stat-number,
#active-threats,
#blocked-ips {
  transition: all 0.1s ease;
}

.stat-number:hover,
#active-threats:hover,
#blocked-ips:hover {
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.8);
  transform: scale(1.05);
}

/* Enhanced glow for rotating numbers */
@keyframes numberGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
  }
  50% {
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.8), 0 0 30px rgba(100, 255, 218, 0.4);
  }
}

.stat-number,
#active-threats,
#blocked-ips {
  animation: numberGlow 2s ease-in-out infinite;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(100, 255, 218, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(100, 255, 218, 0);
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .profile-image {
    width: 250px;
    height: 250px;
  }

  .floating-elements {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 992px) {
  .hero-main {
    flex-direction: column;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    order: 1;
  }

  .hero-image {
    order: 2;
    margin-top: 30px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .security-stats {
    justify-content: center;
  }

  .terminal-window {
    max-width: 600px;
    margin: 0 auto;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-dot {
    left: 21px;
    right: auto;
  }

  .timeline-item:nth-child(even) .timeline-dot {
    left: 21px;
  }

  .timeline-date {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    margin-bottom: 10px;
    display: block;
  }

  .timeline-item:nth-child(even) .timeline-date {
    left: auto;
    text-align: left;
  }

  .extracurricular-container,
  .education-container,
  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .extracurricular-item,
  .education-section,
  .skill-category {
    max-width: 600px;
    width: 100%;
  }

  .resume-preview {
    flex-direction: column;
    text-align: center;
  }

  .resume-actions {
    flex-direction: column;
    align-items: center;
  }

  .resume-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    z-index: 1000;
  }

  [data-theme="light"] .nav-links {
    background-color: rgba(248, 249, 250, 0.95);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .nav-controls {
    gap: 10px;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .security-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-item {
    flex: 1;
    min-width: 120px;
  }

  .about-content,
  .contact-container {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .floating-elements {
    width: 250px;
    height: 250px;
  }

  .soc-dashboard {
    max-width: 100%;
  }

  .extracurricular-container {
    grid-template-columns: 1fr;
  }

  .extracurricular-item {
    min-width: auto;
  }

  .extracurricular-item,
  .education-section,
  .skill-category {
    min-width: auto;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .security-stats {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .stat-item {
    width: 100%;
  }

  .achievement-item {
    flex-direction: column;
    text-align: center;
  }

  .achievement-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .terminal-window {
    font-size: 0.8rem;
  }

  .terminal-body {
    padding: 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .extracurricular-container {
    grid-template-columns: 1fr;
  }

  .role-item {
    padding: 10px;
  }

  .resume-preview {
    padding: 20px;
  }

  .resume-icon {
    font-size: 3rem;
  }

  .resume-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.8);
}

/* Theme transition animations */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Blog Styles */
.blog-main {
  padding-top: 80px;
  min-height: 100vh;
}

.blog-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
}

.blog-title {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.blog-title i {
  margin-right: 15px;
}

.blog-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.blog-container {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Sidebar */
.blog-sidebar {
  flex: 0 0 280px;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.sidebar-section {
  margin-bottom: 35px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.sidebar-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  box-shadow: 0 0 5px rgba(100, 255, 218, 0.5);
}

.category-list {
  list-style: none;
}

.category-list li {
  margin-bottom: 8px;
}

.category-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: var(--transition);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.category-filter:hover,
.category-filter.active {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.recent-posts {
  list-style: none;
}

.recent-posts li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.recent-posts a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: var(--transition);
}

.recent-posts a:hover {
  color: var(--secondary-color);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--text-primary);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid var(--secondary-color);
  transition: var(--transition);
  cursor: pointer;
}

.tag:hover {
  background-color: rgba(100, 255, 218, 0.2);
  transform: translateY(-1px);
}

/* Blog Content - FIXED RESPONSIVE LAYOUT */
.blog-content {
  flex: 1;
  min-width: 0; /* Important for flex items to shrink properly */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Blog Posts Grid Layout for Cards */
.blog-posts {
  margin-bottom: 40px;
}

/* Card-based Blog Post Layout */
.blog-post-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.blog-post-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
  opacity: 0;
  transition: var(--transition);
}

.blog-post-card:hover::before {
  opacity: 1;
}

.card-header {
  margin-bottom: 20px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.card-date,
.card-read-time {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-category {
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-category.soc {
  background-color: rgba(100, 255, 218, 0.2);
  color: var(--secondary-color);
}

.card-category.threat-hunting {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--accent-color);
}

.card-category.cloud-security {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.card-category.ai-security {
  background-color: rgba(138, 43, 226, 0.2);
  color: #8a2be2;
}

.card-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.card-tag {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--text-primary);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  border: 1px solid var(--secondary-color);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--secondary-color);
}

.card-author-info {
  display: flex;
  flex-direction: column;
}

.card-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-author-title {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.card-stats {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Full Blog Post View (when clicked) */
.blog-post-full {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.post-header {
  margin-bottom: 30px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.post-date,
.read-time {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-category {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.post-category.soc {
  background-color: rgba(100, 255, 218, 0.2);
  color: var(--secondary-color);
}

.post-category.threat-hunting {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--accent-color);
}

.post-category.cloud-security {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.post-category.ai-security {
  background-color: rgba(138, 43, 226, 0.2);
  color: #8a2be2;
}

.post-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary-color);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.post-content {
  margin-bottom: 30px;
}

.post-excerpt {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 25px;
  padding: 20px;
  background-color: rgba(100, 255, 218, 0.05);
  border-left: 4px solid var(--secondary-color);
  border-radius: 0 8px 8px 0;
}

/* FIXED: Proper text wrapping and overflow handling */
.post-body {
  line-height: 1.8;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.post-body * {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-body h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 30px 0 15px 0;
  position: relative;
  padding-left: 20px;
  word-wrap: break-word;
}

.post-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.post-body h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin: 25px 0 12px 0;
  word-wrap: break-word;
}

.post-body p {
  margin-bottom: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-body ul {
  margin: 20px 0;
  padding-left: 30px;
}

.post-body ul li {
  margin-bottom: 10px;
  position: relative;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-body ul li::before {
  content: "▹";
  position: absolute;
  left: -20px;
  color: var(--secondary-color);
  font-weight: bold;
}

.post-body blockquote {
  margin: 30px 0;
  padding: 20px 30px;
  background-color: rgba(100, 255, 218, 0.05);
  border-left: 4px solid var(--secondary-color);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-primary);
  position: relative;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-body blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
}

/* FIXED: Code blocks with proper wrapping */
.post-body pre {
  background-color: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
}

.post-body code {
  background-color: rgba(100, 255, 218, 0.1);
  color: var(--secondary-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.post-body pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}

/* FIXED: Long URLs and links */
.post-body a {
  color: var(--secondary-color);
  text-decoration: underline;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.post-body a:hover {
  color: var(--text-primary);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--border-color);
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 15px;
}

.like-btn,
.share-btn,
.comment-toggle {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.like-btn:hover,
.share-btn:hover,
.comment-toggle:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.like-btn.liked {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.like-btn.liked:hover {
  background-color: transparent;
  color: var(--accent-color);
}

/* Back to Blog Button */
.back-to-blog {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.back-to-blog:hover {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

/* Comments Section */
.comments-section {
  margin-top: 30px;
  display: none;
}

.comments-header {
  margin-bottom: 30px;
}

.comments-header h4 {
  color: var(--text-primary);
  font-size: 1.3rem;
}

.comment-form {
  background-color: rgba(35, 53, 84, 0.3);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .comment-form {
  background-color: rgba(255, 255, 255, 0.5);
}

.comment-form .form-group {
  margin-bottom: 15px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(35, 53, 84, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

[data-theme="light"] .comment-form input,
[data-theme="light"] .comment-form textarea {
  background-color: rgba(255, 255, 255, 0.8);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.comment-form textarea {
  height: 100px;
  resize: vertical;
}

.comments-list {
  margin-top: 30px;
}

.comment {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  padding: 20px;
  background-color: rgba(35, 53, 84, 0.2);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

[data-theme="light"] .comment {
  background-color: rgba(255, 255, 255, 0.3);
}

.comment-avatar {
  flex-shrink: 0;
}

.comment-avatar i {
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
}

.comment-date {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.comment-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment-actions {
  display: flex;
  gap: 15px;
}

.reply-btn,
.like-comment-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.reply-btn:hover,
.like-comment-btn:hover {
  color: var(--secondary-color);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-btn {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Navigation Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.brand-link:hover {
  color: var(--text-primary);
}

.brand-link i {
  font-size: 1.5rem;
}

/* RESPONSIVE FIXES */
@media (max-width: 1200px) {
  .blog-container {
    gap: 25px;
  }

  .blog-sidebar {
    flex: 0 0 250px;
  }
}

@media (max-width: 992px) {
  .blog-container {
    flex-direction: column;
    gap: 30px;
  }

  .blog-sidebar {
    flex: none;
    position: static;
    order: 2;
    max-width: 100%;
  }

  .blog-content {
    order: 1;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: rgba(10, 25, 47, 0.98);
    backdrop-filter: blur(15px);
    width: 100%;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
  }

  [data-theme="light"] .nav-links {
    background-color: rgba(248, 249, 250, 0.98);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 20px 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 5px;
    transition: var(--transition);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--secondary-color);
  }

  .nav-controls {
    gap: 15px;
    margin-left: 15px;
  }

  .blog-post-card,
  .blog-post-full {
    padding: 20px;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .card-title {
    font-size: 1.2rem;
  }

  .post-meta,
  .card-meta {
    flex-direction: column;
    gap: 10px;
  }

  .post-actions {
    flex-direction: column;
    gap: 15px;
  }

  .like-btn,
  .share-btn,
  .comment-toggle {
    width: 100%;
    justify-content: center;
  }

  .comment {
    flex-direction: column;
    gap: 10px;
  }

  .comment-avatar {
    align-self: flex-start;
  }

  .pagination {
    flex-direction: column;
    gap: 15px;
  }

  .pagination-btn {
    width: 100%;
    justify-content: center;
  }

  .post-body pre {
    padding: 15px;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .blog-title {
    font-size: 2rem;
  }

  .blog-subtitle {
    font-size: 1rem;
  }

  .blog-post-card,
  .blog-post-full {
    padding: 15px;
  }

  .post-title {
    font-size: 1.4rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .post-excerpt {
    font-size: 1rem;
    padding: 15px;
  }

  .sidebar-section {
    margin-bottom: 25px;
  }

  .tag-cloud {
    gap: 4px;
  }

  .tag,
  .card-tag {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .post-body {
    font-size: 0.95rem;
  }

  .post-body h3 {
    font-size: 1.2rem;
  }

  .post-body h4 {
    font-size: 1.1rem;
  }

  .post-body pre {
    padding: 12px;
    font-size: 0.75rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Notification Styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  z-index: 10000;
  animation: slideIn 0.3s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.notification.success {
  background-color: #27ca3f;
}

.notification.error {
  background-color: #ff6b6b;
}

/* Enhanced LinkedIn Button Styling */
.btn-accent {
  background-color: #0077b5;
  color: white;
  border: 2px solid #0077b5;
  box-shadow: 0 0 20px rgba(0, 119, 181, 0.3);
}

.btn-accent:hover {
  background-color: transparent;
  color: #0077b5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

/* Resume Actions Enhanced */
.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .resume-actions {
    flex-direction: column;
    align-items: center;
  }

  .resume-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* Admin Panel Styles */
.admin-main {
  padding-top: 80px;
  min-height: 100vh;
}

.admin-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 0;
}

.admin-title {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

.admin-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  max-width: 400px;
  width: 90%;
}

.modal-header h2 {
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
}

/* Card Styles */
.config-card,
.editor-card,
.management-card,
.analytics-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.config-card h3,
.editor-card h3,
.management-card h3,
.analytics-card h3 {
  color: var(--secondary-color);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Form Styles */
.form-row {
  display: flex;
  gap: 20px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(35, 53, 84, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.form-group small {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}

/* Image Upload Styles */
.image-upload {
  position: relative;
}

.image-preview {
  width: 100%;
  height: 200px;
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: rgba(35, 53, 84, 0.2);
}

.image-preview:hover {
  border-color: var(--secondary-color);
  background-color: rgba(100, 255, 218, 0.1);
}

.image-preview i {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Editor Header */
.editor-header,
.management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.editor-actions,
.management-filters {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Rich Text Editor Styles */
.ql-toolbar {
  border: 1px solid var(--border-color) !important;
  border-radius: 6px 6px 0 0 !important;
  background-color: var(--card-bg) !important;
}

.ql-container {
  border: 1px solid var(--border-color) !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
  background-color: rgba(35, 53, 84, 0.3) !important;
  color: var(--text-primary) !important;
}

[data-theme="light"] .ql-container {
  background-color: rgba(255, 255, 255, 0.8) !important;
}

.ql-editor {
  color: var(--text-primary) !important;
  font-size: 1rem !important;
  line-height: 1.6 !important;
}

.ql-editor.ql-blank::before {
  color: var(--text-secondary) !important;
}

/* Posts Table */
.posts-table {
  overflow-x: auto;
  margin-top: 20px;
}

#posts-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

#posts-table th,
#posts-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

#posts-table th {
  background-color: rgba(35, 53, 84, 0.5);
  color: var(--secondary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

#posts-table td {
  color: var(--text-secondary);
}

.post-title-cell strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.post-title-cell small {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Status and Category Badges */
.status-badge,
.category-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.published {
  background-color: rgba(39, 202, 63, 0.2);
  color: #27ca3f;
}

.status-badge.draft {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.category-badge.soc {
  background-color: rgba(100, 255, 218, 0.2);
  color: var(--secondary-color);
}

.category-badge.threat-hunting {
  background-color: rgba(255, 107, 107, 0.2);
  color: var(--accent-color);
}

.category-badge.cloud-security {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.category-badge.ai-security {
  background-color: rgba(138, 43, 226, 0.2);
  color: #8a2be2;
}

.category-badge.incident-response {
  background-color: rgba(255, 165, 0, 0.2);
  color: #ffa500;
}

.category-badge.malware-analysis {
  background-color: rgba(220, 20, 60, 0.2);
  color: #dc143c;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-small {
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-small.btn-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-small.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-small.btn-secondary {
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-small.btn-secondary:hover {
  background-color: var(--text-secondary);
  color: var(--primary-color);
}

.btn-small.btn-accent {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.btn-small.btn-accent:hover {
  background-color: var(--accent-color);
  color: white;
}

/* Analytics Dashboard */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.analytics-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: rgba(35, 53, 84, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

[data-theme="light"] .analytics-item {
  background-color: rgba(255, 255, 255, 0.5);
}

.analytics-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.analytics-icon {
  font-size: 2rem;
  color: var(--secondary-color);
}

.analytics-info {
  display: flex;
  flex-direction: column;
}

.analytics-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.analytics-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Post Image Styles */
.post-image {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .admin-actions {
    flex-direction: column;
    align-items: center;
  }

  .admin-actions .btn {
    width: 100%;
    max-width: 300px;
  }

  .form-row {
    flex-direction: column;
  }

  .editor-header,
  .management-header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .editor-actions,
  .management-filters {
    justify-content: center;
  }

  .posts-table {
    font-size: 0.9rem;
  }

  #posts-table th,
  #posts-table td {
    padding: 10px 8px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    margin: 20px;
    padding: 30px 20px;
  }
}

@media (max-width: 576px) {
  .admin-title {
    font-size: 2rem;
  }

  .config-card,
  .editor-card,
  .management-card,
  .analytics-card {
    padding: 20px;
  }

  .image-preview {
    height: 150px;
  }

  .image-preview i {
    font-size: 2rem;
  }
}
