/* ===== Google Fonts ===== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lilita+One&display=swap');

/* ===== CSS Variables ===== */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --dark: #1a202c;
  --light: #f7fafc;
  --accent: #ecc94b;
  --gray: #718096;
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ===== Navbar ==== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.navbar:hover {
  box-shadow: var(--shadow-md);
}

.my_logo {
  font-size: 35px;
  font-family: "Lilita One", sans-serif;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.my_logo:hover {
  transform: translateY(-2px);
}

.E {
  color: var(--primary);
  font-weight: 700;
  font-size: 50px;
}

.dot {
  color: var(--accent);
  font-weight: 800;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar a {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}

.navbar a:hover,
.navbar .active {
  color: var(--dark);
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: var(--transition);
}

.navbar a:hover::after,
.navbar .active::after {
  width: 100%;
}

/* Social Icons Positioning*/
.icons {
  position: absolute;
  bottom: -30px; 
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 25px;
  z-index: 10;
}

.img_box {
  position: relative; 
  margin-bottom: 40px; 
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  position: relative;
}

/* String effect for social media icons*/
.social-icon::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

/* Brand colors for social media icons  */
.social-icon:nth-child(1) { background-color: #0077b5; } /* LinkedIn */
.social-icon:nth-child(2) { background-color: #1da1f2; } /* Twitter */
.social-icon:nth-child(3) { background-color: #333; }    /* GitHub */

/* Hover effects for social media ixons */
.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
  height: 22px;
  background: rgba(0, 0, 0, 0.25);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .icons {
    gap: 20px;
    bottom: -25px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .social-icon::before {
    height: 15px;
    top: -15px;
  }
  
  .social-icon:hover::before {
    height: 18px;
  }
}

/* ===== Hero Section ===== */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 4rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.home_container {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.home_info {
  flex: 1;
  animation: fadeInUp 0.8s ease-out;
}

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

.home_info h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.developer {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  position: relative;
}

.developer::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

.home_info p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  color: var(--gray);
}

.my_image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease-out;
}

.img_box {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 12px solid white;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
}

.img_box::before {
  content: '';
  position: absolute;
  inset: -15px;
  border: 3px solid var(--primary);
  border-radius: 50%;
  animation: rotate 15s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.img_box:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.2);
}

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

/* ===== Section Common Styles ===== */
.section {
  padding: 6rem 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section_title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section_title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

/* ===== Education Section ===== */
#education {
  background-color: white;
}

.education_content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.education_content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

/* ===== Download Button ===== */
.download_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-family: "Lilita One", sans-serif;
  font-weight: 200;
  margin-top: 10px;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.download_btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.download_btn::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.download_btn:hover::after {
  transform: translateY(3px);
}

/* ===== Skills Section ===== */
#skills {
  background-color: var(--light);
}

.skills_container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.skill_item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 3px solid var(--primary);
}

.skill_item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, white, #f5f9ff);
}

/* ====== Interests Section ===== */
#interests {
  background-color: white;
}

.interests_container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.interest_item {
  padding: 0.8rem 1.5rem;
  background-color: var(--light);
  border-radius: 50px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.interest_item:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.05);
}


/* ===== Projects Section ===== */
#projects {
  padding: 6rem 5%;
  background-color: #f8fafc;
}

.section_title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--dark);
  position: relative;
}

.section_title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.project-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-content {
  padding: 1.5rem;
  position: relative;
  z-index: 1;
  background: white;
}

.project-title {
  font-size: 1.4rem;
  font-family: "Lilita One", sans-serif;
  font-weight: 300;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.project-description {
  color: var(--gray);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.9));
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
  text-align: center;
}

.project-hover-content p {
  margin-top: -200px;
  line-height: 1.6;
}

.view-project {
  padding: 0.8rem 2rem;
  background: white;
  color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Hover Effects */

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card:hover .project-hover-content {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .view-project {
  background: var(--accent);
  color: white;
}

/* Responsive Design */

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-image {
    height: 180px;
  }
  
  .project-hover-content {
    padding: 1.5rem;
  }
}

/* ===== Contact Form Section ==== */
#contact {
  padding: 6rem 5%;
  background-color: white;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.contact_form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1.8rem;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact_form label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: -0.8rem;
}

.contact_form input,
.contact_form textarea {
  width: 100%;
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #f8fafc;
}

.contact_form input:focus,
.contact_form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: white;
}

.contact_form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact_form button {
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact_form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.contact_form button::after {
  content: '→';
  transition: transform 0.3s ease;
}

.contact_form button:hover::after {
  transform: translateX(3px);
}







/* ===== Section Spacing ===== */
.section {
  padding: 8rem 5%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  height: 10px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .section {
    padding: 6rem 5%;
  }
  
  .contact_form {
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 4rem 5%;
  }
  
  .contact_form {
    padding: 1.25rem;
    gap: 1.25rem;
  }
  
  .contact_form input,
  .contact_form textarea {
    padding: 0.8rem;
  }
}

/* ===== Footer ===== */
footer {
  padding: 2rem 5%;
  text-align: center;
  background-color: var(--dark);
  color: white;
}

.footer_social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer_social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.footer_social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}
/*====== style for the list elements*/
.lists {
  font-size: 25px;
 

}



/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .home_container {
    flex-direction: column;
    text-align: center;
  }

  .home_info h1 {
    font-size: 2.5rem;
  }

  .developer {
    font-size: 1.5rem;
  }

  .img_box {
    width: 250px;
    height: 250px;
    margin-top: 2rem;
  }

  .section_title {
    font-size: 2rem;
  }

  .skills_container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

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

@media (max-width: 480px) {
  .navbar ul {
    gap: 1rem;
  }

  .home_info h1 {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 5%;
  }
}
