/* ---------- Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  display: flex;
  font-family: 'Special Elite', cursive;
  background: #fdfcf9 url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  min-height: 100vh;
  color: #3c1f47;
  line-height: 1.8;
  overflow-x: hidden; /* prevent sideways scroll */
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 220px;
  background: #3c1f47;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.sidebar .logo img {
  width: 90px;
  height: auto;
  margin: 20px auto;
}

.sidebar nav ul {
  list-style: none;
  width: 100%;
}

.sidebar nav ul li {
  margin: 15px 0;
}

.sidebar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  transition: 0.3s;
  font-family: 'Roboto Slab', serif;
  display: block;
  text-align: center;
}

.sidebar nav ul li a:hover,
.sidebar nav ul li a.active {
  color: #ff7043;
}

.sidebar .socials {
  margin-top: auto;
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
}

.sidebar .socials a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.sidebar .socials a:hover {
  color: #ff7043;
}

/* ---------- Hamburger Button ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ff7043;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
}

/* ---------- Hero Section ---------- */
.hero {
  flex: 1;
  margin-left: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 50px 20px;
  word-wrap: break-word;
}

.hero-text {
  max-width: 600px;
  line-height: 1.6;
}

.hero-text p {
  margin: 10px 0;
  font-size: 1.5rem;
}

.hero-text h1 {
  font-family: 'Fredericka the Great', cursive;
  font-size: clamp(3rem, 2vw, 3rem);
  margin: 15px 0;
  color: #4a235a;
  
}

.hero-text h3 {
  font-size: clamp(1.6rem, 3vw, 1.8rem);
  margin-top: 25px;
  color: #4a235a;
}

/* Corner highlights */
.corners .corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 3px solid #ff7043;
  filter: drop-shadow(0 0 6px #ff7043);
}

.corners .top-left { top: 10%; left: 15%; border-right: none; border-bottom: none; }
.corners .top-right { top: 10%; right: 15%; border-left: none; border-bottom: none; }
.corners .bottom-left { bottom: 10%; left: 15%; border-right: none; border-top: none; }
.corners .bottom-right { bottom: 10%; right: 15%; border-left: none; border-top: none; }

/* ---------- About Page ---------- */
.main-content {
  margin-left: 220px;
  padding: 60px 40px;
  min-height: 100vh;
}

.intro-box {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

.portrait img {
  width: 260px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.about-text {
  flex: 1;
  min-width: 250px;
  max-width: 650px;
  font-family: 'Roboto Mono', monospace;
  line-height: 1.7;
  color: #3c225f;
}

.about-text h1 {
  font-family: 'Special Elite', monospace;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  color: #2b103f;
}

.about-text .highlight {
  font-family: 'Fredericka the Great', cursive;
  color: #e85b36;
  font-size: 1.2rem;
}

/* ---------- Responsive Media Queries ---------- */
@media (max-width: 1024px) {
  .main-content {
    margin-left: 180px;
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  /* Sidebar collapsible */
  .sidebar {
    width: 220px;
    transform: translateX(-100%);
    position: fixed;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
  }

  /* Vertical nav menu */
  .sidebar nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-top: 40px;
  }

  .sidebar nav ul li {
    margin: 0;
  }

  .sidebar nav ul li a {
    font-size: 1.1rem;
    text-align: left;
  }

  /* Content full width */
  .hero, .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .intro-box {
    flex-direction: column;
    text-align: center;
  }

  .portrait img {
    width: 180px;
    margin-bottom: 20px;
  }

  .about-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .about-text h1 {
    font-size: 1.6rem;
  }
}
/* ACHIEMENTS PAGE*/
.achievements-section {
  padding: 40px;
}

.achievements-section h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.achievements-section .intro {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #555;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns */
  gap: 20px;
  align-items: stretch; /* ensures equal height rows */
  grid-auto-flow: dense; /* fill gaps smartly */
}

.achievement-card.ibm {
  grid-column: 2; /* force IBM to stay in the right column */
  grid-row: 1;    /* lock IBM to the top row */
}

.achievement-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.achievement-card:hover {
  transform: translateY(-4px);
}


/* Responsive: single column on mobile */
@media (max-width: 768px) {
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  .achievement-card.ibm {
    grid-column: auto;
  }
}
.achievement-card h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}
.achievement-img {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}

.achievement-img img {
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Certification gallery inside IT Certifications card */
.certifications .certification-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.certifications .certification-gallery img {
  width: 100px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.certifications .certification-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* On smaller screens make images full width */
@media (max-width: 768px) {
  .certifications .certification-gallery img {
    width: 45%;
  }
}




/*PROJECTS PAGE*/
.projects-section {
  padding: 40px;
  text-align: center;
}

.projects-section h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.projects-section .intro {
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical line */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: #2a1f5a;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Timeline item */
.timeline-item {
  padding: 20px 30px;
  position: relative;
  width: 50%;
}

/* Left and right alignment */
.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

/* Card content */
.timeline-item .content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.timeline-item .content:hover {
  transform: translateY(-6px);
}

.timeline-item .content h2 {
  margin-bottom: 10px;
  color: #2a1f5a;
}

.timeline-item .content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #444;
}

.timeline-item .content .tech {
  font-size: 0.85rem;
  color: #ff4500;
  font-weight: bold;
}

/* Dots */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background: #fff;
  border: 4px solid #2a1f5a;
  top: 30px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::before {
  left: -10px;
}

/* Responsive: single column */
@media (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
  }
  .timeline-item.right {
    left: 0%;
  }
  .timeline-item::before {
    left: 10px;
  }
}
/* Project image inside timeline card */
.timeline-item .project-img {
  width: 100%;
  margin-bottom: 15px;
  text-align: center;
}

.timeline-item .project-img img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.timeline-item .project-img img:hover {
  transform: scale(1.05);
}

.simple-carousel {
  max-width: 500px;
  margin: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  position: relative;
}

.simple-carousel input {
  display: none;
}

.slides img {
  width: 70%;
  display: none;
  cursor: pointer;
}

/* Show one image at a time */
#img1:checked ~ .slides label:nth-child(1) img,
#img2:checked ~ .slides label:nth-child(2) img,
#img3:checked ~ .slides label:nth-child(3) img,
#img4:checked ~ .slides label:nth-child(4) img,
#img5:checked ~ .slides label:nth-child(5) img {
  display: block;
}
