
/* for light mode */
:root {
    --background-color: #c5c5e3; 
    --site-wrapper-bg: #c5c5e3; 
    --text-color: #333; 
    --heading-color: #333; 
    --nav-bg: rgba(197, 197, 227, 1.0); 
    --nav-text-color: #000000; 
    --nav-link-color: #00bcd4; 
    --nav-link-border: rgb(142, 119, 176); 
    --nav-link-hover-bg: rgba(197, 197, 227, 1.0); 

    --hero-text-color: #000000; 
    --hero-button-bg: rgb(142, 119, 176); 
    --hero-button-text:#000000; 
    --hero-button-hover-bg: #0097a7; 

    --section-border-color: #eee; 
    --section-heading-underline: #00bcd4; 
    --about-text-color: #333; 

    --project-card-bg: rgb(173, 173, 200); 
    --project-card-shadow: rgba(0, 0, 0, 0.1); 
    --project-title-color: #044750; 
    --project-description-color: #000000; 
    --project-link-bg: #333; 
    --project-link-text: #fff; 
    --project-link-hover-bg: #555; 
    --project-tech-logo-opacity: 0.7; 
    --project-tech-logo-hover-opacity: 1; 

    --skills-wrapper-bg: #e9e9e9; 
    --skills-wrapper-shadow: rgba(0, 0, 0, 0.05); 
    --skills-button-bg: rgb(142, 119, 176); 
    --skills-button-text: #0097a7; 
    --skills-button-hover-bg: #0097a7; 
    --skills-button-shadow: rgba(0, 0, 0, 0.1); 

    --skill-category-bg: rgb(173, 173, 200); 
    --skill-category-shadow: rgba(0, 0, 0, 0.08); 
    --skill-category-heading-color: #333; 
    --skill-category-underline: #00bcd4; 
    --skill-item-text: #000000; 
    --skill-icon-color-default: #555; 

    --contact-intro-color: #555; 
    --social-link-text-color: #333; 
    --social-icon-color-default: #00bcd4; 
    --social-link-hover-color: #0097a7; 

    
    --email-icon-color: #D44638;
    --linkedin-icon-color: #0A66C2;
    --github-icon-color: #181717;

    --back-to-top-bg: #333; 
    --back-to-top-text: #fff; 
    --back-to-top-shadow: rgba(0, 0, 0, 0.3); 
    --back-to-top-hover-bg: #00bcd4; 
}

/* Dark mode */
body.dark-mode {
    --background-color: #1a1a2e;
    --site-wrapper-bg: #16213e;
    --text-color: #e0e0e0;
    --heading-color: #e0e0e0;
    --nav-bg: #000000;
    --nav-text-color: #e0e0e0;
    --nav-link-color: #e94560; 
    --nav-link-border: #e94560; 
    --nav-link-hover-bg: #1a1a2e; 

    --hero-text-color: #e0e0e0;
    --hero-button-bg: #e94560; 
    --hero-button-text: #ffffff; 
    --hero-button-hover-bg: #cf2a46; 

    --section-border-color: #2c3a50;
    --section-heading-underline: #e94560; 
    --about-text-color: #e0e0e0;

    --project-card-bg: #212c47;
    --project-card-shadow: rgba(0, 0, 0, 0.3);
    --project-title-color: #e94560; 
    --project-description-color: #acacac;
    --project-link-bg: #4a5d77;
    --project-link-text: #e0e0e0;
    --project-link-hover-bg: #6e84a2;
    --project-tech-logo-opacity: 0.8; 
    --project-tech-logo-hover-opacity: 1;

    --skills-wrapper-bg: #212c47;
    --skills-wrapper-shadow: rgba(0, 0, 0, 0.15);
    --skills-button-bg: #e94560; 
    --skills-button-text: #ffffff;
    --skills-button-hover-bg: #cf2a46;
    --skills-button-shadow: rgba(0, 0, 0, 0.3);

    --skill-category-bg: #2c3a50;
    --skill-category-shadow: rgba(0, 0, 0, 0.2);
    --skill-category-heading-color: #e0e0e0;
    --skill-category-underline: #e94560; 
    --skill-item-text: #e0e0e0;
    --skill-icon-color-default: #acacac;

    --contact-intro-color: #acacac;
    --social-link-text-color: #e0e0e0;
    --social-icon-color-default: #e94560; 
    --social-link-hover-color: #cf2a46;

    
    --email-icon-color: #f77e7e; 
    --linkedin-icon-color: #6daee9; 
    --github-icon-color: #cccccc; 

    --back-to-top-bg: #4a5d77;
    --back-to-top-text: #e0e0e0;
    --back-to-top-shadow: rgba(0, 0, 0, 0.5);
    --back-to-top-hover-bg: #6e84a2;

    
     /* Slight dimming on tech icons in dark mode for better blending */
    .devicon-python-plain.colored,
    .devicon-java-plain.colored,
    .devicon-csharp-plain.colored,
    .devicon-javascript-plain.colored,
    .devicon-html5-plain.colored,
    .devicon-css3-plain.colored,
    .devicon-react-original.colored,
    .devicon-nodejs-plain.colored,
    .devicon-express-original.colored,
    .devicon-bootstrap-plain.colored,
    .devicon-mysql-plain.colored,
    .devicon-mongodb-plain.colored,
    .devicon-postgresql-plain.colored,
    .devicon-git-plain.colored,
    .devicon-docker-plain.colored,
    .devicon-amazonwebservices-original.colored,
    .devicon-jira-plain.colored {
        filter: brightness(0.8) saturate(1.2); 
        
        
    }
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 0 20px var(--project-card-shadow); 
    background-color: var(--site-wrapper-bg); 
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}


html {
    scroll-behavior:smooth;
}

body{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    line-height: 1.6;
    background-color: var(--background-color); 
    color: var(--text-color); 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

.container {
    width: 80%;
    margin:0 auto;
    overflow: hidden;
    padding: 0 20px;
}
/* Nav brand/title */

nav {
    background: rgba(197, 197, 227, 0.0); 
    color: var(--nav-text-color);
    padding: 0.8rem 0; 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

nav h1 {
    margin: 0;
    float: left;
    font-size: 1.8rem;
    margin-top: 5px;
    color: var(--heading-color); 
}


nav ul {
    list-style: none;
    float: right;
    margin: 0;
    padding: 0;
    margin-top: 5px;
}
nav ul li {
    display: inline;
    margin-left: 20px;
}
nav ul li a {
    color: var(--nav-link-color); 
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 18px;
    display: inline-block;
    background: transparent;
    border: 2px solid var(--nav-link-border); 
    border-radius: 50px;
    padding: 8px 18px;
    line-height: 1;
}
nav ul li a:hover {
    background: var(--nav-link-hover-bg); 
    transform: translateY(-3px);
}
/* Hero section styling */
.hero {
    color: var(--hero-text-color); 
    text-align: center;
    padding: 100px 0;
    height: 60vh;
    display: flex;

    position: relative;
    overflow: hidden;
    padding-top: 0;
}
.hero .hero-content { 
    position: relative; 
    z-index: 2; 
    padding-top: 150px; 
    width: 80%; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%; 
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--heading-color); 
}
.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--hero-text-color); 
}
.hero a {
    display: inline-block;
    
    color: var(--hero-button-text); 
    padding: 12px 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s ease, transform 0.3s ease, color 0.3s ease; 
    background: transparent;
    border: 2px solid var(--nav-link-border); 
    border-radius: 50px;
}
.hero a:hover {
    background: var(--hero-button-hover-bg); 
    transform: translateY(-3px);
}

/* Section base styles */
section {
    padding: 60px 0;
    background-color: transparent;
  
  
}
section:nth-of-type(even) {
    background-color: transparent;
}
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--heading-color); 
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease; 
}
section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--section-heading-underline); 
    border-radius: 2px;
    transition: background-color 0.3s ease; 
}


#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--about-text-color); 
}

/* Projects grid layout */

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

.project-card {
    background: var(--project-card-bg); 
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--project-card-shadow); 
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--project-card-shadow); 
}

.project-card .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 20px;
}

.project-card h3 {
    color: var(--project-title-color); 
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 15px;
    padding: 0 20px;
    transition: color 0.3s ease; 
}

.project-card p {
    font-size: 1rem;
    color: var(--project-description-color); 
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 20px;
    transition: color 0.3s ease; 
}

.project-card p {
    font-size: 1rem;
    color: var(--project-description-color);
    margin-bottom: 20px;
    padding: 0 20px;
    flex-grow: 1;
  }
  
  .tech-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 20px 25px;
  }
  
  .tech-logos i {
    font-size: 4em; 
    opacity: 0.85;
    transition: opacity 0.3s ease;
  }
  
  .tech-logos i:hover {
    opacity: 0.5;
  }

.project-card a {
    display: inline-block;
    background: var(--project-link-bg); 
    color: var(--project-link-text); 
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease; 
    margin-top: auto;
    margin-bottom: 20px;
}

.project-card a:hover {
    background: var(--project-link-hover-bg); 
}

/* Skills section wrapper styling */
#skills .skills-content-wrapper {
    background-color: var(--skills-wrapper-bg); 
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: inset 0 0 10px var(--skills-wrapper-shadow); 
    margin-top: 20px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}

#skills .skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

#skills .nav-button, #showSkillsBtn {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
    color: var(--skills-button-text);
    font-size: 18px;
    padding: 15px 30px;
    text-decoration: none;
    border: 2px solid var(--nav-link-border);
    cursor: pointer;

    font-size: 1.2rem;
    font-weight: 600;
    transition: 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; 
    box-shadow: 0 4px 10px var(--skills-button-shadow); 
    background: transparent;
     
    border-radius: 50px;
}  


#skills .nav-button:hover, #showSkillsBtn:hover {

    transform: translateY(-5px);
    box-shadow: 0 6px 15px var(--skills-button-shadow); 
}


#skills {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.6s ease-out, max-height 0.6s ease-out, padding-top 0.6s ease-out, padding-bottom 0.6s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}

#skills.skills-visible {
    opacity: 1;
    max-height: 2000px;
    padding-top: 60px;
    padding-bottom: 50px;
}


#skills .skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.skill-category {
    background-color: var(--skill-category-bg); 
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--skill-category-shadow); 
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; 
}

.skill-category h3 {
    color: var(--skill-category-heading-color); 
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease; 
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--skill-category-underline); 
    border-radius: 2px;
    transition: background-color 0.3s ease; 
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    display: flex;             
    flex-direction: column;    
    align-items: center;       
    text-align: center;
    
    transition: transform 0.2s ease; 
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i { 
    font-size: 3.5em; 
   
    margin-bottom: 8px;
    color: var(--skill-icon-color-default); 
    transition: color 0.2s ease, filter 0.2s ease;
}


.skill-item img {
    width: 100px; 
    height: 100px; 
    object-fit: contain;
    margin-bottom: 8px;
    filter: grayscale(80%);
    transition: filter 0.2s ease;
}

.skill-item:hover img {
    filter: grayscale(0%);
}

.skill-item span {
    font-size: 0.9rem;
    color: var(--skill-item-text); 
    font-weight: 500;
     white-space: nowrap;
    transition: color 0.3s ease; 
}

/*contact section*/
#contact .contact-social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    padding:0 10px;

}

.social-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--social-link-text-color); 
    font-size: 1.1rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon-link .fas,
.social-icon-link .fab {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--social-icon-color-default); 
    transition: color 0.3s ease;
}

.social-icon-link span {
    font-weight: 500;
}

.social-icon-link:hover {
    transform: translateY(-8px);
    color: var(--social-link-hover-color); 
}

.social-icon-link:hover .fas,
.social-icon-link:hover .fab {
    color: var(--social-link-hover-color); 
}


.social-icon-link[href^="mailto:"] .fas {
    color: var(--email-icon-color); 
}
.social-icon-link[href*="linkedin.com"] .fab {
    color: var(--linkedin-icon-color); 
}
.social-icon-link[href*="github.com"] .fab {
    color: var(--github-icon-color); 
}


.social-icon-link[href^="mailto:"]:hover .fas,
.social-icon-link[href*="linkedin.com"]:hover .fab,
.social-icon-link[href*="github.com"]:hover .fab {
    color: var(--social-link-hover-color); 
}


#contact .contact-intro {
    text-align: center;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--contact-intro-color); 
    transition: color 0.3s ease; 
}

/*back to top button*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--back-to-top-bg); 
    color: var(--back-to-top-text); 
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--back-to-top-shadow); 
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; 
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--back-to-top-hover-bg); 
    transform: translateY(-3px);
}


.dark-mode-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--nav-text-color);
    margin-left: 20px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1); 
    color: var(--nav-link-color); 
}

.dark-mode-toggle .fas {
    pointer-events: none;
}

body.dark-mode .dark-mode-toggle .fa-moon:before {
    content: "\f185"; 
}



@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 0 15px;
    }

   /* Navbar positioned at top, full width, centered text */  
    nav {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        text-align: center; 
        padding: 1rem 0.5rem;
    }

    nav h1 {
        float: none;
        margin-bottom: 10px;
        color: var(--heading-color);
        display: block; 
    }

    nav ul {
        float: none;
        display: flex; 
        justify-content: center; 
        padding: 0;
        margin-top: 5px; 
        flex-wrap: wrap; 
    }

    nav ul li {
        display: inline-block;
        margin: 0 8px 5px 8px;
    }
/* Hero section tweaks for smaller vertical padding */
    
    .hero {
        padding-top: 0; 
        height: 60vh; 
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero .hero-content {
        padding-top: 120px; 
        
    }

    .hero p {
        font-size: 1.2rem;
    }

    
    section h2 {
        font-size: 2rem;
    }

    /* Projects grid changes to single column for narrow view */
    #projects .project-grid {
        grid-template-columns: 1fr;
    }

    
    .project-card .project-image {
        height: 250px;
    }

    
    #skills .skills-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    
    #skills .skills-content-wrapper {
        padding: 30px 20px;
        background-color: var(--skills-wrapper-bg); 
    }

    
    #contact .contact-social-links {
        gap: 20px;
    }

    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Styles for very small screens */

@media (max-width: 480px) {
    
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    
    section h2 {
        font-size: 1.8rem;
    }

    
    .project-card .project-image {
        height: 180px;
    }

    .project-card h3 {
        font-size: 1.5rem;
    }

    
    /* .skill-item {
        width: 70px;
    } */

    .skill-item i { 
        font-size: 3.5em; 
    }

    .skill-item img {
        width: 40px;
        height: 40px;
    }

    .skill-item span {
        font-size: 0.8rem;
    }

    
    .social-icon-link .fas,
    .social-icon-link .fab {
        font-size: 2.8rem;
    }
}