/* Modern Dark Theme with Professional Gradients & Animations */

:root {
    --primary: #7928CA;
    --primary-light: #FF0080;
    --secondary: #21D4FD;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --card-bg: rgba(30, 30, 30, 0.5);
    --text: #f0f0f0;
    --nav-text: #f0f0f0;
    --text-muted: #b0b0b0;
    --accent: #3CDEF9;
    --glass-border: rgba(255, 255, 255, 0.1);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }
  
  body {
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
  }
  
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: radial-gradient(circle at top right, rgba(121, 40, 202, 0.1), transparent 60%), 
                radial-gradient(circle at bottom left, rgba(33, 212, 253, 0.1), transparent 60%);
    z-index: -1;
    pointer-events: none;
  }
  
  /* Navigation */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .nav-links {
    display: flex;
    gap: 20px;
  }
  
  .nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-light), var(--secondary));
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover::after {
    width: 100%;
  }
  
  /* Hero Section */
  header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.2), rgba(33, 212, 253, 0.1));
    z-index: -1;
  }
  
  .container {
    max-width: 1200px;
    width: 100%;
  }
  
  header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
  }
  
  header p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
  }
  
  .buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
  }
  
  .btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 8px 20px rgba(121, 40, 202, 0.3);
  }
  
  .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(121, 40, 202, 0.4);
  }
  
  .secondary-btn {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--secondary);
    box-shadow: 0 8px 20px rgba(33, 212, 253, 0.1);
  }
  
  .secondary-btn:hover {
    background: rgba(33, 212, 253, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(33, 212, 253, 0.2);
  }
  
  /* Animated Background */
  .bg-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.2;
  }
  
  /* Section Styling */
  .section {
    padding: 100px 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
  }
  
  .section.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
  }
  
  .section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
  }
  
  .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
  }
  
  /* About Section */
  .about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  
  .about-text {
    flex: 1;
    /*CHANGES*/
    text-align: center;
  }
  
  .about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
  }
  
  .about-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  
  .profile-pic {
    width: 300px;
    height: 480px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
  }
  
  .profile-pic::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    z-index: -1;
  }
  
  /* Skills Section */
  .skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .skill-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(121, 40, 202, 0.2);
  }
  
  .skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .skill-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  /* Projects Section */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(33, 212, 253, 0.2);
  }
  
  .project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 25px;
  }
  
  .project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text);
  }
  
  /*CHANGES*/
  .project-content ul {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
  }

  /*CHANGES*/
  .project-content li {
    margin-left: 19px;
  }

  .project-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
  }
  
  .project-links {
    display: flex;
    gap: 15px;

    /*CHANGES*/
    position: absolute;
    bottom: 20px;
  }
  
  .project-link {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .github-link {
    background: #333;
    color: white;
  }
  
  .demo-link {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
  }
  
  .project-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Certifications Section */
  .certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }

  /*CHANGES*/
  .certificate a{
    text-decoration: none;
  }
  
  .certificate {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  /*CHANGES*/
  .certificate a {
    position: absolute;
    bottom: 10px;
  }
  
  .certificate:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(121, 40, 202, 0.2);
  }
  
  .certificate-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
  }
  
  .certificate-issuer, .certificate-score, .certificate-desc{
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  
  .certificate-date {
    font-size: 0.8rem;
    color: var(--accent);

    /*CHANGES*/
    margin-bottom: 10px;
  }
  
  /* Contact Section */
  .contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .contact-info {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
  }
  
  .contact-icon i {
    color: white;
    font-size: 1.2rem;
  }
  
  .contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }
  
  .contact-details p {
    color: var(--text-muted);
  }
  
  .contact-form {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  }
  
  .form-group {
    margin-bottom: 20px;
  }

  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: var(--text);
  }
  
  .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(121, 40, 202, 0.2);
  }
  
  textarea.form-control {
    resize: vertical;
    min-height: 120px;
  }
  
  .submit-btn {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
  }
  
  .submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(121, 40, 202, 0.3);
  }
  
  /* Footer */
  footer {
    background: var(--darker-bg);
    padding: 50px 0 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
  }
  
  .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
  }
  
  .social-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 5px 15px rgba(121, 40, 202, 0.3);
  }
  
  .footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 20px;
  }
  
  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeInUp {
    from { 
      opacity: 0;
      transform: translateY(30px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideIn {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  
  /* Floating animation for elements */
  .float {
    animation: floating 3s ease-in-out infinite;
  }
  
  @keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
  }
  
  /* Responsive Design */
  @media (max-width: 1200px) {
    .projects-grid {
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
  }
  
  @media (max-width: 992px) {
    header h1 {
      font-size: 3rem;
    }
    
    .about-content {
      flex-direction: column;
    }
    
    .about-image {
      margin-top: 40px;
    }
    
    .skill-card {
      padding: 20px;
    }
  }
  
  @media (max-width: 768px) {
    header h1 {
      font-size: 2.5rem;
    }
    
    header p {
      font-size: 1.2rem;
    }
    
    .buttons {
      flex-direction: column;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }
    
    .btn {
      width: 100%;
    }
    
    .section {
      padding: 60px 5%;
    }
    
    .section-title h2 {
      font-size: 2rem;
    }
    
    .projects-grid {
      grid-template-columns: 1fr;
    }
    
    .certificate {
      padding: 20px;
    }
  }
  
  @media (max-width: 576px) {
    nav {
      padding: 10px 5%;
    }
    
    .logo {
      font-size: 1.2rem;
    }
    
    .nav-links {
      gap: 10px;
    }
    
    header h1 {
      font-size: 2rem;
    }
    
    header p {
      font-size: 1rem;
    }
    
    .section-title h2 {
      font-size: 1.8rem;
    }
    
    .skills-container {
      grid-template-columns: 1fr;
    }
  }
  
  /* Dark Mode Toggle */
  .theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
  }
  
  .theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(121, 40, 202, 0.3);
  }
  
  .theme-toggle i {
    font-size: 1.5rem;
    color: var(--text);
  }
  
  /* Preloader */
  .preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
  }
  
  .preloader.hidden {
    opacity: 0;
    visibility: hidden;
  }
  
  .loader {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  .loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 3px solid transparent;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Scroll to Top Button */
  .scroll-top {
    position: fixed;
    bottom: 30px;
    right: 90px;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .scroll-top.visible {
    opacity: 1;
    visibility: visible;
  }
  
  .scroll-top:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(121, 40, 202, 0.3);
  }
  
  .scroll-top i {
    font-size: 1.5rem;
    color: var(--text);
  }
  
  /* Cursor trail effect */
  .cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: 9999;
    opacity: 0;
  }





  @media (max-width: 520px) {
    .nav-links a {
      font-size: 0.9rem; /* Adjust this value as needed */
    }
  }
  
  @media (max-width: 480px) {
    .nav-links a {
      font-size: 0.75rem; /* Adjust this value as needed */
    }
  }
  
  @media (max-width: 400px) {
    .nav-links a {
      font-size: 0.7rem; /* Adjust this value as needed */
    }
  }

  @media (max-width: 380px) {
    .nav-links a {
      font-size: 0.65rem; /* Adjust this value as needed */
    }
  }