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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    background-image: url('background1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.6) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
    box-shadow: inset 0 0 50px 30px rgba(0, 0, 0, 0.9);
}

.home-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
    text-align: center;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.6);
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 16%{
        content: "Full Stack Developer";
    }
    17%, 33%{
        content: "React Native Developer";
    }
    34%, 50%{
        content: "Node.js Developer";
    }
    51%, 67%{
        content: "Python Programmer";
    }
    68%, 84%{
        content: "Database Designer";
    }
    85%, 100%{
        content: "Problem Solver";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* Header styling updates */
.menu-btn {
    display: none;
    font-size: 2.6rem;
    color: #b74b4b;
    cursor: pointer;
}

/* Section styling */
.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

/* Education Section */
.education-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.education-box {
    flex: 1 1 30rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid #b74b4b;
    transition: .5s ease;
}

.education-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.3);
}

.education-year {
    font-size: 1.8rem;
    color: #b74b4b;
    padding: .5rem 1.5rem;
    background: rgba(183, 75, 75, 0.1);
    border-radius: 1rem;
    display: inline-block;
    margin-bottom: 2rem;
}

.education-box h3 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
}

.education-box h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #aaa;
}

.education-box p {
    font-size: 1.6rem;
}

/* Skills Section Redesign */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #b74b4b;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.4);
    background: rgba(183, 75, 75, 0.2);
}

.skill-icon {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
    color: #fff;
}

.skill-card h4 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.skill-card p {
    font-size: 1.4rem;
    color: #aaa;
}

.skill-card:hover p {
    color: #ddd;
}

/* Keep existing styles for the skills section container */
.skills-category {
    flex: 1 1 30rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(183, 75, 75, 0.2);
    padding: 3rem;
    border-radius: 2rem;
    border: .2rem solid #b74b4b;
}

.skills-category h3 {
    font-size: 2.4rem;
    margin-bottom: 2.5rem;
    text-align: center;
    color: #b74b4b;
}

/* Add animation for skill cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-card {
    animation: fadeIn 0.6s forwards;
    opacity: 0;
}

/* Stagger the animations */
.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }

/* Remove the old progress bar styles that are no longer needed */
.skills .skill-item,
.skills .progress-bar,
.skills .progress {
    display: none;
}

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

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Section */
.projects-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    flex: 1 1 35rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 2rem;
    border: .2rem solid #b74b4b;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(183, 75, 75, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.project-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.project-card:hover {
    transform: translateY(-1rem);
    box-shadow: 0 2rem 4rem rgba(183, 75, 75, 0.3);
    border-color: rgba(183, 75, 75, 0.8);
}

.project-icon {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
    color: #fff;
}

.project-info h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.project-info p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #aaa;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(183, 75, 75, 0.2);
    color: #b74b4b;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid #b74b4b;
    transition: all 0.3s ease;
}

.project-card:hover .tech-tag {
    background: rgba(183, 75, 75, 0.3);
    color: #fff;
    border-color: #fff;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #b74b4b;
    color: #b74b4b;
    text-decoration: none;
    border-radius: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.project-btn:hover {
    background: #b74b4b;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(183, 75, 75, 0.3);
}

.project-btn i {
    font-size: 1.2rem;
}

/* Add fade-in animation for project cards */
.project-card {
    animation: fadeInUp 0.8s forwards;
    opacity: 0;
    transform: translateY(50px);
}

.project-card:nth-child(1) { animation-delay: 0.2s; }
.project-card:nth-child(2) { animation-delay: 0.4s; }
.project-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design for projects */
@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        padding: 0 2rem;
    }
    
    .project-card {
        flex: 1 1 auto;
        margin-bottom: 2rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-btn {
        flex: none;
    }
}

/* Activities Section */
.activities-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
}

.activity-box {
    flex: 1 1 30rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid #b74b4b;
    transition: .5s ease;
}

.activity-box:hover {
    transform: translateY(-1rem);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.3);
}

.activity-box .icon {
    font-size: 5rem;
    color: #b74b4b;
    margin-bottom: 2rem;
}

.activity-box h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.activity-box p {
    font-size: 1.6rem;
    line-height: 1.6;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
    width: 100%;
}

.info-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 1rem;
    border: .1rem solid #b74b4b;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: .3s ease;
}

.info-item:hover {
    background: rgba(183, 75, 75, 0.1);
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.3);
}

.info-item i {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.info-item p {
    font-size: 1.8rem;
    color: #aaa;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Remove old contact form styles */
.contact-form,
.input-box {
    display: none;
}

.input-box input, .contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
}

.contact-form textarea {
    height: 15rem;
    resize: none;
}

.contact-form .btn {
    margin-top: 1rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 9%;
    margin-top: 5rem;
}

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

.footer-content p {
    font-size: 1.6rem;
}

/* Responsive Media Queries */
@media (max-width: 995px) {
    .menu-btn {
        display: block;
    }

    nav {
        position: absolute;
        display: none;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem;
        background-color: #161616;
    }

    nav.active {
        display: block;
    }

    .education-container, 
    .skills-container, 
    .activities-container,
    .contact-container {
        flex-direction: column;
    }

    .input-box {
        flex-direction: column;
        gap: 0;
    }

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

/* Add background to skills section */
.skills {
    background-image: url('background2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.7) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 1;
    box-shadow: inset 0 0 60px 40px rgba(0, 0, 0, 0.9);
    
}

/* Make sure skills content appears above overlay */
.skills .heading, .skills-container {
    position: relative;
    z-index: 2;
    
}

/* Ensure skills boxes stand out from background */
.skills-category {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(183, 75, 75, 0.2);
    
}

/* Make progress bars more visible */
.progress-bar {
    background: rgba(255, 255, 255, 0.2);
}
