/* 
   GRC & BFSI Cybersecurity Command Center Theme 
   Designed for: Abhishek Pandey (z00r00.in)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  /* Colors */
  --bg-primary: #070a13;
  --bg-secondary: #0b1120;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(22, 38, 70, 0.75);
  
  --accent-cyan: #00f0ff;
  --accent-cyan-rgb: 0, 240, 255;
  --accent-emerald: #10b981;
  --accent-emerald-rgb: 16, 185, 129;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(0, 240, 255, 0.15);
  --border-glow: rgba(0, 240, 255, 0.4);
  
  /* Fonts */
  --font-cyber: 'Orbitron', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-sans: 'Inter', sans-serif;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
  --transition-speed: 0.3s;
}

/* Reset & Scrollbar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) var(--bg-primary);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Cyber Grid & Scanline Background overlays */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 240, 255, 0.1);
  opacity: 0.4;
  z-index: 9999;
  pointer-events: none;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { top: -2%; }
  100% { top: 102%; }
}

/* Custom Scrollbar for Chrome/Safari/Edge */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-cyber);
  letter-spacing: 1px;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

.text-cyber {
  font-family: var(--font-cyber);
  text-transform: uppercase;
}

.text-accent-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.text-accent-emerald {
  color: var(--accent-emerald);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Layout Elements */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 8rem 0 4rem 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-cyber);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.logo-tag {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

nav a {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-speed) ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-cyan);
  transition: width var(--transition-speed) ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}

nav a:hover {
  color: var(--accent-cyan);
}

nav a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1) inset;
}

.btn-primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1) inset;
}

.btn-secondary:hover {
  background: var(--accent-emerald);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.1);
  transform: translateY(-4px);
}

/* Hero Section */
.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 4rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.badge-stream {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent-cyan);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

.badge.gold {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.badge.emerald {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 900;
}

.hero-title span {
  display: block;
  font-size: 1.8rem;
  color: var(--text-secondary);
  font-family: var(--font-tech);
  margin-top: 0.5rem;
  letter-spacing: 2px;
}

.hero-tagline {
  font-size: 1.2rem;
  max-width: 600px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border-color);
  padding: 0 0.5rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-cyber);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  line-height: 1.2;
}

/* Profile Photo Card with Security Overlay */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.photo-hex-frame {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.photo-hex-frame::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 1px dashed rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.photo-hex-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--bg-secondary);
}

/* Security HUD scanner overlays */
.hud-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.15);
  pointer-events: none;
}

.hud-ring-1 {
  width: 400px;
  height: 400px;
  border-left-color: var(--accent-cyan);
  border-right-color: var(--accent-cyan);
  animation: rotate 12s linear infinite reverse;
}

.hud-ring-2 {
  width: 440px;
  height: 440px;
  border-top-color: var(--accent-emerald);
  border-bottom-color: var(--accent-emerald);
  animation: rotate 25s linear infinite;
}

/* Certifications Showcase */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.cert-card {
  perspective: 1000px;
  height: 290px; /* Increased from 250px to ensure details have ample vertical space */
  cursor: pointer;
}

.cert-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.cert-card.flipped .cert-inner {
  transform: rotateY(180deg);
}

.cert-front, .cert-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.cert-front {
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(8px);
}

.cert-back {
  background: rgba(16, 24, 48, 0.95);
  transform: rotateY(180deg);
  border-color: var(--accent-cyan);
}

.cert-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.cert-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 0 0.25rem 0;
  color: var(--text-primary);
}

.cert-org {
  font-family: var(--font-tech);
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.cert-status {
  font-size: 0.8rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  font-family: var(--font-tech);
}

.cert-status.ongoing {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.cert-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 0.4rem;
  font-size: 0.85rem;
  padding-left: 0;
}

.cert-details li {
  color: var(--text-secondary);
  position: relative;
  padding-left: 1rem;
  line-height: 1.3;
  word-wrap: break-word;
}

.cert-details li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
}

/* Timeline/Experience */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 2rem auto 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--border-color), transparent);
  top: 0;
  bottom: 0;
  left: 40px;
}

.timeline-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: 4rem;
}

.timeline-dot {
  position: absolute;
  left: 28px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
}

.timeline-item.active .timeline-dot {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
}

.timeline-item.active .timeline-dot::after {
  background: var(--accent-emerald);
}

.timeline-date {
  font-family: var(--font-cyber);
  font-size: 0.9rem;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.timeline-item.active .timeline-date {
  color: var(--accent-emerald);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: all var(--transition-speed) ease;
}

.timeline-item.active .timeline-content {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.05);
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.timeline-content .company {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.timeline-item.active .timeline-content .company {
  color: var(--accent-emerald);
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-content li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  word-wrap: break-word;
  word-break: break-word;
}

.timeline-content li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-family: var(--font-cyber);
  font-size: 0.8rem;
}

.timeline-item.active .timeline-content li::before {
  color: var(--accent-emerald);
}

/* Interactive Widgets Grid */
.widgets-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

/* Coming Soon Overlay Widgets */
.coming-soon-widget {
  position: relative;
  min-height: 520px; /* Set to min-height to allow automatic expansion on small resolutions */
  height: auto;
  overflow: hidden;
  border-color: rgba(0, 240, 255, 0.1);
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 19, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  z-index: 10;
}

.coming-soon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 320px;
}

.coming-soon-icon {
  font-size: 3.5rem;
  color: var(--accent-cyan);
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
  animation: pulse 2s infinite;
}

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

.coming-soon-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.coming-soon-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  box-shadow: 0 0 10px var(--accent-cyan);
}

.coming-soon-tag {
  font-family: var(--font-cyber);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

/* Enhanced GRC Risk Calculator Widget */
#widget-grc-calculator {
  min-height: 520px; /* Shifted from strict height to prevent text overflow */
  height: auto;
  display: flex;
  flex-direction: column;
}

.grc-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.grc-live-tag {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 1px;
}

.grc-calculator-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-grow: 1;
}

.grc-intro {
  font-size: 0.95rem;
  line-height: 1.5;
}

.grc-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.1);
  padding: 1.25rem;
  border-radius: 6px;
  flex-grow: 1;
}

.grc-step h4 {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  line-height: 1.4;
}

.grc-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grc-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid transparent;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.grc-option:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.grc-option input[type="radio"] {
  accent-color: var(--accent-cyan);
}

.grc-option.selected {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent-cyan);
}

.grc-gauge-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(7, 10, 19, 0.8);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: 6px;
  flex-grow: 1;
}

.grc-gauge {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-emerald) 0%, var(--accent-amber) 50%, var(--accent-crimson) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  flex-shrink: 0;
}

.grc-gauge::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: 50%;
}

.grc-score-display {
  position: relative;
  z-index: 2;
  font-family: var(--font-cyber);
  font-size: 1.4rem;
  font-weight: 700;
}

.grc-gauge-result {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.grc-rating {
  font-family: var(--font-cyber);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.grc-rating.crit { color: var(--accent-crimson); }
.grc-rating.med { color: var(--accent-amber); }
.grc-rating.low { color: var(--accent-emerald); }

.grc-advice {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.grc-navigation-panel {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.grc-navigation-panel span {
  font-family: var(--font-tech); 
  font-weight: 600; 
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Articles and Publications Section */
.publications-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.pub-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pub-col-title {
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pub-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pub-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  padding-bottom: 0.25rem;
}

.pub-source {
  color: var(--accent-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pub-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  word-wrap: break-word;
}

.pub-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pub-link {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
  align-self: flex-start;
  margin-top: 0.25rem;
}

.pub-link:hover {
  color: var(--text-primary);
  text-shadow: 0 0 5px var(--accent-cyan);
}

/* Success Stories / Case Studies */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.case-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.case-category {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.case-badge {
  font-family: var(--font-cyber);
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

.case-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.case-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.case-stats {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.case-stat-num {
  font-family: var(--font-cyber);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.case-stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Skill Matrix */
.skills-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category-card {
  padding: 2rem;
  height: 100%;
}

.skill-cat-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 0.75rem;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, 0.04);
  transform: translateY(-2px);
}

/* Contact & Booking Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

.contact-info-text h4 {
  font-size: 0.85rem;
  font-family: var(--font-tech);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-text p {
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-info-text a:hover {
  color: var(--accent-cyan);
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  background: rgba(22, 38, 70, 0.6);
}

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

/* Footer styling */
footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 3rem 0;
  text-align: center;
  position: relative;
}

.footer-logo {
  font-family: var(--font-cyber);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent-cyan);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--transition-speed) ease;
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
  transform: translateY(-3px);
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 10, 19, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-icon {
  font-size: 3rem;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.modal-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* RESPONSIVE DESIGN & OVERFLOW FIXES */
@media (max-width: 1024px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding-top: 6.5rem;
    text-align: center;
  }
  
  .hero-left {
    align-items: center;
  }
  
  .badge-stream {
    justify-content: center;
  }
  
  .hero-tagline {
    margin: 0 auto;
  }
  
  .hero-stats {
    width: 100%;
    max-width: 600px;
  }
  
  .widgets-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .publications-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-left {
    align-items: center;
    text-align: center;
  }
  
  .contact-info-list {
    align-items: center;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 5rem 0 3rem 0;
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-title span {
    font-size: 1.3rem;
  }
  
  .hamburger {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2.5rem 0;
    gap: 2rem;
    transition: left 0.4s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  nav ul.active {
    left: 0;
  }
  
  .timeline::after {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-dot {
    left: 8px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    border-right: none;
    background: rgba(15, 23, 42, 0.4);
    padding: 0.75rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.1);
  }
  
  .stat-num {
    font-size: 1.7rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
  }
  
  /* Disable absolute rings on mobile to completely prevent overflow */
  .hud-ring-1, .hud-ring-2 {
    display: none;
  }
  
  .photo-hex-frame {
    width: 250px;
    height: 250px;
  }
  
  .cert-card {
    height: 290px;
  }
  
  .pub-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.9rem;
  }
  
  .hero-title span {
    font-size: 1.1rem;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border: 1px solid rgba(0, 240, 255, 0.15);
  }
  
  .photo-hex-frame {
    width: 200px;
    height: 200px;
  }
}
