/* General styles */
:root {
  --bg-gradient-start: #050914;
  --bg-gradient-end: #0f172a;
  --card-surface: rgba(13, 22, 43, 0.78);
  --card-border: rgba(88, 117, 181, 0.25);
  --text-primary: #f3f5ff;
  --text-secondary: #c4cbe0;
  --accent: #6d8dff;
  --accent-strong: #3d62ff;
  --accent-soft: rgba(109, 141, 255, 0.18);
  --shadow-elevated: 0 20px 45px rgba(4, 8, 20, 0.45);
}

body {
  background: radial-gradient(
    circle at top,
    var(--bg-gradient-start),
    var(--bg-gradient-end) 70%
  );
  color: var(--text-secondary);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.75;
  min-height: 100vh;
  letter-spacing: 0.02em;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

main section {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-elevated);
  padding: 48px 56px;
  margin: clamp(28px, 6vw, 52px) auto;
  backdrop-filter: blur(14px);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

main section:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(6, 12, 32, 0.6);
}

@media (max-width: 640px) {
  main {
    padding: 36px 16px 56px;
  }

  main section {
    padding: 32px 22px;
    margin: 24px auto;
  }

  main section h2 {
    font-size: clamp(1.6rem, 3.8vw + 1rem, 2.2rem);
    letter-spacing: 0.1em;
  }

  header {
    padding: 28px 16px 18px;
  }

  header p {
    letter-spacing: 0.18em;
  }
}

main section h2 {
  color: var(--text-primary);
  font-size: clamp(1.85rem, 1.4vw + 1.4rem, 2.6rem);
  letter-spacing: 0.12em;
  margin: 0 0 28px;
  text-align: center;
  text-transform: uppercase;
}

main section h3,
main section h4,
main section h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0;
}

main section p,
main section li {
  color: var(--text-secondary);
}

main section p {
  margin-left: auto;
  margin-right: auto;
  max-width: 72ch;
}

main section ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Header styles */
header {
  background: rgba(5, 9, 24, 0.92);
  backdrop-filter: blur(16px);
  color: var(--text-secondary);
  padding: 32px 24px 24px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 16px 32px rgba(3, 7, 16, 0.45);
}
header .h2 {
  color: var(--text-primary);
  display: inline-block;
  font-size: clamp(2.2rem, 2.2vw + 1.2rem, 3rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin: 0;
  transition: color 180ms ease;
}
header .h2:hover {
  color: var(--accent);
}
header p {
  font-size: clamp(0.95rem, 0.6vw + 0.85rem, 1.2rem);
  letter-spacing: 0.32em;
  color: var(--accent);
  margin: 12px 0 0;
  text-transform: uppercase;
}
.header-divider,
.header-divider2 {
  border: none;
  border-top: 1px solid var(--accent-soft);
  width: min(640px, 80%);
  margin: 18px auto 0;
}
.header-divider2 {
  width: 100%;
}

/* Main content styles */
.weblink1 {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition:
    color 160ms ease,
    text-shadow 160ms ease;
}
.weblink1:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(109, 141, 255, 0.45);
}

/* about me section */
#about {
  max-width: 100%;
  padding: 0;
}
#about h2 {
  letter-spacing: 0.18em;
}
#about p {
  font-size: 1.05rem;
  text-align: center;
}

/* Course details section */
#course {
  max-width: 100%;
  padding: 0;
}
#course h2 {
  letter-spacing: 0.18em;
}
#course p {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: left;
}

/* Projects section */
#projects {
  max-width: 100%;
  padding: clamp(32px, 4vw, 48px);
}
#projects p {
  font-size: 1.02rem;
  text-align: center;
  margin-bottom: 34px;
}

/* Projects section list items */
#projects ul {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 960px;
}

#projects ul li {
  background: linear-gradient(
    148deg,
    rgba(15, 28, 55, 0.95),
    rgba(12, 20, 38, 0.78)
  );
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(8, 13, 28, 0.35);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  padding: 28px 26px 34px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}
#projects ul li:hover {
  box-shadow: 0 24px 40px rgba(8, 16, 40, 0.45);
  transform: translateY(-8px) scale(1.01);
  cursor: default;
}
#projects ul li h3 {
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
#projects ul li p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  text-align: left;
}

#projects ul li .weblink3 {
  margin-top: auto;
  align-self: center;
}
.weblink3 {
  color: var(--text-primary);
  text-decoration: none;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  padding: 12px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 24px rgba(61, 98, 255, 0.35);
}
.weblink3:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(61, 98, 255, 0.45);
}

/* Contact section */
#contact {
  max-width: 100%;
  padding: clamp(32px, 4vw, 48px);
  margin-top: clamp(36px, 6vw, 64px);
}
#contact h2 {
  letter-spacing: 0.18em;
}
#contact p {
  font-size: 1.03rem;
  line-height: 1.8;
  margin: 0 auto 32px;
  max-width: 640px;
  text-align: center;
}
.weblink2 {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition:
    color 160ms ease,
    text-shadow 160ms ease;
}
.weblink2:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(109, 141, 255, 0.45);
}

/*Home network section*/
#home-network {
  max-width: 100%;
  padding: 0;
}
#home-network h2 {
  letter-spacing: 0.18em;
}
#home-network p {
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: left;
}

/*College Network Management section*/
#college-network {
  max-width: 100%;
  padding: 0;
}
#college-network h2 {
  letter-spacing: 0.18em;
}
#college-network p {
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: left;
}

/*Experience section*/
#experience {
  max-width: 100%;
  padding: 0;
}
#experience h2 {
  letter-spacing: 0.18em;
}
#experience p {
  font-size: 1.03rem;
  line-height: 1.8;
}
#experience h3 {
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}
#experience h4 {
  color: var(--text-secondary);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
#experience ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 42px;
}

#experience ul li {
  background: linear-gradient(
    160deg,
    rgba(17, 30, 58, 0.88),
    rgba(10, 18, 35, 0.82)
  );
  border: 1px solid rgba(88, 117, 181, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(8, 12, 28, 0.45);
  padding: 28px 32px 32px;
}

/* Skills section */
#skills {
  max-width: 100%;
  padding: clamp(32px, 4vw, 48px);
}
#skills h2 {
  letter-spacing: 0.18em;
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 32px);
}
#skills .skills-grid {
  display: grid;
  gap: clamp(24px, 3vw, 32px);
  grid-template-columns: minmax(0, 1fr);
  margin: 0 auto;
  max-width: 960px;
}
#skills h5 {
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-align: left;
}
#skills ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
#skills li {
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 22px;
  position: relative;
}
.skillblock li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(109, 141, 255, 0.45);
}
.skillblock {
  background: linear-gradient(
    162deg,
    rgba(14, 27, 52, 0.95),
    rgba(11, 18, 34, 0.82)
  );
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(7, 10, 26, 0.4);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 28px 32px 34px;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 820px) {
  #skills .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*footer styles*/
footer {
  background: rgba(5, 9, 20, 0.92);
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
  text-align: center;
  padding: 28px 0 36px;
  margin-top: 64px;
  width: 100%;
  letter-spacing: 0.08em;
}

.img-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px 28px;
  width: clamp(220px, 28vw, 320px);
  min-width: clamp(200px, 24vw, 280px);
  max-width: 320px;
  padding: 16px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(14, 24, 46, 0.9),
    rgba(11, 18, 34, 0.85)
  );
  border: 1px solid rgba(88, 117, 181, 0.18);
  box-shadow: 0 16px 30px rgba(5, 8, 22, 0.45);
}

.img {
  width: 100%; /* Change to 100% to fill wrapper */
  height: clamp(220px, 30vh, 320px); /* Add fixed height */
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(5, 9, 24, 0.5);
  margin-bottom: 18px;
  object-fit: cover; /* This will maintain aspect ratio while covering the space */
  border: 1px solid rgba(109, 141, 255, 0.22);
}

.img-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: auto;
  padding-top: 6px;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Change to flex-start */
  width: auto;
  margin: 24px 0 8px;
  gap: 24px;
  flex-wrap: wrap; /* Allow wrapping */
}

.btn-container {
  width: 100%;
  margin: 34px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 14px 32px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  box-shadow: 0 18px 30px rgba(61, 98, 255, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 38px rgba(61, 98, 255, 0.45);
}

.btn:focus-visible,
.btn2:focus-visible,
.weblink3:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
#gallery {
  max-width: 100%;
  padding: 0;
}

#gallery h2 {
  letter-spacing: 0.18em;
}

#gallery p {
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: center;
}

.btn-container2 {
  width: 100%;
  margin: 32px auto 0;
  text-decoration: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  background: linear-gradient(
    140deg,
    rgba(28, 43, 86, 0.95),
    rgba(21, 33, 63, 0.92)
  );
  text-align: center;
  min-width: 180px;
  min-height: 72px;
  border: 1px solid rgba(128, 153, 215, 0.25);
  box-shadow: 0 16px 30px rgba(9, 12, 28, 0.5);
  flex: 1 1 200px;
}

.btn2:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 44px rgba(61, 98, 255, 0.4);
}

.network-section {
  max-width: 100%;
  padding: 0;
}

.network-section2 {
  max-width: 100%;
  padding: 0;
}

.network-section h2 {
  letter-spacing: 0.18em;
}

.network-section2 h3 {
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.network-section p {
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: center;
}

.network-section2 p {
  font-size: 1.03rem;
  line-height: 1.8;
  text-align: left;
}

/* Network section list items */

.network-section2 ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.network-section2 li {
  font-size: 1.02rem;
  text-align: left;
}
