@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}


html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

/* General Styles */

body {
    /* background-image: url("./logo-color.svg"); */
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: white;
}

/* Sticky Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
}

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;
}

/* Section Styling */
section {
    padding: 5rem 9%;
    background-color: black;
    color: white;
}

/* Service and Education Cards */
.service-box, .education-box {
    flex-basis: 30%;
    background-color: #161616;
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.service-box i {
    font-size: 4rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.service-box:hover, .education-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
    color: white;
}

.service-box h3, .education-box h3 {
    font-size: 2.4rem;
    margin-bottom: 1.2rem;
}

.service-box p, .education-box p {
    font-size: 1.6rem;
    color: #ccc;
}

/* Additional Styling for Responsive Layout */
@media (max-width: 1000px) {
    .service-content, .education-content {
        flex-direction: column;
    }
}


/* Updated Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional shadow effect */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

/* Change background on scroll (optional but adds a nice effect) */
header.scrolled {
    background-color: rgba(0, 0, 0, 0.8); /* Slightly transparent background on scroll */
}

/* Navbar link styles (remain unchanged) */
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;
}


.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;
    gap: 8rem;
    background-color: black;
}

.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 solid #b74b4b;
    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;
}

/* General Section Styles */
section {
    min-height: 100vh;
    padding: 5rem 9%;
    background-color: black;
    color: white;
}

/* Services Section */
.projects h2, .skills h2, .education h2, .experience h2, .contact h2 {
    font-size: 4rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: #b74b4b;
}

.project-content {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space between the cards */
    gap: 2rem; /* Gap between cards */
}

.project-box {
    flex-basis: 30%; /* Set a base width for the cards */
    background-color: #161616; /* Background color for cards */
    padding: 2rem; /* Padding inside cards */
    text-align: center; /* Center text in the card */
    border-radius: 1rem; /* Rounded corners */
    transition: 0.3s ease; /* Smooth transition for hover effects */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* Shadow effect */
}

.project-box i {
    font-size: 4rem; /* Size of icons */
    color: #b74b4b; /* Icon color */
    margin-bottom: 1.5rem; /* Spacing below icons */
}

.project-box h3 {
    font-size: 2.4rem; /* Size of project titles */
    color: #ffffff; /* Title color */
    margin-bottom: 1.2rem; /* Spacing below titles */
}

.project-box p {
    font-size: 1.6rem; /* Size of project descriptions */
    color: #ccc; /* Description color */
}

.project-box:hover {
    transform: translateY(-10px); /* Lift effect on hover */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7); /* Stronger shadow on hover */
}
.project-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Adjusts space between items */
}

.project-box {
    flex: 1 1 calc(33.33% - 20px); /* Makes each box take up a third of the row, minus gap */
    box-sizing: border-box; /* Ensures padding and borders are included in the total width */
}


/* Skills Section */
.skills-content ul {
    list-style: none;
    font-size: 1.8rem;
    color: #ccc;
    text-align: left;
    line-height: 3rem;
}

.skills-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.skills-content ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: #b74b4b;
    font-size: 2rem;
}

/* Education Section */
.education-content {
    text-align: center;
}

.education-content h3 {
    font-size: 2.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
}

.education-content p {
    font-size: 1.8rem;
    color: #ccc;
    line-height: 2.5rem;
}

/* Experience Section */
.experience-content {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack the cards vertically */
    gap: 2.5rem; /* Space between cards */
}

.experience-box {
    background-color: #161616; /* Card background color */
    padding: 2.5rem; /* Padding inside the card */
    border-radius: 1rem; /* Rounded corners */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); /* Shadow effect */
    transition: 0.3s ease; /* Smooth transition for hover effects */
    display: flex; /* Use flexbox for horizontal alignment */
    justify-content: space-between; /* Push content to the sides (info left, logo right) */
    align-items: center; /* Vertically center the items */
}

.company-logo {
    width: 200px; /* Set width for company logos */
    height: 100%; /* Set height to match width (square) */
    object-fit: cover; /* Ensure the logo maintains its aspect ratio */
    border-radius: 1rem; /* Optional: rounded corners for the logo */
}

.experience-box h3 {
    font-size: 2.2rem; /* Title size */
    color: #ffffff; /* Title color */
    margin-bottom: 1.5rem; /* Spacing below the title */
}

.experience-box p {
    font-size: 1.6rem; /* Description size */
    color: #ccc; /* Description color */
    line-height: 2.4rem; /* Line height for readability */
}

.experience-box:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7); /* Stronger shadow on hover */
}

@media (max-width:682px){
    .experience-box .img{
        display: none;
        margin: 0;
        padding: 0;
    }
}

/* Resume Download Button */
.download-btn {
    background-color: black;
    padding: 1.2rem 3rem;
    border-radius: 2rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    display: inline-block;
    margin-top: 2rem;
    transition: 0.3s ease;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #b74b4b;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 25px #b74b4b;
}

/* Media Queries */
@media (max-width: 1000px) {
    .service-content {
        flex-direction: column;
    }

    .skills-content ul {
        font-size: 1.6rem;
    }

    .education-content p, .experience-box p, .contact-info p {
        font-size: 1.6rem;
    }

    .download-btn {
        font-size: 1.4rem;
    }
}


@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 20%{
        content: "SW Engineer";
    }
    21%, 40%{
        content: "Web Developer";
    }
    41%, 60%{
        content: "ML Engineer";
    }
    61%, 80%{
        content: "Reader";
    }
    81%, 100%{
        content: "Scribe";
    }
}

@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;
    }
}

/* Skills Section */
.skills-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.skill-card {
    flex-basis: calc(33.333% - 2rem);
    background-color: #161616;
    padding: 2rem;
    text-align: center;
    border-radius: 1rem;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
}

.skill-card i {
    font-size: 3rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.skill-card p {
    font-size: 1.6rem;
    color: #ccc;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 1000px) {
    .skill-card {
        flex-basis: calc(50% - 2rem);
    }
}

@media (max-width: 600px) {
    .skill-card {
        flex-basis: 100%;
    }
}

/* Education Section */
.education-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.education-card {
    background-color: #161616;
    padding: 2.5rem;
    text-align: center;
    border-radius: 1rem;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    flex-basis: calc(33% - 2rem); /* Adjusts to fit three cards per row */
}

.education-card img {
    width: 100px; /* Set a fixed size for the image */
    margin-bottom: 1.5rem;
}

.education-card h3 {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.education-card p {
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.education-card a.btn {
    padding: 1rem 2.5rem;
    background-color: #b74b4b;
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.education-card a.btn:hover {
    background-color: #fff;
    color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 1000px) {
    .education-card {
        flex-basis: calc(50% - 2rem); /* Two cards per row on smaller screens */
    }
}

@media (max-width: 600px) {
    .education-card {
        flex-basis: 100%; /* Full width on mobile */
    }
}
/* Footer Section */
.footer {
    background-color: #161616; /* Footer background color */
    color: #ffffff; /* Text color */
    padding: 10px 10px; /* Padding around the footer */
    text-align: center; /* Center text */
}

.footer-content {
    max-width: 1200px; /* Max width for content */
    margin: 0 auto; /* Centering the content */
}

.footer h2 {
    font-size: 2.5rem; /* Title size */
    margin-bottom: 15px; /* Spacing below the title */
    font-weight: 600; /* Stronger font weight for the title */
}

.footer p {
    font-size: 1.8rem; /* Description size */
    margin-bottom: 20px; /* Spacing below each paragraph */
}

.footer a {
    color: #b74b4b; /* Link color */
    text-decoration: none; /* Remove underline from links */
    font-weight: bold; /* Bold links */
}

.footer a:hover {
    text-decoration: underline; /* Add underline on hover */
}

.footer-note {
    font-size: 1.2rem; /* Copyright text size */
    margin-top: 20px;
    color: #888; /* Lighter color for copyright */
}

.contact-info p {
    margin: 10px 0; /* Add spacing between contact details */
    font-size: 1.5rem; /* Size for contact text */
}

.contact-info i {
    margin-right: 10px; /* Space between icon and text */
    color: #b74b4b; /* Icon color */
}

.contact-info a {
    color: inherit; /* Ensure the link inherits the text color */
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer h2 {
        font-size: 2rem; /* Smaller title size on mobile */
    }

    .footer p {
        font-size: 1.4rem; /* Smaller description text */
    }

    .contact-info p {
        font-size: 1.3rem; /* Smaller contact details */
    }

    .footer-note {
        font-size: 1rem; /* Smaller copyright text */
    }

    .contact-container {
        padding: 10px;
    }

    .contact-info {
        text-align: center; /* Center the contact info on mobile */
    }
}

@media (max-width: 480px) {
    .footer h2 {
        font-size: 1.8rem; /* Even smaller title size */
    }

    .footer p {
        font-size: 1.2rem; /* Even smaller description text */
    }

    .contact-info p {
        font-size: 1.1rem; /* Smaller contact details */
    }

    .footer-note {
        font-size: 0.9rem; /* Smaller copyright text */
    }

    .contact-info {
        padding: 10px;
    }
}


 /* Basic styling */
 .linkedin-icon {
    font-size: 24px;
    /* color: #0077b5; */
    cursor: pointer;
}
.badge-container {
    display: none; /* Initially hidden */
    margin-top: 20px;
}