/* modern.css - Material Design inspired styles for John P. Justice Portfolio */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Roboto+Slab:wght@400;600&display=swap');

:root {
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --secondary: #424242;
  --accent: #ff5722;
  --background: #121212;
  --surface: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --card-bg: #2c2c2c;
  --elevation-1: 0 2px 4px rgba(0,0,0,0.3);
  --elevation-2: 0 4px 8px rgba(0,0,0,0.3);
  --elevation-3: 0 8px 16px rgba(0,0,0,0.3);
  --elevation-4: 0 16px 32px rgba(0,0,0,0.4);
}

/* Custom NASA Font */
@font-face {
  font-family: 'Nasalization';
  src: url('./fonts/Nasa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Main header title style */
.portfolio-header-container {
  font-family: 'Nasalization', 'Roboto Slab', serif;
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
}

header, footer {
  background: var(--surface);
  color: var(--text-primary);
  padding: 1.5rem 0;
  text-align: center;
  box-shadow: var(--elevation-2);
  position: relative;
  z-index: 10;
}

/* Material Design Cards */
.main-content-section, .skills-content-section, .experience-content-section, .contact-content-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0;
  display: flex;
  justify-content: center;
}

.portfolio-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--elevation-2);
  padding: 1.5rem;
  margin: 1rem;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  max-width: 1100px;
}

.portfolio-card:hover {
  box-shadow: var(--elevation-3);
}

.portfolio-card-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.portfolio-section-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.card-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 400;
  text-align: center;
}

.portfolio-summary {
  background: var(--surface);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  border-left: 4px solid var(--primary);
  box-shadow: var(--elevation-1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  font-size: 1.1rem !important;
}

.portfolio-summary p {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin: 0;
  text-align: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.column {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Material Design Button and Icon Styles */
.skills-action-button, .contact-link-button {
  background: var(--surface);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--elevation-1);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.skills-action-button:hover, .contact-link-button:hover {
  background: var(--primary);
  box-shadow: var(--elevation-3);
  transform: translateY(-2px);
}

.skills-action-button:active, .contact-link-button:active {
  transform: translateY(0);
  box-shadow: var(--elevation-2);
}

.skills-category-icon, .contact-platform-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-action-button:hover .skills-category-icon,
.contact-link-button:hover .contact-platform-icon {
  transform: scale(1.1);
}

.skill-button-label, .contact-button-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.5rem;
}

.skills-action-button:hover .skill-button-label,
.contact-link-button:hover .contact-button-label {
  color: var(--text-primary);
}

/* Experience Section Styles */
.experience-company-button {
  background: var(--surface);
  border: none;
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--elevation-1);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 160px;
}

.experience-company-button:hover {
  background: var(--primary);
  box-shadow: var(--elevation-3);
  transform: translateY(-2px);
}

.experience-company-button:active {
  transform: translateY(0);
  box-shadow: var(--elevation-2);
}

.experience-company-icon {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.experience-company-button:hover .experience-company-icon {
  transform: scale(1.05);
}

.experience-company-button:hover .experience-button-label {
  color: var(--text-primary);
}

/* Experience Modal Content */
.experience-details-container {
  padding: 1rem 0;
}

.experience-detail-item {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

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

.experience-detail-item h4 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.25rem 0;
}

.experience-detail-item p {
  margin: 0.25rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

footer {
  margin-top: 3rem;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* Material Design Modal */
.skills-modal, .experience-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.skills-modal-content, .experience-modal-content {
  background: var(--card-bg);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--elevation-4);
  position: relative;
  color: var(--text-primary);
  overflow: hidden;
}

.skills-modal-header, .experience-modal-header {
  background: var(--surface);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

.skills-modal-title, .experience-modal-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.skills-modal-close, .experience-modal-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.skills-modal-close:hover, .experience-modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.skills-modal-body, .experience-modal-body {
  padding: 1.5rem;
}

.skills-chart-container {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typed-out {
  animation: fadeInUp 0.7s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

footer {
  margin-top: 3rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Material Design Grid System */
.skills-grid-container, .experience-grid-container, .contact-grid-container {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.skills-grid-three-columns { grid-template-columns: repeat(3, 1fr); }
.experience-grid-five-columns { grid-template-columns: repeat(5, 1fr); }
.contact-grid-four-columns { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .contact-grid-four-columns { grid-template-columns: repeat(3, 1fr); }
  .experience-grid-five-columns { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .skills-grid-three-columns, .contact-grid-four-columns, .experience-grid-five-columns { 
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 480px) {
  .skills-grid-three-columns, .contact-grid-four-columns, .experience-grid-five-columns { 
    grid-template-columns: 1fr; 
  }
  .material-card {
    margin: 0.5rem;
    padding: 1rem;
  }
}

/* Material Design Typography */
.mat-h1, .mat-h2, .mat-h3, .mat-h4 {
  font-family: 'Roboto Slab', serif;
  margin: 0 0 1rem 0;
  font-weight: 600;
}

.mat-h1 { font-size: 2.5rem; line-height: 1.2; }
.mat-h2 { font-size: 2rem; line-height: 1.3; }
.mat-h3 { font-size: 1.5rem; line-height: 1.4; }
.mat-h4 { font-size: 1.25rem; line-height: 1.4; }

.mat-body1 { font-size: 1rem; line-height: 1.6; }
.mat-body2 { font-size: 0.875rem; line-height: 1.5; }

/* Fade in up animation for experience modals */
.fade-in-up {
  opacity: 1;
  transform: none;
  animation: none;
}

/* Legacy styles cleanup */
.typed-out {
  animation: none;
}

footer {
  margin-top: 3rem;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.portfolio-copyright-notice {
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.portfolio-background {
  position: fixed;
  top: 50%;
  left: 50%;
  height: 1px;
  width: 1px;
  pointer-events: none;
  z-index: -1;
}

/* Responsive Design */
@media (max-width: 900px) {
  .row {
    flex-direction: column;
    gap: 1.2rem;
  }
  .main-content-section, .skills-content-section, .experience-content-section, .contact-content-section {
    padding: 1rem;
  }
}
