/* variables */
:root {
  --bg-base:      #0d0e1a;
  --bg-surface:   #13152a;
  --bg-card:      #181a2e;
  --bg-card-alt:  #1c1e33;
  --accent:       #6c63ff;
  --accent-2:     #a78bfa;
  --accent-glow:  rgba(108, 99, 255, 0.18);
  --cyan:         #00b7f9;
  --text-primary: #eef0ff;
  --text-muted:   #9899b8;
  --border:       rgba(108, 99, 255, 0.22);
  --nav-h:        65px;
}

/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ── nav ── */
.nav-bar {
  position: fixed;
  top: 0; left: -20px;
  width: 100%;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--nav-h);
  background: rgba(13, 14, 26, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.T-dreams {
  font-family: Impact, 'Arial Narrow Bold', sans-serif;
  font-size: 1.5rem;
  background: linear-gradient(to right, #4d09ed, #940efa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.nav-items {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
  text-transform: capitalize;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.35s ease;
}

.nav-link.active::after,
.nav-link:hover::after { width: 100%; }

#open-nav-bar, #close-nav-bar { display: none; cursor: pointer; }

/* ── wrapper ── */
.wrapper-container {
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-base);
  padding-top: var(--nav-h);
}

/* ── home ── */
.home-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px 40px;
  position: relative;
}

/* subtle grid background */
.home-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.home-items {
  width: min(680px, 92%);
  text-align: center;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.text-motive { margin-bottom: 28px; }

.text-m {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #c084fc, #6c63ff, #00b7f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.text-m2 {
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.home {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  background: linear-gradient(to right, #f97316, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.job-post {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 600;
  background: linear-gradient(to right, #f97316, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: 28px;
  margin-bottom: 20px;
}

/* social icons */
.icons {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(108, 99, 255, 0.1);
  transition: transform 0.3s, background 0.3s;
}

.icons a:hover {
  transform: translateY(-4px);
  background: rgba(108, 99, 255, 0.28);
}

.icons a:hover svg { fill: var(--accent-2); }

/* hire-me row */
.hire-me {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hire-me a { text-decoration: none; }

.hire-me button {
  padding: 10px 26px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #6c63ff, #1967ee);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.hire-me button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.hire-me a:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.arrow-down {
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: #fff;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ── about ── */
.about {
  padding: 80px 24px 60px;
  background-color: var(--bg-surface);
}

.about-us-h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 36px;
  padding-left: 2%;
  font-family: Georgia, serif;
  letter-spacing: 1px;
}

.profile-control {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
  align-items: center;
}

.text-wrapper {
  flex: 1 1 320px;
  max-width: 620px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.inner-text {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--text-primary);
  line-height: 1.8;
  text-align: left;
}

.inner-text span {
  font-weight: 700;
  color: var(--accent-2);
}

.profile-img {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--accent);
  box-shadow: 0 0 28px rgba(108, 99, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.my-profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.handle-btn-cv { padding: 28px 0 0; }

.dowload-cv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #1967ee, #6c63ff);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
}

.dowload-cv:hover { opacity: 0.88; transform: translateY(-2px); }

.dw-btn {
  height: 16px;
  background: #fff;
  padding: 2px;
  border-radius: 3px;
}

/* ── experience ── */
.experience-wrapper {
  padding: 80px 24px 60px;
  background-color: var(--bg-base);
}

.experience-h {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 32px;
  padding-left: 2%;
  font-family: Georgia, serif;
  letter-spacing: 1px;
}

.experience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.education-wrapper,
.skills-wrapper,
.internship-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
}

.education-wrapper h4,
.skills-wrapper h4,
.internship-wrapper h4 {
  color: var(--cyan);
  font-family: Georgia, serif;
  font-size: 1rem;
  margin-bottom: 16px;
}

.education-wrapper ul {
  padding-left: 4px;
  list-style: none;
}

.education-wrapper ul li {
  color: var(--text-primary);
  font-size: 0.92rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.5;
}

.education-wrapper ul li:last-child { border-bottom: none; }

/* skill bars */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.skill-category { margin-bottom: 12px; }

.skill-cat-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-bar-group { display: flex; flex-direction: column; gap: 8px; }

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #ccc;
  margin-bottom: 4px;
}

.skill-pct { color: var(--accent-2); font-weight: 600; }

.skill-track {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%; width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.internship ul { list-style: none; padding: 0; }

.internship ul li {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.7;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.internship ul li:last-child { border-bottom: none; }

/* ── portfolio ── */
.porforlio-wrapper {
  padding: 80px 24px 60px;
  background-color: var(--bg-surface);
}

.porforlio-h {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 32px;
  padding-left: 2%;
  font-family: Georgia, serif;
  letter-spacing: 1px;
  text-transform: capitalize;
}

.porforlio-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.porforlio-items {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.porforlio-items:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.25);
}

.porforlio-items img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.porforlio-items > p, .porforlio-items .work-title {
  padding: 0 12px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: start;
  margin-top: 8px;
}

.work-title {
  font-weight: 700;
  color: var(--cyan) !important;
  font-family: Georgia, serif;
  font-size: 0.95rem !important;
}

.porforlio-items button {
  border: 1px solid rgba(108, 99, 255, 0.5);
  background: transparent;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  color: var(--accent-2);
  margin: 0 3px 6px;
  text-transform: capitalize;
  transition: background 0.2s;
}

.porforlio-items button:hover { background: rgba(108,99,255,0.18); }

/* button row wrapper */
.porforlio-items .btn-row {
  padding: 8px 10px 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
}

/* ── contact ── */
.contact-wrapper {
  padding: 80px 24px 60px;
  background-color: var(--bg-base);
}

.contact-h {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
  padding-left: 2%;
  font-family: Georgia, serif;
  letter-spacing: 1px;
}

.cantact-h-i {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding-left: 2%;
  margin-bottom: 36px;
}

.contact-form {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 200px;
  color: var(--text-primary);
}

.tel {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.call-c {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 0.95rem;
}

.telephone { height: 18px; }

.mess-icon {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.mess-icon img { height: 22px; width: 22px; }

.contact-input {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.contact-input input,
.contact-input textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.25s;
}

.contact-input input:focus,
.contact-input textarea:focus { border-color: var(--accent); }

.contact-input textarea {
  min-height: 100px;
  resize: vertical;
}

.send-email {
  align-self: flex-end;
  background: var(--accent);
  padding: 10px;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  cursor: pointer;
  opacity: 1;
  transition: background 0.25s, transform 0.25s;
  position: static;
}

.send-email:hover { background: var(--accent-2); transform: scale(1.1); }

.email-sent {
  color: var(--cyan);
  font-size: 12px;
  text-align: right;
}

/* ── footer ── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
}

.footer-container { max-width: 1200px; margin: 0 auto; }

.wrapper-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 36px;
}

.wrapper-contact span { flex: 1 1 140px; }

.title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-items { display: flex; flex-direction: column; gap: 10px; }

.contact-items div a,
.about-items div,
.feedback-items div {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.contact-items div a:hover { color: var(--accent-2); }

.about-items { display: flex; flex-direction: column; gap: 8px; }
.about-items div { color: var(--text-muted); font-size: 0.88rem; }
.about-items div a { color: var(--text-muted); text-decoration: none; }
.about-items div a:hover { color: var(--accent-2); }

.feedback-items { display: flex; flex-direction: column; gap: 8px; }
.feedback-items div { color: var(--text-muted); font-size: 0.88rem; }
.feedback-items div a { color: var(--text-muted); text-decoration: none; }

.reserve-right {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ── no-scroll ── */
.no-scroll { overflow: hidden; height: 100vh; }

/* ── responsive ── */

/* tablet */
@media (max-width: 900px) {
   .logo{
    position: relative;
    left: 50px;
    top: 3px;
    width: 120px;
    border-radius: 5px;
  }
  .experience .skills {
    grid-template-columns: 1fr;
  }

  .experience {
    grid-template-columns: repeat(2, 1fr);
  }

  .internship-wrapper {
    grid-column: 1 / -1;
  }

  .porforlio-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 600px) {
  /* nav */
  .nav-bar { padding: 2 10px; }
  .T-dreams{
    position: relative;
    left: -50px;
    top: 5px;
    font-family: Impact, 'Arial Narrow Bold', sans-serif;
  font-size: 1.3rem;
  background: linear-gradient(to right, #4d09ed, #940efa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.6px;
  flex-shrink: 0;
  }
  .logo{
    position: relative;
    left: 5px;
    top: 3px;
    width: 120px;
    border-radius: 5px;
  }
  #open-nav-bar {
    display: block;
    position: fixed;
    right: 30px;
    top: 18px;
    z-index: 1000;
  }

  .nav-items {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    height: 100vh;
    background: rgba(13, 14, 26, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    transition: right 0.35s ease;
    z-index: 1000;
    border-left: 1px solid var(--border);
  }

  .nav-items.open-nav { right: 0; }

  #close-nav-bar {
    display: block;

    position: absolute;
    width: 30px;
    background-color: #0d0e1a;
    height: 30px;
    top: 20px; right: 20px;
    color: var(--text-primary);
  }

  .nav-link { font-size: 1.05rem; }

  /* sections */
  .about, .experience-wrapper,
  .porforlio-wrapper, .contact-wrapper {
    padding: 60px 16px 40px;
  }

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

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

  .contact-form { flex-direction: column; gap: 20px; }
  .contact-info { width: 100%; }
  .contact-input { width: 100%; }

  .profile-img {
    width: 210px; height: 210px;
  }

  .hire-me { gap: 20px; }
}