/* Reset */
/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  /* background-color: yellow; */
}


:root {
  /* Colors */
  --primary-color: #061028;
  --secondary-color: #fdfdfd;
  --ternary-color: #3b82f6;
  --quaternary-color: #2563eb;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--primary-color), #1e293b);
  color: var(--secondary-color);
  line-height: 1.7;
}

.custom-shape-divider-bottom-1744720210 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.custom-shape-divider-bottom-1744720210 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 83px;
}

.custom-shape-divider-bottom-1744720210 .shape-fill {
  fill: #FFFFFF;
}

/* Navbar */
nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 1rem 70px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

/* Portfolio Logo */
#nav-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--ternary-color);
  letter-spacing: 1px;
  /* transition: transform 0.3s, color 0.3s ease; */
  flex: 1; /* Allow logo to take flex space */
}

#nav-logo img {
  width: 90px;
  transition: transform 0.3s ease;
}

#nav-logo:hover {
  color: var(--quaternary-color);
  /* transform: scale(0.2); */
}

/* Navigation Items - Now centered */
#nav-item {
  display: flex;
  justify-content: center;
  flex: 2; /* Gives the nav items more space to center properly */
}

#nav-item a {
  border: none;
  color: var(--secondary-color);
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 500;
  font-size: 1.1rem;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

#nav-item a:hover {
  color: var(--ternary-color);
}

#nav-item a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--ternary-color);
  transition: width 0.3s ease;
}

#nav-item a:hover::after {
  width: 100%;
}

/* Button - Now at right */
.nav-btn {
  margin-left:40%;
   display: flex;
  justify-content: right; /* Push button to the right */
}

.nav-btn button {
  background-color: var(--ternary-color);
  color: var(--secondary-color);
  border: none;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
}

.nav-btn button:hover {
  background-color: var(--quaternary-color);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.nav-btn a {
  text-decoration: none;
}
#home {
  background: none;
}

#about,
#contact {
  min-height: 80vh;
  text-align: center;
  margin: 0vw 5vw;
  justify-content: center;
  display: flex;
  background-color: var(--primary-color);
  flex-direction: column;
  align-items: center;
}
/* Hero Section Layout */
.section-1 {
  height: 90vh;
  display: flex;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary-color), rgba(15, 23, 42, 0.95));
  gap: 20px;
  margin-bottom: 5vw;
  align-items: center;
  justify-content: space-between;
  padding: 0 10vw;
  position: relative;
  overflow: hidden;
  transition: padding 0.3s ease;
}

/* Enhanced Background Elements */
.section-1::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.section-1::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  z-index: 0;
}

/* Left Section with Text */
.sec1-left {
  flex: 1;
  min-width: 350px;
  margin: 0 20px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.sec1-left h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  background: linear-gradient(to right, var(--secondary-color), #4f46e5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.roles{
  display: inline-flex;
  margin: 0;
  vertical-align: top;
}
.roles .word{
  position: absolute;
  display: flex;
  opacity: 0;
}




.sec1-left p {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 600px;
}

/* Button Styling */
.sec1-left button {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: var(--secondary-color);
  border: none;
  padding: 14px 28px;
  margin-right: 15px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.sec1-left button:hover {
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.secondary-btn {
  margin-top: 5%;
  display: inline-block;
}

.secondary-btn button {
  background: transparent !important;
  border: 2px solid #8b5cf6 !important;
  color: #d1d5db !important;
}

.secondary-btn button:hover {
  background: rgba(139, 92, 246, 0.15) !important;
  color: white !important;
}

/* Social Links */
.social-links {
  margin-top: 30px;
  display: flex;
  gap: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 12px;
  transition: all 0.3s ease;
}

.social-links a:nth-child(1):hover {
  background-color: rgba(0, 119, 181, 0.3);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.4);
}

.social-links a:nth-child(2):hover {
  background-color: rgba(36, 41, 46, 0.3);
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.4);
}

.social-links a:nth-child(3):hover {
  background-color: rgba(225, 48, 108, 0.3);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

.social-links a:nth-child(4):hover {
  background-color: rgba(66, 103, 178, 0.3);
  box-shadow: 0 4px 12px rgba(66, 103, 178, 0.4);
}

.social-links a:hover {
  transform: scale(1.1);
}

.social-links img {
  width: 30px;
  height: 30px;
  filter: invert(1);
}

/* Image Styling */
.sec1-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

.sec1-right img {
  max-width: 90%;
  height: auto;
  border-radius: 12px;
 
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.sec1-right img:hover {
  transform: scale(1.02);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); */
}

/* Bottom Wave Divider */
.custom-shape-divider-bottom-1744720210 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.custom-shape-divider-bottom-1744720210 svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 45px;
}

.custom-shape-divider-bottom-1744720210 .shape-fill {
  fill: rgba(79, 70, 229, 0.2);
}

/* Section Headings */
section h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

section p {
  font-size: 1rem;
  max-width: 800px;
  color: #cbd5e1;
}
/* Services Section */
.about-section {
  display: flex;
  padding: 0vh 5vw;
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 4rem;
  /* max-height: 80vh; */
  box-sizing: border-box;
  flex-wrap: wrap;
}

.top-image-container {
  position: absolute;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
}

.top-image-container .card-image {
  width: 150px;
  height: 150px;
  margin-left: 10%;
  border-radius: 50%;
  border: 4px solid var(--ternary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top-image-container .card-image:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Cards Container */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 30vw;
  /* margin-left: 8rem; */
}

#topCard {
  padding-top: 11vh;
}

/* Individual Card */
.card {
  background-color: var(--secondary-color);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #f0f0f0;
  padding: 8px;
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.card p {
  font-size: 0.92rem;
  color: #555;
  margin: 0.3rem 0 0;
}

.card button {
  background: linear-gradient(90deg, var(--ternary-color), var(--quaternary-color));
  border: none;
  color: var(--secondary-color);
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.card button:hover {
  transform: scale(1.05);
  background: var(--quaternary-color);
}

/* Swiper Container */
.swiper-container {
  width: 40vw;
  height: 70vh;
  box-sizing: border-box;
}

/* Swiper Slides */
.swiper-slide {
  background-color: #bd4a4a;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* About Section Content */
#about {
  margin-bottom: 6rem;
}

.about-section {
  margin-bottom: 6rem;
}

.about-content {
  max-width: 800px;
  padding: 2rem;
  height: 100%;
  background: var(--secondary-color);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', sans-serif;
  text-align: left;

}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-content h2 span {
  color: var(--ternary-color);
}

.about-content p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.about-details {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.about-details li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  color: #444;
}

.about-details strong {
  color: var(--primary-color);
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--ternary-color);
  color: var(--primary-color);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.resume-btn:hover {
  background-color: var(--quaternary-color);
  transform: translateY(-2px);
}

.resume-btn:active {
  transform: scale(0.98);
}


/* Web Developer / Designer Shared Styling */
.webDev {
  max-width: 800px;
  padding: 2rem;
  height: 100%;
  background: var(--secondary-color);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', sans-serif;
  text-align: left;
}

.webDev h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: black;

}

.webDev h2 span {
  color: var(--ternary-color);
  /* Highlighted word like 'Web' */
}

.webDev .highlight {
  color: #ff6600;
  /* Optional highlight class */
}

.webDev p {
  font-size: 1rem;
  color: #555;
  margin: 0.5rem 0;
}

/* Skill Icons Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
  margin-top: 2rem;
}

.skills-grid img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  padding: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

/* Skill Icon Hover Effect */
.skills-grid img:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.top-image-container {
  position: absolute;
}

#contact {
  padding: 0;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  font-family: 'Inter', sans-serif;
}

.contact-header {
  background: linear-gradient(120deg, var(--primary-color), #1e293b);
  color: var(--secondary-color);
  width: 100%;
  padding: 70px 50px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.contact-header h2 {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-header p {
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: -50px auto 60px;
  padding: 0 20px;
  gap: 25px;
  max-width: 1080px;
  position: relative;
  z-index: 10;
}

.contact-box {
  flex: 1 1 280px;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  text-align: center;
  transition: all 0.4s ease;
  background: var(--secondary-color);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--ternary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-box:hover::before {
  transform: scaleX(1);
}

.icon-container {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e6f0ff, #d1e3ff);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
}

.contact-box:hover .icon-container {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--ternary-color), var(--quaternary-color));
  color: var(--secondary-color);
}

.contact-box h3 {
  font-size: 20px;
  margin: 15px 0;
  font-weight: 600;
  color: var(--primary-color);
}

.contact-box p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

.contact-button {
  margin: 25px auto 0;
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 30px;
  background: var(--ternary-color);
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.contact-button:hover {
  background: var(--quaternary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 12px;
  max-width: 360px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  background: #eee;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #ddd;
}

.modal-content h3 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 600;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: var(--ternary-color);
  background: var(--secondary-color);
}

.modal-content button {
  width: 100%;
  padding: 12px;
  background: var(--ternary-color);
  border: none;
  color: var(--secondary-color);
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s ease;
}

.modal-content button:hover {
  background: var(--quaternary-color);
}

/* project-section */
/* project-section */


#projects {
  padding: 2rem 4rem;
  margin: 0vw 5vw;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  margin-bottom: 6rem;
}

.project-section h1,
.project-section .project-para {
  text-align: center;
}

.project-section h1 {
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  max-width: 900px;
}

.project-section .project-para {
  font-size: 1rem;
  color: #ccc;
  margin: 0 auto;
  max-width: 800px;
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem 2rem;
  background: var(--primary-color);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

/* Fixed the nested selector and removed conflicting rules */
/* .nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
} */

.project-nav .nav-btn {
  padding: 0.7rem 1.6rem;
  background: var(--primary-color);
  color: var(--ternary-color);
  font-weight: 600;
  border: 2px solid var(--ternary-color);
  border-radius: 999px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.project-nav .nav-btn:hover {
  background: var(--ternary-color);
  color: var(--secondary-color);
  transform: scale(1.07);
  box-shadow: 0 0 15px var(--ternary-color), 0 0 30px rgba(59, 130, 246, 0.4);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.project-card {
  background: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: scale(1.03);
  background: var(--quaternary-color);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card h3,
.project-card p {
  padding: 0.8rem 1rem;
  color: var(--secondary-color);
}

.project-card p {
  font-size: 0.9rem;
  padding-bottom: 1rem;
}

.project-card .badge {
  display: inline-block;
  background: var(--ternary-color);
  color: var(--primary-color);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  margin: 0.2rem;
}

/* Popup */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#popup.hidden {
  display: none;
}

.popup-content {
  background: var(--primary-color);
  display: flex;
  flex-direction: row;
  padding: 2rem;
  border-radius: 16px;
  position: relative;
  width: 80%;
  max-width: 900px;
  color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-left img {
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-right {
  margin-left: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.popup-right h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--highlight-color);
  margin-bottom: 1rem;
}

.popup-right p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--tertiary-color);
  margin-bottom: 1rem;
}

.popup-right .preview-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--ternary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s;
  font-weight: bold;
}

.popup-right .preview-btn:hover {
  background: var(--quaternary-color);
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  color: var(--secondary-color);
  transition: color 0.3s;
}

#popup-close:hover {
  color: var(--ternary-color);
}

.popup-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.popup-skills .skill-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #fff;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  object-fit: contain;
  transition: transform 0.3s ease;
}

.popup-skills .skill-icon:hover {
  transform: scale(1.1);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #cbd5e1;
  text-align: center;
  padding: 2rem 0;
  /* Increased padding for better spacing */
  margin-top: 50px;
  height: auto;
  /* Adjusted to auto for flexibility */
  position: relative;
}

.footer-logo {
  text-align: center;
  margin-bottom: 1.5rem;
  /* Added space below the logo */
}

.footer-logo img {
  height: 60px;
  width: auto;
  /* Adjusted width to auto for aspect ratio consistency */
  transition: transform 0.3s ease;
  /* Added smooth hover effect */
}

.footer-logo img:hover {
  transform: scale(1.1);
  /* Slight zoom effect on hover */
}

.footer-links {
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0px 0px 20px 0px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 1.1rem;
  /* Increased font size for better readability */
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--ternary-color);
  /* Color change on hover */
  transform: translateY(-3px);
  /* Slight lift effect on hover */
}

.footer-bottom {
  font-size: 0.9rem;
  color: #a0aec0;
  /* Lighter color for less prominent text */
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  /* Added top border for separation */
  padding-top: 1rem;
}

.footer-bottom a {
  color: #a0aec0;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--ternary-color);
}






.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger img {
  filter: invert(1);
  /* Invert image for dark mode */
}


/* Mobile responsive styling */
@media (max-width: 768px) {
  #nav-item {
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    right: 0;
    background: #161b22;
    width: 100%;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 10;
  }

  .nav-btn {
    margin-top: 10px;
  }

  .hamburger {
    display: block;
  }

  #nav-item.active {
    transform: translateY(0%);
    opacity: 1;
    pointer-events: auto;
  }

  .section-1 {
    display: flex;
    flex-direction: column-reverse;
    /* height: 66vh; */
  }

  .sec1-left {
    text-align: center;
  }

  .social-links {
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .sec1-left h1 {
    font-size: 2.2rem;
  }

  .sec1-right {
    padding: 32px 32px 0px 32px;
  }

  .sec1-right img {
    height: 66%;
    width: 100%;
  }



  #projects {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #popup {
    padding: 1rem;
    align-items: flex-start;
  }

  /* Popup content box */
  #popup .popup-content {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    max-width: none;
  }

  /* Popup image */
  #popup .popup-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* Popup right content */
  #popup .popup-right {
    margin-left: 0;
    margin-top: 1rem;
  }

  /* Title size */
  #popup .popup-right h2 {
    font-size: 1.5rem;
  }

  /* Description text */
  #popup .popup-right p {
    font-size: 1rem;
  }

  /* Buttons */
  #popup .popup-right .preview-btn {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  /* Skills icons */
  #popup .popup-skills .skill-icon {
    width: 30px;
    height: 30px;
  }

}

/* for small devices */
@media only screen and (max-width: 480px) {
  .section-1 {
    height: 100vh;
    padding: 0px 2px 0px 0px;
  }

  .sec1-right img {
    height: 60%;
    width: 100%;
  }

  .sec1-left h1,
  .project-section h1 {
    font-size: 2rem;
  }

  #projects {
    padding: 2rem 0rem;
  }

  .project-nav .nav-btn {
    padding: 0.7rem 0.7rem;
    font-size: 0.65rem;
  }

  .project-nav {
    display: flex;
    flex-wrap: inherit;
  }

  #popup {
    padding: 1rem;
    align-items: flex-start;
  }

  /* Popup content box */
  #popup .popup-content {
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    max-width: none;
  }

  /* Popup image */
  #popup .popup-left img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  /* Popup right content */
  #popup .popup-right {
    margin-left: 0;
    margin-top: 1rem;
  }

  /* Title size */
  #popup .popup-right h2 {
    font-size: 1.5rem;
  }

  /* Description text */
  #popup .popup-right p {
    font-size: 1rem;
  }

  /* Buttons */
  #popup .popup-right .preview-btn {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  /* Skills icons */
  #popup .popup-skills .skill-icon {
    width: 30px;
    height: 30px;
  }

  /* project-section-responsive */
  .project-grid {
    /* Force 2 columns on very small screens */
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    /* Even smaller gap */
    padding: 0.4rem;
    /* Even smaller padding */
  }

  .project-card {
    border-radius: 4px;
    /* Even smaller card border-radius */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    /* Even more subtle shadow */
  }

  #projects {
    padding: 0.8rem 0.2rem;
    /* Further reduced horizontal padding */
    margin: 0vw 0.2vw;
    /* Further reduced horizontal margin */
    margin-bottom: 2rem;
    /* Further reduced bottom margin */
  }

  .project-section h1 {
    font-size: 1.1rem;
    /* Even smaller heading */
    margin-bottom: 0.4rem;
    /* Adjusted margin */
  }

  .project-section .project-para {
    font-size: 0.6rem;
    /* Even smaller paragraph text */
  }

  .project-nav {
    gap: 0.1rem;
    /* Even smaller gap between buttons */
    padding: 0.3rem 0.5rem;
    /* Further reduced padding */
    border-radius: 0.4rem;
    /* Even smaller border-radius */
  }

  .project-nav .nav-btn {
    font-size: 0.4rem;
    /* Even smaller button font size */
    padding: 0.2rem 0.4rem;
    /* Further reduced button padding */
    border-width: 0.8px;
    /* Even thinner border */
  }

  .project-card img {
    height: 70px;
    /* Even smaller image height */
  }

  .project-card h3 {
    font-size: 0.65rem;
    /* Even smaller card heading */
    padding: 0.3rem 0.4rem 0;
    /* Adjusted padding */
  }

  .project-card p {
    font-size: 0.5rem;
    /* Even smaller card paragraph text */
    padding: 0.2rem 0.4rem 0.4rem;
    /* Adjusted padding */
  }

  .project-card .badge {
    font-size: 0.35rem;
    /* Even smaller badge font size */
    padding: 0.08rem 0.2rem;
    /* Even smaller badge padding */
    margin: 0.03rem;
    /* Even smaller badge margin */
  }
}

