:root {
  --bg-color: #0f0f1b;
  --card-bg: #161622;
  --primary-accent: #7f5af0;
  --secondary-accent: rgba(111, 91, 169, 0.2);
  --text-color: #ffffff;
  --text-muted: #a1a1aa;
  --border-color: #2c2c38;
  --shadow-color: rgba(127, 90, 240, 0.2);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
  overflow-x: hidden;
  width: 100%;
  animation: fadeInPage 0.8s ease-out both;
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

section {
  background-color: var(--bg-color);
}

nav {
  animation: slideDownNav 0.6s ease-out both;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 78px;
  background-color: #0F172A;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2),
              0 4px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  padding: 0 20px;
  font-family: 'Poppins', sans-serif;
}

.left {
  color: white;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav ul li {
  list-style: none;
  margin: 0 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  color: #a6a6f7;
  transform: scale(1.05);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .right {
    position: absolute;
    top: 78px;
    left: 0;
    width: 100%;
    background-color: #0F172A;
    display: none;
  }

  .right ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  .right.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
  }
}

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

@keyframes slideDownNav {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


.FirstSection{
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
}


.FirstSection > div{
  width: 30%;
}


.leftSection{
  text-align: center;
  font-size: 2rem;
 
}

.RightSection{
  margin: 10px;
}


.RightSection img{
  transition: transform 0.4s ease;
  width: 60%;
  clip-path: circle(47.8% at 50% 48%);
}

ul a{
  text-decoration: none;
  color: white;
}

ul a:hover{
  font-size: 1.1rem;
  color: rgb(166, 166, 247);
}

.name{
   justify-content: center;
   color: rgb(158, 84, 228);
   font-size: 4rem;
   margin-top: 10px
}

.what{
    text-align: center;
    font-size: 2rem;
}

.Home_button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}


.DownloadCV{
    background-color: transparent;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    font-weight: var(--font-medium);
    margin-top: 20px;
    font-weight: bold;
}

.about{
    background-color: transparent;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    font-weight: var(--font-medium);
    margin-top: 20px;
    font-weight: bold;
}

.contact{
    display: inline-flex;
    flex-direction: column-reverse;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    width: 70%;
    margin: 50px;
    margin-top: 80px;
    padding: 10px;
    border-radius: 0.8rem;
    font-weight: bolder;
}

.github{
    display: inline-flex;
    flex-direction: column-reverse;
    text-decoration: none;
    color: white;
    border: 2px solid white;
    width: 70%;
    padding: 10px;
    border-radius: 0.8rem;
    font-weight: bolder;
}

.Home_button1{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 20px;
}

a.LinkedIn{
    text-decoration: none;
    color: white;
    border: 2px solid white;
    display: inline-block;
    background-color: var(--first-color);
    color: var(--body-color);
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    font-weight: var(--font-medium);
    font-weight: bold;
    width: 50%;
    text-align: center;
}

button:hover,
.DownloadCV:hover,
.about:hover,
.contact:hover,
.github:hover,
.LinkedIn:hover {
  transform: translateY(-6px);
  color: #ffffff;
  background: #282840;
  box-shadow: 0 12px 30px rgba(166, 166, 247, 0.2);
}

/* About Section */
.about-section {
  background-color: #171721;
  color: white;
  padding: 80px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.section-heading {
  font-size: 2.8rem;
  color: #a6a6f7;
  margin-bottom: 40px;
  font-weight: 600;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  letter-spacing: 2px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e0e0e0;
  background: #1f1f2e;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(166, 166, 247, 0.08);
}


/* Skills Section */

.skills-section {
  background-color: #171721;
  padding: 80px 20px;
  color: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.skills-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #a6a6f7;
  font-weight: 600;
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: #1f1f2e;
  padding: 18px 20px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  letter-spacing: 0.5px;
  border: 1px solid #2f2f45;
}

.skill-card:hover {
  transform: translateY(-6px);
  background: #282840;
  box-shadow: 0 12px 30px rgba(166, 166, 247, 0.2);
}

.skill-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}
.skill-card.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.card,
.skill-card,
.about-container {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 80px 20px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.contact-section .section-heading {
  font-size: 2.8rem;
  color: var(--primary-accent);
  margin-bottom: 16px;
}

.contact-subtext {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 1rem;
  transition: border 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-accent);
  background-color: #1e1e2d;
  outline: none;
}

.contact-form button {
  background-color: var(--primary-accent);
  color: #fff;
  padding: 14px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-color);
}

.contact-form button:hover {
  background-color: var(--secondary-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(44, 182, 125, 0.3);
}

.Project-section {
  background-color: #171721;
  padding: 80px 20px;
  color: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.Project-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #a6a6f7;
  font-weight: 600;
  position: relative;
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: center;
  padding: 20px;
}

.project-list a {
  text-decoration: none;
  color: inherit;
}

.project-item {
  background: #1f1f2e;
  padding: 20px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.project-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(108, 99, 255, 0.2);
}

.project-item img {
  border-radius: 12px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 20px;
}

.project-item p {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #ccc;
}

@media (min-width: 600px) {
  .project-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
}


.footer {
    animation: slideUpFooter 0.6s ease-out both;
    text-align: center;
    padding: 5px;
    background-color: #1E293B;
    color: #F8FAFC;
    font-size: 1rem;
}

@media (max-width: 1075px) {
nav {
    height: auto;
    padding: 10px 0;
    transition: all 0.3s ease;
}

* {
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .FirstSection {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .FirstSection > div {
    width: 100%;
  }

  .RightSection img {
    width: 70%;
    margin: 40px 0;
  }

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

  .DownloadCV, .about, .LinkedIn{
    width: 100%;
  }
}

@media (max-width: 391px) {
nav {
    height: auto;
    padding: 10px 0;
    transition: all 0.3s ease;
}

* {
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .FirstSection {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .FirstSection > div {
    width: 100%;
  }

  .RightSection img {
    width: 70%;
    margin: 40px 0;
  }

  .Home_button{
    width: 100%;
  }

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

  .DownloadCV, .about, .LinkedIn{
    width: 100%;
  }
}


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

@keyframes slideDownNav {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

nav ul a:hover {
  color: #A6A6F7;
  transform: translateY(-2px);
}

.DownloadCV,
.about,
.contact,
.github,
.LinkedIn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.card:hover,
.card1:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.RightSection img:hover {
  transform: scale(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

.left:hover {
  animation: wiggle 0.8s ease-in-out both;
}

@keyframes wiggle {
  0%,100% { transform: rotate(0deg); }
  25%     { transform: rotate(5deg); }
  75%     { transform: rotate(-5deg); }
}

html {
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

.Experience-section {
  background-color: #171721;
  padding: 80px 20px;
  color: white;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

.Experience-section h2 {
  font-size: 2.8rem;
  margin-bottom: 40px;
  color: #a6a6f7;
  font-weight: 600;
  position: relative;
}

.Experience-list {
  display: grid;
  justify-content: space-around;
  grid-template-columns: 1fr;
  gap: 50px;
  justify-items: center;
  padding: 20px;
}

.Experience-list a {
  text-decoration: none;
  color: inherit;
}

.Experience-item {
  background: #1f1f2e;
  padding: 20px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(108, 99, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.Experience-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(108, 99, 255, 0.2);
}

.Experience-item img {
  border-radius: 12px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 20px;
}

.Experience-item p {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #ccc;
}

/* Responsive Layout */
@media (min-width: 600px) {
  .Experience-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
