body{
    padding: 10px;
}
/*
 * =================================================================
 * |                     IMPROVED HERO SECTION STYLES              |
 * |              LIGHT COLORS & ANIMATED BACKGROUND               |
 * =================================================================
 */

#hero {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #fdfdfd 0%, #ffffff 100%);
    color: #212529;
    border-radius: 0 0 25px 25px;
    position: relative;
    overflow: hidden;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 1; /* Hero container ko top par rakha gaya hai */
}

/* New CSS for animated balls background */
.animated-balls-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Hero content ke peeche rakha gaya hai */
}

.ball {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px); /* Blur effect */
    opacity: 0.6;
    animation-timing-function: cubic-bezier(0.5, 0.5, 0.5, 0.5);
}

.ball:nth-child(1) {
    background-color: #ff9a8b;
    width: 80px;
    height: 80px;
    top: 10%;
    left: 20%;
    animation: move-ball 15s infinite alternate;
}

.ball:nth-child(2) {
    background-color: #8be0ff;
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation: move-ball 18s infinite alternate-reverse;
}

.ball:nth-child(3) {
    background-color: #ffcc8b;
    width: 70px;
    height: 70px;
    top: 40%;
    left: 50%;
    animation: move-ball 12s infinite alternate;
}

.ball:nth-child(4) {
    background-color: #beff8b;
    width: 90px;
    height: 90px;
    top: 80%;
    left: 10%;
    animation: move-ball 20s infinite alternate-reverse;
}

.ball:nth-child(5) {
    background-color: #a38bff;
    width: 50px;
    height: 50px;
    top: 20%;
    left: 70%;
    animation: move-ball 16s infinite alternate;
}

@keyframes move-ball {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 2; /* Content ko ball ke upar dikhane ke liye */
}

.hero-photo-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease-in-out;
}

.hero-photo-image:hover {
    transform: scale(1.05) rotate(3deg);
}

.hero-title {
    font-size: 1.8rem;
    margin: 0.75rem 0 0.2rem;
    font-weight: 800;
    color: #000;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
    color: #495057;
}

.cta-button {
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.primary-cta {
    background-color: #343a40;
    color: #fff;
    border: 2px solid #343a40;
}

.secondary-cta {
    background-color: transparent;
    color: #343a40;
    border: 2px solid #343a40;
}

.primary-cta:hover {
    background-color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.secondary-cta:hover {
    background-color: rgba(52, 58, 64, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
/*
 * =================================================================
 * |                     IMPROVED ABOUT SECTION STYLES             |
 * =================================================================
 */

#about .about-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #495057;
    text-align: justify;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/*
 * =================================================================
 * |                     SERVICES SECTION STYLES                   |
 * =================================================================
 */

.services-grid-container {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.service-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    color: #2575fc;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 10px;
}

.service-description {
    font-size: 0.9rem;
    color: #777;
    margin: 5px;
}


.highlights-slider-wrapper {
  overflow: hidden;
  position: relative;
  padding-bottom: 1rem;
}

.highlights-slider {
  display: flex;
  white-space: nowrap;
  gap: 1rem;
  animation: scrollSlider 30s linear infinite; /* Infinite loop */
}

.highlights-slider:hover {
  animation-play-state: paused; /* Pause on hover */
}

.slider-item {
  flex-shrink: 0;
  width: 300px; /* Fixed width so scrolling looks smooth */
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.slider-item img:hover {
  transform: scale(1.05);
}

/* Animation – move full duplicate set width */
@keyframes scrollSlider {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-400%); /* Scroll exactly half (1st set), then 2nd set continues */
  }
}

/*
 * =================================================================
 * |                EXPERIENCE & EDUCATION STYLES                  |
 * =================================================================
 */

.experience-list, .education-list {
    display: grid;
    gap: 2rem;
}

.experience-item, .education-item {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
}

.experience-item:last-child, .education-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.experience-item-logo, .education-item-logo {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-right: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-item-title, .education-item-title {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a1a;
}

.experience-item-details p, .education-item-details p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}


/*
 * =================================================================
 * |                CERTIFICATES SECTION STYLES                    |
 * =================================================================
 */

.certificates-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.certificate-item {
    font-size: 1rem;
    border-left: 4px solid #2575fc;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.certificate-name {
    font-weight: bold;
    color: #333;
}

.certificate-year {
    color: #777;
    font-size: 0.9rem;
}


/*
 * =================================================================
 * |            PROFESSIONAL PROJECTS SECTION STYLES               |
 * |                    (WITH IMAGE SLIDER)                        |
 * =================================================================
 */

.projects-list {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr; /* Default to single column for mobile */
}

.project-card {
    border: none;
    border-radius: 12px;
    background-color: #fefefe;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    padding: 1.5rem;
    overflow: hidden; /* Ensure slider content stays within card */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
}

.project-details {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Slider Wrapper */
.project-image-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px; /* Rounded corners for the slider container */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for slider */
    margin-top: 1rem;
    height: 200px; /* Fixed height for consistent display */
}

/* Image Container */
.project-image-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

.project-image {
    min-width: 100%; /* Each image takes full width of its parent */
    height: 100%;
    object-fit: cover; /* Images cover the area without distortion */
    display: block;
}

/* Slider Buttons */
.project-slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent; /* Semi-transparent background */
    color: #070707;
    border: none;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    border-radius: 50%; /* Circular buttons */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project-slider-button:hover {
    background-color: transparent;
    transform: translateY(-50%) scale(1.1); /* Slight zoom on hover */
}

.project-slider-button.prev-button {
    left: 10px;
}

.project-slider-button.next-button {
    right: 10px;
}

/* Slider Dots (Pagination) */
.project-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: #007bff; /* Active dot color */
    transform: scale(1.2); /* Active dot slightly larger */
}

/* Media queries for larger screens */
@media (min-width: 768px) {
    .projects-list {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    }
}

@media (min-width: 1024px) {
    .projects-list {
        grid-template-columns: repeat(3, 1fr); /* Three columns on desktops */
    }
}

/*
 * =================================================================
 * |                       SKILLS & COURSES STYLES                 |
 * =================================================================
 */

.skills-list, .courses-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.skills-list {
    justify-content: center;
}

.skill-item {
    background: #e0e0e0;
    color: #333;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: #ccc;
    transform: scale(1.05);
}

.course-item {
    font-size: 1rem;
    border-left: 4px solid #2575fc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}


/*
 * =================================================================
 * |                          FOOTER STYLES                        |
 * =================================================================
 */

#footer {
    background-color: #1a1a1a;
    color: #f0f2f5;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 30px 30px 0 0;
}

.footer-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.contact-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ccc;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 5px rgba(37, 117, 252, 0.5);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: #999;
}

.submit-button {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-icons-wrapper {
    margin-top: 1.5rem;
}

.social-icon-link {
    color: #fff;
    margin: 0 0.75rem;
    font-size: 1.25rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icon-link:hover {
    color: #2575fc;
}

.footer-copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 0.5px;
}