* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #fff;
  background-color: #000;
  font-size: 1.4em;
  line-height: 1.5;
}

/* ================= HEADINGS ================= */
h1 {
  position: relative;
  font-size: 2.4em;
  margin-bottom: 2px;
  text-shadow:
    3px 3px 5px rgba(0, 0, 0, 0.7),
    6px 6px 10px rgba(0, 0, 0, 0.5),
    9px 9px 15px rgba(0, 0, 0, 0.3);
}

h2 {
  font-family: "Courier New", monospace;
  margin-bottom: 8px;
  text-shadow:
    3px 3px 5px rgba(0, 0, 0, 0.7),
    6px 6px 10px rgba(0, 0, 0, 0.5),
    9px 9px 15px rgba(0, 0, 0, 0.3);
}

/* ================= GRID ================= */
#grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    'hdr hdr hdr hdr hdr hdr hdr hdr hdr hdr hdr hdr'
    'hom hom hom hom hom hom hom hom hom hom hom hom'
    'abt abt abt abt abt abt abt abt abt abt abt abt'
    'exp exp exp exp exp exp exp exp exp exp exp exp'
    'goa goa goa goa goa goa goa goa goa goa goa goa'
    'prt prt prt prt prt prt prt prt prt prt prt prt'
    'cod cod cod cod cod cod cod cod cod cod cod cod'
    'pen pen pen pen pen pen pen pen pen pen pen pen'
    'con con con con con con con con con con con con'
    'ftr ftr ftr ftr ftr ftr ftr ftr ftr ftr ftr ftr';
}

/* ================= NAVBAR ================= */
#navbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  grid-area: hdr;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: #000;
  padding: 10px 16px;
}

#mobileMenu {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

#mobileMenu .bar {
  background: #fff;
  display: block;
  height: 3px;
  width: 25px;
  margin: 5px;
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

#mobileMenu.open .bar:nth-child(2) {
  opacity: 0;
}

#mobileMenu.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

#navList {
  list-style: none;
  display: flex;
  gap: 60px;
  align-items: center;
}

#navList li {
  list-style: none;
}

#navList a {
  color: #3db6ff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  font-size: 1.1em;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

#navList a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3db6ff, #00e5ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

#navList a:hover {
  color: #7fd9ff;
}

#navList a:hover::after {
  transform: scaleX(1);
}

/* ================= HERO ================= */
#home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   
  grid-area: hom;
  width: 100%;
  height: 380px;
  font-family: "Courier New", monospace;
  text-align: center;
  padding-top: 120px;            
  overflow: hidden;
  position: relative;
}

#heroText {
  display: flex;
  flex-direction: column;
  align-items: center; 
}

#home h1 {
  margin-bottom: 8px;
}

#terminal {
  min-height: 100px;
  font-size: 40px;
  text-align: center;
  line-height: 1.2;
}

.background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: clip-path 3s ease-in-out, opacity 3s ease-in-out;
  clip-path: circle(150% at 100% 0);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.background.hidden {
  clip-path: circle(0% at 100% 0);
  opacity: 0;
}

#home h1,
#terminal {
  position: relative;
  z-index: 5;
}

#cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ================= ABOUT ================= */
#about {
  display: grid;
  grid-area: abt;
  background-color: #555;
  padding: 70px 50px 50px;
  gap: 20px;
}

#about h2 {
  justify-self: center;
  margin-bottom: 20px;
}

#aboutCard {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

#aboutImage {
  display: flex;
  justify-content: center;
}

#photo {
  width: 90%;
  max-width: 360px;
  border-radius: 50%;
  box-shadow:
    3px 3px 5px rgba(0, 0, 0, 0.7),
    6px 6px 10px rgba(0, 0, 0, 0.5),
    9px 9px 15px rgba(0, 0, 0, 0.3);
}

#aboutText {
  background: rgba(0, 0, 0, 0.22);
  padding: 28px 30px;
  border-radius: 12px;
}

.aboutTagline {
  font-size: 1.3em;
  margin-bottom: 14px;
  color: #66b3ff;
}

#aboutText p {
  margin-bottom: 14px;
  line-height: 1.6;
}

#triLogo {
  width: 140px;
  border-radius: 8px;
  margin-top: 18px;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#triLogo:hover {
  transform: scale(1.05);
  opacity: 1;
}

/* ================= EXPERIENCE ================= */
#experience {
  grid-area: exp;
  background-color: #444;
  padding: 60px 40px;
  text-align: center;
}

.experienceCard {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0,0,0,0.25);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
}

.experienceCard h3 {
  margin-bottom: 8px;
  color: #66b3ff;
}

.experienceDate {
  font-size: 0.9em;
  opacity: 0.8;
  margin-bottom: 15px;
}

.experienceList {
  padding-left: 20px;
}

.experienceList li {
  margin-bottom: 8px;
}

.experienceCard a {
  color: #4da3ff;             
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(77, 163, 255, 0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.experienceCard a:hover {
  color: #7bbcff;
  border-bottom-color: #7bbcff;
}

.companySep {
  color: #aaa;
  margin: 0 6px;
  font-weight: 600;
}

/* ================= CAREER ================= */
#careerGoals {
  grid-area: goa;
  background: #555;
  padding: 60px 40px;
  text-align: center;
}

.careerGrid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.careerCard {
  background: rgba(0,0,0,0.25);
  padding: 28px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.careerCard h3 {
  color: #66b3ff;
  margin-bottom: 10px;
}

/* ================= PORTFOLIO ================= */
#portfolio {
  grid-area: prt;
  background-color: #444;
  padding: 50px 40px;
  text-align: center;
}

.sectionHint {
  margin-bottom: 16px;
  opacity: 0.8;
  font-size: 0.9em;
}

#portfolioSlider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 1100px;
  margin: 20px auto 0;
}

#sliderViewport {
  overflow: hidden;
  width: 100%;
  max-width: 760px;
}

#sliderTrack {
  display: flex;
  transition: transform 0.4s ease;
}

.projectSlide {
  min-width: 100%;
  background-color: #333;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.projectSlide:hover {
  background-color: #555;
  transform: scale(1.01);
}

.projectSlide img {
  width: 100%;
  max-width: 480px;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin: 0 auto 18px;
}

.projectSlide h3 {
  font-size: 1.25em;
  margin-bottom: 12px;
  color: #fff;
}

.projectSlide p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f1f1f1;
  max-width: 600px;
  margin: 0 auto;
}

.sliderBtn {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #3db6ff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.sliderBtn:hover {
  background: rgba(20,20,20,0.85);
  border-color: rgba(61,182,255,0.6);
  color: #7fd9ff;
  transform: scale(1.08);
}


#sliderDots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.sliderDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sliderDot.active {
  background-color: #3db6ff;
  transform: scale(1.2);
}

/* ================= SKILLS ================= */
#code {
  grid-area: cod;
  background-color: #333;
  padding: 60px 40px;
  text-align: center;
}

#code h2 {
  margin-bottom: 30px;
}

.skillsWrapper {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.skillsCard {
  background: rgba(0,0,0,0.25);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.skillsCard h3 {
  color: #66b3ff;
  margin-bottom: 6px;
}

.skillsNote {
  opacity: 0.8;
  font-size: 0.9em;
  margin-bottom: 18px;
}

.skillsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  gap: 18px;
}

.icons {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin: 12px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.icons:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* ================= CONTACT ================= */
#contact {
  grid-area: con;
  background-color: #222;
  padding: 50px;
  text-align: center;
  row-gap: 10px;
}

#contactInfo {
  font-size: 18px;
}

#contactInfo a {
  text-decoration: none;
}

.socials-container {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
}

.socials {
  width: 64px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.socials:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.2);
}

/* ===== ACCENT LINKS ===== */
.accentLink {
  color: #3db6ff;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

.accentLink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3db6ff, #00e5ff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.accentLink:hover {
  color: #7fd9ff;
}

.accentLink:hover::after {
  transform: scaleX(1);
}

/* ================= FOOTER ================= */
footer {
  grid-area: ftr;
  background-color: #333;
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  body {
    font-size: 1em;
  }

  #navbar {
    justify-content: space-between;
  }

  #mobileMenu {
    display: block;
  }

  #navList {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #000;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    gap: 20px;
  }

  #navList.active {
    display: flex;
  }

  #about {
    padding: 40px 20px 60px;
  }

    #home {
    height: 300px;      
    padding-top: 70px; 
  }

  #aboutCard {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  #aboutImage {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #photo {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
  }

  #aboutText {
    order: 2;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }

  .aboutTagline {
    text-align: center;
  }

  #careerGoals {
    padding: 40px 20px;
  }

  #portfolio {
    padding: 40px 20px;
  }

  #code {
    grid-template-columns: repeat(3, 1fr);
    padding: 40px 20px;
  }

  .icons {
    width: 40%;
    margin: 12px;
  }

  #terminal {
    font-size: 25px;
  }

  /* ===== MOBILE PORTFOLIO FIX ===== */

  #portfolioSlider {
    gap: 0;
  }

  #sliderViewport {
    max-width: 100%;
  }

  .projectSlide {
    padding: 14px;
  }

  .projectSlide img {
    max-height: 45vh;
    width: 100%;
  }

  .projectSlide h3 {
    font-size: 1.05em;
  }

  .projectSlide p {
    font-size: 0.9em;
    line-height: 1.45;
  }

  .sliderBtn {
    display: none;
  }

  .careerGrid {
    grid-template-columns: 1fr;
  }

  .skillsWrapper {
    grid-template-columns: 1fr;
  }

  .skillsGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

