/* Base styles and reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.3s ease;
  }
  
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px; /* Account for fixed navbar */
  }
  
  body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
  }
  
  /* Main section styles */
  .main {
    background-color: black;
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  /* Navigation styles */
  .nav {
    background-color: #383737;
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  
  .navbar {
    margin-left: auto;
    display: flex;
    gap: 20px;
  }
  
  .link {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    color: aliceblue;
    font-size: large;
    padding: 18px 10px;
  }
  
  .link a {
    color: aliceblue;
    position: relative;
  }
  
  .link a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #f86f6f;
    transition: width 0.3s ease;
  }
  
  .link a:hover {
    color: #f86f6f;
  }
  
  .link a:hover:after {
    width: 100%;
  }
  
  #Resume {
    color: aliceblue;
    background-color: #f86f6f;
    width: 70px;
    height: 40px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  #Resume:hover {
    background-color: #e45454;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(248, 111, 111, 0.5);
  }
#resume-btn {
  background-color: #ff5722;   /* Bright highlight color */
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

/* Hover effect */
#resume-btn:hover {
  background-color: #e64a19;
  transform: scale(1.05);
}
  
  #symbol {
    background-color: #f86f6f;
    color: aliceblue;
    height: 40px;
    width: 40px;
    border: none;
    cursor: pointer;
    font-size: large;
    font-family: 'Jersey 15';
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(248, 111, 111, 0.3);
    
  }
  .nav a {
    text-decoration: none;
  }
  #symbol:hover {
    transform: rotate(360deg);
    transition: transform 0.7s ease;
    box-shadow: 0 0 15px rgba(248, 111, 111, 0.5);
  }
  
  .menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
  }
  
  /* Hero section styles */
  #name {
    margin: auto;
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1s ease-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .syed {
    color: aliceblue;
    font-family: 'Jersey 15';
    font-size: 80px;
    margin-bottom: -40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .mah {
    color: #f86f6f;
    font-family: 'Jersey 15';
    font-size: 80px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .syed:hover {
    color: #f86f6f;
  }
  
  .mah:hover {
    color: aliceblue;
  }
  
  .mainp {
    color: aliceblue;
    font-family: 'Jersey 15';
    font-size: 25px;
    margin: 20px auto;
    max-width: 400px;
  }
  
  .newp {
    position: relative;
    display: inline-block;
  }
  
  .newp:hover {
    color: #f86f6f;
  }
  
  #icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  #icons a {
    font-size: 30px;
    color: #f86f6f;
    transition: transform 0.3s ease, color 0.3s ease;
  }
  
  #icons a:hover {
    transform: translateY(-5px);
  }
  
  #lin:hover { color: #0077B5; }
  #gi:hover { color: aliceblue; }
  #insta:hover { 
    background-image: linear-gradient(to bottom,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
  }
  #fac:hover { color: #3b5998; }
  #x:hover { color: aliceblue; }
  
  /* About section */
  .about {
    background-color: black;
    width: 100%;
    min-height: 100vh;
    position: relative;
    border-top: 1px #f86f6f solid;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #ab, #sk, #projects, #con {
    color: aliceblue;
    font-family: 'Jersey 15';
    text-decoration: #f86f6f underline;
    font-size: 75px;
    margin-bottom: 60px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  }
  
  .me {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .profile-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
  }
  
  #mine {
    height: 255px;
    width: 255px;
    border: 2px solid #11d1dc;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px rgba(17, 209, 220, 0.3);
  }
  
  #mine:hover {
    transform: rotate(360deg);
    transition: transform 1s ease;
    box-shadow: 0 0 30px rgba(17, 209, 220, 0.5);
  }
  
  .discr {
    flex: 1;
    color: aliceblue;
    text-align: justify;
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.8;
  }
  
  .discr:hover {
    color: #f86f6f;
  }
  
  #sp {
    color: #f86f6f;
    font-weight: bold;
  }
  
  #sp:hover {
    color: #11d1dc;
  }
  
  .spa {
    color: #15cfde;
    font-weight: bold;
  }
  
  .spa:hover {
    color: aliceblue;
  }
  
  /* Skills section */
  .skills {
    background-color: black;
    width: 100%;
    min-height: 100vh;
    position: relative;
    border-top: 1px #f86f6f solid;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .sbox {
    background-color: aliceblue;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(17, 209, 220, 0.2);
  }
  
  .skill-icon {
    height: 80px;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .skill-icon:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Projects Section */
  .projects {
    background-color: black;
    width: 100%;
    min-height: 100vh;
    position: relative;
    border-top: 1px #f86f6f solid;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
  }
  
  .project-card {
    background-color: #222;
    border-radius: 15px;
    padding: 25px;
    color: white;
    border: 1px solid #f86f6f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(248, 111, 111, 0.4);
    border-color: #11d1dc;
  }
  
  .project-title {
    font-family: 'Jersey 15', sans-serif;
    font-size: 24px;
    color: #f86f6f;
    margin-bottom: 5px;
  }
  
  .project-meta {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 10px;
  }
  
  .project-subtitle {
    font-size: 16px;
    color: #11d1dc;
    margin-bottom: 15px;
    font-weight: bold;
  }
  
  .project-details {
    list-style-position: inside;
    padding-left: 10px;
    flex: 1;
  }
  
  .project-details li {
    margin-bottom: 10px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
  }
  
  /* Contact section */
  .contact {
    background-color: black;
    width: 100%;
    min-height: 100vh;
    position: relative;
    border-top: 1px #f86f6f solid;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .cphoto {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: aliceblue;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 500px;
  }
  
  .cphoto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .cphoto:hover img {
    transform: scale(1.05);
  }
  
  .cform {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    background-color: aliceblue;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .input-group {
    position: relative;
    margin-bottom: 20px;
  }
  
  .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    z-index: 1;
  }
  
  .input-group textarea + i {
    top: 20px;
    transform: none;
  }
  
  .cname, .cmail, .cno, .cmess {
    width: 100%;
    padding: 15px 20px 15px 45px;
    border-radius: 10px;
    border: none;
    background-color: #11d1dc;
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
  }
  
  .cname:focus, .cmail:focus, .cno:focus, .cmess:focus {
    box-shadow: 0 0 8px rgba(248, 111, 111, 0.5);
    outline: none;
  }
  
  .cmess {
    height: 120px;
    resize: none;
  }
  
  .sub {
    font-family: Impact, sans-serif;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    color: aliceblue;
    background-color: #67017a;
    cursor: pointer;
    float: right;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(103, 1, 122, 0.3);
  }
  
  .sub:hover {
    background-color: #4a0158;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(103, 1, 122, 0.5);
  }
  
  /* Footer styles */
  footer {
    background-color: #383737;
    color: white;
    padding: 40px 20px 20px;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-section {
    font-size: 16px;
  }
  
  .footer-section strong {
    font-size: 18px;
    margin-bottom: 15px;
    display: block;
    color: #f86f6f;
  }
  
  .footer-social {
    display: flex;
    gap: 20px;
    margin-top: 15px;
  }
  
  .footer-social a {
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
  }
  
  .footer-social a:hover {
    color: #f86f6f;
    transform: translateY(-5px);
  }
  
  .footer-links {
    list-style: disc;
    padding-left: 20px;
    margin-top: 15px;
  }
  
  .footer-links li {
    margin-bottom: 10px;
  }
  
  .footer-links a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .footer-links a:hover {
    color: #f86f6f;
    padding-left: 5px;
  }
  
  .footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 30px auto;
    max-width: 1200px;
  }
  
  .footer-credit {
    text-align: center;
    font-family: 'Jersey 15';
    color: #f86f6f;
    font-size: 20px;
    padding: 10px 0;
  }
  
  /* Smooth transition effects */
  .about, .skills, .projects, .contact {
    animation: sectionFadeIn 1s ease-out;
  }
  
  @keyframes sectionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Media Queries for Responsiveness */
  @media screen and (max-width: 1200px) {
    .syed, .mah {
      font-size: 70px;
    }
    
    #ab, #sk, #projects, #con {
      font-size: 60px;
    }
    
    .projects-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media screen and (max-width: 992px) {
    .me {
      gap: 30px;
    }
    
    #mine {
      height: 220px;
      width: 220px;
    }
    
    .discr {
      font-size: 1.1rem;
    }
    
    .sbox {
      padding: 20px;
    }
    
    .skill-icon {
      height: 70px;
    }
  }
  
  @media screen and (max-width: 768px) {
    .navbar {
      position: fixed;
      top: 60px;
      right: -100%;
      width: 250px;
      height: calc(100vh - 60px);
      background-color: #383737;
      flex-direction: column;
      padding: 20px 0;
      transition: 0.5s;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
      z-index: 999;
    }

    
    .navbar.active {
      right: 0;
    }
    
    .link {
      padding: 15px 25px;
      width: 100%;
      text-align: left;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
      display: block;
      margin-left: auto;
    }
    
    .syed, .mah {
      font-size: 55px;
    }
    
    .mah {
      margin-top: -25px;
    }
    
    #ab, #sk, #projects, #con {
      font-size: 50px;
    }
    
    .mainp {
      font-size: 20px;
    }
    
    .me {
      flex-direction: column;
      text-align: center;
      gap: 30px;
    }
    
    .discr {
      text-align: center;
      padding: 0 15px;
    }
    
    .projects-container {
      grid-template-columns: 1fr;
    }
    
    .contact-container {
      flex-direction: column;
      align-items: center;
    }
    
    .cphoto, .cform {
      width: 100%;
      max-width: 500px;
    }
    .cphoto {
      display: none; /* Hide the contact image on mobile devices */
    }
  }
  
  @media screen and (max-width: 576px) {
    .syed, .mah {
      font-size: 42px;
    }
    
    .mah {
      margin-top: -20px;
    }
    
    #ab, #sk, #projects, #con {
      font-size: 38px;
    }
    
    .mainp {
      font-size: 18px;
    }
    
    #icons {
      gap: 15px;
    }
    
    #icons a {
      font-size: 25px;
    }
    
    #mine {
      height: 180px;
      width: 180px;
    }
    
    .discr {
      font-size: 16px;
    }
    
    .skill-icon {
      height: 60px;
    }
    
    .footer-container {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 25px;
    }
    
    .footer-social {
      justify-content: center;
    }
    
    .footer-links {
      list-style: none;
      padding-left: 0;
    }
    
    .cphoto {
      height: 350px;
    }
  }
  
  @media screen and (max-width: 380px) {
    .syed, .mah {
      font-size: 36px;
    }
    
    .mah {
      margin-top: -15px;
    }
    
    #ab, #sk, #projects, #con {
      font-size: 32px;
    }
    
    .mainp {
      font-size: 16px;
    }
    
    #mine {
      height: 150px;
      width: 150px;
    }
    
    .skill-icon {
      height: 50px;
    }
    
    .project-title {
      font-size: 20px;
    }
    
    .project-details li {
      font-size: 13px;
    }
    
    .cphoto {
      height: 300px;
    }

    
  }
  

  
