/* ===========================
   RESET & BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

/* ---- Dark Mode (Default) ---- */
:root {
  --bg-color: #051937;         /* Deep Navy Blue Gradient Start */
  --second-bg-color: #0b2242;  /* Slightly Lighter Navy */
  --text-color: #ffffff;       /* Pure White Text */
  --text-color-muted: rgba(255, 255, 255, 0.75);
  --main-color: #00d2ff;       /* Vibrant Cyan-Blue Accent */
  --accent-color: #3b82f6;     /* Royal Blue */
  --card-border: rgba(0, 210, 255, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(5, 25, 55, 0.7);
}

/* ---- Light Mode ---- */
.light-mode {
  --bg-color: #f1faee;         /* Mint Cream / Very Light Blue */
  --second-bg-color: #e0e1dd;  /* Platinum */
  --text-color: #1b263b;       /* Dark Blue-Grey / Near Black */
  --text-color-muted: rgba(27, 38, 59, 0.75);
  --main-color: #457b9d;       /* Muted Navy */
  --accent-color: #1d3557;     /* Dark Blue */
  --card-border: rgba(29, 53, 87, 0.15);
  --shadow-color: rgba(29, 53, 87, 0.1);
  --glass-bg: rgba(241, 250, 238, 0.8);
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* ===========================
   GLOBAL COSMIC CANVAS
   =========================== */
#starfield-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.light-mode #starfield-canvas {
  opacity: 0.6;
}


/* ===========================
   THEME TOGGLE BUTTON
   =========================== */
.theme-toggle {
  position: fixed;
  top: 3rem;
  right: 3rem;
  z-index: 1000;
  font-size: 2.8rem;
  color: var(--text-color);
  cursor: pointer;
  background: var(--second-bg-color);
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--shadow-color);
  transition: 0.3s ease;
  border: 2px solid var(--card-border);
}
.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  border-color: var(--main-color);
  color: var(--main-color);
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background-color: var(--main-color); border-radius: 4px; }
::-webkit-scrollbar-track { background-color: var(--bg-color); }

/* ===========================
   LOADER
   =========================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-circle {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top-color: var(--main-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===========================
   BACK TO TOP
   =========================== */
#back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  background: var(--main-color);
  color: #000;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  z-index: 99;
  box-shadow: 0 0 15px var(--main-color);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px var(--main-color);
}

/* ===========================
   HEADER & NAVBAR
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem 10%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
  transition: background-color 0.4s ease;
}

.logo {
  font-size: 2.8rem;
  color: var(--text-color);
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
  letter-spacing: 1px;
}
.logo:hover { transform: scale(1.05); }
.logo span {
  color: var(--main-color);
  text-shadow: 0 0 10px var(--shadow-color);
}

.navbar a {
  font-size: 1.7rem;
  color: var(--text-color);
  margin-left: 3.5rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}
.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
  border-bottom-color: var(--main-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--main-color);
  display: none;
  cursor: pointer;
}

/* ===========================
   SECTION BASE
   =========================== */
section {
  min-height: 100vh;
  padding: 10rem 10%;
}

.heading {
  text-align: center;
  font-size: 5rem;
  margin-bottom: 5rem;
  color: var(--text-color);
}
.heading span { color: var(--main-color); }

/* ===========================
   HOME SECTION
   =========================== */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* ===========================
   STARFIELD CANVAS BACKGROUND (old home-only block — replaced by fixed global canvas)
   =========================== */
.home .home-content,
.home .home-img {
  position: relative;
  z-index: 1;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 55rem;
}

.home-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1.2;
}
.home-content h1 span {
  color: var(--main-color);
  text-shadow: 0 0 20px var(--main-color);
}

.home-content h3 {
  font-size: 2.2rem;
  margin: 1.2rem 0;
  color: var(--text-color);
  min-height: 3.5rem;
}
.home-content h3 span { color: var(--main-color); }

.home-content p {
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-color-muted);
  margin-bottom: 0.5rem;
}

.home-img img {
  width: 36rem;
  height: 36rem;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 40px var(--main-color);
  transition: 0.4s ease-in-out;
  border: 3px solid var(--main-color);
}
.home-img img:hover {
  box-shadow: 0 0 25px var(--main-color),
              0 0 60px var(--main-color),
              0 0 100px var(--main-color);
  transform: scale(1.03);
}

/* Typed cursor */
.typed-cursor { color: var(--main-color); }

/* ===========================
   SOCIAL ICONS
   =========================== */
.social-icons { display: flex; gap: 1rem; margin: 2.5rem 0 2rem; }
.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  width: 4.5rem;
  height: 4.5rem;
  background: transparent;
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  transition: 0.3s ease;
}
.social-icons a:hover {
  color: #000;
  background-color: var(--main-color);
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 0 20px var(--main-color);
}

/* ===========================
   BUTTONS
   =========================== */
.btn-group { display: flex; gap: 1.5rem; margin-top: 0.5rem; }

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--main-color);
  box-shadow: 0 0 20px var(--main-color);
  border-radius: 3rem;
  font-size: 1.7rem;
  color: #000;
  border: 2px solid transparent;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2) {
  background-color: transparent;
  color: var(--main-color);
  border-color: var(--main-color);
  box-shadow: none;
}
.btn-group a:nth-of-type(2):hover {
  box-shadow: 0 0 25px var(--main-color);
  background-color: var(--main-color);
  color: #000;
}

/* ===========================
   ABOUT SECTION + TIMELINE
   =========================== */
.about {
  display: block;
  background-color: var(--glass-bg);
  backdrop-filter: blur(4px);
  padding-top: 14rem;
}

.about-content {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.about-content h2 span { color: var(--main-color); }

.about-content > p {
  font-size: 1.65rem;
  line-height: 1.9;
  color: var(--text-color-muted);
  margin: 0 auto 1rem;
  max-width: 65rem;
}

/* ---- Expertise / Services Cards ---- */
.expertise-section {
  width: 100%;
  max-width: 100rem;
  margin: 6rem auto 2rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.expertise-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.6rem;
  padding: 3rem 2.5rem;
  transition: 0.3s ease;
  backdrop-filter: blur(8px);
  text-align: left;
}
.expertise-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.12);
  transform: translateY(-5px);
  background: var(--second-bg-color);
}

.expertise-card i {
  font-size: 3.5rem;
  color: var(--main-color);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.expertise-card h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.expertise-card p {
  font-size: 1.45rem;
  color: var(--text-color-muted);
  line-height: 1.6;
}

/* ---- Timeline ---- */
.timeline-section {
  width: 100%;
  margin-top: 7rem;
}

.timeline-heading {
  font-size: 3.8rem;
  text-align: center;
  margin-bottom: 6rem;
  color: var(--text-color);
}
.timeline-heading span { color: var(--main-color); }

.timeline {
  position: relative;
  padding: 1rem 0;
}

/* Center vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--main-color) 5%,
    var(--main-color) 95%,
    transparent 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 46%;
  margin-bottom: 5rem;
}
.timeline-item.tl-left  { left: 0;   padding-right: 5rem; }
.timeline-item.tl-right { left: 54%; padding-left: 5rem; }

/* Glowing dot on center line */
.tl-dot {
  position: absolute;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--main-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--main-color), 0 0 18px var(--main-color);
  top: 2.4rem;
  z-index: 2;
}
.timeline-item.tl-left  .tl-dot { right: -0.7rem; }
.timeline-item.tl-right .tl-dot { left: -0.7rem; }

/* Card */
.tl-card {
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.6rem;
  padding: 2.8rem 2.5rem;
  transition: 0.3s ease;
  backdrop-filter: blur(8px);
}
.tl-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.18);
  transform: translateY(-5px);
}

.tl-card h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.8rem;
}

.tl-org {
  font-size: 1.4rem;
  color: var(--main-color);
  font-weight: 500;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tl-org i { font-size: 1.6rem; }

.tl-date {
  display: inline-block;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.28);
  color: var(--main-color);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.4rem 1.4rem;
  border-radius: 2rem;
  margin-bottom: 1.6rem;
}

.tl-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tl-card ul li {
  font-size: 1.45rem;
  color: var(--text-color-muted);
  line-height: 1.75;
  margin-bottom: 0.6rem;
  padding-left: 1.8rem;
  position: relative;
}
.tl-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--main-color);
  font-size: 1.5rem;
  line-height: 1.5;
}

/* ===========================
   EDUCATION SECTION
   =========================== */
.education {
  background-color: var(--glass-bg);
  backdrop-filter: blur(4px);
}

/* Heading underline */
.edu-underline {
  width: 5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--main-color), #3b82f6);
  border-radius: 2px;
  margin: -3rem auto 5rem;
}

/* Education Card */
.edu-card {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 4rem;
  max-width: 85rem;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease;
}
.edu-card:hover {
  border-color: var(--main-color);
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
}

/* Icon square */
.edu-icon-box {
  width: 7rem;
  height: 7rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, #00d2ff, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.edu-details { flex: 1; }

.edu-details h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.edu-uni {
  font-size: 1.55rem;
  color: var(--main-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.edu-uni i { font-size: 1.7rem; }

.edu-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.edu-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.45rem;
  color: var(--text-color-muted);
}
.edu-date i { color: var(--main-color); font-size: 1.6rem; }

.edu-gpa {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(0,210,255,0.15), rgba(59,130,246,0.15));
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 2rem;
  padding: 0.5rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--main-color);
}
.edu-gpa i { color: #ffd700; font-size: 1.5rem; }

.edu-desc {
  font-size: 1.5rem;
  color: var(--text-color-muted);
  line-height: 1.8;
}

/* ===========================
   TECH STACK & TOOLS SECTION
   =========================== */
.tech-stack { background: rgba(11, 34, 66, 0.72); backdrop-filter: blur(4px); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  width: 100%;
  max-width: 110rem;
  margin: 4rem auto 0;
}

.tech-category {
  background: transparent;
  text-align: left;
}

.tech-category h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.tech-category h3 i {
  color: var(--main-color);
  font-size: 2.2rem;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--second-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 2.5rem;
  padding: 0.8rem 1.8rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-color-muted);
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.tech-pill:hover {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 210, 255, 0.2);
}
.tech-pill i {
  color: var(--main-color);
  font-size: 1.8rem;
}


/* ===========================
   PROJECTS SECTION
   =========================== */
.projects { background-color: var(--glass-bg); backdrop-filter: blur(4px); }

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.project-card {
  background: var(--second-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: 0.4s ease;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(65, 90, 119, 0.1), transparent);
  opacity: 0;
  transition: 0.4s;
}
.project-card:hover {
  border-color: var(--main-color);
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow-color);
}
.project-card:hover::before { opacity: 1; }

.project-icon {
  font-size: 4rem;
  color: var(--main-color);
  background: rgba(65, 90, 119, 0.15);
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card h4 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-color);
}

.project-card > p {
  font-size: 1.55rem;
  color: var(--text-color-muted);
  line-height: 1.8;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.project-tags span {
  background: rgba(65, 90, 119, 0.1);
  color: var(--main-color);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 0.4rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 500;
}
.project-tags span.ongoing {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
}

.project-btn {
  align-self: flex-start;
  padding: 1rem 2.5rem;
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

/* ===========================
   GRAPHICS SECTION
   =========================== */
.graphics { background-color: var(--glass-bg); backdrop-filter: blur(4px); }

.graphics-subtitle {
  text-align: center;
  font-size: 1.6rem;
  color: var(--text-color-muted);
  margin-top: -3rem;
  margin-bottom: 3rem;
}

/* Gallery Filter (Full Gallery Modal) */
.gallery-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.filter-btn {
  padding: 0.8rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  background: rgba(0, 210, 255, 0.05);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 3rem;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: "Poppins", sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--main-color);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

/* Category Cards Grid */
.gallery-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.gcat-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gcat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gcat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
  transition: opacity 0.5s ease;
}

.gcat-info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: #fff;
  transition: transform 0.4s ease;
}

.gcat-icon {
  width: 4rem;
  height: 4rem;
  background: var(--main-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}
.gcat-icon i {
  font-size: 2rem;
  color: #000;
}

.gcat-info h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.gcat-count {
  font-size: 1.4rem;
  color: var(--main-color);
  font-weight: 500;
  display: inline-block;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease 0.1s;
}

.gcat-card:hover img {
  transform: scale(1.1);
}

.gcat-card:hover .gcat-icon,
.gcat-card:hover .gcat-count {
  transform: translateY(0);
  opacity: 1;
}
.gcat-card:hover .gcat-info {
  transform: translateY(-10px);
}

/* View Full Gallery Button Wrap */
.gallery-view-btn-wrap {
  text-align: center;
  margin-top: 2rem;
}

.gallery-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  padding: 1.2rem 3rem;
  background: transparent;
  border: 2px solid var(--main-color);
  color: var(--main-color);
}
.gallery-view-btn:hover {
  background: var(--main-color);
  color: #000;
}

/* Full Gallery Panel (Hidden Overlay) */
.full-gallery-panel {
  position: fixed;
  inset: 0;
  background: var(--bg-color);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.full-gallery-panel.active {
  opacity: 1;
  pointer-events: auto;
}

.full-gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
}

.full-gallery-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}
.full-gallery-header h3 {
  font-size: 3.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}
.full-gallery-header p {
  font-size: 1.6rem;
  color: var(--text-color-muted);
}

.close-gallery-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--text-color);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.close-gallery-btn:hover {
  background: var(--main-color);
  color: #000;
  transform: rotate(90deg);
}

.graphic-item.hide {
  display: none;
}

.graphics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.graphic-item {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}

.graphic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.graphic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.1), var(--main-color));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.5s ease;
  text-align: center;
  padding: 0 2rem;
}

.photo-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.5s;
}
.graphic-item:hover .photo-badge {
  opacity: 1;
}

.graphic-item:hover img {
  transform: scale(1.1);
}
.graphic-item:hover .graphic-overlay {
  opacity: 1;
}

.graphic-overlay i {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 1.5rem;
  transform: translateY(-20px);
  transition: 0.5s ease;
}
.graphic-item:hover .graphic-overlay i {
  transform: translateY(0);
}

.graphic-overlay h4 {
  font-size: 2.2rem;
  color: #fff;
  font-weight: 600;
  transform: translateY(20px);
  transition: 0.5s ease;
}
.graphic-item:hover .graphic-overlay h4 {
  transform: translateY(0);
}


/* ===========================
   CONTACT SECTION
   =========================== */
.contact { background-color: var(--glass-bg); backdrop-filter: blur(4px); }

.contact-underline {
  width: 5rem;
  height: 3px;
  background: linear-gradient(90deg, var(--main-color), #3b82f6);
  border-radius: 2px;
  margin: -3rem auto 5rem;
}

/* Outer card */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  padding: 5rem;
  max-width: 100rem;
  margin: 0 auto;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px var(--shadow-color);
}

/* Left column */
.contact-left h3 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.2rem;
}

.contact-left > p {
  font-size: 1.55rem;
  color: var(--text-color-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 3rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 1.5rem;
  color: var(--text-color-muted);
}

.cdetail-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--main-color);
  flex-shrink: 0;
}

.contact-link {
  color: var(--text-color-muted);
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-link:hover,
.contact-detail-item:hover .contact-link {
  color: var(--main-color);
  text-decoration: underline;
}

.contact-social-row {
  display: flex;
  gap: 1.2rem;
}

.contact-social-row a {
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-color);
  transition: 0.3s ease;
}
.contact-social-row a:hover {
  background-color: var(--main-color);
  color: #000;
  transform: translateY(-5px);
  border-color: var(--main-color);
  box-shadow: 0 0 15px var(--main-color);
}

/* Right column — form */
.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  padding: 1.6rem 2rem;
  background: var(--second-bg-color);
  border: 1px solid var(--card-border);
  border-radius: 1.2rem;
  font-size: 1.45rem;
  color: var(--text-color);
  transition: 0.3s ease;
}
.contact-right input:focus,
.contact-right textarea:focus {
  border-color: var(--main-color);
  background: var(--bg-color);
  outline: none;
  box-shadow: 0 0 10px rgba(0,210,255,0.15);
}
.contact-right input::placeholder,
.contact-right textarea::placeholder {
  color: var(--text-color-muted);
  opacity: 0.5;
}

.contact-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #00d2ff, #3b82f6);
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.contact-send-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #00d2ff);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
  transform: translateY(-2px);
}


/* ===========================
   FOOTER
   =========================== */
.footer {
  background-color: var(--glass-bg);
  backdrop-filter: blur(6px);
  padding: 5rem 10%;
  text-align: center;
}

.footer .social-icons {
  justify-content: center;
  margin-bottom: 2rem;
}

.footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

.footer ul li a {
  color: var(--text-color-muted);
  transition: 0.3s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.footer ul li a:hover {
  color: var(--main-color);
  border-bottom-color: var(--main-color);
}

.footer .copyright {
  color: var(--text-color-muted);
  font-size: 1.5rem;
}

/* ===========================
   RESPONSIVE — TABLET & MOBILE
   =========================== */
@media (max-width: 1024px) {
  html { font-size: 55%; }

  #menu-icon { display: block; }

  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 55%;
    padding: 1.5rem 3rem 3rem;
    background-color: rgba(10, 10, 10, 0.95);
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    border-bottom-left-radius: 2rem;
    display: none;
    backdrop-filter: blur(12px);
  }
  .navbar.active { display: block; }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 2.5rem 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .home {
    flex-direction: column-reverse;
    padding-top: 14rem;
    gap: 5rem;
    min-height: auto;
    padding-bottom: 8rem;
  }
  .home-content { align-items: center; text-align: center; }
  .home-img img { width: 22rem; height: 22rem; }

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

  /* Timeline tablet */
  .timeline-item { width: 48%; }
  .timeline-item.tl-right { left: 52%; }

  /* Contact card tablet */
  .contact-card {
    grid-template-columns: 1fr;
    padding: 3.5rem;
    gap: 3rem;
  }

  .input-group { grid-template-columns: 1fr; }

  .skill-main { gap: 5rem; }
}

@media (max-width: 600px) {
  html { font-size: 50%; }

  section { padding: 10rem 6%; }

  .home-content h1 { font-size: 3.8rem; }

  .heading { font-size: 4rem; }

  .navbar { width: 80%; }

  .home-img img { width: 18rem; height: 18rem; }
  .about-img img { width: 18rem; height: 18rem; }

  /* Timeline mobile — single column */
  .timeline::before { left: 1.8rem; }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 5rem;
    padding-right: 0;
  }
  .tl-dot { left: 1.1rem; right: auto !important; }

  /* Contact mobile */
  .contact-card { padding: 2.5rem 2rem; }

  /* Education mobile */
  .edu-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    gap: 2rem;
  }
  .edu-meta { justify-content: center; }

  .projects-container { grid-template-columns: 1fr; }

  .btn-group { flex-direction: column; align-items: center; }
}

/* ===========================
   LIGHTBOX MODAL & GALLERY SORTING
   =========================== */
.graphic-item[data-category="leadership"] { order: 1; }
.graphic-item[data-category="photography"] { order: 2; }
.graphic-item[data-category="drone"] { order: 3; }
.graphic-item[data-category="certifications"] { order: 4; }
.graphic-item[data-category="graphics"] { order: 5; }

/* Lightbox Container */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

.lightbox-modal.show {
  opacity: 1;
  visibility: visible;
}

/* Close Button */
.lightbox-close {
  position: absolute;
  top: 3rem;
  right: 4rem;
  font-size: 5rem;
  color: #fff;
  cursor: pointer;
  transition: 0.3s ease;
}
.lightbox-close:hover {
  color: var(--main-color);
  transform: scale(1.1);
}

/* Image Container & Chevrons */
.lightbox-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 90vw;
  max-height: 80vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
}

.lightbox-prev, .lightbox-next {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: 0.3s ease;
  user-select: none;
}
.lightbox-prev:hover, .lightbox-next:hover {
  color: var(--main-color);
  transform: scale(1.2);
}

/* Caption */
#lightbox-caption {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-top: 2rem;
  letter-spacing: 1px;
}
