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

 :root {
     --primary-color: #6366f1;
     --secondary-color: #8b5cf6;
     --accent-color: #06b6d4;
     --text-primary: #1f2937;
     --text-secondary: #6b7280;
     --text-light: #ffffff;
     --bg-primary: #ffffff;
     --bg-secondary: #f8fafc;
     --bg-dark: #0f172a;
     --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     line-height: 1.6;
     color: var(--text-primary);
     overflow-x: hidden;
 }

 /* Navigation */
 nav {
     position: fixed;
     top: 0;
     width: 100%;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(10px);
     z-index: 1000;
     padding: 1rem 0;
     transition: all 0.3s ease;
 }

 .mobile-menu-btn {
     display: none;
     flex-direction: column;
     cursor: pointer;
     padding: 5px;
     z-index: 1001;
 }

 .mobile-menu-btn span {
     width: 25px;
     height: 3px;
     background: var(--primary-color);
     margin: 3px 0;
     transition: 0.3s;
     border-radius: 2px;
 }

 .mobile-menu-btn.active span:nth-child(1) {
     transform: rotate(-45deg) translate(-5px, 6px);
 }

 .mobile-menu-btn.active span:nth-child(2) {
     opacity: 0;
 }

 .mobile-menu-btn.active span:nth-child(3) {
     transform: rotate(45deg) translate(-5px, -6px);
 }

 .resume-button {
     margin-left: 1rem;
 }

 .resume-button a {
     background: var(--gradient);
     color: var(--text-light) !important;
     padding: 0.75rem 1.5rem;
     border-radius: 25px;
     font-weight: 600;
     text-decoration: none !important;
     transition: all 0.3s ease;
     box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
     position: relative;
     overflow: hidden;
 }

 .resume-button a::before {
     content: '';
     position: absolute;
     top: 0;
     left: -30%;
     width: 70%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
     transition: left 0.5s ease;
 }

 .resume-button a:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
     color: var(--text-light) !important;
 }

 .resume-button a:hover::before {
     left: 100%;
 }

 .resume-button a::after {
     content: none !important;
     /* Remove the underline pseudo-element */
 }

 /* Alternative style - if you prefer a border style */
 .resume-button.outline a {
     background: transparent;
     color: var(--primary-color) !important;
     border: 2px solid var(--primary-color);
     box-shadow: none;
 }

 .resume-button.outline a:hover {
     background: var(--primary-color);
     color: var(--text-light) !important;
     box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
 }

 nav.scrolled {
     background: rgba(255, 255, 255, 0.98);
     box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
 }

 .nav-container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .logo {
     font-size: 1.5rem;
     font-weight: bold;
     background: var(--gradient);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
 }

 .nav-links {
     display: flex;
     list-style: none;
     gap: 2rem;
 }

 .nav-links a {
     text-decoration: none;
     color: var(--text-primary);
     font-weight: 500;
     transition: color 0.3s ease;
     position: relative;
 }

 .nav-links a:hover {
     color: var(--primary-color);
 }

 .nav-links a::after {
     content: '';
     position: absolute;
     bottom: -5px;
     left: 0;
     width: 0;
     height: 2px;
     background: var(--gradient);
     transition: width 0.3s ease;
 }

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

 /* Hero Section */
 .hero {
     min-height: 100vh;
     display: flex;
     align-items: center;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     position: relative;
     overflow: hidden;
 }

 .hero::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
     opacity: 0.3;
 }

 .hero-content {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
     text-align: center;
     position: relative;
     z-index: 2;
 }

 .hero h1 {
     font-size: 4rem;
     color: var(--text-light);
     margin-bottom: 1rem;
     animation: fadeInUp 1s ease;
 }

 .hero .subtitle {
     font-size: 1.5rem;
     color: rgba(255, 255, 255, 0.9);
     animation: fadeInUp 1s ease 0.2s both;
 }

 .hero .subtitle2 {
     font-size: 1.3rem;
     color: rgba(255, 255, 255, 0.9);
     margin-bottom: 1rem;
     animation: fadeInUp 1s ease 0.2s both;
 }

 .hero .description {
     font-size: 1.1rem;
     color: rgba(255, 255, 255, 0.8);
     max-width: 600px;
     margin: 0 auto 3rem;
     animation: fadeInUp 1s ease 0.4s both;
 }

 .cta-button {
     display: inline-block;
     padding: 1rem 2rem;
     background: rgba(255, 255, 255, 0.2);
     color: var(--text-light);
     text-decoration: none;
     border-radius: 50px;
     font-weight: 600;
     transition: all 0.3s ease;
     backdrop-filter: blur(10px);
     border: 2px solid rgba(255, 255, 255, 0.3);
     animation: fadeInUp 1s ease 0.6s both;
 }

 .cta-button:hover {
     background: rgba(255, 255, 255, 0.3);
     transform: translateY(-2px);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
 }

 /* Floating particles */
 .particle {
     position: absolute;
     background: rgba(255, 255, 255, 0.219);
     border-radius: 50%;
     animation: float 6s ease-in-out infinite;
 }

 .particle:nth-child(1) {
     top: 20%;
     left: 10%;
     width: 10px;
     height: 10px;
     animation-delay: 0s;
 }

 .particle:nth-child(2) {
     top: 60%;
     left: 75%;
     width: 6px;
     height: 6px;
     animation-delay: 2s;
 }

 .particle:nth-child(3) {
     top: 40%;
     right: 10%;
     width: 8px;
     height: 8px;
     animation-delay: 4s;
 }

 .particle:nth-child(4) {
     bottom: 30%;
     left: 60%;
     width: 4px;
     height: 4px;
     animation-delay: 1s;
 }

 .particle:nth-child(5) {
     top: 20%;
     right: 15%;
     width: 10px;
     height: 10px;
     animation-delay: 0s;
 }

 .particle:nth-child(6) {
     top: 50%;
     left: 25%;
     width: 6px;
     height: 6px;
     animation-delay: 2s;
 }

 .particle:nth-child(7) {
     top: 70%;
     right: 70%;
     width: 8px;
     height: 8px;
     animation-delay: 4s;
 }

 .particle:nth-child(8) {
     bottom: 10%;
     left: 80%;
     width: 4px;
     height: 4px;
     animation-delay: 1s;
 }

 /* Sections */
 section {
     padding: 5rem 0;
 }

 .container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 2rem;
 }

 .section-title {
     font-size: 2.5rem;
     text-align: center;
     margin-bottom: 3rem;
     position: relative;
 }

 .section-title::after {
     content: '';
     position: absolute;
     bottom: -10px;
     left: 50%;
     transform: translateX(-50%);
     width: 60px;
     height: 4px;
     background: var(--gradient);
     border-radius: 2px;
 }

 /* About Section */
 .about {
     background: var(--bg-secondary);
 }

 .about-content {
     display: grid;
     grid-template-columns: 1fr 2fr;
     gap: 4rem;
     align-items: center;
 }

 .about-image {
     position: relative;
 }

 .about-image img {
     width: 100%;
     height: auto;
     max-width: 400px;
     border-radius: 20px;
     box-shadow: 0 7px 40px rgba(0, 0, 0, 0.15);
     display: block;
     margin: 0 auto;
 }

 .about-text h3 {
     font-size: 1.8rem;
     margin-bottom: 1rem;
     color: var(--text-primary);
 }

 .about-text p {
     color: var(--text-secondary);
     margin-bottom: 1.5rem;
     font-size: 1.1rem;
 }

 .skills {
     display: flex;
     flex-wrap: wrap;
     gap: 1rem;
     margin-top: 2rem;
 }

 .skill-tag {
     padding: 0.5rem 1rem;
     background: var(--bg-primary);
     border-radius: 25px;
     font-size: 0.9rem;
     font-weight: 500;
     color: var(--primary-color);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
 }

 /* Experience Section */
 .experience {
     background: var(--bg-primary);
 }

 .experience-timeline {
     max-width: 100%;
     margin: 0 auto;
     position: relative;
 }

 .experience-item.collapsed .experience-details {
     max-height: 0;
     overflow: hidden;
     opacity: 0;
     transform: translateY(10px);
     transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
 }


 .container-experience-title {
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: space-between;
 }

 .arrow {
     transition: transform 0.3s ease;
     display: inline-block;
 }

 .experience-item:not(.collapsed) .arrow {
     transform: rotate(180deg);
 }

 .experience-item:not(.collapsed) .experience-details {
     max-height: 1000px;
     opacity: 1;
     transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;

 }


 .experience-item {
     background: var(--bg-secondary);
     padding: 2rem;
     border-radius: 15px;
     margin-bottom: 2rem;
     border-left: 4px solid var(--primary-color);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
 }

 .experience-item:hover {
     transform: translateX(10px);
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
 }

 .experience-item h3 {
     color: var(--primary-color);
     font-size: 1.5rem;
     /* margin-bottom: 1rem; */
 }

 .experience-item ul {
     list-style: none;
     padding-left: 0;
 }

 .experience-item li {
     color: var(--text-secondary);
     margin-bottom: 0.8rem;
     padding-left: 1.5rem;
     position: relative;
 }

 .experience-item li::before {
     content: '✨';
     position: absolute;
     left: 0;
     color: var(--accent-color);
     font-size: 0.8rem;
 }

 .experience-skills {
     margin-top: 1.5rem;
     display: flex;
     flex-wrap: wrap;
     gap: 0.5rem;
 }

 .experience-skill {
     background: var(--primary-color);
     color: white;
     padding: 0.3rem 0.8rem;
     border-radius: 15px;
     font-size: 0.8rem;
     font-weight: 500;
 }

 /* Projects Section */
 .projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
     gap: 2rem;
     margin-top: 3rem;
 }

 .project-card {
     background: var(--bg-primary);
     border-radius: 20px;
     overflow: hidden;
     box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
     transition: transform 0.3s ease, box-shadow 0.3s ease;
     position: relative;
 }

 .project-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
 }

 .project-image {
     /* height: 200px; */
     /* display: flex; */
     /* align-items: center; */
     /* justify-content: center; */
     /* background: var(--gradient); */
     position: relative;
     overflow: hidden;
 }

 .project-image img {
     width: 100%;
     height: auto;
     display: block;
     margin: 0 auto;
     object-fit: fill;
 }

 .project-image::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.05);
 }

 .project-content {
     padding: 2rem;
 }

 .project-content h3 {
     font-size: 1.5rem;
     margin-bottom: 1rem;
     color: var(--text-primary);
 }

 .project-content p {
     color: var(--text-secondary);
     margin-bottom: 1.5rem;
 }

 .project-links {
     display: flex;
     gap: 1rem;
 }

 .project-link {
     padding: 0.5rem 1rem;
     background: var(--gradient);
     color: var(--text-light);
     text-decoration: none;
     border-radius: 25px;
     font-size: 0.9rem;
     font-weight: 500;
     transition: transform 0.3s ease;
 }

 .project-link:hover {
     transform: scale(1.05);
 }

 /* Contact Section */
 .contact {
     background: var(--bg-dark);
     color: var(--text-light);
 }

 .contact .section-title {
     color: var(--text-light);
 }

 .contact-content {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 4rem;
     margin-top: 3rem;
 }

 .contact-form {
     display: flex;
     flex-direction: column;
     gap: 1.5rem;
 }

 .form-group {
     display: flex;
     flex-direction: column;
 }

 .form-group label {
     margin-bottom: 0.5rem;
     font-weight: 500;
 }

 .form-group input,
 .form-group textarea {
     padding: 1rem;
     border: none;
     border-radius: 10px;
     background: rgba(255, 255, 255, 0.1);
     color: var(--text-light);
     font-size: 1rem;
     backdrop-filter: blur(10px);
 }

 .form-group input::placeholder,
 .form-group textarea::placeholder {
     color: rgba(255, 255, 255, 0.7);
 }

 .submit-btn {
     padding: 1rem 2rem;
     background: var(--gradient);
     color: var(--text-light);
     border: none;
     border-radius: 10px;
     font-size: 1rem;
     font-weight: 600;
     cursor: pointer;
     transition: transform 0.3s ease;
 }

 .submit-btn:hover {
     transform: translateY(-2px);
 }

 .contact-info h3 {
     font-size: 1.5rem;
     margin-bottom: 2rem;
 }

 .contact-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1.5rem;
 }

 .contact-icon {
     width: 50px;
     height: 50px;
     background: var(--bg-secondary);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.2rem;
 }

 .contact-item a {
     color: var(--text-light);
     text-decoration: none;
     transition: color 0.3s ease;
 }

 .contact-item a:hover {
     color: var(--accent-color);
 }

 .scroll-to-top {
     position: fixed;
     bottom: 30px;
     right: 30px;
     width: 50px;
     height: 50px;
     background: var(--gradient);
     color: var(--text-light);
     border: none;
     border-radius: 50%;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
     transition: all 0.3s ease;
     z-index: 999;
     opacity: 0;
     visibility: hidden;
     transform: scale(0.8);
 }

 .scroll-to-top.visible {
     opacity: 1;
     visibility: visible;
     transform: scale(1);
 }

 .scroll-to-top:hover {
     transform: scale(1.1);
     box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4);
 }

 .scroll-to-top:active {
     transform: scale(0.95);
 }

 /* Footer */
 footer {
     background: var(--bg-dark);
     color: var(--text-light);
     text-align: center;
     padding: 2rem 0;
     border-top: 1px solid rgba(255, 255, 255, 0.1);
 }

 /* Animations */
 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0px);
     }

     50% {
         transform: translateY(-20px);
     }
 }

 @keyframes slideIn {
     to {
         opacity: 1;
         transform: translateX(0);
     }
 }

 /* Responsive Design */
 @media (max-width: 1024px) {
     .about-image img {
         max-width: 250px;
     }

     .resume-button-mobile {
         display: inline-block;
     }
 }

 .resume-button-mobile {
     display: none;
     margin-top: 1rem;
     padding: 1rem 2rem;
     background: rgba(255, 255, 255, 0.9);
     color: var(--primary-color);
     text-decoration: none;
     border-radius: 50px;
     font-weight: 600;
     transition: all 0.3s ease;
     backdrop-filter: blur(10px);
     border: 2px solid rgba(255, 255, 255, 0.5);
     animation: fadeInUp 1s ease 0.8s both;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

 .resume-button-mobile:hover {
     background: rgba(255, 255, 255, 1);
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
 }

 @media (max-width: 768px) {
    .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
     .resume-button-mobile {
         display: flex;
         flex-direction: column;
         align-items: center;
         gap: 1rem;
     }

     .hero-content {
         justify-items: center;
     }

     .logo {
         display: none;
     }

     .mobile-menu-btn {
         display: flex;
     }

     .nav-links {
         position: fixed;
         top: 0;
         right: -100%;
         height: 100vh;
         width: 250px;
         background: rgba(255, 255, 255, 0.98);
         backdrop-filter: blur(20px);
         flex-direction: column;
         justify-content: flex-start;
         align-items: center;
         padding-top: 80px;
         gap: 2rem;
         transition: right 0.3s ease;
         box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
         z-index: 1000;
     }

     .nav-links.active {
         right: 0;
     }

     .nav-links li {
         opacity: 0;
         transform: translateX(50px);
         animation: slideIn 0.3s ease forwards;
     }

     .nav-links.active li {
         animation-delay: calc(var(--i) * 0.1s);
     }

     .nav-links li:nth-child(1) {
         --i: 1;
     }

     .nav-links li:nth-child(2) {
         --i: 2;
     }

     .nav-links li:nth-child(3) {
         --i: 3;
     }

     .nav-links li:nth-child(4) {
         --i: 4;
     }

     .nav-links li:nth-child(5) {
         --i: 5;
     }

     .nav-links li:nth-child(6) {
         --i: 6;
     }

     .resume-button {
         margin-left: 0;
         margin-top: 1rem;
     }

     .hero h1 {
         font-size: 2.5rem;
     }

     .hero .subtitle {
         font-size: 1.2rem;
     }

     .about-content {
         grid-template-columns: 1fr;
         text-align: center;
         gap: 2rem;
     }

     .about-image img {
         max-width: 200px;
     }

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

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

     .experience-item {
         margin-left: 0;
     }

     .experience-item:hover {
         transform: translateY(-5px);
     }
 }


 @media (max-width: 480px) {
     .scroll-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
     .about-image img {
         max-width: 150px;
     }

     .hero h1 {
         font-size: 2rem;
     }

     .hero .subtitle {
         font-size: 1rem;
     }

     .hero .subtitle2 {
         font-size: 0.9rem;
     }

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

     .container {
         padding: 0 1rem;
     }

     .nav-container {
         padding: 0 1rem;
     }
 }

 /* Scroll animations */
 .fade-in {
     opacity: 0;
     transform: translateY(30px);
     transition: all 0.6s ease;
 }

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