/* :root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44db;
    --dark-color: #2f2e41;
    --light-color: #f8f9fa;
    --accent-color: #ff6584;
    --text-color: #333;
    --text-light: #777;
} */
:root {
    --primary-color: #690dd3;      /* IBM Blue */
    --secondary-color: #310774;    /* Darker Blue */
    --dark-color: #121212;         /* Deep Dark Background */
    --light-color: #f4f4f4;        /* Light Gray for backgrounds */
    --accent-color: #ff6f61;       /* Coral-ish red for call-to-actions */
    --text-color: #1c1c1c;         /* Almost black for text */
    --text-light: #6c757d;         /* Muted text color */
}


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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafafa;
}

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

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--dark-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

p {
    color: var(--text-light);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(108, 99, 255, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.logo a{
   
    font-size: 1.1rem;
    font-weight: 700;
    underline: none;
    text-decoration: none;
    color: var(--primary-color);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    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(--primary-color);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.profile-photo {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: left;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* About Section */
.about {
    background: white;
}

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

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.coding-profiles {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
}

.coding-profiles h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.coding-profiles ul {
    list-style: none;
}

.coding-profiles li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.coding-profiles i {
    margin-right: 10px;
    color: var(--primary-color);
}

.education {
    flex: 1;
}

.education-item {
    display: flex;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.education-icon {
    margin-right: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.education-details h4 {
    margin-bottom: 5px;
}

.institution {
    font-weight: 500;
    color: var(--text-color);
}

.details {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Achievements Section */
.achievements {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

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

.achievement-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.achievement-card h3 {
    margin-bottom: 15px;
}

/* Experience Section */
.experience {
    background: white;
}

.experience-item {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.experience-item h4 {
    margin-bottom: 15px;
    font-weight: 500;
}

.date {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.experience-item ul {
    margin-left: 20px;
}

.experience-item li {
    margin-bottom: 10px;
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

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

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

/* .project-card:hover .project-image img {
    transform: scale(1.1);
} */

.project-content {
    padding: 25px;
}

.project-content h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.project-content p {
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: #e0e0ff;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.github-link,
.demo-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.github-link:hover {
    color: var(--primary-color);
}

.demo-link:hover {
    color: var(--accent-color);
}

/* Skills Section */
.skills {
    background: white;
}

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

.skill-category {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f3f4f6;
    padding: 8px 15px;
    border-radius: 20px;
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .certificate-link:hover {
    background-color: #6c63ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 99, 255, 0.2);
  }
  
  .certificate-link i {
    font-size: 1.1rem;
  }

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

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

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0ff;
    border-radius: 50%;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background: var(--light-color);
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 30px 0;
}

footer p {
    color: rgb(0, 0, 0);
}

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

    .hero-text {
    padding-right: 0;
    margin-bottom: 50px;
    }

    .hero h2 {
    text-align: center;
    }

    .hero p {
    margin: 0 auto 30px;
    }

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

    .about-content {
    flex-direction: column;
    }

    .contact-content {
    flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
    display: none;
    }

    h2 {
    font-size: 2rem;
    }

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

    .hero h2 {
    font-size: 1.5rem;
    }

    .profile-photo {
    width: 250px;
    height: 250px;
    }

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

/* Dropdown Container */
.dropdown {
    position: relative;
  }
  
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 150px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
  }
  
  /* Show on hover */
  .dropdown:hover .submenu {
    display: block;
  }
  
  .submenu li {
    list-style: none;
  }
  
  .submenu li a {
    display: block;
    padding: 10px 20px;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
  }
  
  .submenu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
  }
  .btn-container {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
  }
  
  .animated-btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: pointer;
  }
  
  .animated-btn span {
    position: relative;
    z-index: 1;
  }
  
  .animated-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.4s ease;
  }
  
  .animated-btn:hover::before {
    left: 0;
  }
  
  .animated-btn:hover {
    color: #fff;
  }
  
  .animated-btn:hover span {
    padding-left: 20px;
  }
  
  .animated-btn:focus,
  .animated-btn:active {
    outline: none;
    box-shadow: none;
  }
  
  
  /* Base navbar styles */
.navbar {
  background-color: #fff;
  padding: 10px 20px;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  padding: 5px 10px;
}

/* Submenu fix: vertical list */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  padding: 10px;
  white-space: nowrap;
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.dropdown:hover .submenu {
  display: flex;
}

/* Submenu item styling */
.submenu li {
  padding: 5px 0;
}

.submenu li a {
  display: block;
  color: #333;
  white-space: nowrap; /* Keeps full text in one line */
}

/* Responsive */
@media (max-width: 768px) {
  .nav-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .dropdown .submenu {
    position: static;
    display: flex !important;
    box-shadow: none;
    padding-left: 20px;
  }

  .submenu li {
    padding: 5px 0;
  }
}
/* For Mobile */
@media screen and (max-width: 768px) {
    .hamburger {
      display: flex;
    }
  
    .nav-links {
      position: absolute;
      top: 60px;
      right: 0;
      flex-direction: column;
      background-color: white;
      width: 200px;
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      border-radius: 0 0 10px 10px;
    }
  
    .nav-links.open {
      max-height: 500px; /* Adjust height as needed */
      opacity: 1;
      pointer-events: auto;
      transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }
  }
  .project-image {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 25px;
    background-color: #ffffff;
  }
  
  .project-image img {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
  }
  
  /* Hide extra images on small screens */
  @media (max-width: 768px) {
    .hide-on-mobile {
      display: none;
    }
  
    .project-image {
      justify-content: center;
      flex-wrap: wrap;
    }
  
    .project-image img {
      max-width: 90%;
    }
  }
  
    /* Button */
    .video-btn {
        display: inline-block;
        padding: 10px 20px;
        margin-top: 20px;
        background-color: var(--primary-color);
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: 0.3s ease;
      }
  
      .video-btn:hover {
        background-color: var(--secondary-color);
      }
  
      /* Modal Styles */
      #videoModal {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 9999;
        justify-content: center;
        align-items: center;
      }
  
      .modal-content {
        position: relative;
        /* background: white; */
        padding: 20px;
        border-radius: 10px;
        max-width: 800px;
        width: 90%;
        box-shadow: 0 0 20px rgba(0,0,0,0.3);
      }
  
      .modal-content video {
        width: 100%;
        height: auto;
        border-radius: 10px;
      }
      #videoModal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0,0,0,0.7);
        justify-content: center;
        align-items: center;
        padding: 20px;
        box-sizing: border-box;
      }
      
      .modal-content {
        position: relative;
        width: 90%;
        max-width: 800px;
        /* background-color: #fff; */
        border-radius: 10px;
        /* overflow: hidden; */
      }
      
      .modal-content iframe {
        width: 100%;
        height: 400px;
        border: none;
        display: block;
      }
      
      /* 👇 Close Button Styling */
      .close-btn {
        position: absolute;
        top: -18px;
        right: -18px;
        font-size: 28px;
        font-weight: bold;
        color: #ffffff;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1;
      }
      
      .close-btn:hover {
        color: rgb(33, 68, 184);
      }
      .video-btn {
        background:var(--primary-color);
        color: white;
        padding: 14px 28px;
        font-size: 18px;
        font-weight: bold;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        box-shadow: 0 8px 20px rgba(255, 75, 43, 0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        animation: pulse 2s infinite;
      }
      
      .video-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(255, 75, 43, 0.4);
      }
      
      @keyframes pulse {
        0% {
          box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.6);
        }
        70% {
          box-shadow: 0 0 0 15px rgba(255, 75, 43, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
        }
      }
      