* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: rgb(255, 255, 255);
    color: black;
}

/* Navigation Bar - Mobile First Approach */
/* Navbar container */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: white;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Logo and name on left */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container .Profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text a {
    font-size: 1.2rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Nav links on right */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: bold;
    font-weight: 800;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #1e3a8a;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #1e3a8a;
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: black;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Homt.about */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 90px;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    padding: 0 20px;

    /* Background image added below */
    background-image: url('img/bg.jpg'); /* Replace with your actual image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height :100vh;
    width: 100%;

    /* Optional: set height if needed */
    min-height: 1vh;

    /* Optional: overlay effect */
    position: relative;
    z-index: 1;

    margin-top: 0px;
}

.home::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3); /* semi-transparent white overlay */
    z-index: -1;
}

.home-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.home-content {
    color: #0000;
}

.info {
    font-size: 3rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.info span {
    color: #1e3a8a;
}

.role {
    font-size: 1.9rem;
    color: #000000;
    margin-bottom: 15px;
}

.home-content p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
    text-align: center;
}

.buttons {
    display: flex;
    justify-content: center;
}

.buttons a button {
    background-color: #1e3a8a;
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.buttons a button:hover {
    background-color: #1e3a8a;
}

/* Sidebar Social Links */
.social {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: white;
    padding: 15px 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    list-style: none;
}

.social-links a img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s;
}

.social-links a img:hover {
    transform: scale(1.2);
}

/* ABOUT SECTION */
.about {
  background-color: rgb(246, 246, 246);
  padding: 60px 20px;
}

.about-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.about h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: black;
  margin-bottom: 40px;
  text-transform: uppercase;
  text-align: center;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.about-left,
.about-right {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.about-left h2 {
  color: #1e3a8a;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}


.about-left p {
  font-size: 1rem;
  color: black;
  line-height: 1.7;
  margin-bottom: 15px;
  margin-left: auto;
  text-align: justify;
}

.contact-btn {
  margin-top: 10px;
  padding: 10px 25px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #1e3a8a;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  margin-left: auto;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #142c63;
}

.about-right h2 {
  color: #1e3a8a;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  max-width: 400px;
}

.skills-container a {
  display: inline-block;
}

.skills-container img {
  width: 80px;
  height: 80px;
  padding: 10px;
  border: 2px solid #1e3a8a;
  border-radius: 12px;
  background-color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 400px;
}

.skills-container img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(30, 58, 138, 0.3);
  border-color: black;
}


/* Projectt.about */
.projects {
    padding: 0 20px;
    margin-top: 50px;
}

.projects h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: black;
  text-transform: uppercase;
  text-align: center;
}

.projects-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    align-items: center;
    margin-top: 0;
}

.project {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 900px;
    min-height: 250px;
    height: auto;
    background-color: #ffff;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    padding: 15px;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(12, 1, 83, 0.7);
    border-color: black;
}

.project img {
    width: 32%;
    height: 65%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
}

.project-content {
    width: 65%;
    padding: 15px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    margin: 0;
    text-decoration: none;
}

.project-content h2 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: color 0.3s ease-in-out;
    text-align: center;

}

.project:hover .project-content h2 {
    color: #1e3a8a;
}

.project-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
    text-align: justify;
}

.project:hover .project-content p {
    color: black;
}

.btn {
    text-decoration: none;
    color: black;
    font-size: 0.9rem;
    text-align: right;
    margin-top: 15px;
    align-self: flex-end;
}

.btn:hover {
    color: #1e3a8a;
}

/* Experienct.about */
.experience {
    text-align: center;
    margin-top: 50px;
    padding: 40px 20px;
    width: 100%;

    /* Background image added below */
    background-image: url('img/bg.jpg'); /* Replace with your actual image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    height :100%;
    width: 100%;

    /* Optional: set height if needed */
    min-height: 1vh;

    /* Optional: overlay effect */
    position: relative;
    z-index: 1;

}

.experience h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: black;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}


.experience-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.exp {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 900px;
    background-color: #ffff;
    overflow: hidden;
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    flex-wrap: wrap;
}

.exp:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(12, 1, 83, 0.7);
}

.exp .img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    margin-right: 20px;
    margin-left: 0;
    object-fit: cover;
}

.exp-content {
    text-align: left;
    color: black;
    flex: 1;
    min-width: 250px;
}

.exp-content h2 {
    font-size: 1.3rem;
    color: #1e3a8a;
}

.exp-content h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    margin-top: 5px;
    color: black;
}

.exp-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 5px;
}

/* Contact.about */
.contact {
    margin-top: 20px;
    color: black;
    padding: 40px 20px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 8px 15px rgb(255, 255, 255);
}

.contact h1 {
      font-size: 2.2rem;
      font-weight: 800;
      color: black;
      margin-bottom: 40px;
      text-transform: uppercase;
      text-align: center;
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-icon {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
    padding: 10px;
    border-radius: 10px;
    background-color: #ffff;
    border: 2px solid #0000;
}

.contact-icon:hover {
    transform: scale(1.1);
    border-color: black;
    box-shadow: 0 0 20px rgba(12, 1, 83, 0.7);
}

.contact-icon img {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0;
    border: #1e3a8a;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .home-container, .about-container {
        padding: 0 15px;
    }
    
    .img {
        margin-left: 20px;
    }
    
}

@media (max-width: 992px) {
    .info {
        font-size: 2.2rem;
    }
    
    .role {
        font-size: 1.3rem;
    }
    
    .home-content p, .about-content {
        font-size: 0.95rem;
    }
    
    .skills-container img {
        width: 70px;
        height: 70px;
        margin: 8px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 5px;
    }
    
    .home-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .home-content {
        text-align: center;
        margin-top: 20px;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .img {
        margin-left: 0;
        margin-bottom: 20px;
        width: 300px;
    }
    
    .exp {
        padding: 15px;
    }
    
    .project {
        flex-direction: column;
    }
    
    .project img {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    
    .project-content {
        width: 100%;
    }
    
    .exp .img {
        margin-bottom: 15px;
        align-items: center;
    }
    
    .exp-content {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        right: 20px;
        top: 15px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 10px 0;
        border-bottom: 1px solid #333;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px;
    }
    
    .info {
        font-size: 1.8rem;
    }
    
    .role {
        font-size: 1.2rem;
    }
    
    .home-content p, .about-content, .project-content p, .exp-content p {
        font-size: 0.9rem;
    }
    
    .skills-container img {
        width: 60px;
        height: 60px;
        padding: 10px;
    }
    
    button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .about h1,.skills h1, .projects h1, .experience h1, .contact h1 {
        font-size: 1.5rem;
    }
    
    .project-content h2, .exp-content h2, .about h2 {
        font-size: 1.2rem;
    }
    
    .exp-content h3 {
        font-size: 0.8rem;
    }
    
    .contact-icons {
        gap: 15px;
    }
    
    .contact-icon {
        padding: 8px;
    }
    
    .contact-icon img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .info {
        font-size: 1.5rem;
    }
    
    .role {
        font-size: 1rem;
    }
    
    .img {
        width: 250px;
    }
    
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center; /* Ensures centered block */
  }

  .about-left, .about-right {
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    text-align: left;
  }

  .about-left p{
    text-align: justify; /* Optional but nice for readability */
  }

   .about-right p {
    text-align: center; /* Centering the skills section */
    margin-left: 20px;
   }

}

@media (max-width: 768px) {
  .skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 icons per row */
    gap: 15px;
    justify-items: center;
  }

  .skills-container img {
    width: 60px;
    height: 60px;
    padding: 8px;
  }


}

@media (max-width: 576px) {
  .skills-container {
    grid-template-columns: repeat(3, 1fr); /* 3 per row */
  }
}

@media (max-width: 420px) {
  .skills-container {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on very small screens */
  }
}
/* Navbar container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: white;
  position: relative;
  z-index: 10;
}

/* Nav links default (desktop view) */
.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
}

/* Hamburger menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: black;
  border-radius: 2px;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 30px;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

.research {
    padding: 0 40px;
    background-color: rgb(246, 246, 246);
    text-align: center;
    padding: 40px 20px;
    width: 100%;


    height :100%;
    width: 100%;

    /* Optional: set height if needed */
    min-height: 1vh;

    /* Optional: overlay effect */
    position: relative;
    z-index: 1;
}

.research h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: black;
    text-transform: uppercase;
    text-align: center;
}

.research-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 20px;
    align-items: center;
    margin-top: 10px;
}

.research-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    max-width: 900px;
    min-height: 250px;
    height: auto;
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
    padding: 15px;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(12, 1, 83, 0.7);
    border-color: black;
}

.research-content {
    width: 100%;
    padding: 15px;
    text-align: justify;
    display: flex;
    flex-direction: column;
    margin: 0;
    text-decoration: none;
    color :  black;
}

.research-content h2 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    transition: color 0.3s ease-in-out;
    text-align: left;
    line-height: 1.2;
    color :  black;
}

.research-item:hover .research-content h2 {
    color: #1e3a8a;
}

.research-content p {
    font-size: 0.9rem;
    line-height: 1.5rem;
    color: #ccc;
    text-align: justify;
    color :  black;
}

.research-item:hover .research-content p {
    color: black;
}

.research-content a.btn {
    text-decoration: none;
    color: black;
    font-size: 0.9rem;
    text-align: right;
    margin-top: 15px;
    align-self: flex-end;
}

.research-content a.btn:hover {
    color: #1e3a8a;
}
@media (max-width: 992px) {
      .nav a{
    font-size: 0.75rem;
  }

    .research {
        padding: 10 15px;
    }
  .research-item {
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding: 20px;
  }

  .research-content {
    width: 100%;
    padding: 10px;
  }

  .research-content h2 {
    font-size: 1.1rem;
  }

  .research-content p {
    font-size: 0.85rem;
  }

  .research-content a.btn {
    font-size: 0.85rem;
    text-align: center;
    align-self: center;
  }
}

@media (max-width: 576px) {
  .research {
    padding: 0 30px;
    margin-top: 0px;
  }
    

  .research h1 {
    font-size: 1.5rem;
  }

  .research-content h2 {
    font-size: 1rem;
  }

  .research-content p {
    font-size: 0.8rem;
  }
}


@media (max-width: 576px) {
  .social {
    display: none; /* ✅ Hide floating social bar on small screens */
  }
  .nav a{
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  /* Navbar container */
  .navbar {
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 1000;
  }

  /* Hamburger menu (visible) */
  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    background: white;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 30px;
    top: 15px;
    z-index: 1001;
  }

  .mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: black;
    border-radius: 2px;
  }

  /* Hide and show nav links */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
  }
  .nav a{
    font-size: 0.75rem;
  }
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px 15px;
    font-size: 0.95rem;
    color: black;
    font-weight: 600;
    text-transform: uppercase;
  }

  /* Home */
  .home-container {
    padding: 60px 15px;
    text-align: center;
    flex-direction: column-reverse;
  }

  .info {
    font-size: 1.8rem;
  }

  .role {
    font-size: 1.2rem;
  }

  .home-content p {
    font-size: 0.95rem;
  }

  /* Social bar hidden on mobile */
  .social {
    display: none;
  }

  /* About */
  .about-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .about-left,
  .about-right {
    width: 100%;
    padding: 10px;
  }

  .about-left p {
    font-size: 0.95rem;
  }

  .skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
  }

  .skills-container img {
    width: 60px;
    height: 60px;
  }

  /* Projects */
  .project {
    flex-direction: column;
    padding: 15px;
  }

  .project img {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
  }

  .project-content {
    width: 100%;
    padding: 0 10px;
  }

  .project-content h2 {
    font-size: 1.2rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  /* Research */
  .research-item {
    flex-direction: column;
    padding: 15px;
  }

  .research-item img {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    object-fit: cover;
  }

  .research-content {
    width: 100%;
  }

  .research-content h2 {
    font-size: 1.1rem;
  }

  .research-content p {
    font-size: 0.85rem;
  }

  /* Experience */
  .exp {
    flex-direction: column;
    padding: 15px;
  }

  .exp .img {
    margin-bottom: 10px;
    width: 60px;
    height: 60px;
  }

  .exp-content {
    width: 100%;
  }

  .exp-content h2 {
    font-size: 1.2rem;
  }

  .exp-content p {
    font-size: 0.9rem;
  }

  /* Contact */
  .contact-icons {
    flex-wrap: wrap;
    gap: 15px;
  }

  .contact-icon img {
    width: 30px;
    height: 30px;
  }

  .contact h1 {
    font-size: 1.6rem;
  }

  button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  /* Headings */
  .about h1,
  .projects h1,
  .experience h1,
  .contact h1,
  .research h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    position: absolute;
    left: 150px;
    top: 35%;
    transform: translateY(-50%);
    z-index: 1001;
  }
}

