/* Modern, Professional Dark Theme */
:root {
  --primary: #E1E7EF;
  --secondary: #4A90E2;
  --accent: #2196F3;
  --background: #0F172A;
  --surface: #1E293B;
  --text: #E1E7EF;
  --text-secondary: #94A3B8;
  --border: #2D3648;
  --hover: #2D3648;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(15, 23, 42, 0.8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover:after,
nav a.active:after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3)), url('rocketbackground.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
}

.hero-content {
  max-width: 1200px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.25);
  padding: 2.5rem;
  border-radius: 15px;
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8),
               0 0 30px rgba(255, 255, 255, 0.2);
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #F8FAFC;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.hero-text {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.7;
  color: #F1F5F9;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.stat-label {
  font-family: 'Inter', sans-serif;
  color: #E2E8F0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--background);
  border: none;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.button-secondary:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

/* Add this after the hero-text styles */
.career-focus {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.focus-tag {
  background: rgba(15, 23, 42, 0.4);
  color: #FFFFFF;
  padding: 0.6rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

/* Portfolio Section */
.portfolio-section {
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 0;
}

.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-item.featured {
  grid-column: 1 / -1;
}

.model-viewer {
  width: 100%;
  height: 400px;
  background: var(--light-gray);
}

.model-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.portfolio-content p {
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  background: var(--hover);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 500;
}

/* Footer */
footer {
  background: var(--surface);
  padding: 2rem 5%;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.footer-content {
  text-align: center;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    gap: 1.5rem;
  }

  .section-header h1 {
    font-size: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .model-viewer {
    height: 300px;
  }

  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .button {
    width: 100%;
    text-align: center;
  }

  .career-focus {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  
  .focus-tag {
    width: fit-content;
  }
}

/* Contact page specific styles */
.contact-section {
  min-height: calc(100vh - 180px);
  padding: 4rem 5%;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:not(.location):hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background: var(--hover);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 12px;
  margin-right: 1.5rem;
}

.contact-icon i {
  font-size: 1.5rem;
  color: var(--accent);
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.location-note {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 4px;
}

.contact-arrow {
  margin-left: 1.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.contact-card:not(.location):hover .contact-arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-arrow i {
  color: var(--accent);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
}

/* Update the project image styles */
.project-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 8px 8px 0 0;
  background: var(--surface);
  padding: 1rem;
}

.portfolio-item.with-image {
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.portfolio-item.with-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Replace the image slider styles with these */
.portfolio-item.wide {
  grid-column: span 2;
  margin-bottom: 0;
}

.fea-grid {
  width: 100%;
  margin-bottom: 0;
}

.fea-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.fea-images img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
}

/* Update responsive design for FEA section */
@media (max-width: 1200px) {
  .portfolio-item.wide {
    grid-column: 1 / -1;
  }
  
  .fea-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .fea-images img:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .fea-images {
    grid-template-columns: 1fr;
  }
  
  .fea-images img:last-child {
    grid-column: auto;
  }
  
  .fea-images img {
    height: 250px;
  }
}

/* About page styles */
.about-section {
  padding: 4rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
}

.about-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-card p {
  color: var(--text);
  line-height: 1.8;
}

.about-card.highlight {
  grid-column: span 2;
  background: linear-gradient(145deg, var(--surface), rgba(33, 150, 243, 0.1));
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.expertise-category h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.expertise-category ul {
  list-style: none;
}

.expertise-category li {
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.expertise-category li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.qualifications-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qualification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.qualification-label {
  color: var(--text);
  font-weight: 500;
}

.qualification-detail {
  color: var(--accent);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card.highlight {
    grid-column: auto;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}