/* Ensure the body and html do not exceed 100% width and height */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: Arial, sans-serif;
    transition: background-color 0.3s, color 0.3s;
    background-color: #ffffff;
    color: #000000;
}

/* Reset container and ensure it doesn't overflow */
.container {
    width: 100%;
    max-width: 100%; /* Prevents the container from exceeding 100% width */
    padding: 0 20px; /* Optional: Add some padding if needed */
    margin: 0 auto;
}

/* Ensure header spans the entire width without causing horizontal scroll */
header {
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; 
   
}

nav .logo {
    flex: 0 0 40%; /* Occupies 30% of the space */
    font-size: 30px;
    font-weight: bold;
    text-align: left;
}
.lgs{
    margin-bottom: 0.29em;
    margin-left:-0.2em;
}
nav ul {
    flex: 0 0 60%; /* Occupies 70% of the space */
    width: 100%;
    list-style: none;
    display: flex;
    margin: auto;
    padding: 0;

    /* flex-wrap: wrap; Ensure nav items wrap if the screen is too small */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    font-size: 20px;
}

nav ul li a:hover {
    color: #ff6347;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 30px; /* Add margin-right for smaller screens */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.4s;
}

.hamburger.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        display: none;
        width: 100%;
        justify-content: center;
        align-items: center;
        background: #fff;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
 nav ul li a :hover{
    transform: translateX(5px);
 
 }
    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }
}

#home {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 0 20px;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .home-container {
        flex-direction: row-reverse;
        justify-content: space-between;
        text-align: left;
    }

    .home-content {
        text-align: left;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
    }

    .profile-pics {
        flex: 1;
        display: flex;
        justify-content: center;
        margin-right: 5em;
    }

    .profile-pics img {
        width: 250px; /* Increased size for desktop */
        height: 250px; /* Increased size for desktop */
    }
}

.home-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.home-content h1 {
    font-size: 2.5rem; /* Responsive font size */
    color: #000000;
    margin: 0.5em 0;
}

.home-content h1 span {
    color: #ff6347;
}

.home-content p {
    font-size: 1.5rem; /* Responsive font size */
    color: #000000;
    margin: 0;
}

.home-content p span {
    color: #ff6347;
    font-weight: bold;
    white-space: nowrap;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    margin-left: 1em;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #ff6347;
}

.socialss {
    margin-top: 20px;
}

.socialss a {
    margin-right: 10px;
    color: #333;
    text-decoration: none;
    font-size: 2em;
    transition: color 0.3s ease;
}

.socialss a i:hover {
    color: #ff6347;
}

.profile-pics {
    flex: 1;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

.profile-pics img {
    width: 24em; /* Default size */
    height: 24em; /* Default size */
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure images and videos are responsive */
img, video {
    max-width: 100%;
    height: auto;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Additional media queries for mobile and tablet responsiveness */
@media (max-width: 767px) {
    .home-container {
        flex-direction: column;
        align-items: center;
    }

    .profile-pics {
        margin-right: 0;
    }

    .profile-pics img {
        width: 250px; /* Smaller size for mobile */
        height: 250px; /* Smaller size for mobile */
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content p {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .socialss a {
        font-size: 1.5em;
    }
}


/* Smooth scrolling for links */
html {
    scroll-behavior: smooth;
}

/*aboutus*/
#about-us {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.containers {
    width: 80%;
    margin: 0 auto;
}

.heading {
    text-align: center;
    margin-bottom: 30px;
}

.heading h1 {
    font-size: 2.5em;
    color: #333;
}

.heading h1 i {
    margin-right: 10px;
}

.heading h1 span {
    color: purple;
}

.content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.profile-img {
    flex: 1;
    min-width: 250px;
    position: relative;
    perspective: 1000px;
}

.profile-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
    transform: rotateY(0deg) rotateX(0deg);
}

.profile-img img:hover {
    filter: grayscale(0%);
}

.profile-text {
    flex: 2;
    padding: 20px;
    margin-left: 4em;
}

.profile-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.profile-text p {
    line-height: 1.6;
    color: #666;
}

.details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.details li {
    margin: 10px 0;
    font-size: 1.1em;
    color: #333;
}

.details li strong {
    color: #333;
}

.resume-btn {
    padding: 10px 20px;
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.resume-btn:hover {
    background-color: #5753d6;
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .content {
        flex-direction: column;
        text-align: center;
    }

    .profile-text {
        margin: 20px 0 0 0;
    }

    .profile-img img {
        max-width: 300px;
    }
}

/*skills*/ 
#skills {
    padding: 50px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.containere {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.headings {
    text-align: center;
    margin-bottom: 30px;
}

.headings h1 {
    font-size: 2.5em;
    color: #fff;
    text-transform: uppercase;
}

.headings h1 i {
    margin-right: 10px;
}

.headings h1 span {
    color: #ffd700;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}

.skill {
    flex: 1;
    min-width: 45%;
    margin: 15px 0;
    background: #2d2f36;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.skill-info i {
    margin-right: 10px;
    font-size: 1.5em;
}

.skill-info .percentage {
    font-size: 1.2em;
}

.skill-bar {
    background: #444;
    border-radius: 5px;
    overflow: hidden;
    height: 8px;
}

.skill-level {
    height: 100%;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        margin-right: 2em;
    }

    .skill {
        min-width: 100%;
    }
}

/* education */
#education {
    padding: 50px 0;
    background: #d4e3fc;
    color: #333;
}

.containerd {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.headinga {
    text-align: center;
    margin-bottom: 30px;
}

.headinga h1 {
    font-size: 2.5em;
    color: #333;
    text-transform: uppercase;
}

.headinga h1 i {
    margin-right: 10px;
}

.headinga h1 span {
    color: #764ba2;
}

.headinga p {
    font-size: 1.2em;
    color: #555;
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 20px; 
}

.education-item {
    display: flex;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.education-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /
}

.edu-logo {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 20px;
}

.education-info {
    flex: 1;
}

.education-info h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.education-info p {
    font-size: 1.1em;
    color: #555;
    margin: 5px 0;
}

.education-info a {
    color: #0066cc;
    text-decoration: none;
}

.education-info a:hover {
    text-decoration: underline;
}

.education-info .status {
    color: #28a745;
    font-weight: bold;
}

.education-info .completed {
    color: #dc3545;
}

@media (max-width: 768px) {
    .education-item {
        flex-direction: column;
        text-align: center;
    }

    .edu-logo {
        margin: 0 auto 20px auto;
    }
}

/* projects css */
#projects {
    padding: 50px 0;
    background: #09104a;
    color: #fff;
}

.container-a {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.heading-a {
    text-align: center;
    margin-bottom: 30px;
}

.heading-a h1 {
    font-size: 2.5em;
    color: #fff;
    text-transform: uppercase;
}

.heading-a h1 i {
    margin-right: 10px;
}

.heading-a h1 span {
    color: #ffd700;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-item {
    position: relative;
    width: 300px;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.project-item:hover {
    transform: rotate(-3deg);
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    text-align: center;
    transition: bottom 0.3s;
}

.project-item:hover .project-info {
    bottom: 0;
}

.project-info h2 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    background: #ffd700;
    color: #0a0a23;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn:hover {
    background: #333;
    color: #ffd700;
}

.view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 200px;
    background: #fff;
    color: #0a0a23;
    font-size: 1.5em;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-item, .view-all {
        width: 90%;
    }
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background: #ffd700;
    width: 0;
    transition: width 1s;
}

.project-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

/*experiance */

  /* TIMELINE */
  .timeline ul {
   
    padding: 50px 0;
  }
  .container-g{
    background: #f8f8f8;
    width: 100%;
    margin: 0 auto;
  }
  
.heading-g {
    text-align: center;
    margin-bottom: 30px;
}

.heading-g h1 {
    font-size: 2.5em;
    color: #1b1010;
    text-transform: uppercase;
}

.heading-g h1 i {
    margin-right: 10px;
}


  .timeline ul li {
    list-style-type: none;
    position: relative;
    width: 6px;
    margin: 0 auto;
    padding-top: 50px;
    background: #474cae;
  }
  
  .timeline ul li::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: inherit;
    z-index: 1;
  }
  
  .timeline ul li div {
    position: relative;
    bottom: 0;
    width: 400px;
    padding: 15px;
    background: #e4b809;
    z-index: 2; /* Ensure content is above pseudo element */
  }
  
  .timeline ul li div::before {
    content: "";
    position: absolute;
    bottom: 7px;
    width: 0;
    height: 0;
    border-style: solid;
  }
  
  .timeline ul li:nth-child(odd) div {
    left: 45px;
  }
  
  .timeline ul li:nth-child(odd) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent #f45b69 transparent transparent;
  }
  
  .timeline ul li:nth-child(even) div {
    left: -439px;
  }
  
  .timeline ul li:nth-child(even) div::before {
    right: -15px;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent #f45b69;
  }
  
  time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  /* EFFECTS */
  .timeline ul li::after {
    transition: background 0.5s ease-in-out;
  }
  
  .timeline ul li.in-view::after {
    background: #f45b69;
  }
  
  .timeline ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s ease-in-out;
  }
  
  .timeline ul li:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
  }
  
  .timeline ul li:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
  }
  
  .timeline ul li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
  }
  
  /* GENERAL MEDIA QUERIES */
  @media screen and (max-width: 900px) {
    .timeline ul li div {
      width: 250px;
    }
    .timeline ul li:nth-child(even) div {
      left: -289px; /* 250 + 45 - 6 */
    }
  }
  
  @media screen and (max-width: 600px) {
    .timeline ul li {
      margin-left: 20px;
    }
    .timeline ul li div {
      width: calc(100vw - 91px); /* Adjust as needed */
    }
    .timeline ul li:nth-child(even) div {
      left: 45px;
    }
    .timeline ul li:nth-child(even) div::before {
      left: -15px;
      border-width: 8px 16px 8px 0;
      border-color: transparent #f45b69 transparent transparent;
    }
  }
  
  /* EXTRA/CLIP PATH STYLES (if needed) */
  /* These styles are placeholders for different shapes if you decide to use them */
  .timeline-clippy ul li::after {
    width: 40px;
    height: 40px;
    border-radius: 0;
  }
  
  .timeline-rhombus ul li::after {
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  }
  
  .timeline-rhombus ul li div::before {
    bottom: 12px;
  }
  
  .timeline-star ul li::after {
    clip-path: polygon(
      50% 0%,
      61% 35%,
      98% 35%,
      68% 57%,
      79% 91%,
      50% 70%,
      21% 91%,
      32% 57%,
      2% 35%,
      39% 35%
    );
  }
  
  .timeline-heptagon ul li::after {
    clip-path: polygon(
      50% 0%,
      90% 20%,
      100% 60%,
      75% 100%,
      25% 100%,
      0% 60%,
      10% 20%
    );
  }
  
  .timeline-infinite ul li::after {
    animation: scaleAnimation 2s infinite;
  }
  
  @keyframes scaleAnimation {
    0% {
      transform: translateX(-50%) scale(1);
    }
    50% {
      transform: translateX(-50%) scale(1.25);
    }
    100% {
      transform: translateX(-50%) scale(1);
    }
  }
  
  .container-f {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.heading-h {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 1em;
}

.heading-h h1 {
    font-size: 2.5em;
    color: #1b1010;
    text-transform: uppercase;
}

.heading-h h1 i {
    margin-right: 10px;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 2em;
    margin-bottom: 2em;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.card img {
    width: 100%;
    height: auto;
    max-width: 300px;
}

.card h3 {
    margin: 20px 0 10px;
    color: #333;
}

.card p {
    color: #777;
    font-size: 14px;
}

.card button {
    background-color: #1e90ff;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.card button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .card {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .card {
        width: 100%;
    }
}
/*contact us*/
.contact-container {
    background-color: rgb(180, 174, 233);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
   
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

h2 .highlight {
    color: #8b2be2;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
}

.form-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-image {
    max-width: 100%;
    height: auto;
}

.form-right {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    font-size: 18px;
    color: #888;
}

.form-group input,
.form-group textarea {
    width: 80%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group textarea {
    resize: none;
    height: 100px;
}

.submit-btn {
    background-color: #4e3ca9;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #3b2b87;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .contact-form {
        flex-direction: column;
    }

    .form-left, .form-right {
        width: 100%;
    }
}


/*footer*/

.footer {
    background-color: #1d1d30;
    color: white;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.footer-column {
    flex: 1;
    margin: 20px;
    min-width: 250px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-column p, .footer-column ul {
    margin: 0 0 20px;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
}

.footer-links, .footer-contact {
    list-style: none;
    padding-left: 0;
}

.footer-links li, .footer-contact li {
    margin-bottom: 10px;
}

.footer-links a, .footer-contact a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: #fff829;
}

.footer-contact li {
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    font-size: 18px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    color: white;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #8b2be2;
}

.footer-bottom {
    /* margin-top: 20px; */
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 10px;
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

.footer-bottom i {
    color: #ff0000;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        margin: 10px 0;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    display: none; /* Initially hidden */
    transition: opacity 0.3s ease;
    opacity: 0.7;
    z-index: 1000; /* Ensure it's above other content */
}

.scroll-to-top:hover {
    opacity: 1;
    background-color: #555;
}


::-webkit-scrollbar {
    width: 12px; 
}

::-webkit-scrollbar-track {
    background: #af92f2; 
}

::-webkit-scrollbar-thumb {
    background-color: #7f31fd; 
    border-radius: 6px; 
}



