/* Base styles */
* {
    margin: 0;
    padding: 0;
    
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
  }

  
  
  body {
    background-color: #050b22;
    
    color: #ffffff;
    border: 1px solid white;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  
  
  .container {
    width: 90%;
    margin: 0 auto;
  }
  
  /* Header */
  #header {
    position: absolute; 
    padding: 20px 0;
    animation: slideIn 1s ease-out;
    width: 100%;
    top: 0;
    z-index: 1000;
  }
  
  #header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }

  

 
  
  .logo p {
    font-size: 18px;
    color: #ffffff;
  }

  
  
 

.home-section {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 0;
  margin-bottom: 25px;
  background: url('cover.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 2s ease-in-out;
  overflow: hidden;
}
@media (max-width: 750px) {
  .home-section {
    height: 75vh;
    background-position: center top;
  }

  .home-section .container {
    padding: 0 15px;
    text-align: center;
  }

  .tagline {
    font-size: 1.2rem;
  }
}

/* Base styles */
.nav-links {
  list-style: none;
  display: flex;
  font-size: small;
}

.nav-links li {
  margin: 0 14px;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.nav-links a i {
  margin-right: 8px;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
}

/* Overlay style */
#nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  display: none;
}

#nav-overlay.active {
  display: block;
}

/* Responsive Drawer */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 26px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }


  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 60vw;
    background-color:#050b22;
    box-shadow: 0 0 20px rgba(3, 95, 64, 0.3);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
   
    z-index: 999;
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }
  .menu-toggle i {
  transition: transform 0.3s ease;
}

.menu-toggle.active i {
  transform: rotate(180deg);
  color: #00dd00;
}


  .nav-links li {
    font-size: 20px;
    color: #fff;
    transition: transform 0.3s ease;
  }

  .nav-links li a:hover {
    transform: scale(1.1);
    color: #ffd700;
  }
}



.home-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 50, 0.6));
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.home-section .container {
  position: relative;
  z-index: 3;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

 .tagline {
  font-size: 24px;
  color: #eeeeee;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
  border-right: 2px solid #00dd00; /* কিউরসর ইফেক্ট */
  width: fit-content;
  margin: 0 auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1.2px;
  user-select: none; /* টেক্সট সিলেক্ট না হয় */
  animation: blink-caret 0.7s step-end infinite;
}

/* মোবাইল রেস্পন্সিভ */
@media (max-width: 768px) {
  .tagline {
    font-size: 16px;  /* ছোট করা */
    max-width: 95vw;  /* আরও ফ্লেক্সিবল */
  }
}

  
  .section {
    padding: 60px 0;
    animation: fadeIn 2s ease-in-out;
    width: 100%;
    text-align: center;
  }
  
  
  .card {
  padding: 13px;
  border-radius: 12px;

  margin-bottom: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #00dd00;
  animation: fadeInUp 0.8s ease both;
}

.card:hover {
  border-color: rgba(0, 255, 204, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
}



.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #00ff99;
}

/* Skill Cards */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}


.skill h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #eeeeee;
}

/* Progress Bar Styling */
.progress-bar {
  width: 100%;
  height: 12px;
  background-color: #333;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 5px #000;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #00ff99, #00ddff);
  border-radius: 20px;
  transition: width 1s ease-in-out;
}


.services {
  padding: 80px 20px;
 
  color: #fff;
  text-align: center;
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #ffcc00;
}

.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  padding: 30px 20px;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

.service-card i {
  font-size: 40px;
  margin-bottom: 20px;
  color: #00ffcc;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffd700;
}

.service-card p {
  font-size: 16px;
  color: #ddd;
}

@media (max-width: 768px) {
  .service-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-card {
    width: 90%;
  }
}



/* Projects Section */
#projects.section {
 
  padding: 60px 20px;
  text-align: center;
 
}

/* Container for Centering */
#projects .container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Project Card */
.project.card {
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 119, 255, 0.3);
}

/* Headings inside Card */
.project.card h2 {
  color: orange;
  font-size: 24px;
  margin-bottom: 10px;
}

/* Project Link */
.project-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--project-link);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
}

.project-link:hover {
  
  transform: scale(1.05);
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project.card {
  animation: fadeInUp 0.8s ease both;
}




  

/* === Developer Card === */
.dev-card {
  

  display: flex;
  flex-direction: column;
}

/* === Image Section === */
.profile-img-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.profile-img {
  width: 100%;
  border-radius: 10px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* === Info Section === */
.info {
  padding: 20px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === Desktop Layout === */
@media (min-width: 768px) {
  .dev-card {
    flex-direction: row;
    max-width: 100%;
    height: auto;
  }

  .profile-img-wrapper {
    width: 40%;
    aspect-ratio: unset;
    height: auto;
  }

  .profile-img {
    height: 100%;
  }

  .info {
    width: 60%;
    text-align: left;
    align-items: flex-start;
    padding: 40px;
    justify-content: center;
  }

  .social-links {
    justify-content: flex-start;
  }
}

.name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
  margin: 10px 0;
}

.title {
  font-size: 1rem;
  color: #ffd900;
  font-weight: 600;
}

.dept {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 0.9rem;
}

/* === Social Buttons === */
.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.social-btn {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}


.social-links a {
  text-decoration: none;
}


.social-btn:hover {
  background-color: #ffe600;
  color: #111;
  transform: scale(1.1);
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .dev-card {
    margin: 20px;
  }

  .name {
    font-size: 1.5rem;
  }

  .title,
  .dept {
    font-size: 0.9rem;
  }

  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 16px;
  }

  .info {
    padding: 20px;
  }

  .social-links {
    justify-content: center;
  }
}

  



.social-links a i {
  margin: 0;
   font-size: 1.5rem;
}

@media (max-width: 650px) {
  .social-links a {
    width: 50px;
    height: 50px;
  
  }
}


/* Fade Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}