:root {
    --primary-color: #2563eb;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --spacing: 2rem;
    --transition: all 0.3s ease;
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #60a5fa;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--bg-primary);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding: calc(var(--spacing) * 4) 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 2rem;
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tech-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Hero Section Text */
.hero-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Sections */
section {
    padding: var(--spacing) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing);
    font-size: 2rem;
    margin-right: 30px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-items span {
    padding: 0.3rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    font-size: 0.9rem;
}

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

.project-card {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: var(--transition);
}

/* Removed static hover transform to let VanillaTilt handle the tilt effect */

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-tags span {
    padding: 0.2rem 0.6rem;
    background: var(--bg-primary);
    border-radius: 1rem;
    font-size: 0.8rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--bg-secondary);
}

/* Dark mode footer adjustments */
[data-theme="dark"] footer {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] footer .container {
    background: transparent !important;
}

[data-theme="dark"] footer p {
    color: var(--text-primary) !important;
}

/* Ensure the footer container does not have a white background */
footer .container {
    background: transparent !important;
}

/* Force the paragraph text in the footer to the intended color */
footer p {
    color: var(--text-primary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Hide the navigation links by default on mobile */
    .navbar{
        width:00%;
    }
    .nav-links {
        display: none;
        width: 100%;
        height: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        position: absolute;
        top: 100%; /* below the navbar */
        left: 0;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }
    .nav-links li{
        color: #ffffff;
        background: var(--primary-color);
        margin-top: 6px;
        padding-left: 4px;
        padding-right: 74px;
        padding-top: 10px;
        padding-bottom: 10px;
        /* padding: 3px 30px; */
        border-radius: 0 20px 20px 0;
    }

    /* Show the navigation links when the 'active' class is added */
    .nav-links.active {
        display: block;
    }

    /* Display the hamburger menu on mobile */
    .logo{
        display: none;
    }
    .menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
    .container{
        flex-direction: column;
    }
    .hero h1 {
        font-size: 2rem;
    }
    
    .tech-stack {
        flex-wrap: wrap;
    }
}

@media (min-width: 769px) {
    /* Hide the hamburger menu on larger screens */
    .menu-btn {
        display: none;
    }

    /* Display the navigation links as a flex row on desktop */
    .nav-links {
        display: flex;
    }
}

/* ---------------------------------------- */
::-webkit-scrollbar {
    display: none;
    width: 0px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgb(220, 220, 220); 
    border-radius: 10px;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: #b30000; 
  }
.header {
    background-color: transparent;
    width: 100%;
    position: sticky; 
    display: flex;
    justify-content: center;
    align-items: center;

}
a{
    text-decoration: none;
}
.header .container {
    font-family: 'Open Sans', sans-serif;
    margin-top: 20px;
    border-radius: 20px;
    padding: 15px 0;
    width: auto;
    background-color: rgba(82, 81, 81, 0.403);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header .logo h1 {
    margin: 0;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav ul li {
    margin: 0 0.8rem;
    padding-bottom: 5px;
    border-bottom: 3px solid rgba(255, 255, 255, 0);
    transition: 0.1s;
}

.nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.nav ul li:hover{
    border-bottom: 3px solid white;
    border-radius: 3px;
}
.menu-btn{
    color: var(--text-primary);
    height: 10px;
    padding-top: 10px;
    padding-left: 20px;
    width: 40px;
    padding-bottom: 20px;
    border-radius: 0 20px 20px 0;
}
#left-navbar:hover .left-navbar-container{
    width: 30vh;
    height: 50vh;
    padding: 20px;
    
    border-radius: 20px;
}
#left-navbar{
    color: white;
    position: absolute;
    display: none;
    justify-content: center;
    justify-items: center;
    border-radius:0 0 20px 20px;
    margin-left: 20px;
    padding: 20px;
    height: 10px;
    margin-left: -20px;
    position: fixed;
    z-index: 1;


}
.left-navbar-container{
    width: 0vh;
    height: 0%;
    overflow: hidden;
    padding: 0px;
    margin-top: 25px;
    background: #333;
    transition: 0.5s ease;overflow: hidden; /* Hide scrollbars */
    overflow-y: scroll; /* Allow vertical scrolling */
}
.left-navbar-container::-webkit-scrollbar {
    display: none;

}



.left-navbar-container .logo{
    width: 100%;
    text-align: center;
}

.left-navbar-container  ul li{
    text-align:center;
    margin-top: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.611);
    border-radius: 5px;
    display: block;
    padding: 10px 0;
    margin-left: -20px;
    transition: transform 0.2s;
    
    
    
}
.left-navbar-container  ul li:hover {
    box-shadow: 2px 2px 10px #767676;
    transform: scale(1.05);
    color:  #842be3;
    
}
.left-navbar-container  ul li a{
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}
/* change hero section background Colour */


#ch-icon-Box{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    box-shadow: 2px 2px 19px rgba(255, 255, 255, 0.818);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    margin-bottom: 20px; 
    margin-left: 20px;   
    left: 90%;
    position: absolute;
    transition: 0.5s ease;
    cursor: pointer;
    /* display: none; */
}
#ch-icon-Box:hover{
    background: linear-gradient( #6a11cb, #2575fc);
    box-shadow: 2px 2px 19px rgba(255, 255, 255, 0.818);
    
}
#ch-icon-Box i{
    font-size: 30px;
    color: rgba(255, 255, 255, 0.881);
    transition: 0.5s ease;
}
#ch-icon-Box:hover i{
    font-size: 35px;
}

.hero {
    color: #fff;
    height: 100vh;
    text-align: center; 
}

.hero .profile-photo {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    margin-top: 187px;
}

.container{
    display: flex;
    justify-content: center;
    align-items: center; 
}
.projects, .skills, .about{
    display: flex;
    justify-content: center;
    align-items: center;
    

}
.projectContainer, .SkillsContainer, .aboutContainer{
    width: 75%;
    

}
.about .text{
    width: 70%;
    padding-top: 100px;
    height: 400px;

}


.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
  
}
.slider {
    display: flex;
    overflow: hidden;
    width: 50vw;
    height: 200px;
    border-radius: 20px;
    box-shadow: inset 1px 1px 10px rgba(137, 137, 137, 0.44);
}
.slide, .slide1 {
    min-width: 33.33%;
    margin: 20px;
    transition: transform 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}
.slide-content {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #444;
    font-size: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
   
}
.js { background-color: #f0db4f; color: #323330; }
.ml { background-color: #91ff00; color: #ffffff; }
.html { background-color: #a1e0ff; color: #f70094; }
.mongo { background-color: #048989; color: #fff; }
.java { background-color: #ddd609; color: #fff; }
.c { background-color: #7d03ff; color: #fff; }
.cpp { background-color: #fe3b76; color: #fff; }
.slider-navigation {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.dot, .dot1 {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #686868;
    border-radius: 20px;
    display: inline-block;
    transition: background-color 0.6s ease;
    cursor: pointer;
    transition: 0.5s;
}
.dot.active {
    background-color: #efeeee;
    width: 20px;
}
.skill:hover{
    box-shadow: 2px 3px 10px  #d0aef4 , inset 2px 3px 10px  #ffffff;

}
.projects .projectContainer{
    width: 75%;
    height: 100%;
}
.projects .projectContainer .projectBox{
    width: 100%;
    height: 60pc;
    padding: 20px;
    border-radius: 20px;
    background-color: rgb(41, 41, 41);
}
.projects .projectContainer .projectBox .project{
    width: 29%;
    height: 30rem;
    padding-bottom: 20px;
    border-radius: 20px;
    background-color: rgb(64, 64, 64);
    text-align: center;
    margin: 20px;
    float: left;
}


.projects .projectContainer .projectBox .project .imgBox{
   width: 60%;
   height: 50%;
   border-radius: 25%;
   margin: 20px auto;
}
.projects .projectContainer .projectBox .project .imgBox img{
    width: 100%;
    height: 100%;
    border-radius: 25%;

}
.projects .projectContainer .projectBox .project .projectInfo{

    margin: 20px auto;
    width: 85%;
}
.projects .projectContainer .projectBox .project p{
    text-align: left;
    padding-bottom:15px;
    font-family: Arial, Helvetica, sans-serif;
}
.projects .projectContainer .projectBox .project a{
    text-decoration: none;
    color: #ffffff;
    padding:10px 20px;
    font-size: 100%;
    margin-left: 20px;
    border-radius: 40px;
    background-color: #d0aef4;
    transition: 0.55s;
}
.projects .projectContainer .projectBox .project a:hover{
        background-color: #765599;
        font-weight: bold;
        padding:10px 25px;
        box-shadow: 5px 5px 25px white;

}

.contacts{
    height: 102px;
    width: 100%;
    background-color: rgba(250, 177, 42, 0.74);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    
}


 .footer {
    margin-top: 50px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            border-radius:50px 50px 0px 0;
}
.footer a{
    text-decoration: none;
    font-style: normal;
    font-size: 20px;
    font-weight: bold;
    padding: 2px 30px;
    color: white;
    transition: 0.5s;
    border-right: 1px solid white;
}
.footer a:hover{
    color: black;
}
h2 {
    text-align: center;
    color: #333;
}
.copyright a{
    border: none;
    font-size: 10px;
}
.footer-10 {
    background: linear-gradient(-45deg, #1f1c1c, #e73c7e, #23a6d5, #06f6be, rgb(239, 207, 48), pink);
    background-size: 400% 400%;
    color: #fff;
    padding: 30px 20px;
    text-align: center;
    animation: gradientBG 15s ease infinite;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* ===============scroll animation ==================================================== */
@keyframes scrollPage{
    from{
        transform: scale(00px);
        opacity: 0;
        scale: 0.5;
        background-color: #4d4d4d00;
        border-radius: 50%;
        transition: 0.5s;
        filter: blur(10px);
    }
    to{
        border-radius: 100%;
        transform: scale(1);
        scale: 1;
        opacity: 1;
        box-shadow:inset 0 4px 6px -2px rgba(255, 255, 255, 0); 
        transition: 0.5s;
        filter: blur(0px);
    }
    
}
.scroll-anim{
    animation: scrollPage 1s ease-in-out;
    animation-fill-mode: forwards;
    animation-delay: 0.5s;
    }      
.about, .skills, .projects, .contact{

     animation: scrollPage 2s;
        animation-timeline: view();
        animation-range:  entry 0 cover 30%;
        z-index: -1;
    }





/* responsive site mobile==================================================== */
@media (max-width: 768px) {
    .header{
        display: none;
    }
    #left-navbar{
        display: flex;
    }
    #ch-icon-Box{
        left: 78%;
        margin-top: 30px;
        width: 50px;
        height: 50px;
    }
    .hero{
        height: 100vh;
    }
    .projects .projectContainer .projectBox{
        height: 110pc;
    }
    .projects .projectContainer .projectBox .project{
        width: 90%;
    }
    
}

/* Contact Section Styles */
.contact {
    padding: 50px 0;
    text-align: center;
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-links i {
    font-size: 20px;
}

/* Make contact section responsive */
@media (max-width: 768px) {
    .social-links {
        align-items: center;
    }
    
    .social-links a {
        width: 20px;
    }
}

/* Scroll-triggered animation styles */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Section */
.see-more-container {
    text-align: center;
    margin-top: var(--spacing);
    background-color: transparent;
}

/* Skills Section */
.skills-section {
    padding: calc(var(--spacing) * 2) 0;
    background: var(--bg-secondary);
}
.skills-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.skills-section .section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing) * 1.5);
    font-size: 2.5rem;
}
.skill-category {
    margin-bottom: 3rem;
}
.skill-category h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.25rem;
}
.skill-items {
    display: flex;
        flex-wrap: wrap;
        gap: 1.8rem;
        padding: 20px;
}
.skill-items span {
    background: var(--bg-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.skill-items span:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dynamic navigation animations for mobile menu items */
@keyframes navLinkFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes navLinkFadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50px);
  }
}

/* Additional style for menu button icon transitions */
.menu-btn i {
    transition: transform 0.3s ease;
}
.menu-btn:hover i {
    transform: scale(1.2);
}

/* Change font awesome icon colour for the hamburger menu icon in dark mode */
html[data-theme="dark"] .menu-btn i {
    color: var(--primary-color) !important;
}
