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

body{
    font-family: Arial, sans-serif, system-ui, sans-serif;
    background: linear-gradient(90deg, #0D0D0D, #1F1F1F);
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* Hide scrollbar for Chrome, Safari, Edge */
::-webkit-scrollbar {
  display: none;
}

/* Optional: Still allow scrolling */
.scroll-container {
  overflow: auto; /* or scroll */
}



/* Header and nav bar styling */
html {
    scroll-behavior: smooth;
}

/* Header and nav bar styling */
header {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 200px;
    width: 100%;
}

header h1 {
    font-size: 24px;
    margin: 0; /* Remove any default margins */
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    background: none;
    border: none;
    margin: 0; /* Remove any default margins */
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    header {
        padding: 20px;
        display: flex;
        flex-direction: row; /* Ensure row direction */
        justify-content: space-between;
        align-items: center;
        position: fixed;
        background: rgba(13, 13, 13, 0.8);
        backdrop-filter: blur(8px);
        z-index: 999;
        gap: 20px; /* Add some space between elements */
    }

    .hamburger {
        display: flex;
        margin-left: auto; /* Push to the right */
    }

    /* Ensure nav is not affecting the header layout */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        z-index: 998;
    }

    .nav.active {
        right: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Add overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 997;
    }

    .overlay.active {
        display: block;
    }
}

.nav{
    display: flex;
    gap: 50px;
    align-items: center;
    font-size: 14px;
}

.nav a{
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover{
    color: #60a5fa;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease-in-out;
        z-index: 999;
    }

    .nav.active {
        right: 0;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
        position: fixed;
        width: 100%;
        background: rgba(13, 13, 13, 0.8);
        backdrop-filter: blur(8px);
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Add overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }

    .overlay.active {
        display: block;
    }
}

/* Home section styling */
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 100px 200px;
    gap: 50px;
}

.description{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.description h2{
    font-size: 60px;
}

.description h2 span {
    color: #6366f1;
}

.designation {
    font-size: 40px;
    font-weight: bold;
    color: #4F46E5;
    display: inline-block;
    white-space: nowrap;
    border-right: none; /* Remove extra cursor */
}

.des{
    display: flex;
    gap: 20px;
    justify-content: start;
    align-items: center;
}

.des h3{
    font-size: 36px;
    color: #9ca3af;
}

/* @keyframes blink {
    50% {
        opacity: 0;
    }
} */




.desc{
    font-size: 16px;
    color: #9ca3af;
}

.portfolio-image img{
    width: 288px;
    height: 288px;
    border-radius: 50%;
}

/* Portfolio image container styling */
.portfolio-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Create the glowing orb behind the image */
.portfolio-image::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.3) 0%,
        rgba(99, 102, 241, 0.1) 40%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}
/* Add a second glow layer for more depth */
.portfolio-image::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(
        circle,
        rgba(96, 165, 250, 0.2) 0%,
        rgba(96, 165, 250, 0.1) 30%,
        transparent 60%
    );
    border-radius: 50%;
    z-index: -2;
    animation: glowPulse 3s ease-in-out infinite reverse;
}
/* Define the glow animation */
@keyframes glowPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}
/* Ensure the image stays above the glow effects */
.portfolio-image img {
    position: relative;
    z-index: 1;
    width: 288px;
    height: 288px;
    border-radius: 50%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 
                0 4px 8px rgba(0, 0, 0, 0.15),
                0 0 16px rgba(99, 102, 241, 0.2);
}

/* Home section buttons */
.buttons{
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.hire-button{
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: #4F46E5;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
}

.buttons button:hover{
    background: #4338ca;
}

.buttons button a{
    color: white;
    text-decoration: none;
}

.work-button{
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    background: transparent;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    border: #4F46E5 2px solid;
}

.work-button:hover{
    background: #6366f1;
}


/* About Section Styling */
.about-section{
    color: black;
    background-color: rgb(245, 245, 245);
    padding: 100px 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.about-section h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}

/* Underline effect */
.about-section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #6366F1; /* Customize underline color */
    transition: width 0.4s ease-in-out;
}

/* Expand underline on hover */
.about-section h2:hover::after {
    width: 100%;
}

.about-content{
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.about-content div{
    background-color: white;
}

.about-left-section{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-description {
    width: 560px;
    /* border: 1px solid #d1d5db; */
    padding: 20px;
    border-radius: 8px;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft, spread-out shadow */
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

/* Calm Hover Effect */
.about-description:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Wider, softer hover shadow */
    transform: translateY(-4px); /* Gentle lift */
}

.about-description h3{
    font-size: 24px;
    padding-bottom: 10px;
}

.about-description p{
    font-size: 16px;
    color: #525252;
}

.about-stats{
    display: flex;
    gap: 20px;
}

.about-stats div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 50%;
    border-radius: 5px;
    padding: 20px;
    height: 96px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft, spread-out shadow */
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

/* Calm Hover Effect */
.about-stats div:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Wider, softer hover shadow */
    transform: translateY(-4px); /* Gentle lift */
}

.about-stats div h3{
    font-size: 24px;
    color: #4F46E5;
}

.about-right-section {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 5px;
    padding: 20px;
    width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* Soft, spread-out shadow */
    transition: box-shadow 0.5s ease, transform 0.5s ease;
}

/* Calm Hover Effect */
.about-right-section:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); /* Wider, softer hover shadow */
    transform: translateY(-4px); /* Gentle lift */
}

.about-right-section h3{
    font-size: 30px;
}

.experience-list {
    padding-left: 30px;
    gap: 30px;
}

.experience-list li::marker {
    color: #4F46E5; /* Change bullet color */
    font-size: 1.2em; /* Optional: Make it slightly bigger */
}


.experience-list p{
    font-size: 20px;
    color: #525252;
}

.experience-list li{
    font-size: 30px;
}


/* ========== Skills Section ========== */
.skills-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(90deg, #0D0D0D, #1F1F1F);
}

.skills-section h2 {
  font-size: 36px;
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-bottom: 40px;
  color: white;
}

.skills-section h2::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -8px;
  left: 50%;
  background-color: #4F46E5;
  transition: all 0.3s ease;
}

.skills-section h2:hover::after {
  width: 100%;
  left: 0;
}

/* Grid for skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Skill icon box */
.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #5F6C7B;
  animation: float 4s ease-in-out infinite, glow 3s ease-in-out infinite;
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: scale(1.1);
  animation-play-state: paused;
  filter: drop-shadow(0 0 20px rgba(0, 0, 139, 0.5));
}

.skill-icon i,
.skill-icon svg {
  font-size: 40px;
  width: 40px;
  height: 40px;
  fill: #5F6C7B;
  color: inherit;
}

.skill-icon p {
  margin: 0;
  font-size: 14px;
  color: inherit;
  font-weight: 500;
}

/* Floating animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Glowing animation */
@keyframes glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(0, 0, 139, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
  }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .skills-section h2 {
    font-size: 28px;
  }

  .skill-icon i,
  .skill-icon svg {
    font-size: 32px;
    width: 32px;
    height: 32px;
  }

  .skill-icon p {
    font-size: 12px;
  }
}


/* Projects Section */
.projects-section{
    color: black;
    background-color: rgb(245, 245, 245);
    padding: 60px;
    padding-left: 120px;
    padding-right: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
}

.projects-section h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 40px;
}

.projects-section h2::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px; /* Increased from 2px to make it bolder */
    bottom: -5px;
    left: 0;
    background-color: rgba(33, 102, 255, 0.8); /* Using the specified color */
    transition: width 0.3s ease;
}

.projects-section h2:hover::after {
    width: 100%;
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    max-width: 1100px; /* Adjust width as needed */
    margin: 0 auto; /* Center the grid */
}

.project-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.project-card-heading{
    display: flex;
    justify-content: space-between;
}

.project-github {
    padding: 20px;
    font-size: 1.2rem;
    color: black;
    transition: color 0.3s ease;
 }
 
 .project-github:hover {
    color: rgba(33, 102, 255, 0.8);
 }

.project-card {
    position: relative;
    max-width: 350px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0 0 15px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
 }

.project-card h3 {
    margin: 15px 15px 10px;
    font-size: 1.2rem;
    color: #333;
    padding: 0 15px;
}

.project-card p {
    margin: 0 15px 15px;
    color: #666;
    line-height: 1.5;
    padding: 0 15px;
}


.project-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-img::after {
    content: 'View Project';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 102, 255, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
    font-size: 1.2rem;
}

.project-img:hover::after {
    opacity: 1;
}

.project-img:hover img {
    transform: scale(1.1);
}

.skills-used {
    display: flex;
    gap: 10px;
    margin: 15px;
}

.skills-used span {
    background-color: rgba(33, 102, 255, 0.1);
    color: rgba(33, 102, 255, 0.8);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Contact Us Section */
.contact-us {
    padding: 80px 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-us h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 40px;
    color: white;
    transition: color 0.3s ease-in-out;
}

.contact-us h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 3px;
    background-color: rgba(33, 102, 255, 0.8); /* Blue underline */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-in-out;
}

.contact-us h2:hover::after {
    transform: scaleX(1);
}

.contact-content {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    align-items: center;
}

/* Contact left section */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    background: rgba(255, 255, 255, 0.05); /* Light transparent background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Box shadow for depth */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.contact-left:hover {
    transform: translateY(-5px); /* Slight upward movement on hover */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

.contact-left p {
    font-size: 18px;
    color: #dcdcdc;
    line-height: 1.6;
    text-align: justify;
}

.contact-left h4 {
    font-size: 24px;
    color: white;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icon a {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.social-icon a:hover,
.social-icon a:focus {
    color: #4F46E5;
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-left {
        width: 80%;
    }

    .social-icon {
        justify-content: center;
    }
}


/* Contact right section */
.contact-right {
    width: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    backdrop-filter: blur(8px); /* Glassmorphism Effect */
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-right:hover {
    transform: translateY(-6px);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.35);
}

.contact-right form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-right input,
.contact-right textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    outline: none;
    transition: all 0.3s ease-in-out;
    font-family: 'Poppins', sans-serif;
}

.contact-right input:focus,
.contact-right textarea:focus {
    border-color: #7b6ef6;
    box-shadow: 0px 0px 10px rgba(79, 70, 229, 0.5);
    background: rgba(255, 255, 255, 0.2);
}

.contact-right textarea {
    height: 130px;
    resize: none;
}

.contact-right button {
    background: linear-gradient(135deg, #4F46E5, #3e36c4);
    color: white;
    padding: 14px 20px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    letter-spacing: 1px;
}

.contact-right button:hover {
    background: linear-gradient(135deg, #3e36c4, #2d2599);
    transform: scale(1.07);
}

/* Response Message Styling */
#responseMessage {
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    display: none;
}

#responseMessage.success {
    color: #0f0;
    background: rgba(0, 255, 0, 0.1);
}

#responseMessage.error {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.1);
}

/* Responsive Design */
@media (max-width: 900px) {
    .contact-right {
        width: 80%;
        padding: 30px;
    }
}


/* Animations */
/* Base styles preserved from original */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, sans-serif, system-ui, sans-serif;
    background: linear-gradient(90deg, #0D0D0D, #1F1F1F);
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll during animations */
}

/* Scroll Animations Base Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Header with Animation */
header {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 200px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 20px 200px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Navigation Animation */
.nav a {
    position: relative;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #60a5fa;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Enhanced Home Section */
.home {
    padding: 180px 200px 100px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 60%);
    pointer-events: none;
}

/* Enhanced Portfolio Image Animation */
.portfolio-image {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-image:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Enhanced About Section Cards */
.about-description, .about-stats div, .about-right-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-description.visible, 
.about-stats div.visible, 
.about-right-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Skills Section */
.skills-images img {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-images img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Project Cards */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Enhanced Contact Section */
.contact-left, .contact-right {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-left.visible, .contact-right.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Account for fixed header */
}

/* Enhanced Button Animations */
.hire-button, .work-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hire-button::before, .work-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hire-button:hover::before, .work-button:hover::before {
    width: 300px;
    height: 300px;
}

/* Loading Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 0.6s ease-out;
}

/* Responsive Design Enhancements */
@media (max-width: 900px) {
    header {
        padding: 20px;
    }
    
    header.scrolled {
        padding: 15px;
    }
    
    .home {
        padding: 150px 20px 50px;
    }
    
    .about-section,
    .skills-section,
    .projects-section,
    .contact-us {
        padding: 60px 20px;
    }
}


/* Responsiveness for mobile */
/* Mobile responsive styles */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Home section */
    .home {
        padding: 120px 20px 50px;
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .description h2 {
        font-size: 36px;
    }

    .des {
        justify-content: center;
    }

    .des h3 {
        font-size: 24px;
    }

    .buttons {
        justify-content: center;
    }

    .portfolio-image img {
        width: 220px;
        height: 220px;
    }

    .portfolio-image::before,
    .portfolio-image::after {
        width: 240px;
        height: 240px;
    }

    /* About section */
    .about-section {
        padding: 50px 20px;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-description,
    .about-right-section {
        width: 100%;
    }

    .about-stats {
        flex-direction: row;
    }

    .about-stats div {
        width: 100%;
    }

    /* Skills section */
    .skills-section {
        padding: 50px 20px;
    }

    .skills-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skills-images img {
        width: 120px;
        height: 120px;
        margin: 10px;
    }

    #java, #bootstrap, #tailwind, #php {
        width: 120px;
        height: 120px;
    }

    /* Projects section */
    .projects-section {
        padding: 50px 20px;
    }

    .projects-content {
        grid-template-columns: 1fr;
    }

    .project-card {
        max-width: 100%;
    }

    /* Contact section */
    .contact-us {
        padding: 50px 20px;
    }

    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .social-icon {
        justify-content: center;
    }

    /* Enhanced mobile navigation */
    .nav a {
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 20px;
        transition: all 0.3s ease;
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .description h2 {
        font-size: 28px;
    }

    .des h3 {
        font-size: 20px;
    }

    .buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hire-button,
    .work-button {
        width: 100%;
    }

    .portfolio-image img {
        width: 180px;
        height: 180px;
    }

    .portfolio-image::before,
    .portfolio-image::after {
        width: 200px;
        height: 200px;
    }

    .skills-images {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-images img {
        width: 100px;
        height: 100px;
    }

    #java, #bootstrap, #tailwind, #php {
        width: 100px;
        height: 100px;
    }
}