body {
  /* 1. Set the size and center the container on the screen */
  max-width: 1400px;
  width: 100%;       
  margin: 0 auto;    

  /* 2. Center all content inside the body */
  display: flex;
  flex-direction: column; 
  align-items: center;    
  text-align: center;     

  /* Styling */
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  background: #2D2F2F; 
  color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

/* Updated Link Colors */
a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}



header {
  background: #1D1E1E;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  flex-direction: column;
  justify-content: center;
flex-shrink: 0;
animation: headerSlideDown 0.8s ease-out forwards;
}

/* 1. Define the 'slideDown' animation */
@keyframes headerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-100%); /* Start completely off-screen (top) */
  }
  100% {
    opacity: 1;
    transform: translateY(0);    /* End in its natural position */
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(100%); /* Start off-screen to the right */
  }
  100% {
    opacity: 1;
    transform: translateX(0);    /* End in its natural position */
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%); /* Start off-screen to the right */
  }
  100% {
    opacity: 1;
    transform: translateX(0);    /* End in its natural position */
  }
}

header img[alt="logo"] {
  max-width: 100%;  
  height: auto; 
  padding: 10px;  
}

/* Make links invisible initially */
nav a {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

/* Add different delays for a 'staggered' effect */
nav a:nth-child(1) { animation-delay: 0.6s; }
nav a:nth-child(2) { animation-delay: 0.7s; }
nav a:nth-child(3) { animation-delay: 0.8s; }
nav a:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

nav a {
  margin: 0 14px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
}

nav a:hover {
  display: inline-block; /* Required for translateY to work */
  transform: translateY(-2px);
}

.container {
  width 100%;
  max-width: 1400px;
  margin: auto;
  padding: 20px 15px;
}

h1 {
  color: #f8fafc;
  letter-spacing: 0.8px;
animation: slideInRight 0.8s ease-out forwards;
}

h2, h3 {
  color: #f8fafc;
  letter-spacing: 0.8px;
}

h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }

.card {
  width: 90%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  background: #1D1E1E;
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateX(-400px);
  transition: all 0.8s ease-out;
}

.marcitech-card {
  background: #1D1E1E;
  padding: 10px;
  border-radius: 14px;
  margin-bottom: 36px;
  width: 95%
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  max-width: 1300px;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateX(-400px);
  transition: all 0.8s ease-out;
}

.card.show {
  opacity: 1;
  transform: translateX(0);
}

/* Visible state: Triggered by JavaScript */
.marcitech-card.show {
  opacity: 1;
  transform: translateX(0);
}

.project-img-display {
  width: 600px;          
  height: auto;          
  display: block;        
  margin: 0 auto 18px;   
  border-radius: 12px;   
  max-width: 100%;       
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 768px) {
  .marcitech-card {
    width: 1400px;
    height: 750px;
    padding: 28px;
  }

header img[alt="logo"] {
  width: 550px;
  height: auto;
}
}

@media (max-width: 480px) {
  nav a {
    margin: 0 5px;
    font-size: 12px;
  }
  
  h1 {
    font-size: 28px; /* Shrink large headers on mobile */
  }
}

.profile {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  text-align: center;     
}

.profile img {
  max-width: 260px;
  margin-bottom: 20px;
}

footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
}