/* Clearing default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Color :  Adobe Color, coolors, colorspace, colorhunt */
/* Fonts : Google Fonts, CDN fonts  */

/* Css Variables */
:root {
  --dark-100: #141414;
  --dark-200: #292929;
  --dark-300: #404040;
  --dark-400: #585858;
  --dark-500: #727272;
  --dark-600: #8c8c8c;
}

html,
body {
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background-color: var(--dark-100);
  color: white;
}

section {
  padding: 60px 40px;
}

a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease-in;
}

/* Pseudo classes */
a:hover {
  color: var(--dark-500);
}

h2 {
  font-size: 40px;
}

p {
  font-size: 16px;
}

.btn {
  background-color: var(--dark-300);
  padding: 10px 20px;
  border-radius: 7px;
  width: fit-content;
}

.btn:hover {
  background-color: var(--dark-200);
  color: white;
}

.header {
  margin: 0 auto; /* Making the header center */
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.header h1 {
  font-size: 40px;
  font-weight: 800;
}

.header p {
  text-align: center;
  font-size: 18px;
}

/* Header */
header {
  padding: 20px 40px;
}

nav {
  display: flex;
  justify-content: space-between;
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.logo a {
  font-size: 32px;
  font-weight: 600;
}

.nav-menu a {
  font-size: 24px;
}

/* Home */
/* ===== HOME SECTION ===== */
#home {
  display: flex;
  align-items: center;
  height: 70vh;
  position: relative; /* for rotated layers to be positioned absolutely */
  padding: 0 2rem;
}

/* Text container */
.left {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative; /* ensure text stays above rotated layers */
  z-index: 2;
}

/* Image container */
.right {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

/* Rotated layers as background decor */
.rotate-45,
.rotate-minus-45 {
  position: absolute;
  width: 600px;
  height: 400px;
  border: 1px solid var(--dark-500);
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  background-color: transparent;
  z-index: 0; /* behind text and image */
}

.rotate-45 {
  transform: rotate(45deg);
  top: -50px;
  left: -50px;
  filter: brightness(0.3);
}

.rotate-minus-45 {
  transform: rotate(-55deg);
  bottom: -50px;
  right: -50px;
  filter: brightness(0.3);
}

.right {
  width: 50%;
  display: flex;
  align-items: flex-start;   /* align from top to show full image */
  justify-content: center;
  position: relative;
}

.right img {
  width: 100%;       /* fill container width */
  max-width: 500px;  /* optional max width */
  height: auto;      /* maintain aspect ratio */
  object-fit: contain;  /* fit entire image inside container without cropping */
  border-radius: 10px;
  position: relative;
  z-index: 1;
}


/* ===== MOBILE VIEW ===== */
@media (max-width: 768px) {
  #home {
    flex-direction: column;
    height: auto;
    padding: 2rem 1rem;
    text-align: center;
  }

  .right {
    width: 100%;
    order: 1;
    margin-bottom: 20px;
  }

  .left {
    width: 100%;
    order: 2;
    padding: 0 1rem;
  }

  .right img {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
  }

  /* Adjust rotated layers for mobile */
  .rotate-45 {
    width: 300px;
    height: 200px;
    top: -20px;
    left: -20px;
  }

  .rotate-minus-45 {
    width: 300px;
    height: 200px;
    bottom: -20px;
    right: -20px;
  }
}


/* Projects */
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 20px;
  place-items: center;
}

.project {
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  gap: 14px;
  background-color: var(--dark-100);
  border-radius: 7px;
  padding: 20px 40px;
  width: 350px;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.project-image img {
  width: 300px;
  height: 400px;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-title {
  font-size: 32px;
}

.project-desc {
  font-size: 14px;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-more-btn {
  background-color: var(--dark-200);
  padding: 10px 20px;
}

/* Contact */
#contact {
  padding: 60px 0px;
}

.background {
  background: url("../images/banner.png") no-repeat;
  background-size: cover;
  background-position: top;
  filter: brightness(0.5);
  width: 100%;
  height: 500px;
}

/* Contact */

#contact {
  position: relative;
}

.contact-form {
  position: absolute;
  right: 100px;
  top: 50%;
  transform: translate(0, -50%);
  width: 400px;
  padding: 20px;
  background-color: var(--dark-100);
  border-radius: 7px;
}

.contact-form h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 1.2rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 10px;
  background-color: transparent;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--dark-500);
  border-radius: 5px;
  color: white;
}

textarea {
  max-width: 100%;
  max-height: 200px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--dark-500);
}

.form-group button {
  padding: 10px;
  color: white;
  width: 100%;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 1);
}

.form-group button:hover {
  background-color: var(--dark-300);
}

footer {
  display: flex;
  justify-content: center;
  padding: 10px;
}

/* Media Queries */
@media (max-width: 720px) {
  .nav-menu {
    display: none;
  }

  .contact-form {
    width: 90%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 1360px) {
  #home {
    padding: 60px 0px;
  }

 
  .left {
    width: 100%;
    display: flex;
    justify-content: center;


    background-position: top;
  }

  .content {
    width: 60%;
    align-items: center;
  }

  .content p,
  .content h2 {
    text-align: center;
  }
}

@media (max-width: 1200px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    width: 80%;
  }
}

@media (max-width: 760px) {
  .projects-list {
    grid-template-columns: repeat(1, 1fr);
  }
}
/* --- Skills Section --- */
#skills {
  padding: 80px 10%;
  text-align: center;
  background: url('../images/skills.png') center/cover no-repeat;
  background-color: #f5f5f5; /* fallback color */
  position: relative;
  overflow: hidden; /* ensures overlay stays inside */
}

/* Blurry transparent overlay */
#skills::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(103, 102, 102, 0.5); /* semi-transparent white */
  backdrop-filter: blur(8px); /* adds blur effect */
  -webkit-backdrop-filter: blur(8px); /* for Safari */
  z-index: 0;
}

/* Ensure content stays above overlay */
#skills .header,
.skills-grid {
  position: relative;
  z-index: 1;
}


#skills .header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #fff;
}

#skills .header p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 50px;
}

/* Grid layout */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

/* Individual skill card */
.skill-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 30px 20px;
  width: 100%;
  max-width: 220px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* Skill image */
.skill-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Skill name */
.skill-card h3 {
  font-size: 1rem;
  color: #333;
  margin-top: 5px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #skills {
    padding: 60px 5%;
  }

  .skill-card {
    padding: 20px;
    max-width: 180px;
  }

  .skill-card img {
    width: 50px;
    height: 50px;
  }
}
/* Publications Section */
#publications {
  padding: 80px 10%;
  
  color: #222;
  text-align: center;
}

#publications .header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#publications .header p {
  color: #555;
  margin-bottom: 40px;
}

.publications-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.publication {

  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  max-width: 800px;
  text-align: left;
}

.pub-title {
  font-size: 1.5rem;
  color: #222;
}

.pub-details {
  font-size: 0.95rem;
  color: #666;
  margin: 8px 0;
}

.pub-details a {
  color: #007bff;
  text-decoration: none;
}

.pub-details a:hover {
  text-decoration: underline;
}

.pub-desc {
  font-size: 1rem;
  color: #444;
  margin-top: 10px;
}
/* Publications Section */
#publications {
  position: relative;
  padding: 80px 10%;
  color: #222;
  text-align: center;
  background: url('../images/publications.png') center/cover no-repeat;
  overflow: hidden;
}

/* Add dark overlay for readability */
#publications::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85); /* Adjust opacity or use black for darker overlay */
  z-index: 0;
}

#publications .header,
.publications-list {
  position: relative;
  z-index: 1;
}
/* Experience & Achievements Section */
#achievements {
  background: linear-gradient(135deg, #f8f9fb, #ffffff);
  padding: 80px 10%;
  text-align: center;
  background: url('../images/achievements.png') center/cover no-repeat
}

#achievements .header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

#achievements .header p {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 50px;
}

.achievements-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.achievement-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px 30px;
  width: 90%;
  max-width: 950px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.achievement-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-right: 25px;
}

.achievement-content {
  text-align: left;
}

.achievement-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.duration {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.achievement-content p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
}

.achievement-content ul {
  list-style: none;
  padding-left: 0;
}

.achievement-content ul li {
  color: #444;
  font-size: 1rem;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.achievement-content ul li::before {
  content: "✔";
  color: #0078ff;
  position: absolute;
  left: 0;
  top: 0;
}
/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  /* Header */
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
  }

  /* Home */
 

  /* Projects */
  .projects-list {
    grid-template-columns: 1fr;
    padding: 0 10px;
  }
  .project {
    width: 100%;
    max-width: 350px;
  }

  /* Achievements */
  .achievement-card {
    flex-direction: column;
    text-align: center;
  }
  .achievement-img {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .achievement-content {
    text-align: center;
  }

  /* Contact */
  .contact-form {
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    width: 90%;
    margin: 40px auto;
  }

  /* Skills */
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 28px;
  }
  .project-title {
    font-size: 22px;
  }
  .project-desc {
    font-size: 13px;
  }
  .header h1 {
    font-size: 28px;
  }
  .header p {
    font-size: 14px;
  }
  .skill-card h3 {
    font-size: 0.9rem;
  }
  .contact-form h1 {
    font-size: 1.3rem;
  }
  .achievement-content h2 {
    font-size: 1.1rem;
  }
}
/* Projects Section */
.projects-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
  gap: 20px;
  padding: 0 10px;
  justify-items: center;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background-color: var(--dark-100);
  border-radius: 7px;
  padding: 20px;
  width: 100%;
  max-width: 300px; /* adjust width to fit 3 per row */
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.project-image img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.project-title {
  font-size: 1.8rem;
}

.project-desc {
  font-size: 0.95rem;
  color: #ccc;
}

.status {
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .projects-list {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .projects-list {
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 20px;
  }

  .project {
    width: 90%;
    max-width: none;
  }
}
/* Skills Section Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columns for desktop */
  gap: 25px;
  justify-items: center;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for tablets */
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns for small tablets */
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
  }
}
/* General Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
  }

  header, section {
    padding: 1rem;
  }

  /* Hero Section Fix */
  .home, .intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto !important; /* prevent fixed height issues */
    padding: 2rem 1rem;
  }

  .intro-text {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  h1, h2, h3 {
    font-size: clamp(1.2rem, 4vw, 2rem);
  }

  p {
    font-size: clamp(0.9rem, 3vw, 1rem);
    line-height: 1.5;
  }

  /* Project Section Spacing */
  #projects {
    margin-top: 2rem !important;
    padding: 1rem;
  }

  .project-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
}
/* ----- Desktop / Default layout for Home section ----- */
/* Desktop / default */
#home {
  display: flex;
  align-items: center;
  height: 70vh;
}
.left,
.right {
  width: 50%;
}
.left {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2rem;
}
.right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.right img {
  width: 550px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

/* Mobile view — stack and reorder */
@media (max-width: 768px) {
  #home {
    display: flex;
    flex-direction: column;  /* stack vertically */
    height: auto;
    padding: 2rem 1rem;
    text-align: center;
  }
  .right {
    width: 100%;
    order: 1;                /* image first */
    margin-bottom: 20px;
  }
  .left {
    width: 100%;
    order: 2;                /* text second */
    padding: 0 1rem;
  }
  .right img {
    width: 80%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
  }
}
/* ===== HERO SECTION ===== */
#home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 2rem 5%;
  height: 80vh;
  overflow: hidden;
  background-color: var(--dark-100);
}

/* Rotated Layers */
.rotate-45,
.rotate-minus-45 {
  position: absolute;
  width: 600px;
  height: 400px;
  border: 1px solid var(--dark-500);
  box-shadow: 1px 1px 10px rgba(0,0,0,0.5);
  background-color: transparent;
  z-index: 0;
}

.rotate-45 {
  top: -50px;
  left: -50px;
  transform: rotate(45deg);
  filter: brightness(0.3);
}

.rotate-minus-45 {
  bottom: -50px;
  right: -50px;
  transform: rotate(-55deg);
  filter: brightness(0.3);
}

/* Text Container */
.left {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

/* Right Image */
.right {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* ensures full image shows */
  position: relative;
  z-index: 1;
}

.right img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain; /* full image visible */
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

/* ===== Fonts ===== */
.left h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.stroke-text {
  font-family: 'Playfair Display', serif;
  -webkit-text-stroke: 2px var(--dark-500);
  color: transparent;
}

.left p strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #fff;
}

.left p {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  #home {
    flex-direction: column;
    height: auto;
    text-align: center;
    padding: 2rem 2%;
  }

  .left, .right {
    width: 100%;
  }

  .right {
    order: 1;
    margin-bottom: 20px;
    align-items: center;
  }

  .left {
    order: 2;
    gap: 0.8rem;
  }

  .right img {
    max-width: 300px;
    width: 80%;
  }

  .rotate-45,
  .rotate-minus-45 {
    width: 300px;
    height: 200px;
  }

  .rotate-45 {
    top: -20px;
    left: -20px;
  }

  .rotate-minus-45 {
    bottom: -20px;
    right: -20px;
  }

  .left h2 {
    font-size: 2rem;
  }

  .left p strong {
    font-size: 1rem;
  }

  .left p {
    font-size: 0.95rem;
  }
}
/* ===== Qualifications Section ===== */
#qualifications {
  padding: 80px 10%;
  text-align: center;
  background-color: var(--dark-200);
  color: #fff;
}

#qualifications .header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 10px;
}

#qualifications .header p {
  font-family: 'Roboto', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ccc;
}

.qualifications-list {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.qualification-card {
  background-color: var(--dark-100);
  padding: 20px 25px;
  border-radius: 10px;
  width: 250px;
  box-shadow: 1px 1px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qualification-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.qualification-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.qualification-card p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .qualifications-list {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .qualification-card {
    width: 80%;
  }
}
