/* General Styles */
body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    background-color: #0E0F19; 
    color:#F9F6F1; 
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}


/* Default styles for large screens */
body {
    font-size: 16px;
}


/* Preloader styles 
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0E0F19;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

/* Container for the logo 
.logo-container {
    position: relative;
    width: 200px; /* Size of the logo container 
    height: 200px;
}

/* Circular SVG 
.circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg); /* Start the animation from the top 
}

/* Circle stroke animation 
circle {
    stroke-dasharray: 565; /* Circumference of the circle 
    stroke-dashoffset: 565; /* Start with the stroke hidden 
    animation: drawCircle 1.5s linear forwards;
}

/* Logo styling 
.logo-pre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px; /* Smaller size for the logo 
    height: auto;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards 1.5s; /* Fade in after the circle is complete 
}

/* Keyframes for drawing the circle 
@keyframes drawCircle {
    0% {
        stroke-dashoffset: 565; /* Fully hidden 
    }
    100% {
        stroke-dashoffset: 0; /* Fully revealed 
    }
}

/* Animation for fading in the logo 
@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Animation for fading out the preloader 
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}*/

/* Main content */
#content {
    display: block;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Longer fade-in time for content */
}

/* When the content is visible, fade it in */
#content.visible {
    opacity: 1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background-color: #0E0F19;
    opacity: 0.8;
    transition: top 0.3s; /* Smooth transition for showing and hiding */
    position: fixed;
    width: 95%; /* Full width */
    top: 0; /* Initially at the top */
    z-index: 1000;
    transition: transform 0.3s;
}


.navbar.hidden {
    top: -100px; /* Hide the navbar when scrolling down */
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #D49A6A; /* Sky blue */
}

.favlogo {
    width: 32px; /* Adjust to your desired size */
    height: auto;
}

.favlogo:hover {
    transform: scale(1.1);
    transition: transform 0.5s ease-in-out;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar ul li a {
    text-decoration: none;
    color: #F9F6F1;
    font-size: 1rem;
    transform: scale(1); /* Initial scale should be 1 */
    transition: transform 0.5s ease-in-out, color 0.3s; /* Combine transitions */
}

.navbar ul li a:hover {
    color: #E0B98A; /* Adjust hover color */
    transform: scale(1.2); /* Apply scaling */
}


.resume-button {
    padding: 10px 20px;
    border: 1px solid #F9F6F1;
    color: #F9F6F1;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transform: scale(1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease-in-out;
}

.resume-button:hover {
    background-color: #E0B98A;
    border: 1px solid #E0B98A;
    color: #F9F6F1;
    transform: scale(1.2);
}


/* Hero Section */
.hero-section {
    text-align: left;
    padding: 100px 200px 170px 200px;
}

.hero-section .intro {
    font-size: 1.2rem;
    color: #E0B98A; 
}

.hero-section .name {
    font-size: 3rem;
    font-weight: bold;
    color: #F9F6F1;
    margin: 20px 0;
}

.hero-section .tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #E5DED7; /* Muted gray */
    margin: 20px 0;
    text-decoration: none;
}

.hero-section .tagline01 {
    font-size: 1.9rem;
    font-weight: 300;
    color:#C6B8A9; /* Muted gray */
    margin: 20px 0;
    text-decoration: none;
}

.tagline01 {
    position: relative;
    display: inline-block;
    cursor: pointer;
    
}

.tagline01::after {
    content: '';
    position: absolute;
    bottom: 0; /* Adjust the line position relative to the text */
    left: 0;
    height: 2px; /* Line thickness */
    width: 100%;
    background-color: #E0B98A; /* Line color */
    transform: scaleX(0); /* Start with no width */
    transform-origin: left; /* Start drawing from the left */
    transition: transform 0.3s ease-in-out;
}

.tagline01:hover::after {
    transform: scaleX(1); /* Full width on hover */
}

.hero-section .tagline011 {
    font-size: 1.9rem;
    font-weight: 300;
    color:#0E0F19; /* Muted gray */
    margin: 20px 0;
    text-decoration: none;
}

.tagline011 {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #0E0F19;
    
}

.tagline011::after {
    content: '';
    position: absolute;
    bottom: 0; /* Adjust the line position relative to the text */
    left: 0;
    height: 2px; /* Line thickness */
    width: 100%;
    background-color: #0E0F19; /* Line color */
    transform: scaleX(0); /* Start with no width */
    transform-origin: left; /* Start drawing from the left */
    transition: transform 0.3s ease-in-out;
}

.tagline011:hover::after {
    transform: scaleX(1); /* Full width on hover */
}

.hero-section .tagline011 {
    font-size: 1.9rem;
    font-weight: 300;
    color:#0E0F19; /* Muted gray */
    margin: 20px 0;
    text-decoration: none;
}

.tagline012 {
    position: relative;
    display: inline-block;
    cursor: pointer;
   
    
}

.tagline012::after {
    content: '';
    position: absolute;
    bottom: 0; /* Adjust the line position relative to the text */
    left: 0;
    height: 1px; /* Line thickness */
    width: 100%;
    background-color: #E0B98A; /* Line color */
    transform: scaleX(0); /* Start with no width */
    transform-origin: left; /* Start drawing from the left */
    transition: transform 0.3s ease-in-out;
}

.tagline012:hover::after {
    transform: scaleX(1); /* Full width on hover */
    color: #E0B98A;
}

.hero-section .tagline02 {
    font-size: 18px;
    font-weight: 300;
    color: #C6B8A9; /* Muted gray */
    margin: 20px 0;
    text-decoration: none;
}

.hero-section .tagline02:hover{
    text-decoration:underline;
}

.hero-section .tagline03 {
    font-size: 20px;
    font-weight: 400;
    color: #0E0F19; /* Muted gray */
    margin: 20px 0;
    text-decoration: none;
}

.hero-section .tagline03:hover{
    text-decoration:none;
}



.hero-section .description {
    font-size: 1rem;
    color: #F9F6F1;
    margin: 20px auto;
    max-width: 600px;
    text-align: left;
}

.hero-section .description a {
    color: #D49A6A; /* Sky blue */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.hero-section .description a:hover {
    color: #C6B8A9; /* Muted gray */
}

.cta-button {
    padding: 10px 20px;
    border: 1px solid #D49A6A;
    color: #D49A6A;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
    background-color: #D49A6A;
    color: #0E0F19; /* Deep navy */
}

/* Custom Colors */
.custom-background {
    background-color: #1C1F26; /* Light navy */
}

.custom-border {
    border: 1px solid #3E3E3E; /* Even lighter navy */
}

.custom-button {
    background-color: #3E3E3E; /* Slightly darker navy button */
    color: #F9F6F1; /* Light gray text */
}

.custom-hover {
    color: #D49A6A; /* Sky blue on hover */
}

ul {
    column-count: 2;
    column-gap: 20px; /* Adjust gap between columns */
    padding: 5px 0px 5px 70px;
    list-style-type:disc; /* Optional to remove bullets */
    text-align: justify;
}

li {
    padding-bottom: 8px; /* Optional for spacing between list items */
}

li:hover{
    color: #D49A6A; 
    transition: transform 0.3s, color 0.3s;
    cursor: default;
}

#about {
    margin-top: -50px;
    margin-bottom: -100px; /* Removes bottom margin */
}

#work {
    margin-top: 0; /* Removes top margin */
    margin-bottom: -70px;
}

#work {
    margin-top: 0; /* Removes top margin */
    margin-bottom: -85px;
}

#words{
    transition: transform 0.3s ease;
}

#words:hover{
    transform: scale(1.01);
}

.tech-buttons {
    display: flex;
    justify-content: space-evenly; /* Distributes buttons evenly across the container */
    flex-wrap: wrap; /* Allows buttons to wrap to the next line if necessary */
    margin-top: 20px;
}

.tech-btn {
    padding: 10px 26px;
    font-size: 1rem;
    color: #0E0F19;
    background-color: #E8E1DB; 
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease;
    transition:transform 0.3s;
}

.tech-btn:hover {
    
    transform: scale(1.05);
    background-color: #E0B98A ;
    color: #0E0F19;
}

.education-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }


  .card {
    background-color: #D2C9BF;
    border: 1px solid #D2C9BF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    transition: background-color 0.3s ease;
  }
  
  /*
  .card:hover {
    transform: translateY(-12px);
    
  } */
  
  .card-header {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #D2C9BF;
    transition: background-color 0.3s ease;
  }
  
  .card-header .logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 20%; /* Makes the image circular */
    object-fit: cover; /* Ensures the image fills the circle without distortion */
  }
  
  
  .card-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #0E0F19;
  }
  
  .card-header span {
    font-size: 1rem;
    color: #0E0F19;
  }
  
  .card-header .year {
    margin-left: auto;
    
  }

  .card-body {
    padding: 15px;
    font-size: 1rem;
    color: #0E0F19;
    transition: background-color 0.3s ease;
  }

  .card-body p {
    margin: 0;
    color: #0E0F19;

  }

  .card-light:hover {
    transform: translateY(-12px);
    background-color: #3E3E3E; /* Light effect for the whole card */
}
  

/*Projects worked on section*/
#projects {
    padding: 20px;
    background-color: #1C1F26;
  }
  
  #projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0E0F19;
  }
  
  .project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  
  .project-item {
    display: flex;
    flex-direction: row; /* make it horizontal inside the card */
    align-items: stretch;
    width: 100%; /* increase width relative to container */
    max-width: 1000px; /* wider cards */
    height: 400px; /* reduce vertical height */
    margin: 0 auto;
    background-color: #1C1F26;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
  }
  
  
  .project-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .project-item p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #F9F6F1;
  }
  
  .project-item a {
    color: #F9F6F1;
    text-decoration: none;
  }

  .project-item:hover {
    transform:scale(1.1);
  }
  
  .project-item a:hover {
    text-decoration: underline;
  }

  .project-item {
    display: flex;
    flex-direction: row; /* image left, content right */
    align-items: stretch;
    width: 90%;
    max-width: 1000px;
    height: 450px;
    margin: 0 auto;
    background-color: #D2C9BF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
  }
  
.project-item:hover {
    transform: scale(1.02); /* Slight zoom on hover */
}

.project-image {
    width: 40%; /* left side image */
    height: 100%;
    overflow: hidden;
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  }
  
  .project-item:hover .project-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
  }
  

  .project-details {
    width: 60%; /* right side content */
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
  }
  

  .project-details h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #0E0F19;
  }
  
  .project-details p {
    margin: 5px 0;
    color: #0E0F19;
  }
  
  .project-details a {
    margin-top: 15px;
    color: #0E0F19;
    text-decoration: none;
  }
  
  .project-details a:hover {
    text-decoration: underline;
  }
  

  .view-code-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: bold;
    color: #0E0F19;
    background-color: #D49A6A;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    transition: transform 0.3s ease;
  }
  
  .view-code-btn:hover {
    transform: scale(1.05);
    /* background-color: #C6B8A9; */
  }
  
  .project-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  

  


/* Get in touch section */
.social-media {
    text-align: center; /* Ensures content is centered */
    margin-top: 10px;
    display: flex;
    justify-content: center; /* Centers items horizontally */
    gap: 20px; /* Adds space between icons */
    flex-wrap: wrap; /* Ensures the icons wrap if the screen is small */
}

.social-media a {
    display: inline-flex; /* Allows items to be aligned horizontally */
    align-items: center; /* Vertically aligns text with the image */
    text-decoration: none; /* Removes underline */
    color: #F9F6F1; /* Default color for text */
    font-size: 16px;
    transition: color 0.3s ease; /* Smooth transition for color change */
}

.social-media a img {
    width: 40px; /* Adjust the size of the icons */
    height: 40px;
    margin-right: 10px; /* Adds space between icon and text */
    transition: filter 0.3s ease; /* Smooth transition for image color change */
}

.social-media a:hover {
    color: #D49A6A; /* Changes text color on hover */
}

.social-media a:hover img {
    filter: brightness(1.5); /* Increases brightness of image on hover for a lighter effect */
}

.social-media a:focus, .social-media a:active {
    color: #fff; /* Ensures color change on click/focus */
}

.social-media span {
    font-size: 17px;
}

.social-media {
    text-align: center;
    margin-top: 10px;
}

.social-media a {
    text-decoration: none; /* Remove underline */
    margin: 0 15px; /* Add spacing between links */
    font-size: 24px; /* Size of icons */
    color: #F9F6F1; /* Default icon color */
    transition: color 0.3s ease; /* Smooth hover effect */
    transition: transform 0.3s;
}

.social-media a:hover {
    /*color: #00acee;  Light blue for hover (change as per your theme) */
    transform: scale(1.1);
}

.social-media i {
    font-size: 30px;
    color: #F9F6F1; /* Light color for dark themes */
    margin: 0 10px;
    transition: transform 0.3s;
}

.social-media i:hover {
    /* color: #007BFF;  Light color or hover effect */
    transform: scale(1.1);
}

.mobile-only{
    display: none;
}


/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3E3E3E;
    color: #F9F6F1;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    cursor: pointer;
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: #D49A6A;
    transform: scale(1.1); /* Slight zoom effect */
}

@media screen and (max-width: 768px) {

    .logo-pre {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 28px; /* Smaller size for the logo */
        height: auto;
        opacity: 0;
        animation: fadeIn 0.5s ease-in-out forwards 1.5s; /* Fade in after the circle is complete */
    }
    .navbar {
        display: none;
    }
    .nav-links {
        display: none; /* Initially hide the navigation */
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex; /* Show the navigation when active */
    }

    .hamburger {
        display: flex; /* Show hamburger menu on small screens */
    }

    .hero-section {
        text-align: center; /* Center align text for smaller screens */
        padding: 12px; /* Reduced padding for better fit */
      }

    .hero-section01 .intro{
        font-size: 1.9rem !important;
        text-align: center;
    }

    .hero-section01 .name{
        font-size: 3.5rem !important;
        text-align: center;
    }

    .hero-section01 .tagline{
        font-size: 1.5rem !important;
        text-align: center;
    }


    .hero-section .tagline01{
        font-size: 2.1rem !important;
        text-align: center;
    }

    #words{
        font-size: 1.4rem !important;
        text-align: center;
    }

    .tagline{
        font-size: 1.25rem !important;
    }

    .tagline03{
        font-size: 1.3rem !important;
    }

    #about {
        margin-top: 115px;
        margin-bottom: 60px; /* Removes bottom margin */
    }
    
    #work {
        margin-top: 50; /* Removes top margin */
        margin-bottom: 60px;
    }
    
    #contact {
        margin-top: 50px; /* Removes top margin */
        margin-bottom: 60px;
    }

    .social-media {
        display: flex;
        flex-direction: row;
        justify-content: justify;
        gap: 13px;
    }

    .card-header .year01 {
        margin-top: 5px; /* Add spacing if needed */
        display: block; /* Ensure it takes the full width */
        text-align: center; /* Align the year to the left */
    }

      .mobile-only{
        display: block !important;
        padding: 8px !important;
        border: 1px solid #F9F6F1 !important;
        color: #F9F6F1 !important;
        border-radius: 8px !important; 
        text-decoration: none;
        font-size: 0.8rem !important;
        box-sizing: border-box;
    }

    .mobile-only:hover {
        background-color: #F9F6F1 !important;
        border:#F9F6F1 !important;
        color: #0E0F19 !important; /* Deep navy */
    }

    .project-item {
        flex-direction: column;
        height: auto;
      }
    
      .project-image {
        width: 100%;
        height: 200px;
      }
    
      .project-details {
        width: 100%;
        padding: 20px;
        text-align: center;
      }

      .hero-section .mobile-only {
        display: block;
        margin: 20px auto;
        text-align: center;
    }
    
    .hero-section .mobile-only .resume-button {
        display: inline-block;
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .project-item {
        flex-direction: column;
        height: auto;
        margin-bottom: 20px;
    }
    
    .project-details {
        text-align: center;
    }
}
