/* CSS variables */
:root {
  --bg-dark: #0a0a0a;
  --bg-footer: #111111;
  --text-light: #e0e0e0;
  --highlight: #2ea3f2;
  --isro-blue: #d2d4e7;
  --isro-light-blue: #0e3495;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden; /* prevent horizontal scroll */
}

a {
  color: var(--highlight);
  text-decoration: none;
}

a:hover {
  color: #ef1111;
}

header {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 1px 2px rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

.logo {
  <!--color: var(--highlight);-->
  text-decoration: none;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

nav {
  margin-top: 5px;
}

nav a {
  margin: 0 12px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a.active {
  color: var(--isro-blue);
  font-weight: 700;
  border-bottom: 2px solid var(--isro-blue);
  padding-bottom: 3px;
}

nav a:hover {
  color: var(--highlight);
}

/* HERO SECTION */
.hero {
  background: var(--bg-dark);
  max-width: 800px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 40px auto;
  color: var(--text-light);
  position: relative;
  border-bottom: 4px solid var(--isro-blue);
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--highlight);
  margin: 0 auto 1.5rem;
  display: block;
}

.name {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--highlight);
  margin-bottom: 0.5rem;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--highlight);
  margin-bottom: 1rem;
}

.specialization {
  font-size: 1.2rem;
  font-weight: 500;
  color: #6db1ff;
  margin-bottom: 2rem;
}

.highlights {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.highlight-box {
  background-color: #1e2a47;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  color: var(--highlight);
}

.cta-button {
  background: linear-gradient(135deg, var(--isro-blue), var(--isro-light-blue));
  color: white;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--isro-light-blue), var(--isro-blue));
  transform: translateY(-2px);
}

.skills-hero {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.skill-hero {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  background-color: #111;
  padding: 0.6rem 1rem;
  border-radius: 20px;
}

.skill-hero i {
  color: var(--highlight);
  font-size: 1.1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icon {
  color: var(--highlight);
  font-size: 1.4rem;
  transition: all 0.3s;
}

.social-icon:hover {
  color: #6db1ff;
  transform: translateY(-2px);
}

/* PROJECTS SECTION */
.post-section {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 20px;
}

.post {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.post-card {
  background: #1a1a1a;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 10px;
  transition: 0.3s;
  text-align: left;
}

.post-card:hover {
  box-shadow: 0 0 10px var(--highlight);
  transform: translateY(-5px);
}

.post-card a {
  color: var(--highlight);
  text-decoration: none;
  display: block;
}

/* SKILLS SECTION */
.skills-section {
  padding: 60px 20px;
  text-align: center;
  background: radial-gradient(circle at center, #0a0a0a 0%, #111 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

.skill {
  background: #111;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #222;
  transition: 0.3s ease;
}

.skill:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px var(--highlight);
}

.skill img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.skill span {
  color: white;
  font-size: 0.95rem;
}

/* CONTACT SECTION */
.contact-section {
  max-width: 900px;
  margin: 60px auto;
  padding: 60px 20px;
  text-align: center;
  background: radial-gradient(circle at center, #0a0a0a 0%, #111 100%);
  border: 1px solid #222;
  border-radius: 15px;
  box-sizing: border-box;
}

/* PROJECT DETAIL PAGE */
main.project-detail {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

main.project-detail img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px 0;
  background: var(--bg-footer);
  font-size: 0.9em;
  color: #888;
}

/* RESPONSIVE */

/* @media (min-width: 768px) {
  .post {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .post {
    grid-template-columns: repeat(1, 1fr);
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }
} */

@media (max-width: 600px) {
  .hero {
    padding: 2rem 1rem;
    margin: 30px auto;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .job-title {
    font-size: 1.3rem;
  }
  
  .highlights {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .highlight-box {
    width: 100%;
    max-width: 250px;
  }
  
  .skills-hero {
    gap: 1rem;
  }
  
  .contact-section {
    margin: 40px 15px;
    padding: 40px 15px;
  }
}
