/* ================= GLOBAL STYLES ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #1e2a38;
  color: #fff;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.container {
  height: 100vh;
  display: flex;
  padding: 10px 30px;
  gap: 10px;
  overflow: hidden;
}

/* ================= NAVIGATION ================= */
.links {
  flex: 0 0 5%;
  height: 100%;
  overflow: hidden;
  background: #27394d;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 20px 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #48e8e5;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-item i {
  font-size: 1.4rem;
  margin-bottom: 5px;
  transition: transform 0.25s ease;
}

/* hover effect for nav icons and labels */
.nav-item:hover i { transform: translateY(-3px); color: #00ffe0; }
.nav-item a { text-decoration: none; color: #48e8e5; font-size: 0.9rem; }
.nav-item a:hover { color: #00ffe0; text-decoration: underline; transform: translateY(-2px); }

/* ================= PROFILE ================= */
.profile {
  height: 100%;
  padding: 20px 10px;
  position: relative;
  flex: 0 0 30%;
  background: #27394d;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-profile {
  width: 100%;
  height: 45%;
  background: url("assets/profile.webp") center/cover no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 75% 100%, 25% 100%, 0 70%);
  transition: transform 0.4s ease;
}
.top-profile:hover { transform: scale(1.02); }

.mid-profile {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(90px, 12vw, 130px);
  height: clamp(90px, 12vw, 130px);
  border-radius: 50%;
  border: 5px solid #1e2a38;
  background: #48e8e5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mid-profile:hover { transform: translateX(-50%) scale(1.05); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.mid-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-bottom {
  text-align: center;
  margin-top: 6rem;
}

.name h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.name p {
  color: #48e8e5;
  font-size: 1rem;
  margin-bottom: 15px;
}

/* social icons hover */
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}
.social-links {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease;
}
.social-links:hover {
  background: #48e8e5;
  color: #1e2a38;
  transform: translateY(-4px);
}

.line {
  width: 80%;
  margin: 20px auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-footer {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-footer a {
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.25s ease, transform 0.25s ease;
}
.profile-footer a:hover { color: #48e8e5; transform: translateY(-3px); }

/* ================= MAIN CONTENT ================= */
.content {
  flex: 1;
  height: 100%;
  min-height: 0;
  background: #27394d;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  padding: 30px;
  overflow-y: auto;
}
.content::-webkit-scrollbar{
  width: 8px;
  border-radius: 10px;
}
.content::-webkit-scrollbar-track{
  background-color: #1e2a38;
}
.content::-webkit-scrollbar-thumb{
  border-radius: 7px;
  border: 2px solid #27394d;
  background: linear-gradient(180deg, #48e8e5, #00ffe0);
}
.change-text-color{ color: #48e8e5; }

.about-line{
     width: 100%;
     margin: 20px auto;
     border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* achievements hover */
.about-me .achievement{
    width: 100%;
    height: auto;
    background: #1e2a38;
    border: none;
    border-radius: 10px;
    margin: 20px 0;
}
.achievement{
    display: flex;
    justify-content: space-around;
    gap: 10px;
    padding: 1.2rem;
}
.achievement .web-designed{
    display: flex;
    flex-direction: column;
    align-items:center;
    transition: transform 0.25s ease;
}
.achievement .web-designed:hover { transform: translateY(-6px); }
.web-designed .two-k{
    display: flex;
    align-items: center;
    gap: 10px;
}
.two-k i{ color: #48e8e5; }

/* ========== SKILLS ========== */
.skill-cards{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  overflow: hidden;
  gap: 2rem;
  max-width: 800px;
  margin: auto;
  align-items: center;
  padding: 1.2rem 0;
}
.skill-cards .card{
  display: flex;
  flex: 1 1 200px;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 150px;
  border-radius: 5px;
  gap: 0.5rem;
  align-items: center;
  flex-direction: column;
  background: #1e2a38;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.skill-cards .card:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.4); }
.card .card-icon{ padding: 2rem; display: flex; flex-direction: column; text-align: center; align-items: center; }
.card i{ font-size: 3rem; color: #48e8e5; transition: transform 0.3s; margin: 0; padding: 0; line-height: 1; }
.card span{ font-size: 1rem; font-weight: 500; color: rgba(255,255,255,0.8); }

/* skill bars */
#skill-card{ border: 2px solid #1e2a38; background-color: #27394d; }
.skill{ width: 80%; }
.skill p{ display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem; }
.skill-bar{ width: 100%; height: 12px; background-color: #1e2a38; border-radius: 6px; overflow: hidden; }
.skill-level{ height: 12px; border-radius: 6px; background-color: #48e8e5; transition: width 1s ease; }
.skill-level:hover {
  filter: brightness(1.3);
}

/*  ================ Experience ================= */
.experience, .projects h2{ padding: 0.5rem; }
.experience1 h2,.experience2 h2,.experience3 h2{ padding: 0.5rem 0; }
.linear-items{ display: flex; gap: 10px; align-items: center; padding: 0 1rem; }
.linear-items .circle{ width: 10px; height: 10px; border-radius: 50%; background-color: #48e8e5; }
.linear-items .company{ color: #00ffe0; font-weight:600; }
.linear-items .mini-circle{ width: 5px; height: 5px; border-radius: 50%; border: 1px solid #48e8e5; }
.linear-items .start-date, .linear-items .end-date{ background-color: #1e2a38; padding: 0.1rem 0.5rem; border-radius: 5px; }
.linear-items .start-date p, .linear-items .end-date p{ opacity: 0.7; font-size: 0.9rem; }

/* experience text layout */
.experience-text{ display: flex; gap:0.5rem; align-items:flex-start; }
.experience-text .vertical-line{ width: 0.4rem; height: 100%; margin: 0.2rem 0.5rem; border-left: 3px solid rgba(255, 255, 255, 0.2); }
.experience-text p{ padding: 0.1rem 1rem; line-height:1.4; color: rgba(255,255,255,0.9); }

/* ================= PROJECTS SECTION ================= */
.project-container{
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  /* grid-auto-rows: 200px; */
  gap: 1rem;
  margin-top: 1rem;
}
.project-card{
  background-color: #1e2a38;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* justify-content: center;
  align-items: center; */
  border-radius: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card img{
  width: 100%; 
  height: 160px; 
  object-fit: cover; 
  display:block; 
}
.project-card .project-body{ padding: 1rem; display:flex; flex-direction: column; gap:0.5rem; flex:1; }
.project-card .project-body h3{ font-size:1.05rem; }
.project-card .project-body p{ color: rgba(255,255,255,0.8); font-size:0.95rem; line-height:1.3; }
.project-card:hover{ transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }


/* ================= TESTIMONIALS SECTION ================= */

.testimonial-container{
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem;
  grid-auto-rows: 300px;
  margin-top: 2rem;
  align-items: stretch;
}

.testimonial-card{
  background-color: #1e2a38;
  border-radius: 5px;
  display: flex;
  flex-wrap: wrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover{
  transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.test-text{
  height: 100%;
  background-color: #27394d;
  display: flex;
  flex-wrap: wrap;
  padding: 1rem;
  justify-content: center;
  align-items: center;
}
.reviewer{
  display: flex;
  gap: 1rem;
  flex-direction: column;
  padding: 1rem;
}
.reviewer-info{
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
}
.info .stars i{
  color: gold;
}
.reviewer-profile img{
  width: 70px;
  max-width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}
.reviewer-text{
  display: flex;
  flex-wrap: wrap;
  opacity: 0.5;
}


/* ================= BLOGS (new) ================= */
.blogs{ margin-top: 2rem; }
.blogs h2{ padding: 0.5rem; }
.blog-container{
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.blog-card{
  background: #1e2a38;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover{ transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.blog-card img{ width: 100%; height: 160px; object-fit: cover; display:block; }
.blog-card .blog-body{ padding: 1rem; display:flex; flex-direction: column; gap:0.5rem; flex:1; }
.blog-card .blog-body h3{ font-size:1.05rem; }
.blog-card .blog-body p{ color: rgba(255,255,255,0.8); font-size:0.95rem; line-height:1.3; }
.blog-card .blog-body .read-more,
.project-card .project-body .view-project{
  margin-top: auto;
  align-self: flex-start;
  padding: 0.5rem 0.8rem;
  border-radius:6px;
  background:#48e8e5;
  color:#1e2a38;
  text-decoration:none;
  font-weight:600;
  transition: transform 0.2s ease;
}
.blog-card .blog-body .read-more:hover{ transform: translateY(-4px); }



/* ================= CONTACT SECTION ================= */
/* .contact-section{ margin-top: 2rem; }
.location{ width: 100%; max-width: 700px; border-radius: 12px; border: 2px solid rgba(255,255,255,0.2); overflow:hidden; position:relative; }
.location::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); pointer-events:none; }

/* form styles */
/* .contact-form{ margin: 1.5rem auto; }
.contact-form form{ display:flex; flex-direction:column; gap:1rem; width:100%; }
.contact-form form .row{ display:flex; gap:1rem; }
.contact-form form .row input{ flex:1; background-color:#1e2a38; border:none; color:#fff; outline:none; padding:0.8rem; border-radius:8px; }
.detail{ display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; flex:1; }
.detail input{ width:100%; }
.detail .textarea{ width:100%; padding:0.8rem; height:30vh; border-radius:8px; background-color:#1e2a38; border:none; outline:none; color:#fff; }
.send-btn{ width:50%; padding:0.8rem; border:none; background:#48e8e5; color:#fff; border-radius:8px; cursor:pointer; transition: transform 0.2s ease; }
.send-btn:hover{ transform: translateY(-4px); } */ 

/* ================= CONTACT SECTION ================= */

.contact-section{
  margin-top: 2rem;
}
.location{
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.location::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* dark tint */
  pointer-events: none;
}

.contact-form{
  margin: 1.5rem auto;
}
.contact-form form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}
.contact-form form .row{
  display: flex;
  gap: 1rem;
}

.contact-form form .row input{
  flex: 1;
  background-color: #1e2a38;
  border: none;
  color: #fff;
  outline: none;
}
.contact-form form .row input:focus{
  border: 1px solid #48e8e5;
}
.contact-form form input{
  width: 100%;
  padding: 0.8rem;
  border-radius: 8px;
  background-color: #1e2a38;
  border: 1px;
  outline: none;
  color: #fff;
  outline: none;
  transition: border-color 0.3s ease;
}
.contact-form form input:focus{
  border: 1px solid #48e8e5;
}
.detail{
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 gap: 1rem;
 flex: 1;
}
.detail input{
  width: 100%;
  border: 1px;
}

.detail .textarea{
 width: 100%;
 padding: 0.8rem;
 height: 30vh;
 border-radius: 8px;
 background-color: #1e2a38;
 border: 1px;
 outline: none;
 color: #fff;
 outline: none;
 transition: border-color 0.3s ease;
}
.detail .textarea:focus{
  border: 1px solid #48e8e5;
}
.send-btn{
  width: 50%;
  padding: 0.8rem;
  border: none;
  background: #48e8e5;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.send-btn:hover{
    transform: translateY(-4px);
}

/* ================= CONTACT VALIDATION ================= */

.input-error{
  border-color: #ff4d4d !important;
}
.input-success{
  border-color: #4CAF50 !important;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .container { height:auto; overflow:visible; flex-direction:column; padding:10px; }
  .links { height:auto; min-height:0; flex:0 0 auto; width:100%; border-radius:12px; padding:10px; }
  .nav-links ul { flex-direction:row; justify-content:space-around; }
  .profile { height:auto; min-height:0; width:100%; flex:none; }
  .mid-profile { margin-top:-45px; }
  .profile-bottom { text-align:center; margin-top:10rem; }
  .profile-footer { padding:0.5rem; }
  .content { height:auto; min-height:0; width:100%; flex:1; overflow:visible; -ms-overflow-style:none; scrollbar-width:none; }
  .content::-webkit-scrollbar{ display:none; }
  .skill-cards{ display:grid; grid-template-columns:repeat(2,1fr); gap:1rem; align-items:stretch; }
  .skill-cards .card{ width:100%; min-width:0; height:auto; }
  .project-container{ grid-column:auto !important; grid-row:auto !important; }
  .row,.detail{ display:flex; flex-direction:column; }

  /* .testimonials .section-title {
    font-size: 2rem;
  }
  .testimonial-card {
    padding: 25px 20px;
  }
  .client-info .client-feedback {
    font-size: 0.95rem;
  } */
}