/* Reset & base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: linear-gradient(135deg, #101018, #16213e, #0f3460);
  color: #f5f5f5;
  background-attachment: fixed; 
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/*  Navigation Bar */
header {
  background: linear-gradient(90deg, #02021f,#000000,#000000,#000000,#020820);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 16px 24px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}
.nav-links a {
  text-decoration: none;
  color: #a3a3a3;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: #2563eb;
}

/*  Construction Banner */
.construction-banner {
  position: sticky;
  top:65px;
  background: #ffcc00;
  color: #000;
  text-align: center;
  padding: 0.75rem;
  font-weight: bold;
  font-size: 1rem;
  border-bottom: 2px solid #e6b800;
  z-index: 999;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(165deg, #3b82f6, #082461, #020f2b);
  color: white;
  max-width: 80vw;
}

.hero-content {
  display: flex;
  align-items: center;   
  justify-content: center;
  gap: 20px;             
  max-width: 80vw;
  margin: 0 auto;
  flex-wrap: wrap;      
}

.profile-pic {
  width: 200px;   
  height: 200px;  
  border-radius: 75%; 
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  object-fit: cover;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.about{
  text-align: center;
  max-width: 80vw;
  padding: 0 10px;
}

.about-content{
  display: flex;
  align-items: center;   
  justify-content: left;
  gap: 20px;             
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: nowrap;   
}

/* Code */
code {
    background-color: #2d2d2d;  
    color: #f5f5f5;
    font-family: 'Fira Code', monospace;  
    padding: 2px 2px 2px;
    border-radius: 3px;
}

pre {
    background-color: #2d2d2d;  
    color: #f5f5f5;
    font-family: 'Fira Code', monospace;
    padding: 8px 12px;   
    overflow-x: auto;
    margin: 10px 0;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.3);
}

pre code {
    font-size: 0.95rem;
    line-height: 1.4;
}

pre[class*="language-"] {
    font-size: 0.8rem !important;   
    line-height: 1.4 !important;    
    padding: 4px 12px !important;  
    border: 1px solid rgb(95, 7, 236) !important; 
    box-shadow: 4px 4px 8px rgb(0, 0, 0);
}

pre::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

pre::-webkit-scrollbar-track {
  background: transparent; 
}

pre::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px; 
}

pre::-webkit-scrollbar-thumb:hover {
  background: #aaa; 
}

/* Text side */
.about-content > div:first-child {
  flex: 1 1 50%; 
  display: flex;
  flex-direction: column;
  justify-content: center;  
  padding-right: 20px;
}

.about-image-slider{
  flex: 1 1 50%;               
  height: 530px;               
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.about-image-slider img{
  position: absolute;
  top: 0;
  left: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-image-slider img.active {
  opacity: 1;
}

/* Sections (About, Projects, Contact) */
section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #2563eb;
  margin: 12px auto 0;
  border-radius: 2px;
}

/*Display Cards*/


.display-card {
  background: linear-gradient(165deg, #3b82f6, #082461, #050c1b);
  padding: 24px;
  border-radius: 20px;
  display: flex;          
  flex-direction: row;    
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  gap: 2rem;        
}

/* Left column */
.toc-content {
  flex: 1; 
  max-width: 50%;             
}

/* Right column */
.toc-image {
  flex: 1;
  max-width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;        
}

.toc-image img {
  max-width: 100%;     
  height: auto;
  object-fit: cover; 
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.display-card ol {
  list-style-type: disc; 
  padding-left: 1.5rem; 
}

.display-card ol li {
  margin: 0.75rem 0;
}

.display-card ol li a {
  color: #ffffff;
  font-size: 1.25rem; 
  text-decoration: none;
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 0 #000;
}

.display-card ol li a:hover {
  color: #3b82f6;
  border-color: #000; 
  background-color: rgba(4, 9, 31, 0.842); 
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
  gap: 24px;
  margin-top: 30px;
}

.project-card {
  background: linear-gradient(165deg, #3b82f6, #082461, #020f2b);
  padding: 24px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;  
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.568);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 300px;
  max-width: 500px;
  height: 700px;
  gap: 12px;
  margin: 0 auto;
  border: 2px solid #030e20;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.808);
}
.project-card h3 {
  flex: 1;
  margin: 0 0 8px;  
  font-size: 1.8rem;
  font-weight: 600;
  color: #050608;
  border-bottom: 2px solid #0c162b;
}
.project-card p {
  flex: 3.5; 
  margin: 0 0 12px;
  overflow: hidden;   
  font-size: 1.2rem;
}

.project-link-section{
  flex: 4; 
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.project-image-wrapper {
  flex: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 10px;
}

.project-image-wrapper a{
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image {
  max-height: 80%;
  max-width: 80%;
  object-fit: contain; /* keeps aspect ratio inside wrapper */
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-buttons {
  flex: 1;
  display: flex;
  gap: 12px;         
  flex-wrap: wrap;   
  justify-content: center;
  align-items: center;   
}

.project-link {
  display: inline-block;
  padding: 10px 16px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: background 0.2s ease;
}
.project-link:hover {
  background: #1e40af;
}

/*Contact */
#contact p {
  text-align: center;
}
#contact a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}
#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #111827;
  color: #9ca3af;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}


@media (max-width: 800px) {
  section {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 20px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .about-content > div:first-child,
  .about-image-slider {
    flex: unset;
    width: 100%;
    max-width: 400px;
  }

  .about-content > div:first-child {
    padding-right: 0;
    text-align: center;
  }

  .project-link-section{
    margin-left:0;
  }

  /* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); 
  gap: 20px;
  margin-top: 40px;
}

  .display-card {
    display: inline-flex; 
    width: min-content;         
    max-width: 100%;      
    padding: 16px;        
    flex-direction: column;  
    align-items: center;
    text-align: center;
    padding: 5vmin;
  }

  .toc{
    width: auto; 
    text-align: center;
  }

  .toc-content {
    width: auto;
    min-width: 70vmin;
    max-width: 100%;
    text-align: left;
    padding: 0;
    margin: 0 auto;
  }

  .toc-content ol {
    padding-left: 1.5rem;      
  }

  .toc-image img {
    width: auto;
    min-width: 70vmin;
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
  }

  pre[class*="language-"] {
    font-size: 0.8rem !important;   
    line-height: 1.2 !important;    
    padding: 4px 4px !important;      
  }

  .project-card h3 { 
    font-size: 1.6rem;
  }
  .project-card p {
    font-size: 1rem;
  }
}