
:root {
    /* --navbar-color: #a9a2e6;
    --navbar-hover-color: rgb(204, 177, 222); */
    --navbar-color: rgb(204, 202, 202);
    --navbar-hover-color: white;
}
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 10vh; /*because our header is fixed and header height is 10vh*/
}

body {
    margin: 0;
    height: 100vh;
    background-color: #000; 
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 4px 4px;
    font-family: 'Poppins', sans-serif;
}

/* styling for nav bar*/
/* .header {
    margin: 0;
    height: 10vh;
    width: 100%;
    background-color: rgb(0, 0, 0);
    display: flex;
    align-items: center; 
    position:fixed;
} Previous code */

.header {
    margin: 0;
    height: 10vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* transparent backgorund lai */
    display: flex;
    align-items: center; 
    position: fixed;
    top: 0;
    left: 0;
    backdrop-filter: blur(8px); /* Apply blur to background behind the header */
    -webkit-backdrop-filter: blur(8px); /* Safari support */
    z-index: 1000; /* Make sure the header is above other elements */
} 
/* updateed backdrop blur code */



/* -------------------------------navbar styling------------------------------------- */
.navbar {
    margin-left: 10px;
    width: 60%;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.navbar li {
    padding: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: white;
    font-weight: 400px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: white;
    position: relative;
}

.navbar i {
    font-size: 1rem;
    margin-right: 5px;
}

.navbar span {
    position: relative;
    display: inline-block;
    font-size: 0.9em;
    color: white;
    padding: 5px 10px;
    transition: color 0.35s ease;
}

/* Hover/Active underline effect */
.navbar span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--navbar-color);
    transition: width 0.3s ease;
}

/* Hover effects */
.navbar span:hover {
    color: var(--navbar-hover-color);
}

.navbar span:hover::after,
.navbar a.active span,
.navbar a.active span::after {
    color: var(--navbar-hover-color);
    width: 100%;
}

/* Mode change styles */
.mode-change {
    display: flex;
    margin-left: auto;
    margin-right: 30px;
}

.mode-change i {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    transition: transform 1s ease, color 1s ease;
}

.mode-change:hover i {
    transform: rotate(360deg);
    color: yellow;
}

.mode-change a {
    position: relative;
    text-decoration: none;
}

.mode-change a .tooltip {
    visibility: hidden;
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    background-color: #000000;
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 80%;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.mode-change a:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .navbar {
        display: none;
        position: absolute;
        top: 60px;
        right: 0;
        background-color: #6a5acd;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
        z-index: 1000;
    }

    .navbar.active {
        display: flex;
    }

}







.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 100px; 
    min-height: 100vh;
    background-color: #000; /* Black background */
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content {
    max-width: 50%;
    animation: fadeIn 1s ease-in;
}



.greeting {
    font-size: 1.2em;
    color: var(--navbar-color);
    font-weight: bold;
    margin: 0;
}

.hero-content h1 {
    font-size: 4em;
    margin: 10px 0;
    font-weight: bold;
    color: var(--navbar-color);
}

.hero-content .description {
    font-size: 1.5em;
    margin: 20px 0;
    color: #ccc; /* Light gray */
}

.buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    font-size: 1em;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: 0.3s ease;
}

.btn-primary {
    background-color: var(--navbar-color);
    color: black;
}

.btn-secondary {
    background-color: transparent;
    color: #FFF;
    border: 2px solid white;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.4);
}

.hero-image {
    max-width: 40%;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1024px) {
    .hero {
        padding: 20vh 50px 0;
    }
    
    .hero-content h1 {
        font-size: 3em;
    }
    
    .hero-content .description {
        font-size: 1.2em;
    }
    .hero-image {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 20vh 30px 50px; /* Increased top padding for mobile */
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 30px;
        padding-bottom: 0;
    }
    
    .buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 60%;
    }
    .hero-image {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        padding-top: 20vh ; /* Adjusted for smaller screens */
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .hero-content .description {
        font-size: 1em;
    }
    
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 25px;
    }
    
    .hero-image {
        display: none;
    }
}

/* -------------------------about me ----------------------------------------- */
.About-me {
    min-height: 100vh;
    background-color: #000000;
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    background-color: #1a1a1a;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin: 0;
}

.about-description {
    color: #999;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.tab {
    color: #888;
    text-decoration: none;
    padding-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
}

.tab.active {
    color: #ff3366;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #888888;
}

.tab-content {
    min-height: 300px;
    position: relative;
}

.education-content,
.experience-content {
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.education-content.active,
.experience-content.active {
    opacity: 1;
    visibility: visible;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.experience-date {
    color: #ff3366;
    font-size: 1rem;
}

.experience-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
}

.experience-company {
    color: #888;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content h1 {
        font-size: 2rem;
    }
    
    .About-me {
        padding: 4rem 1rem;
    }
}

/* ---------------------------css for tech page ------------------------------ */
.tech {
    min-height: 100vh;
    background-color: #000;
    padding: 2rem;
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.tech-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.tech-content p {
    color: #888;
    margin-bottom: 2rem;
}

.category {
    margin-bottom: 2rem;
}

.category h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s;
}

.card:hover {
    transform: translateY(-6px);
}

.icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .tech {
        padding: 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --------------------------------- css for projects ------------------------------- */
.projects {
    min-height: 100vh;
    background-color: #000;
    padding: 2rem;
}

.projects-content {
    max-width: 1200px;
    margin: 0 auto;
    color: white;
}

.projects-content h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: left;  
}

.projects-content > p {
    color: #888;
    margin-bottom: 2rem;
    text-align: left;  
}

.category {
    margin-bottom: 2rem;
}

.category h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: left;  /* Added explicit left alignment */
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.4s;
}

.project-card:hover {
    transform: translateY(-6px);.project-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.4s;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    color: #ccc;
    font-size: 1.1rem;
    text-decoration: none;
}

.project-title:hover {
    color: #fff;
}

.project-icon {
    height: 50%; /* Adjust the height to your preference */
    width: auto; /* Maintain the aspect ratio */
    transition: transform 0.4s;
}

.project-card:hover .project-icon {
    transform: scale(1.2); /* Slightly enlarge the image on hover */
}

.project-description {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}

  
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-title {
    color: #ccc;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-title:hover {
    color: #fff;
}

.external-link {
    width: 16px;
    height: 16px;
}

/* .project-status-archived{
    background-color: #631d1d;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
}
.project-status-new{
    background-color: #2abc67;
    font-weight: bold;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
} */

.project-description {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
}


@media screen and (max-width: 768px) {
    .projects {
        padding: 8vh 1.5rem 1.5rem;
    }

    .projects-content h1 {
        font-size: 2rem;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .projects {
        padding: 8vh 1rem 1rem;
    }

    .projects-content h1 {
        font-size: 1.8rem;
    }

    .project-card {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.1rem;
    }
}




/* ----------------------------foooter----------------------------------- */

footer {
    background-color: #0b0c10; /* Dark background */
    color: #c5c6c7; /* Light text color */
    padding: 40px 20px 2px;

  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .left-section, .right-section {
    flex: 1;
    min-width: 300px;
  }
  
  .left-section {
    margin-right: 20px;
  }
  
  .left-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .left-section p {
    margin: 10px 0;
    display: flex;
    align-items: center;
  }
  
  .left-section p i {
    margin-right: 10px;
    color: #a8a8a8; /* Icon color */
  }
  
  .social-icons {
    margin: 20px 0;
  }
  
  .social-icons a {
    margin-right: 10px;
    color: #c5c6c7;
    font-size: 20px;
    transition: color 0.3s;
  }
  
  .social-icons a:hover {
    color: #ff2e63;
  }
  
  .btn-download {
    background-color: #888888;
    font-size:medium; 
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .btn-download:hover {
    background-color: #a8a8a8;
  }
  
  .right-section input,
  .right-section textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #1f2833; /* Input background */
    color: #c5c6c7; /* Input text color */
    border: 1px solid #c5c6c7;
    border-radius: 5px;
  }
  
  .right-section textarea {
    height: 100px;
  }
  
  .btn-submit {
    background-color: #888888;
    color: #ffffff;
    font-weight: 200px;
    font-size: medium;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
  }
  
  .btn-submit:hover {
    background-color: #a8a8a8;
  
  }
  
  .footer-bottom {
    text-align: left;
    margin-top: 20px;
    font-size: 14px;
    margin-bottom: 0;
  }

/* Go to Top Button */
#go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #bb882b;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

#go-to-top:hover {
    background-color: #ffa500;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: left;
        gap: 30px;
    }

    .left-section, .right-section {
        max-width: 100%; /* Full width on small screens */
        text-align: left; /* Center align for better readability */
    }
    .right-section input,
    .right-section textarea {
        max-width: 92%; /* Allow full width on mobile */
    }
    
    .right-section form {
        max-width: 92%; /* Allow full width on mobile */
    }

    .left-section p {
        justify-content: left; /* Center align icons with text */
    }

    .social-icons a {
        margin-right: 15px;
        font-size: 24px; /* Increase size for better touch targets */
    }

    .btn-download {
        width: 100%; /* Full width button on small screens */
    }

    .footer-bottom {
        font-size: 12px;
        padding-top: 20px;
    }

    #go-to-top {
        bottom: 10px;
        right: 10px;
    }
}










  
 


  /* --------------scrolldown------------------- */
  .scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;  /* Change to flex to align items horizontally */
    flex-direction: row;  /* Arrange elements side by side */
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero:hover .scroll-down {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 3px solid var(--navbar-color);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 10px;
    background-color: var(--navbar-color);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    border-radius: 3px;
    animation: scroll 2.5s ease-in-out infinite;
}

.scroll-text-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-text {
    color: var(--navbar-color);
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: bold;
}


.down-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid var(--navbar-color);
}

.scroll-down-link {
    display: inline-block; /* Ensure it's clickable */
    text-decoration: none; /* Remove underline from link */
}



@keyframes scroll {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }  /* Reduced distance */
    100% { transform: translate(-50%, 0); }
}




@font-face {
    font-family: "BoldHead";
    src: url("images/Boldhead.otf") format("opentype"); /* Ensure the BoldHead.otf file is in the same directory */
  }

.logo {
    font-family: "BoldHead", sans-serif;
    font-size: 1.3em; 
    color:var(--navbar-color);
    margin-left:40px;
    
  }
  .cruvs{
    text-decoration: none;
  }



/* ----------------------- loading screen ---------------------------- */



#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.loader {
    width: 80px;
    height: 70px;
    border: 5px solid #000;
    padding: 0 8px;
    box-sizing: border-box;
    background:
        linear-gradient(#fff 0 0) 0    0/8px 20px,
        linear-gradient(#fff 0 0) 100% 0/8px 20px,
        radial-gradient(farthest-side,#fff 90%,#0000) 0 5px/8px 8px content-box,
        #000;
    background-repeat: no-repeat; 
    animation: l3 2s infinite linear;
}

@keyframes l3 {
    25% {background-position: 0 0   ,100% 100%,100% calc(100% - 5px)}
    50% {background-position: 0 100%,100% 100%,0    calc(100% - 5px)}
    75% {background-position: 0 100%,100%    0,100% 5px}
}





