@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Header Style */
.header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    height: 70px;
    background-color:#f0f0f0;
    top: 0;
    z-index: 1000;
}

/* Logo style */
.logo{
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    text-wrap: nowrap;
    cursor: pointer;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}
.logo-link{
    text-decoration: none;
}
.logo:hover {
  color: #f39c12;
  text-shadow: 0 0 8px rgba(243, 156, 18, 0.6), 0 0 16px rgba(243, 156, 18, 0.4);
}

/* Navs style */
.nav{
    display: flex;
    gap: 30px;
    align-items: center;
    height: inherit;
}
.nav-link, #hamburger{
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    color: #333333;
    height: 100%;
    display: flex;
    align-items: center;
    border-bottom: 4px solid transparent;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    transition: border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
.nav-link:hover, #hamburger:hover {
    color: #f39c12;
    border-bottom: 4px solid #f39c12;
}

/* Social Media icon and toggle icon */
.icon{
    display: flex;
    gap: 20px
}
.icon-img{
    width: 25px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}
.icon-img:hover{
    transform: rotate(360deg);
}

/* Dark theme */
body.dark {
    background-color: #0D1117;
    color: #C9D1D9;
}
body.dark .header {
    background-color: #161B22;
    box-shadow: 0 0 4px rgb(255, 0, 0);
}
body.dark .logo {
    color: #C9D1D9;
}
body.dark .nav-link, body.dark  #hamburger{
    color: #C9D1D9;
}
body.dark .nav-link:hover, body.dark  #hamburger:hover {
    color: #58a6ff;
    border-bottom: 4px solid #58a6ff;
}
body.dark .logo:hover {
    color: #58a6ff;
    text-shadow: 0 0 8px rgba(243, 156, 18, 0.6), 0 0 16px rgba(243, 156, 18, 0.4);
}

/* hamburger */
#hamburger , #close-hamburger {
    display: none;    
    cursor: pointer;
    font-size: 2rem;
}
#close-hamburger {
    display: none;
}

/* 1250px */
@media screen and (max-width: 1250px) { 
    .nav {
        display: none;
        flex-direction: column;
        position: fixed;
        height: auto;
        top: 70px;
        left: 50%;
        transform: translateX(-50%); 
        width: 200px;
        padding: 10px;
        box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        background-color: #fff;
    }
    body.dark .nav {
        box-shadow: 0 4px 8px rgb(255, 0, 0);
        background-color: #161B22;
    }
    #hamburger {
        display: flex;
    }
}

@media screen and (max-width: 450px) {
    .logo, #hamburger {
        font-size: 1.5rem;
    }
    .icon-img {
        width: 20px;
    }
    .icon {
        gap: 10px;
    }
}

/* Main section style */
.main{
    margin-top: 80px;
    padding: 20px 4%;
    width: 100%;
}

/* Home section */
#home {
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-bottom: 1px solid #888;
    padding-bottom: 40px;
}
.home-content{
    line-height: 1.3;
    width: 50%;
}
.home-content h1{
    font-size: 4rem;
    color: #f39c12;
    font-weight: bold;
    margin: 10px 0;
}
.home-content h3{
    font-size: 2rem;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.typing, .cursor{
    font-weight: 600;
    color: red;
    white-space: nowrap;
}
.cursor{
    margin-left: 2px;
    animation: blink 0.7s infinite;
}
.home-img {
    width: 25%;
}
.home-img-pic {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    animation: glowPulse 3s ease-in-out infinite;
    transition: transform 0.3s ease-in-out;
}
.home-img-pic:hover {
    transform: skew(-5deg, 10deg);
}
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 77, 77, 0.5); }
    50% { box-shadow: 0 0 35px rgba(255, 77, 77, 0.9); }
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@media screen and (max-width: 800px){
    .main{
        margin-top: 70px;
    }
    .home-content h1{
        font-size: 2.5rem;
    }
    .home-content h3{
        font-size: 1.2rem;
    }
}
@media screen and (max-width: 415px){
    .home-content h1{
        font-size: 1.8rem;
    }
    .home-content h3{
        font-size: 0.85rem;
    }
}
@media screen and (max-width: 600px) {
    #home {
        justify-content: space-between;
    } 
}

/* Section Style */
.section {
    position: relative;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #888;
}
.section-heading{
    width: 50%;
    text-align: right;
    font-size: 1.7rem;
    font-weight: 600;
    padding: 40px 0;
    position: sticky;
    display: flex;
    flex-direction: column;
    gap: 4.02rem;
    top: 128px;
    padding-right: 2rem;
}
.section-content{
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 50%;
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: justify;
    border-left: 1px solid #888;
    padding: 40px 0;
    padding-left: 2rem;
}
.section-heading span {
    color: #f39c12;
}
#about a{
    text-align: center;
    padding: 10px 22px;
    background: #2563eb;
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
#about a:hover {
    background: #3b82f6;
    transform: scale(1.02);
}
@media screen and (max-width: 600px) {
    .section {
        flex-direction: column;
    }
    .section-content, .section-heading{
        border: none;
        width: 100%;
        text-align: left;
    }
    .section-content{
        padding-left: 0;
        text-align: justify;
        padding-top: 20px;
        font-size: 0.95rem;
        overflow: visible;
    }
    .section-heading{
        position: static;
        padding-bottom: 0;
        font-size: 1.35rem;
    }
}
@media screen and (max-width: 800px) {
    .section-heading{
        font-size: 1.35rem;
    }
}
@media screen and (max-width: 350px) {
    .section-content{
        font-size: 0.75rem;
    }
}
.skill-card, .project-card, .education-card, .certificate-card, .achievements-card{
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255,0,0);
    transition: transform 0.3s ease-in-out;
    width: 100%;
    display: flex;
    gap: 15px;
    flex-direction: column;
}
.skill-card:hover, .project-card:hover, .education-card:hover, .certificate-card:hover, .achievements-card:hover{
    transform: scale(1.02);
    background-color:#f0f0f0;
}
body.dark .skill-card:hover, 
body.dark .project-card:hover, 
body.dark .education-card:hover, 
body.dark .certificate-card:hover, 
body.dark .achievements-card:hover{
    transform: scale(1.02);
    background-color: #161B22;;
}
.project-card ul{
    padding-left: 20px;
    margin-top: 10px;
}
.achievements-card ul{
    padding-left: 20px;
    margin-top: 10px;
}
.project-card a, .certificate-card a {
    display: inline-block;
    margin-top: 10px;
    color: #0077ff;
    text-decoration: none;
    font-weight: 500;
}
.project-card a:hover, .certificate-card a:hover {
    text-decoration: underline;
}
.achievement-badge{
    width: 100px;
}
.achievements-badges{
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    overflow: hidden;
    width: 100%;
    animation: floatBadge 2.5s ease-in-out infinite;
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
@media screen and (max-width: 1200px){
    .section-heading{
        gap: 6rem;
    }
}
@media screen and (max-width: 1000px){
    .section-heading{
        gap: 7rem;
    }
}
@media screen and (max-width: 800px){
    .section-heading{
        gap: 8rem;
    }
}
@media screen and (max-width: 600px){
    .section-heading{
        gap: 2rem;
    }
    .achievement-badge{
        width: 70px;
    }
}
@media  screen and (max-width: 450px){
    .achievement-badge{
        width: 50px;
    }
}

/* Footer Style */
.footer{
    padding: 40px 8%;
    background-color:#f0f0f0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.footer-content{
    display: flex;
    gap: 20px;
    flex-direction: column;
    align-items: center;
}
body.dark .footer {
    background-color: #161B22;
    color: #C9D1D9;
}
.footer-title h2{
    font-size: 2.5rem;
    font-weight: 700;
}
.footer-content span{
    font-size: 2rem;
    cursor: pointer;
    font-weight: 500;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.footer-content span:hover{
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.6), 0 0 16px rgba(243, 156, 18, 0.4);
}
.footer-title span{
    color: #f39c12;
}
@media screen and (max-width: 600px){
    .footer{
        text-align: center;
        flex-direction: column;
        gap: 20px;
    }
    .footer-title h2{
        font-size: 1.8rem;
    }
}

/* Reader Controls */
#readerControls, .reader {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #f0f0f0; 
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: none;
    gap: 10px;
    z-index: 1000;
    transition: background-color 0.3s;
}
.reader {
    display: block;
}
body.dark #readerControls, body.dark .reader {
    background-color: #2c2c2c; 
}
#readerControls button, .reader span {
    background-color: #161b22;
    color: #f0f0f0;   
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.reader span {
    font-size: 30px;
    padding: 6px 6px;
}
#close-readControls {
    font-size: 20px;
    padding: 2px 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}
@media screen and (max-width: 600px){
    #readerControls{
        flex-direction: column;
        padding: 5px 10px;
    }
}
body.dark #readerControls button, body.dark .reader span {
    background-color: #f0f0f0;
    color: #161b22;
}
#readerControls button:hover, .reader span:hover {
    transform: scale(1.1);
    opacity: 0.9;
} 

/* Particles.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}