/* styles.css */
:root {
  --primary: #0d1f23;
  --secondary: #1e3d38;
  --accent: #3aafa9;
  --accent-dark: #2b837e;
  --text: #feffff;
  --text-muted: #a0aec0;
  --text-dark: #2d3748;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
  --radius: 8px;
  --radius-sm: 4px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--primary);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(13, 31, 35, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(13, 31, 35, 0.9), rgba(13, 31, 35, 0.8));
  z-index: -1;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  margin: 0 auto 1.5rem;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-lab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin: 0.5rem;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-lab {
  background: var(--secondary);
  color: var(--text);
}

.btn-primary:hover, .btn-outline:hover, .btn-lab:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(58, 175, 169, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline:hover {
  background: rgba(58, 175, 169, 0.1);
}

.icon {
  margin-left: 0.5rem;
}

/* ===== About Section Layout ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== Skills Visualization ===== */
.skills-visualization {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(58, 175, 169, 0.2);
  height: 100%;
}

.skills-visualization h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.skill-visual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-percentage {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #5cd6d0);
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s ease-out;
}

/* ===== "What I Do" Section ===== */
.what-i-do {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}

.what-i-do h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skills-list li {
  position: relative;
  padding-left: 1.5rem;
}

.skills-list li::before {
  content: '▹';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* ===== Technical Toolkit ===== */
.technical-toolkit {
  margin-top: 2rem;
}

.technical-toolkit h3 {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.expandable-sections {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.expandable-section {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(58, 175, 169, 0.2);
  transition: var(--transition);
}

.expandable-section:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(58, 175, 169, 0.15);
}

.expand-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
}

.expand-toggle:hover {
  background: rgba(58, 175, 169, 0.1);
}

.expand-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.2);
}

.expandable-content.expanded {
  max-height: 500px;
  padding: 1rem 1.25rem;
}

/* Ensure tech-tags inside expandable sections look good */
.expandable-content .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem 0;
}

.expandable-content .tech-tags span {
  background: rgba(58, 175, 169, 0.15);
  border: 1px solid rgba(58, 175, 169, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: var(--transition);
}

.expandable-content .tech-tags span:hover {
  background: rgba(58, 175, 169, 0.25);
  transform: translateY(-2px);
}

/* Articles Section */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.article-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(58, 175, 169, 0.2);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-image-container {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.article-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-time {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.article-content {
  padding: 1.5rem;
}

.article-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.article-title a {
  color: var(--text);
}

.article-title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.article-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reactions {
  color: var(--accent);
}

.skeleton-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  height: 300px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.05) 50%, 
    rgba(255,255,255,0) 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Section Styling */
.section-light {
  background: var(--secondary);
}

.section-dark {
  background: var(--primary);
}

.section-accent {
  background: #11232b;
}

/* Certifications */
.cert-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: var(--primary);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(58, 175, 169, 0.2);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.cert-badge {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.cert-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.candidate-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #fcd34d;
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: bold;
}

.cert-details {
  padding: 1.5rem;
  border-top: 1px solid rgba(58, 175, 169, 0.2);
}

.cert-details h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.issuer {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cert-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.cert-description {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.no-results {
  text-align: center;
  grid-column: 1 / -1;
  padding: 2rem;
  color: var(--text-muted);
}

.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

.view-more {
  text-align: center;
  margin-top: 2rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(58, 175, 169, 0.2);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-image {
  height: 180px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: rgba(58, 175, 169, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
}

.project-link {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Lab Section Styles */
.lab-container {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--accent);
}

.lab-header {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--accent);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.scenario-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scenario-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.scenario-btn:hover {
  background: rgba(58, 175, 169, 0.3);
}

.scenario-btn.active {
  background: var(--accent);
  color: var(--primary);
}

.scenario-content {
  display: none;
  padding: 1.5rem;
}

.scenario-content.active {
  display: block;
}

.scenario-description {
  margin-bottom: 1.5rem;
}

/* IAM Policy Simulator Styles */
.interactive-area {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.code-editor {
  width: 100%;
  height: 200px;
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: 'Courier New', monospace;
  resize: vertical;
  line-height: 1.5;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1rem 0;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
}

.action-group {
  margin-bottom: 1rem;
}

.action-group h5 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.action-list label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.action-list label:hover {
  background: rgba(255, 255, 255, 0.05);
}

.results-panel {
  grid-column: span 2;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: var(--radius-sm);
  min-height: 100px;
  overflow-y: auto;
}

.policy-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.policy-templates select {
  background: #1e293b;
  color: white;
  border: 1px solid #334155;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  min-width: 200px;
}

/* Zero Trust Demo Styles */
.zero-trust-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.zt-step {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  border-left: 3px solid var(--accent);
}

.zero-trust-principles {
  margin-top: 2rem;
}

.principles-container {
  position: relative;
  margin: 2rem auto;
  max-width: 100%;
  padding: 0 40px;
  overflow: hidden;
}

.principles-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0 2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.principles-grid::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(58, 175, 169, 0.7);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.scroll-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn svg {
  width: 24px;
  height: 24px;
}

.left-scroll {
  left: 0;
}

.right-scroll {
  right: 0;
}

.principle-card {
  flex: 0 0 280px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid rgba(58, 175, 169, 0.2);
  scroll-snap-align: start;
}

.principle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.principle-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Attack Simulation */
.attack-simulation {
  margin-top: 1rem;
}

.attack-selector {
  margin-bottom: 1rem;
}

.attack-selector select {
  width: 100%;
  padding: 0.5rem;
  background: #1e293b;
  color: white;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
}

.attack-visualization {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.attack-log {
  height: 300px;
  overflow-y: auto;
  background: #1e293b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #334155;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.attack-step {
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  border-radius: var(--radius-sm);
}

.step-number {
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.prevention {
  margin-top: 1rem;
}

.prevention li {
  color: #10b981;
  margin: 0.5rem 0;
}

.simulation-start, .simulation-end, .simulation-stop {
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  border-radius: var(--radius-sm);
  font-weight: bold;
}

.attack-controls {
  display: flex;
  gap: 0.5rem;
}

/* Policy Recommendations */
.recommendation-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
}

.recommendation-item pre {
  background: #1e293b;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 0.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.apply-policy {
  margin-top: 0.5rem;
}

/* Network Security Styles */
.network-diagram-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.network-diagram {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--accent);
}

.vpc {
  position: relative;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.subnets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.subnet {
  padding: 1rem;
  border-radius: var(--radius-sm);
  position: relative;
}

.public-subnet {
  background: rgba(58, 175, 169, 0.1);
  border: 1px solid var(--accent);
}

.private-subnet {
  background: rgba(13, 31, 35, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.instance {
  padding: 0.75rem;
  margin: 0.5rem 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.instance:hover, .instance.highlight {
  background: var(--accent);
  color: var(--primary);
}

.security-details-panel {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--accent);
}

.sg-section {
  margin-bottom: 1.5rem;
}

.sg-section h6 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.sg-rules {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sg-rules th, .sg-rules td {
  padding: 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sg-rules th {
  background: rgba(255, 255, 255, 0.05);
}

.sg-best-practices ul {
  list-style: none;
  padding-left: 0;
}

.sg-best-practices li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.sg-best-practices li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.network-controls {
  margin-top: 1rem;
  text-align: center;
}

#show-sg-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Resume Section */
.resume-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.resume-preview {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.resume-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

/* Testimonials */
.testimonials-slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.testimonial-card {
  min-width: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.5rem;
  scroll-snap-align: start;
}

.testimonial-content {
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-method svg {
  flex-shrink: 0;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--accent);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(58, 175, 169, 0.3);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: var(--transition);
  font-family: inherit;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(58, 175, 169, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.error-message {
  color: #f87171;
  font-size: 0.8rem;
  min-height: 1rem;
}

.form-actions {
  margin-top: 1rem;
}

#submit-btn {
  position: relative;
  min-width: 150px;
}

.btn-text {
  display: inline-block;
}

.spinner {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

.status-message {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.status-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.success-message {
  text-align: center;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  color: #4ade80;
  margin-bottom: 1rem;
}

.success-message h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hidden {
  display: none !important;
}

/* Footer */
.footer {
  background: #0a161a;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-about h3 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links h4, .footer-contact h4 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-links ul, .footer-contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a:hover, .footer-contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form states */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #f87171;
}

.form-group.valid input,
.form-group.valid textarea,
.form-group.valid select {
  border-color: #4ade80;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .about-grid,
  .contact-container,
  .resume-container {
    grid-template-columns: 1fr;
  }
  
  .network-diagram-container {
    grid-template-columns: 1fr;
  }
  
  .interactive-area {
    grid-template-columns: 1fr;
  }
  
  .results-panel {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .resume-preview {
    height: 300px;
  }
  
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1.1rem;
  }
  
  .principle-card {
    flex: 0 0 240px;
    padding: 1rem;
  }
  
  .principles-grid {
    gap: 1rem;
  }
  
  .principles-container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }
  
  .scenario-selector {
    flex-direction: column;
  }
  
  .scenario-btn {
    width: 100%;
  }
  
  .lab-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .policy-templates {
    flex-direction: column;
    align-items: stretch;
  }
  
  .policy-templates select {
    width: 100%;
    min-width: auto;
  }
}
