html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #020617;
  color: white;
}

/* NAVBAR */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(2, 6, 23, 0.95);
  padding: 15px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

nav h2 {
  color: #287cea;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

nav a:hover {
  color: #60a5fa;
}

/* HERO */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #0a1a33, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 40px;
}

.hero-content {
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(90deg, #f5c46b, #ffd700, #caa24d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #d1d5db;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* BUTTONS */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 14px 30px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
}

.btn.primary {
  background: #2563eb;
  color: white;
}

.btn.primary:hover {
  background: #1d4ed8;
}

.btn.outline {
  border: 1.5px solid #9ca3af;
  color: white;
}

.btn.outline:hover {
  background: rgba(255,255,255,0.1);
}

/* ABOUT TERMINAL */
.about-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 100px 8%;
  background: linear-gradient(135deg, #0a1a33, #020617);
}

.about-left h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #f5c46b, #ffd700, #caa24d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  color: #f5c46b;
}

.about-left p {
  color: #d1d5db;
  line-height: 1.8;
  margin-bottom: 18px;
}

/* TERMINAL */
.terminal {
  background: #1f1f1f;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  overflow: hidden;
}

.terminal-header {
  background: #2b2b2b;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.path {
  margin-left: 10px;
  color: #9ca3af;
  font-size: 0.85rem;
}

.terminal-body {
  padding: 20px;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.cmd {
  color: #38bdf8;
}

/* COMMON SECTIONS */
section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #facc15;
}

section {
  padding: 80px 10%;
}

/* SKILLS */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 15px;
}

.skill {
  background: #020617;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid #1e293b;
}

/* PROJECTS */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

.project {
  background: #020617;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

/* EDUCATION */
.timeline {
  display: grid;
  gap: 20px;
}

.time-box {
  background: #020617;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #1e293b;
}

/* CONTACT */
form {
  max-width: 500px;
  margin: auto;
  display: grid;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
}

/* RESUME */
#resume {
  text-align: center;
  padding-bottom: 60px;
}

#resume .btn {
  margin-top: 20px;   /* move button down */
}


.tech-skills {
  padding: 80px 8%;
  background: radial-gradient(circle at top, #0b1a3a, #020b1f);
  color: white;
}

.tech-skills h2 {
  font-size: 36px;
  color: #f5c46b;
}

.skill-sub {
  margin-top: 8px;
  color: #ccc;
}

.skills-wrapper {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.skill-box {
  flex: 1;
  min-width: 300px;
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 25px;
  box-shadow: inset 0 0 30px rgba(255,255,255,0.03);
}

.skill-box h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 25px 10px;
  text-align: center;
  font-weight: 500;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
}



.projects-section {
  padding: 80px 8%;
  background: radial-gradient(circle at top, #081a3a, #020b1f);
  color: white;
}

.projects-section h2 {
  color: #f5c46b;
  font-size: 36px;
}

.project-sub {
  color: #aaa;
  margin-top: 6px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: 20px;
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.08);
}

.project-banner {
  height: 120px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4b3cff, #00c6ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  font-size: 14px;
  color: #ccc;
}

.tags {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tags span {
  background: rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
}


.project-banner i {
  font-size: 42px;
  color: white;
}

/* EXPERIENCE SECTION */
.experience-section {
  padding: 80px 8%;
  background: radial-gradient(circle at top, #0b1d3a, #020b1a);
  color: #fff;
}

.experience-section h2 {
  font-size: 32px;
  color: #f5c46b;
  margin-bottom: 10px;
}

.exp-subtitle {
  color: #cfd8ff;
  margin-bottom: 50px;
}

/* TIMELINE */
/* TIMELINE CONTAINER */
.timeline {
  position: relative;
  padding-left: 60px;
}

/* VERTICAL LINE */
.timeline::before {
  content: "";
  position: absolute;
  left: 30px;                     /* 🔥 LINE POSITION */
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(245, 196, 107, 0.4);
}

/* EACH ITEM */
.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 60px;
}

/* ICON — PERFECTLY ON THE LINE */
.timeline-dot {
  position: absolute;
  left: -30px;                     /* 🔥 SAME AS LINE */
  top: 0;
  transform: translateX(-50%);    /* 🔥 CENTER ICON */
  width: 40px;
  height: 40px;
  background: #020b1a;
  border: 2px solid #f5c46b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c46b;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(245, 196, 107, 0.6);
  z-index: 2;
}

/* CONTENT */
.timeline-content {
  background: transparent;
}

/* DATE PILL */
.timeline-content .date {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 10px;
  color: #fff;
}

/* TITLES */
.timeline-content h3 {
  color: #f5c46b;
  margin: 10px 0 6px;
}

.timeline-content h4 {
  font-weight: 500;
  margin-bottom: 10px;
  color: #ffffff;
}

/* DESCRIPTION */
.timeline-content p {
  color: #d6deff;
  line-height: 1.6;
}



/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: black;
  color: gray;
}


.contact-section {
  padding: 100px 8%;
  background: radial-gradient(circle at top, #081633, #020b1a);
  color: #fff;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

/* LEFT FORM */
.contact-form h2 {
  font-size: 32px;
  color: #f5c46b;
  margin-bottom: 10px;
}

.subtitle {
  margin-bottom: 30px;
  color: #cfd8ff;
}

.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  outline: none;
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-form textarea {
  resize: none;
}

.btn-send {
  padding: 14px 26px;
  background: #1e6cff;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* RIGHT CARD */
.contact-info {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.contact-info h3 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #f5c46b;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.info-item span {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9fb0ff;
}

.info-item p {
  font-size: 16px;
  margin-top: 4px;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 196, 107, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c46b;
  font-size: 18px;
}

.footer {
  background: linear-gradient(180deg, #06122b 0%, #020b1a 100%);
  padding: 60px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ICON ROW */
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

/* ICON CIRCLE */
.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 196, 107, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5c46b;
  font-size: 17px;
}

/* COPYRIGHT */
.footer p {
  font-size: 14px;
  color: #cfd7ff;
}

.footer p span {
  color: #f5c46b;
}






/* MOBILE */
@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
}




@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  section {
    padding: 60px 20px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  p  { font-size: 14px; }

}


@media (max-width: 768px) {

  nav {
    flex-direction: column;
    padding: 15px 20px;
    gap: 15px;
    text-align: center;
  }

  nav h2 {
    font-size: 18px;
  }

  nav div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  nav div a {
    font-size: 13px;
  }
}



@media (max-width: 768px) {

  .skills-wrapper {
    flex-direction: column;
    gap: 25px;
  }

  .skill-box {
    width: 100%;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-card {
    font-size: 13px;
    padding: 10px;
    text-align: center;
  }
}



@media (max-width: 768px) {

  .contact-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .contact-form,
  .contact-info {
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    font-size: 14px;
  }

  .info-item {
    gap: 12px;
  }

  .info-item p {
    font-size: 14px;
  }
}


nav,
.skills-wrapper,
.contact-wrapper {
  display: flex;
}
