@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

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

/* Color Variables */
:root {
    /* Light Mode */
    --light-bg-color: #ffffff;
    --light-text-color: #333333;
    --light-header-bg: #f5f5f5;
    --light-accent-color: #00d7a5;
    --light-link-hover: #005a9e;

    /* Dark Mode */
    --dark-bg-color: #081b29;
    --dark-text-color: #e5e5e5;
    --dark-header-bg: #1e1e1e;
    --dark-accent-color: #00abf0;
    --dark-link-hover: #7b61ff;
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: var(--light-bg-color);
    --text-color: var(--light-text-color);
    --header-bg: var(--light-header-bg);
    --accent-color: var(--light-accent-color);
    --link-hover: var(--light-link-hover);
}

/* Dark Mode Variables */
body.dark-mode {
    --bg-color: var(--dark-bg-color);
    --text-color: var(--dark-text-color);
    --header-bg: var(--dark-header-bg);
    --accent-color: var(--dark-accent-color);
    --link-hover: var(--dark-link-hover);
}


header .navbar a {
    margin: 0 15px;
    text-decoration: none;
    font-size: 16px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

header .navbar a:hover {
    color: var(--link-hover);
}







/* Theme Toggle Button */
.toggle-theme {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 28px;
    cursor: pointer;
    color: var(--link-hover);
    transition: transform 0.3s ease, color 0.3s ease;
}

.toggle-theme .bx {
    display: none;
}

body.light-mode .bx-moon {
    display: inline;
}

body.dark-mode .bx-sun {
    display: inline;
}
.toggle-theme:hover {
    transform: rotate(20deg);
    color: var(--accent-color);
}



.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: top 0.3s ease;
    background-color: var(--bg-color);
}




.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 10%;
    object-fit: cover;
}

.logo::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}
.navbar a{
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active{
    color: var(--link-hover);
}



.home{
    background: url("public/avatar.png")no-repeat;
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}
.home-content{
    max-width: 600px;
}
.home-content h1{
    cursor: default;
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h2{
    cursor: default;
    position: relative;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
}
.home-content h1::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}
.home-content h3{
    cursor: default;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-color);
}

.home-content h3::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}
.home-content p{
    cursor: default;
    font-size: 16px;
    margin: 20px 0 40px;
}
.home-content p::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1.6s;
}
.home-content .btn-box{
    position: relative;
    display: flex;
    justify-content: space-between;
    width: 345px;
    height: 50px;
}
.home-content .btn-box::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 1.9s;
    z-index: 2;
}
.btn-box a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    font-size: 19px;
    color: var(--link-hover);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}
.btn-box a:hover{
    background-color: var(--link-hover);
}
.btn-box a:nth-child(2){
    background: transparent;
    color: var(--link-hover);
}
.btn-box a:nth-child(2):hover{
    color: var(--link-hover);
}
.btn-box a:nth-child(2)::before {
    background: var(--accent-color);

}


.btn-box a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}
.btn-box a:hover::before{
    width: 100%;
}

.home-sci{
    position: absolute;
    bottom: 40px;
    width: 170px;
    display: flex;
    justify-content: space-between;
}
.home-sci::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 2.5s;
    z-index: 2;
}
.home-sci a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--link-hover);
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: 1s;
}
.home-sci a:hover{
    background-color: var(--accent-color);
}

.home-sci a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: .5s;
}


.home-imgHover{
    position: absolute;
    top: 0;
    right: 0;
    width: 600px;
    height: 100%;
    background: transparent;
    transition: 3s;
    animation: manipActiveHover .1s forwards;
    animation-delay: 4s;
    pointer-events: none;
}
.home-imgHover:hover{
    background: var(--bg-color);
    opacity: .8;
}
.home-imgHover::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 125%;
    height: 100%;
    background: var(--bg-color);
    animation: showRight 1s ease forwards;
    animation-delay: 3s;
    z-index: 100;
}



/* About Section */
#about {
    background: var(--bg-color); /* Gradient background */
    color: var(--text-color); /* White text for better contrast */
    padding: 70px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

#about::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    z-index: 0;
}

#about h2 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent-color);
    position: relative;
    z-index: 1; /* To ensure text stays above decorative layers */
}

#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}




#about .btn-box {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

#about .btn-box a {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    color: #2575fc;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 25px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#about .btn-box a:hover {
    background: #2575fc;
    color: #fff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }
    #about {
        padding: 40px 15px;
    }

    #about h2 {
        font-size: 2.2rem;
    }

    #about p {
        font-size: 1rem;
    }

    #about .btn-box a {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


#skills h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 30px;
}

#skills p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-items: center;
}

#skills .skill-card {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#skills .skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#skills .skill-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

#skills .skill-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 10px;
}

#skills .skill-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    #skills h2 {
        font-size: 2.4rem;
    }

    #skills p {
        font-size: 1rem;
    }

    #skills .skill-card {
        padding: 15px;
    }

    #skills .skill-card i {
        font-size: 2.5rem;
    }

    #skills .skill-card h3 {
        font-size: 1.3rem;
    }

    #skills .skill-card p {
        font-size: 0.9rem;
    }
}


/* Gallery Section */
#gallery {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

#gallery h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 30px;
}

#gallery p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

#gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

#gallery .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#gallery .gallery-item:hover img {
    transform: scale(1.1);
}

#gallery .gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

#gallery .gallery-item:hover .overlay {
    opacity: 1;
}

#gallery .gallery-item .overlay p {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    #gallery h2 {
        font-size: 2.4rem;
    }

    #gallery p {
        font-size: 1rem;
    }
}


/* Contact Section */
#contact {
    background-color: var(--bg-color);
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

#contact h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color:var(--accent-color);
    margin-bottom: 20px;
}

#contact p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 40px;
}

#contact .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

#contact .contact-box {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#contact .contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#contact .contact-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

#contact .contact-box h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-color);
}

#contact .contact-box p {
    font-size: 1rem;
    color: var(--text-color);
}

#contact form {
    padding: 20px 30px;
    max-width: 600px;
    margin: 40px auto 0;
}

#contact form input,
#contact form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    outline: none;
    transition: border-color 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
    border-color: #4A90E2;
}

#contact form button {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--accent-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#contact form button:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
}

/* Mobile View for Contact Section */
@media (max-width: 480px) {
    #contact {
        padding: 40px 15px;
        margin-top: 30px;
        border-radius: 10px;
    }

    #contact h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    #contact p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    #contact .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    #contact .contact-box {
        width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    #contact .contact-box i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    #contact .contact-box h3 {
        font-size: 1.2rem;
    }

    #contact .contact-box p {
        font-size: 0.9rem;
    }

    #contact form {
        padding: 10px 15px;
        max-width: 100%;
    }

    #contact form input,
    #contact form textarea {
        font-size: 0.9rem;
        padding: 12px;
        margin-bottom: 15px;
    }

    #contact form button {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
}




@keyframes showRight{
    100%{
        width: 0;
    }
}
@keyframes manipActiveHover {
    100%{
        pointer-events: auto;
    }
}

.typing-effect {
    display: inline-block;
    border-right: 2px solid #00abf0; /* Cursor effect */
    white-space: nowrap;
    overflow: hidden;
    animation: typing-remove 6s steps(30, end) infinite, blink 0.7s step-end infinite;
}

@keyframes typing-remove {
    0% {
        width: 0;
    }
    40% {
        width: 100%; /* Full text is typed */
    }
    60% {
        width: 100%; /* Pause before deleting */
    }
    100% {
        width: 0; /* Text is fully removed */
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}


/* Mobile View */
@media screen and (max-width: 768px) {
    .header {
        padding: 15px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .navbar a {
        font-size: 16px;
        margin-left: 20px;
    }

    .home {
        padding: 0 5%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .home-content {
        max-width: 100%;
    }

    .home-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .home-content h3 {
        font-size: 24px;
    }

    .home-content p {
        font-size: 14px;
        margin: 15px 0 30px;
    }

    .home-content .btn-box {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        height: auto;
    }

    .btn-box a {
        width: 100%;
        max-width: 200px;
        font-size: 16px;
    }

    .home-sci {
        bottom: 20px;
        width: auto;
        justify-content: center;
        gap: 15px;
    }

    .home-sci a {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .home-imgHover {
        display: none;
    }
}





/* Header Styling */


/* Go-to-Top Button */
.go-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: #4A90E2;
    color: #fff;
    padding: 10px 15px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.go-to-top:hover {
    transform: translateY(-3px);
}

/* For smoother scrolling behavior */
html {
    scroll-behavior: smooth;
}


