@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #040812;
  --bg-darker: #02040a;
  --bg-slate: #0b1122;
  --card-bg: rgba(11, 20, 42, 0.55);
  --card-bg-hover: rgba(16, 28, 58, 0.8);
  --card-border: rgba(255, 255, 255, 0.06);
  --card-border-glow: rgba(59, 130, 246, 0.3);
  
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.25);
  
  --secondary: #10b981;
  --secondary-light: #34d399;
  --secondary-glow: rgba(16, 185, 129, 0.25);
  
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gradient-accent: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
  --gradient-accent-hover: linear-gradient(135deg, #60a5fa 0%, #6ee7b7 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow-blue: 0 0 25px rgba(59, 130, 246, 0.15);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-dark);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-muted);
  background-color: var(--bg-dark);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
  background-size: 45px 45px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-slate);
  border: 2px solid var(--bg-darker);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Layout Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 65px 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-darker);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--secondary-light);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid var(--secondary-light);
  border-radius: 50%;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-title span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 35px;
  font-weight: 400;
}

/* Glow Background Elements */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
}

.blob-blue {
  background: var(--primary);
  width: 400px;
  height: 400px;
}

.blob-green {
  background: var(--secondary);
  width: 350px;
  height: 350px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-darker);
  box-shadow: 0 4px 25px rgba(59, 130, 246, 0.25);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
  background: var(--gradient-accent-hover);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-light);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

/* Glassmorphism Class */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--card-border-glow);
  background: var(--card-bg-hover);
  box-shadow: var(--shadow-glow-blue);
}

/* Navigation Header */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}

.nav-header.scrolled {
  padding: 14px 0;
  background: rgba(4, 8, 18, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

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

.nav-logo {
  display: inline-block;
  text-decoration: none;
  vertical-align: middle;
}

.nav-logo-sub {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--secondary-light);
  line-height: 1.2;
  margin-bottom: 2px;
}

.nav-logo-main {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.2;
}

.nav-logo-main span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--secondary-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary-light);
  animation: pulse-glow 2s infinite;
  margin-left: 6px;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  letter-spacing: 0.05em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-light);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: var(--transition-fast);
}

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

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--secondary-light);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary-light);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary-light);
  animation: pulse-glow 1.5s infinite;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 110px;
  padding-bottom: 50px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, var(--bg-slate) 0%, var(--bg-dark) 100%);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.45;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-pretitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--secondary-light);
  margin-bottom: 12px;
}

.hero-badge i {
  color: var(--primary-light);
  animation: pulse-glow 2s infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-role {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
  display: inline-block;
  min-height: 38px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 36px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Image with engineering overlays */
.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tech-photo-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius-md);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(59, 130, 246, 0.05);
}

.tech-photo-frame::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 1px solid transparent;
  background: var(--gradient-accent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: calc(var(--radius-md) + 2px);
  pointer-events: none;
  opacity: 0.35;
}

.tech-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
  filter: grayscale(10%) contrast(105%);
  transition: var(--transition);
}

.tech-photo-frame:hover img {
  filter: grayscale(0%) contrast(100%);
}

.tech-photo-frame:hover .scan-line {
  animation: scan 2s linear infinite;
}

.scan-line {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: 3px;
  background: linear-gradient(90deg, rgba(59,130,246,0) 0%, rgba(59,130,246,0.8) 50%, rgba(59,130,246,0) 100%);
  z-index: 5;
  pointer-events: none;
  opacity: 0.6;
}

/* CAD Grid lines overlaying corners of image */
.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--secondary-light);
  pointer-events: none;
  z-index: 6;
}

.corner-tl { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.corner-tr { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.corner-br { bottom: 4px; right: 4px; border-left: none; border-top: none; }

.tech-photo-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;
  background: var(--bg-slate);
  border: 1px solid var(--primary-light);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm), 0 0 15px rgba(59,130,246,0.2);
  z-index: 10;
}

.tech-badge-icon {
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 0.8rem;
}

.tech-badge-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  line-height: 1.2;
}

.tech-badge-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.about-details {
  display: flex;
  flex-direction: column;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.about-highlight-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.about-highlight-card:nth-child(even) .highlight-icon {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.15);
  color: var(--secondary-light);
}

.about-highlight-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-highlight-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Core Expertise Grid */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.expertise-card {
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

.expertise-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.expertise-card:hover::after {
  transform: scaleX(1);
}

.expertise-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
  color: var(--primary-light);
}

.expertise-card:hover .expertise-icon-box {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.expertise-card:nth-child(even):hover .expertise-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--secondary-light);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
  color: var(--secondary-light);
}

.expertise-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.expertise-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Service Cards Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.service-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--text-light);
  transition: var(--transition);
}

.service-card:hover .service-icon-box {
  transform: scale(1.05) rotate(5deg);
  border-color: var(--primary-light);
  color: var(--primary-light);
  box-shadow: 0 0 20px rgba(59,130,246,0.2);
}

.service-card:nth-child(even):hover .service-icon-box {
  border-color: var(--secondary-light);
  color: var(--secondary-light);
  box-shadow: 0 0 20px rgba(16,185,129,0.2);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.service-bullets {
  list-style: none;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.service-bullets li {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-bullets li::before {
  content: '→';
  color: var(--secondary-light);
  font-weight: bold;
}

/* Skills and Software Section */
.skills-container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: flex-start;
}

.skills-progress-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.skill-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}

.skill-percent {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-light);
}

.skill-bar-outer {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-bar-inner {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 10px;
  width: 0; /* Animated dynamically with JS */
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.software-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.software-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.software-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.software-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
}

.software-card:hover .software-card-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: var(--primary-light);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.software-card h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

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

/* Industries Served Section */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.industry-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.industry-icon-box {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-light);
  font-size: 1.2rem;
  transition: var(--transition);
}

.industry-card:hover .industry-icon-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.industry-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Why Choose Me Section */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 32px;
  display: flex;
  gap: 20px;
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.why-card:nth-child(even) .why-icon {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.1);
  color: var(--secondary-light);
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mission & Vision Section */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mv-card {
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-accent);
}

.mv-card-glow-blue {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.05);
}

.mv-card-glow-green {
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.05);
}

.mv-card-glow-blue::before {
  background: var(--primary-light);
}

.mv-card-glow-green::before {
  background: var(--secondary-light);
}

.mv-icon-badge {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.3rem;
  color: var(--primary-light);
}

.mv-card-glow-green .mv-icon-badge {
  color: var(--secondary-light);
}

.mv-card h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.mv-card p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
}

.contact-intro-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-intro-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-method-card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-method-icon {
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-method-text {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
}

.contact-method-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 2px;
}

.contact-social-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-social-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

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

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: var(--transition);
}

.social-circle:hover {
  background: var(--gradient-accent);
  color: var(--bg-darker);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
  border-color: transparent;
}

/* Contact Form Console styling */
.contact-form-container {
  position: relative;
}

.contact-form-panel {
  padding: 40px;
}

.form-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.form-terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.terminal-dot:nth-child(1) { background: #ef4444; }
.terminal-dot:nth-child(2) { background: #eab308; }
.terminal-dot:nth-child(3) { background: #22c55e; }

.form-terminal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(2, 4, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
  background: rgba(2, 4, 10, 0.7);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.contact-form-panel .btn {
  margin-top: 10px;
  width: 100%;
}

/* Diagnostic log panel */
.diagnostic-panel {
  display: none;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--bg-darker);
  border: 1px solid var(--secondary-light);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  color: var(--secondary-light);
  min-height: 380px;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.diagnostic-header {
  border-bottom: 1px dashed rgba(16, 185, 129, 0.3);
  padding-bottom: 12px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diagnostic-title {
  font-weight: bold;
}

.diagnostic-logs {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  margin-bottom: 2px;
  animation: type-log 0.15s ease forwards;
  opacity: 0;
}

.log-line.success {
  color: #34d399;
}

.log-line.info {
  color: #60a5fa;
}

.log-line.warn {
  color: #fbbf24;
}

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

.timeline-block::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 54px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: 10px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 3px solid var(--secondary-light);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  z-index: 2;
  transform: translateX(-50%);
  transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-badge {
  border-color: var(--primary-light);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-item:hover .timeline-badge {
  transform: translateX(-50%) scale(1.3);
  background: var(--text-light);
}

.timeline-card {
  padding: 32px;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-light);
}

.timeline-period {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary-light);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: 50px;
}

.timeline-item:nth-child(even) .timeline-period {
  color: var(--primary-light);
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.timeline-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Footer styling */
.footer {
  background-color: var(--bg-darker);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 50px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .nav-logo {
  font-size: 1.5rem;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 350px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 24px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-col a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-middle {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 24px 0;
  margin-bottom: 40px;
  text-align: center;
}

.footer-taglines {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-taglines span:not(:last-child)::after {
  content: '|';
  margin-left: 16px;
  color: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

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

.footer-heart i {
  color: var(--secondary-light);
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 8px currentColor;
  }
  50% {
    opacity: 0.5;
    transform: scale(0.92);
    box-shadow: 0 0 3px currentColor;
  }
}

@keyframes scan {
  0% { top: 10px; }
  50% { top: calc(100% - 13px); }
  100% { top: 10px; }
}

@keyframes type-log {
  to {
    opacity: 1;
  }
}

/* Scroll Animation Elements */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    align-items: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .about-details {
    align-items: center;
    text-align: center;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-darker);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    flex-direction: column;
    padding: 100px 40px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    transition: var(--transition);
    z-index: 999;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 24px;
  }
  
  .nav-links a {
    font-size: 1.1rem;
    display: block;
    width: 100%;
  }
  
  .nav-status {
    width: 100%;
    justify-content: center;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  /* Menu icon animation */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }
  
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .mv-card {
    padding: 36px 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
