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

:root {
  --sidebar-bg: #004b67;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  --text-white-muted: #cbd5e1;
  --border-color: #e2e8f0;
  
  /* Corner circle segment colors */
  --c-cyan: #00aeef;
  --c-yellow: #fff200;
  --c-magenta: #ec008c;
  --c-black: #231f20;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.portfolio-container {
  width: 100%;
  max-width: 1100px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
  position: relative;
  min-height: 800px;
  border: 1px solid var(--border-color);
}

/* Corner printer mark elements */
.printer-mark {
  position: absolute;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.printer-mark.top-right {
  top: 0;
  right: 0;
}

.printer-mark.bottom-right {
  bottom: 0;
  right: 0;
}

.mark-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.1);
  transform: rotate(45deg);
}

.mark-circle span {
  position: absolute;
  width: 50%;
  height: 50%;
}

.mark-circle .s1 { top: 0; left: 0; background: var(--c-cyan); }
.mark-circle .s2 { top: 0; right: 0; background: var(--c-yellow); }
.mark-circle .s3 { bottom: 0; left: 0; background: var(--c-black); }
.mark-circle .s4 { bottom: 0; right: 0; background: var(--c-magenta); }

.mark-lines {
  position: absolute;
  width: 36px;
  height: 36px;
}

.mark-lines::before, .mark-lines::after {
  content: '';
  position: absolute;
  background: rgba(0,0,0,0.2);
}

.mark-lines::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.mark-lines::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

/* Left Sidebar styling */
.sidebar {
  width: 320px;
  background-color: var(--sidebar-bg);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-white);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.nav-item {
  color: var(--text-white-muted);
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  padding-left: 0.75rem;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-white);
  border-left-color: var(--c-cyan);
  padding-left: 1rem;
}

.nav-item span {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', sans-serif;
  margin-top: 0.2rem;
}

.sidebar-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 2.5rem 0;
}

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

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-white);
  transition: opacity 0.2s ease;
}

.contact-item:hover {
  opacity: 0.8;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.05);
}

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

.contact-info span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.contact-info strong {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Right Content panel styling */
.content-panel {
  flex: 1;
  padding: 4rem 3.5rem;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.header-section {
  margin-bottom: 3rem;
}

.title-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.title-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--sidebar-bg);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-divider {
  width: 100%;
  height: 3px;
  background: var(--sidebar-bg);
  margin-top: 1rem;
  position: relative;
}

.header-divider::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  background: var(--sidebar-bg);
  border-radius: 50%;
  transform: translateY(-50%);
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography elements */
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sidebar-bg);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* CV experience layout */
.cv-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.cv-dates {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  padding-top: 0.2rem;
}

.cv-dates span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.cv-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.cv-content h5 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sidebar-bg);
  margin-bottom: 1rem;
}

.cv-details {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-details li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.25rem;
}

.cv-details li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--c-magenta);
  font-size: 1.2rem;
}

/* Skills Grid styling */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skills-category h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sidebar-bg);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: rgba(0, 75, 103, 0.05);
  border: 1px solid rgba(0, 75, 103, 0.1);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sidebar-bg);
}

.languages-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.language-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.4rem;
}

.language-level {
  font-weight: 600;
  color: var(--sidebar-bg);
}

/* Portfolio carousel */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.portfolio-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.portfolio-thumb {
  width: 100%;
  height: 180px;
  background-color: #f1f5f9;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 75, 103, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.portfolio-card:hover .portfolio-thumb-overlay {
  opacity: 1;
}

.zoom-icon {
  color: white;
  font-size: 2.5rem;
}

.portfolio-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  flex-grow: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  background: var(--sidebar-bg);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 1.5rem;
}

.cta-button:hover {
  transform: translateY(-1px);
  background: #00364d;
}

/* Modals & Slideshow */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-img-container {
  max-width: 90%;
  max-height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.modal-caption {
  color: white;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Footer Disclaimers and compliance */
.footer-disclaimers {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--sidebar-bg);
  text-decoration: none;
  cursor: pointer;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Privacy Consent Overlay */
.telemetry-consent-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.telemetry-consent-footer-bar {
  width: 100%;
  background: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2.5rem;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-sizing: border-box;
  backdrop-filter: blur(20px);
}

.telemetry-consent-footer-content {
  flex: 1;
  text-align: left;
}

.telemetry-consent-footer-bar h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.4rem 0;
  color: var(--text-primary);
  font-weight: 600;
}

.telemetry-consent-footer-bar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.telemetry-consent-actions {
  display: flex;
  gap: 1rem;
}

.telemetry-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.telemetry-btn-accept {
  background: var(--sidebar-bg);
  color: #fff;
}

.telemetry-btn-decline {
  background: #f1f5f9;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.telemetry-btn:hover {
  transform: translateY(-1px);
}

/* Modals */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.legal-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.legal-modal-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--sidebar-bg);
}

.legal-modal-content p, .legal-modal-content li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .portfolio-container {
    flex-direction: column;
    min-height: auto;
  }
  .sidebar {
    width: 100%;
    padding: 2.5rem 2rem;
  }
  .sidebar-divider {
    margin: 2rem 0;
  }
  .content-panel {
    padding: 3rem 2rem;
  }
  .title-name {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }
  .portfolio-container {
    border-radius: 0;
    border: none;
  }
  .cv-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .cv-dates {
    text-align: left;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .telemetry-consent-footer-bar {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* Secure Contact and PII Gating Styles */
.disabled-nav {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.nav-lock-icon {
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
  color: var(--text-light);
  transform: translateY(1px);
}

.secure-contact-item.disabled-contact .obfuscated-text-gated {
  filter: blur(5px);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}

.secure-contact-item.disabled-contact {
  pointer-events: none;
}

.secure-gate-card {
  background: rgba(0, 75, 103, 0.02);
  border: 1.5px dashed var(--sidebar-bg);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.secure-gate-icon {
  color: var(--c-magenta);
  background: rgba(236, 0, 140, 0.08);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secure-gate-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--sidebar-bg);
  font-weight: 600;
}

.secure-gate-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.pin-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.pin-inputs {
  display: flex;
  gap: 0.75rem;
}

.pin-box {
  width: 48px;
  height: 56px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sidebar-bg);
  font-family: 'Space Grotesk', sans-serif;
  background: white;
  transition: all 0.2s ease;
}

.pin-box:focus {
  outline: none;
  border-color: var(--c-magenta);
  box-shadow: 0 0 8px rgba(236, 0, 140, 0.2);
}

.pin-error {
  font-size: 0.85rem;
  color: var(--c-magenta);
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.shake {
  animation: shakeAnim 0.4s ease;
}

@keyframes shakeAnim {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

