body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    overflow-x: hidden;
  }
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.8);
    position: fixed;
    width:90%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition:  0.3s ease;
  }
  header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }
  header a:hover {
    color: #4FA8CF;
  }
#name{
  color:#0056b3;
  transition: ease-in-out ;
  transition-duration: 0.1s;
}
#name:hover{
  color: #4FA8CF;
}
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60vh;
  padding: 20px;
}

.hero-content {
  width: 50%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.download-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}
.download-btn:hover {
  background-color: #0056b3;
  color: black;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a {
  margin-right: 15px;
  font-size: 2.5rem; /* Increased icon size */
  color: #333;
  transition: color 0.3s ease;
  text-decoration: none; /* Ensures no underline */
}

.social-icons a:hover {
  color: #007bff; /* Color change on hover */
}

.profile-container {
  width: 50%;
  display: flex;
  justify-content: center;
  perspective: 1500px;
}

.profile-container img {
  width: 300px; 
  height: 300px; 
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  object-fit: cover;
  transition:ease-in-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: rotate3d(0, 0, 0, 0deg); /* Initial state */
}

.profile-container img:hover {
  transform: rotate3d(1, 1, 1, 360deg); /* Single 360-degree rotation */
  border: 3px solid #4FA8CF;
  box-shadow: 0 20px 40px rgba(79, 168, 207, 0.3);
}

.stats-section {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  background-color:linear-gradient(135deg, #1e1e2f, #3b3b58);
}

.stat {
  text-align: center;
  width: 20%;
  height: 50%;
}

.stat h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}
.stat :hover{
  transition-property:all;
  transition-duration: 0s;
  color: #007bff;
}

.stat p {
  font-size: 1.2rem;

  color: #666;
}
.about-section {
  padding: 80px 5%;
  background: linear-gradient(145deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #4FA8CF;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #007bff;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 40px;
  text-align: center;
}

.highlight {
  color: #4FA8CF;
  font-weight: bold;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.about-card i {
  font-size: 2.5rem;
  color: #4FA8CF;
  margin-bottom: 15px;
}

.about-card h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.about-card p {
  color: #ccc;
  line-height: 1.6;
}

.portfolio-section {
  padding: 100px 50px;
  perspective: 1000px;
  max-width: 1400px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  padding: 20px;
}

.portfolio-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease, z-index 0.5s ease;
  z-index: 1; /* Default z-index */
  transform-style: preserve-3d;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  height: 300px; /* Fixed height */
}

.portfolio-item:hover {
  transform: scale(1.1) translateZ(-10px) rotateX(5deg);
  z-index: 10; /* Bring the hovered item to the front */
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.portfolio-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  padding: 30px 20px;
  transform: translateY(70%);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.portfolio-description {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.4;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  background: rgba(79, 168, 207, 0.15);
  color: #4FA8CF;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  backdrop-filter: blur(5px);
}

.resume-section {
  padding: 100px 50px;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
}

.resume-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
}

.resume-content h3 {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #00d4ff;
}

.resume-content ul {
  list-style-type: none;
  padding: 0;
}

.resume-content li {
  margin: 10px 0;
}

.contact-section {
  padding: 50px 20px;
  background-color: rgba(0, 0, 0, 0.9);
  text-align: center;
  margin-top: 50px;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #007bff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.input-box {
  margin-bottom: 15px;
  width: 100%;
  max-width: 500px;
}

.input-box input,
.input-box textarea {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  border-radius: 5px;
  border: 2px solid #ddd;
  outline: none;
  transition: border-color 0.3s ease;
}

.input-box input:focus,
.input-box textarea:focus {
  border-color: #007bff;
}

.input-box textarea {
  resize: vertical;
}

.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.submit-btn:hover {
  background-color: #0056b3;
}

.footer {
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.footer a {
  color: #00d4ff;
  text-decoration: none;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero-section {
        flex-direction: column-reverse;
        height: auto;
        padding-top: 100px;
    }

    .hero-content, .profile-container {
        width: 100%;
        text-align: center;
        padding: 20px;
    }

    .profile-container img {
        width: 200px;
        height: 200px;
        border-width: 2px;
    }

    .stats-section {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat {
        width: 45%;
    }

    .portfolio-section {
        padding: 60px 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .portfolio-overlay {
        transform: translateY(60%);
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .stat {
        width: 100%;
    }

    .section-title {
        font-size: 2rem;
    }

    .social-icons a {
        font-size: 2rem;
    }

    .portfolio-item {
        height: 200px;
    }
    
    .portfolio-overlay {
        padding: 20px 15px;
    }
    
    .portfolio-title {
        font-size: 1.1rem;
    }
    
    .portfolio-description {
        font-size: 0.85rem;
    }
}

/* Add smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Improve header responsiveness */
header {
    transition: background 0.3s ease;
}

header:hover {
    background: rgba(0, 0, 0, 0.95);
}

/* Add these to existing styles */
.portfolio-item {
    aspect-ratio: 16/9;
}

.contact-section {
    margin-top: 50px;
}

/* Contact Form Styling */
.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.loading-spinner {
    margin-left: 10px;
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.input-box input,
.input-box textarea {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-box input::placeholder,
.input-box textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-box input:focus,
.input-box textarea:focus {
    border-color: #4FA8CF;
    box-shadow: 0 0 5px rgba(79, 168, 207, 0.3);
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

 