html {
    scroll-behavior: smooth;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
  }

nav ul {
    list-style: none;      
    display: flex;         
    gap: 50px;            
    padding: 0;
    margin: 0;
    justify-content: flex-end;
    font-size: 24px;
    margin-right: 60px;
  }

  nav ul li a {
    text-decoration: none; 
    font-weight: bold;
    color: #fff;
    display: inline-block;

  }
  nav ul li a:hover {
    color: #00A7E1;
    transform: scale(1.1);
  }

  .logo img{
    height: 110px;
    width: auto;
    margin: 0;
    padding: 0;
    transition: transform 0.3s ease;
  }
  .logo img:hover {
    transform: scale(1.05);
  }
  
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;  
    padding: .1rem 1rem;
    background-color: #1d499b;
    margin: 0;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
  }
  

  .projects {
    background: #F9F4EF;
    padding: 1.4rem 1rem;
  }

    h2 {
    text-align: center;
    font-size: 46px;
    color: #1D499B;
    font-weight: bold;
    margin-top: 0;
    padding-top: 0;
  }


  /* ------------------------Swiper Styles ----------------------*/
  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
  }

  .contact-icons {
    color: #1D499B;
  }
  .cic {
    color: #1D499B;
     text-decoration: none;
     font-weight: 600;
     border-bottom: 2px solid transparent;
     transition: color 0.3s ease, border-bottom-color 0.3s ease;
  }
  .cic:hover {
    color: #00A7E1;
  }
  
  .swiper {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
  }
  
  .swiper-slide {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
  }
  
  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  
/*  ---------------------- Slider Styles ------------------------ */

.slide-content {
    position: relative;
    height: 100%;
  }
  .slide-content img:hover {
    transform: scale(1.1);

  }
  
  .slide-content img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
  }
  
  .learn-more-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1D499B;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 50px;
  }
  .card-btn {
    background-color: #1D499B;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 50%;

  }
  
  .learn-more-btn:hover {
    background-color: #00A7E1;
    transform: translateX(-50%) scale(1.05);
  }

  .portfolio-all {
    text-align: center;
    margin-top: 2rem;
  }
  
  .portfolio-all-btn {
    background-color: #1D499B; 
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: inline-block;
  }
  
  .portfolio-all-btn:hover {
    background-color: #00A7E1;
    transform: scale(1.05);
  }



  .swiper-button-next,
  .swiper-button-prev {
    width: 48px;
    height: 48px;
    color: #1D499B; 
    font-size: 48px; 
    font-weight: 700;
  }

  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    color: #FFF; 
  }


  .slide-content > a.learn-more-btn:first-of-type {
    display: block;
  }

  /*----------------------- Experience Section -------------------- */

  .experience {
    background-color: #DDE4F0;
    padding: 2rem 1rem;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
  }
  
  
  
  .experience h2 {
    color: #1D499B;
    margin-bottom: 1.8rem;
  }
  

  .timeline-item.left {
    left: 0;
    text-align: right;
  }
  
  .timeline-item.right {
    left: 50%;
    text-align: left;
  }
  

  .timeline-content h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1A1A1A;
    text-align: center;
  }
  
  .timeline-content span {
    display: block;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  .timeline-content p {
    font-size: 1rem;
    color: #333;
    text-align: center;
  }

  .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #1D499B;
    transform: translateX(-50%);
  }
  
  .experience-btn-cont {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .resume-btn {
    background-color: #1D499B;
    color: #FFFFFF;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .resume-btn:hover {
    background-color: #00A7E1;
    transform: scale(1.05);
  }
  

  .timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  .timeline-track {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #1D499B;
    transform: translateX(-50%);
    z-index: 0;
  }
  
  .timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 2rem 2rem 2rem;
    box-sizing: border-box;
  }
  
  
  .timeline-content {
    position: relative;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
  }
  .timeline-content:hover {
    transform: translateY(-5px);                     
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); 

  }
 
  /* --------------------------------------------------------- About Me -------------------------------------------------------------------------*/


  .about-me {
    background-color: #FFE8D6; 
    padding: 2rem 1rem;
    font-family: 'DM Sans', sans-serif;
    color: #1D499B;
  }
  
  .about-container {
    display: flex;
    align-items: center;
    max-width: 80%;
    margin: 0 auto;
    gap: 2rem;
    flex-wrap: wrap; 
  }
  
  .about-image {
    flex: 0 0 18%;
  }
  
  .about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .about-image img:hover{
    transform: scale(1.04); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  
  .about-text {
    flex: 1 1 70%;
  }
  
  .about-text h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
  }
  
  .about-text p {
    line-height: 1.6;
    font-size: 1.1rem;
  }
  

/* ---------------------------------- Contact Styles -------------------------------------------------- */

.contact-form {
    background:#FFFFFF;
    padding: 2rem 1rem;
    font-family: 'DM Sans', sans-serif;
  
}

.contact-form .social-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
  }
  
  .contact-form .card {
    flex: 1 1 200px;
    max-width: 280px;
    background: #F9F4EF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .contact-form .card .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
  
  .contact-form .card h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
    color: #1D499B;
  }
  
  .contact-form .card-btn {
    display: inline-block;
    background-color: #00A7E1 !important;
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .contact-form .card-btn:hover {
    background-color: #1d499b !important;
  }
  .contact-form .card:hover {
    transform: translateY(-5px);       
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);

  }



  .contact-form-simple {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-form-simple input,
  .contact-form-simple textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #CCC;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
  }
  
  .contact-form-simple button {
    width: fit-content;
    background-color: #1D499B;
    color: #FFFFFF;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .contact-form-simple button:hover {
    background-color: #00A7E1;
    transform: scale(1.02);
  }
  
 /* ----------------------------------------------- Footer ---------------------------------------------- */

 footer {
    background-color: #1d499b;
    height: 200px;
  }
  .footer-nav {
    display: flex;             
    justify-content: center;   
    gap: 1rem;                 
    margin-bottom: 1rem;       
  }
  
  .footer-nav a {
    padding: 0.25rem 0.5rem;
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
  }
  .footer-nav a:hover {
    color: #00A7E1;      
    transform: scale(1.05);
    text-decoration: none
  }
  
  
  .site-footer {
    background-color: #1D499B;
    color: #FFFFFF;
    text-align: center;
    padding: 2rem 1rem;
    font-family: 'DM Sans', sans-serif;
  }
  
  .footer-nav a {
    margin: 0 .2rem;
    color: inherit;
    text-decoration: none;
  }
  
  .footer-social a {
    margin: 0 0.75rem;
    display: inline-block;
  }
  
  .footer-social img {
    width: 24px;
    height: auto;
    filter: invert(100%);
  }
  
  .footer-legal {
    margin-top: 1rem;
    font-size: 0.875rem;
  }
  
  .footer-legal a {
    color: #00A7E1;
    margin-left: 1rem;
  }
  
  .social-icon {
    display: flex;
    align-items: center;       
    justify-content: center;  
    width: 48px;
    height: 48px;
    background-color: #F9F4EF;
    color: #1D499B;
    border-radius: 50%;
  }
  
  .social-icon i {
    font-size: 1.5rem;
    line-height: 1;           
    
  }

  .social-icon:hover {
    background-color: #1D499B;        
    color: #FFFFFF;                    
    transform: scale(1.1);
  }
  .footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .social-icon {
    font-size: 1.8rem;      
    color: #1D499B;;           
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
  }
  
  .social-icon:hover {
    color: #00A7E1;           
    transform: scale(1.1);
  }
  
  /* -------------------------- Back to top ------------------------------ */

  #back-to-top {
    position: fixed;
    bottom: 48px;
    right: 48px;
    display: none;
    padding: 1rem;
    background: #1D499B;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s;
  }
  #back-to-top.show { display: block; opacity: 0.8; }
  #back-to-top:hover { opacity: 1; }
  


.all-projects {
    background-color: #F9F4EF;
    padding: 4rem 2rem;
    text-align: center;
  }
  
  .all-projects h2 {
    color: #1D499B;
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  /*----------------------------------------- All Projects Page ------------------------------------------- */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .project-card img:hover {
    transform: scale(1.05);
  }
.slide-btns,
.card-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;             
  margin-top: 1rem;
}
  
  .project-card h3 {
    padding: 1rem;
    font-size: 1.25rem;
    color: #1D499B;
    flex-grow: 1;
  }
  
  .project-card .card-btn {
    width: 50%;          
    max-width: 160px;
    margin: 1rem auto;    
    text-align: center;
    background-color: #1D499B;
    color: #FFFFFF;
    padding: 0.5rem 0;
    border-radius: 3px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #FFFFFF;
    border: 2px solid #DDE4F0;  
    border-radius: 12px;        
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .project-card .card-btn:hover {
    background-color: #00A7E1;
    transform: scale(1.05);
  }


  /* ---------------------------------------- Mobile Design ----------------------------------- */




@media (max-width: 800px) {
    .about-image {
        display: none;
      }
    
    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
      }
    
    .about-container h2 {
        font-size: 1.75rem;
      }
    
    .about-container .about-text {
        max-width: 100%;
        font-size: 1rem;
      }
    h2 {
        font-size: 32px;
      }
    .about-text p {
        font-size: 1rem;
    }
    .about-container {
        max-width: 95%;
    }
    .timeline {
        padding: 1rem;
      }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        text-align: left;
        margin-bottom: 2rem;
      }
    .slide-content {
        display: flex;
        flex-direction: column;
      }
    .slide-content .learn-more-btn {
        position: static;
        transform: none;
        margin: 1rem auto;
      }
    
    .main-nav ul {
        display: none;
      }
    .main-nav .logo {
        display: flex;
        justify-content: center;
        width: 100%;
      }
    .main-nav .logo a {
        margin: 0 auto;
        max-width: 160px;
      }
    .main-nav .logo img {
        display: block;
        max-width: 100%;
        height: auto;
        transition: transform 0.3s ease;
      }
    .main-nav .logo img:hover {
      transform: scale(1.05);
      }
    
      #back-to-top {
        display: none !important;
      }  
  }
  
  
  