@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rokkitt:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    overflow-x: hidden;
    /* background-color: #f4f0f0; */
    background-color: #2A2D34;
    /* background-image: url(images/2841139.jpg); */

}

.menu-icon {
    cursor: pointer;
    width: 40px;
    height: 40px;
    margin-left: 20px;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    display: none;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    border: 2px solid #d9d9d9;
    height: 100%;
    width: 200px;
    background: #34373f;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
}

.sidebar .close-icon {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    color: #d9d9d9;
}

.sidebar ul {
    padding: 30px 15px;
    list-style: none;
}

.sidebar ul li {
    padding: 20px 15px;
    cursor: pointer;
}

/* .sidebar ul li a.nav-links {
    text-decoration: none;
    font-weight: bold;
    color: rgb(3, 0, 0);
    position: relative;
    padding-bottom: 2px;
} */
.sidebar ul li a.nav-links {
    text-decoration: none;
    font-weight: bold;
    color: #d9d9d9;
    padding: 5px 10px;
    transition: background-color 0.3s, border-radius 0.3s;
}

.sidebar ul li a.nav-links:hover {
    background-color: #d9d9d9;
    border-radius: 20px;
    color: black;
}



/* General styles for navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #d9d9d9;
    box-shadow: 0 0 5px rgb(34, 34, 55);
}

.menu-icon {
    cursor: pointer;
    width: 30px;
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 50px;
}

.logo span {
    color: white;
    font-size: 27px;
    font-weight: bold;
    margin-left: -34px;
}

.logo p {
    font-size: 15px;
    /* color: #d9d9d9; */
    color: black;
    font-weight: bold;
    margin-left: 12px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0px 15px;
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: rgb(53, 52, 52);
    /* color: #d9d9d9; */
    font-size: 18px;
    padding: 10px;
    transition: color 0.2s ease;
    font-weight: bold;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    width: 0;
    /* background-color: #ffffff; */
    background-color: black;
    transition: width 0.3s ease;
    margin-top: 2px;
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-links li a:hover {
    /* color: rgb(255, 255, 255); */
    color: black;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 35px;
}

/* @media (max-width:892px){
    .nav-links li a{
        font-size: 13px;
    }
} */

@media (max-width: 945px) {
    .nav-links li a {
        display: none;
    }

    .menu-icon {
        display: inline-block;
        width: 30px;
    }
}

/* -------------------Main CSS ----------------*/
/* Responsive CSS */
:root {
    --main-bg-color: #f4f0f0;
    --box-bg-color: #d9d9d9;
    --font-color: #000;
    --box-shadow: 0 0 2.5px black;
    --heading-top-size: 45px;
    --heading-bottom-size: 34px;
}

.main-section {
    /* background-color: var(--main-bg-color); */
    background-color: #2A2D34;
    /* min-height: 100vh; */
    width: 100%;
}

.box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 50px 0;
    padding: 25px;
    background-color: var(--box-bg-color);
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
    box-shadow: var(--box-shadow);
}

.left-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45%;
}

.heading-top {
    font-size: var(--heading-top-size);
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--font-color);
}

.heading-bottom {
    font-size: var(--heading-bottom-size);
    font-weight: 500;
    color: var(--font-color);
}

.right-box {
    display: flex;
    align-items: center;
    width: 15%;
}

.git-image {
    width: 350px;
    border: 5px solid #fff;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    position: relative;
    opacity: 0.99;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links img {
    width: 30px;
}

/* Responsive Breakpoints */
@media (max-width: 1278px) {
    .git-image {
        width: 300px;
    }

    .right-box {
        width: 20%;
    }
}

@media (max-width: 945px) {
    .box {
        flex-direction: column;
        width: 95%;
        margin: 20px auto;
    }

    .left-box {
        margin: 0;
    }

    .heading-top {
        font-size: 28px;
    }

    .heading-bottom {
        font-size: 25px;
    }

    .git-image {
        width: 250px;
        border-radius: 0;
        margin-left: -45px;
    }

    .social-links {
        flex-direction: row;
        justify-content: center;
    }

    .social-links img {
        width: 25px;
    }
}

@media (max-width: 768px) {
    .box {
        flex-direction: column;
        align-items: center;
        /* border-radius: 50px; */
        margin-left: 0px;
    }

    .heading-top {
        font-size: 21px;
    }

    .heading-bottom {
        font-size: 18px;
    }

    .git-image {
        margin-left: -50px;
        width: 220px;
    }
}

@media (max-width: 540px) {
    .box {
        gap: 15px;
    }

    .heading-top {
        font-size: 15px;
    }

    .heading-bottom {
        font-size: 14px;
    }

    .git-image {
        width: 200px;
    }
}

@media (max-width: 428px) {
    .box {
        width: 86%;
        border-radius: 50px;
        margin: 30px 28px;
    }

    .heading-top {
        margin-right: -18px;
        font-size: 14px;
    }

    .heading-bottom {
        font-size: 14px;
        margin-right: -12px;

    }

    .git-image {
        width: 200px;
        margin-left: -65px;
    }

    .social-links img {
        width: 20px;
    }
}

@media (max-width: 412px) {
    .box {
        width: 86%;
        border-radius: 50px;
        margin: 30px 28px;
    }

    .heading-top {
        margin-right: -15px;
        font-size: 14px;
    }

    .heading-bottom {
        font-size: 14px;
        margin-right: -12px;

    }

    .git-image {
        width: 200px;
        margin-left: -65px;
    }

    .social-links img {
        width: 20px;
    }
}



/* --------------------------About Me CSS --------------------------*/

.about-section {
    margin-top: 20px;
    /* background-color: #f4f0f0; */
    background-color: #2A2D34;
    /* min-height: 90vh; */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    /* border: 2px solid red; */
}

.heading-aboutme {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.box-2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    /* max-width: 1200px; */
    height: auto;
    margin-right: -20px;
    margin-left: 11.5%;
    background-color: #d9d9d9;
    /* background-color: #2D2E30; */
    border-top-left-radius: 100px;
    border-bottom-left-radius: 100px;
    padding: 25px;
    box-shadow: 0 0 3.5px black;
    flex-wrap: wrap;
    gap: 20px;
}

.left-box-2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 45%;
    text-align: center;
}

.heading-whoiam {
    font-size: 25px;
    font-weight: bold;
    color: #000;
    position: relative;
    opacity: 0.95;
}

.heading-whoiam::before {
    content: '';
    position: absolute;
    background-color: rgb(62, 60, 58);
    top: 0;
    left: 10px;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.left-box-2 img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border: 5px solid white;
    border-radius: 10px;
}

.right-box-2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 45%;
}

.aboutme-head,
.aboutme-skills {
    font-family: 'Rokkitt', serif;
    font-size: 20px;
    line-height: 1.6;
    color: #000;
    margin-bottom: 10px;
}

.aboutme-skills span {
    font-size: 18px;
    font-weight: bold;
}

.aboutme-contact {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
    font-size: 16px;
    font-family: 'Rokkitt', serif;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.aboutme-contact:hover {
    background-color: #d9d9d9;
    color: #000;
}

/* Responsive Design */

/* Tablets and smaller screens */

@media (max-width: 768px) {
    .box-2 {
        flex-direction: column;
        padding: 15px;
        border-top-right-radius: 0px;
    }

    .left-box-2,
    .right-box-2 {
        width: 100%;
    }

    .left-box-2 img {
        max-width: 250px;
    }

    .heading-whoiam {
        font-size: 22px;
    }

    .aboutme-head,
    .aboutme-skills {
        font-size: 18px;
    }

    .aboutme-contact {
        font-size: 12px;
        margin-bottom: 10px;
        width: 50%;
        margin-left: 28%;
    }
}

@media (max-width: 428px) {
    .box-2 {
        width: 95%;
        border-radius: 50px;
        margin: 10px;
    }

    .heading-aboutme {
        font-size: 20px;
    }

    .heading-whoiam {
        font-size: 18px;
    }

    .left-box-2 img {
        max-width: 200px;
    }

    .aboutme-head,
    .aboutme-skills {
        font-size: 14px;
    }

    .aboutme-contact {
        font-size: 14px;
        width: 60%;
        margin: 0 auto;
    }
}


/* Mobile devices */
@media (max-width: 412px) {
    .box-2 {
        width: 95%;
        border-radius: 50px;
        margin: 10px;
    }

    .heading-aboutme {
        font-size: 20px;
    }

    .heading-whoiam {
        font-size: 18px;
    }

    .left-box-2 img {
        max-width: 200px;
    }

    .aboutme-head,
    .aboutme-skills {
        font-size: 14px;
    }

    .aboutme-contact {
        font-size: 14px;
        width: 70%;
        margin: 0 auto;
    }
}

/* What I DO CSS ------------------------ */

/* General styles for the section */
.services-section {
    margin-top: 20px;
    /* border: 2px solid red; */
    text-align: center;
    padding: 40px 20px;
    /* background-image: url(images/2841139.jpg); */
    background-color: #d9d9d9;
    border-radius: 25px;
    /* max-width: 1200px; */
    max-width: 95%;
    margin-top: 10px;
    margin-left: 40px;
    box-shadow: 0 0 3.5px black;
}

/* Styles for the heading and subtext */
.upper-heading {
    margin-bottom: 40px;
}

.heading-service {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.para-service {
    font-size: 1.2rem;
    color: #353434;
    margin: 0;
}

/* Container for the services */
.box-3 {
    display: flex;
    justify-content: space-around;
    /* Space between services */
    align-items: center;
    gap: 20px;
    /* Gap between items */
    padding: 20px;

}

/* Individual service boxes */
.services-1,
.services-2,
.services-3 {
    background-color: #a9a7a7;
    /* Light gray background */
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    width: 28%;
    /* Equal width for each box */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    transition: transform 0.3s ease;
    /* Animation for hover effect */
    cursor: pointer;
}

.services-1:hover,
.services-2:hover,
.services-3:hover {
    transform: scale(1.05);
    /* Slight zoom effect on hover */
    opacity: 95%;
}

/* Image styles */
.img-service {
    width: 100%;
    max-width: 150px;
    /* Restrict max size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Text inside each service box */
.para {
    font-size: 1rem;
    color: #242323;
    line-height: 1.5;
    font-weight: 400;
}

@media (max-width: 768px) {
    .services-section {
        margin-right: 20px;
    }

    .box-3 {
        flex-direction: column;
        /* Stack boxes vertically */
        align-items: center;
        /* Center align in column layout */
        gap: 20px;
    }

    .services-1,
    .services-2,
    .services-3 {
        width: 90%;
        /* Narrower boxes for smaller screens */
    }

    .heading-service {
        font-size: 1.8rem;
    }

    .para-service {
        font-size: 0.9rem;
    }
}


@media (max-width: 428px) {
    .services-section {
        border-radius: 50px;
        margin: 12px;
    }

    .services-1,
    .services-2,
    .services-3 {
        width: 100%;
        /* Full width for very small phones */
        padding: 10px;
    }

    .heading-service {
        font-size: 1.4rem;
    }

    .para-service {
        font-size: 0.7rem;
    }

    .img-service {
        max-width: 120px;
        /* Smaller images */
    }
}


/* Small phones (max-width: 430px) */
@media (max-width: 412px) {
    .services-section {
        border-radius: 50px;
        margin: 12px;
    }

    .services-1,
    .services-2,
    .services-3 {
        width: 100%;
        /* Full width for very small phones */
        padding: 10px;
    }

    .heading-service {
        font-size: 1.4rem;
    }

    .para-service {
        font-size: 0.7rem;
    }

    .img-service {
        max-width: 120px;
        /* Smaller images */
    }
}

/* MY WORKS CSS----------------------- */

/* Section Title */
.my-works {
    border-radius: 25px;
    background-color: #d9d9d9;
    width: 95%;
    height: 100%;
    margin: 40px;
    box-shadow: 0 0 3.5px black;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
    color: #333;
}

/* Container for all cards */
.work-cards {
    display: flex;
    flex-wrap: wrap;
    /* Ensures cards wrap on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    /* Space between cards */
    margin: 20px;
    padding: 20px 10px;
    /* Padding for responsive alignment */
}

/* Card styling */
.card {
    width: 32%;
    background-color: #a5a2a2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition for hover effect */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Hover effect for cards */
.card:hover {
    transform: translateY(-10px);
    /* Move card upwards */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    /* Stronger shadow */
}

/* Card image styling */
.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #e0e0e0;
    /* Subtle separator below the image */
    transition: transform 0.3s ease;
    /* Smooth zoom effect */
}

/* Zoom effect for the image on card hover */
.card:hover .card-image {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Title inside the card */
.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    color: #333;
    transition: color 0.3s ease;
    /* Smooth color transition */
}

/* Change title color on hover */
/* .card:hover .card-title {
    color: #ffffff; 
  } */

/* Description inside the card */
.card-description {
    font-size: 1rem;
    padding: 10px;
    text-align: center;
    color: #000000;
    line-height: 1.5;
    /* Improved readability */
}

/* Button inside the card */
.card-button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Button hover effect */
.card-button:hover {
    border: 2px solid black;
    color: black;
    background-color: #d9d9d9;
    /* Blue highlight */
    transform: translateY(-3px);
    /* Lift the button slightly */
}

/* Ensure anchor tags don't affect layout */
.card a {
    text-decoration: none;
    /* Remove default underline */
    display: block;
    /* Make the anchor cover the image properly */
    border: none;
}

/* Ensure images inside the anchor behave properly */
.card a img {
    width: 100%;
    /* Make the image responsive */
    height: auto;
    /* Maintain aspect ratio */
    border-radius: 8px;
    /* Match existing image styles */
    transition: transform 0.3s ease;
    /* Add hover effect */
}

/* Hover effect for the image */
.card a:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* General card styling to avoid anchor affecting other elements */
.card-content,
.card-button {
    margin-top: 10px;
}


/* Responsive Media Queries */

/* For screens up to 768px */
@media (max-width: 768px) {
    .card {
        width: 45%;
        /* Adjust card width for smaller screens */
    }

    .card-description {
        font-size: 0.9rem;
        /* Smaller font for descriptions */
    }
}

/* For screens up to 428px */
@media (max-width: 428px) {
    .my-works {
        margin: 12px;
        border-radius: 50px;
    }

    .card {
        width: 100%;
        /* Full width for very small screens */
    }

    .card-title {
        font-size: 1.2rem;
        /* Slightly smaller title */
    }

    .card-description {
        font-size: 0.8rem;
        /* Smaller font for compact design */
    }

    .card-button {
        font-size: 0.9rem;
        /* Adjust button size */
    }
}

@media (max-width: 412px) {
    .my-works {
        margin: 12px;
        border-radius: 50px;
    }

    .card {
        width: 100%;
        /* Full width for very small screens */
    }

    .card-title {
        font-size: 1.2rem;
        /* Slightly smaller title */
    }

    .card-description {
        font-size: 0.8rem;
        /* Smaller font for compact design */
    }

    .card-button {
        font-size: 0.9rem;
        /* Adjust button size */
    }
}

/* ----------Contact Me CSS------------- */

.contact-me {
    text-align: center;
    padding: 20px;
    background-color: #d9d9d9;
    max-width: 95%;
    margin: 40px;
    border-radius: 25px;
    box-shadow: 0 0 3.5px black;
}

.contact-heading {
    font-size: 2em;
    margin-bottom: 20px;
    color: #000;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.right {
    width: 45%;
    padding: 20px;
    border-radius: 10px;
}

.left {
    width: 25%;
    padding: 20px;
}

.left {
    background-color: #f2cccc;
    text-align: left;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    /* border: 2px solid #00f; */
}

.left h3 {
    margin: 10px 0;
    font-weight: bold;
    font-size: 2em;
    font-family: 'Marhey';
    text-align: center;
}

.left h4 {
    margin: 20px 0;
    font-weight: bold;
    font-family: 'Marhey';
    text-align: center;
}

.left h4 {
    font-size: 2em;
}

.left p {
    margin: 10px 10px;
    font-size: 1em;
    display: flex;
    align-items: center;
}

.left p i {
    margin-right: 10px;
}

.download-resume {
    display: block;
    margin: 20px 0;
    padding: 10px 20px;
    font-size: 1em;
    color: black;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: #d9d9d9;
    border: 2px solid black;
    border-radius: 10px;
    cursor: pointer;
}

.contact-links {
    display: flex;
    flex-direction: row;
    width: 20px;
    margin-left: 20px;
}

.social-icons {
    display: flex;
    /* gap: 10px; */
}

.social-icons a {
    text-decoration: none;
    font-size: 1.5em;
    color: #000;
}

.right {
    background-color: #161a29;
    color: #fff;
}

.right form {
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.right input,
.right textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    background-color: #ccc;
    color: #333;
}

.right textarea {
    resize: none;
}

.send-message {
    padding: 10px 20px;
    border: 2px solid #d9d9d9;
    font-size: 1em;
    color: #fff;
    background-color: #161a29;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.send-message:hover {

    font-weight: bold;
    color: #161a29;
    background-color: #d9d9d9;
}

/* Responsive Design */

/* For devices with a max width of 768px */

@media (max-width: 1024px) {

    .left{
        width: 40%;
    }
    .download-resume {
        font-size: 0.9em;
        padding: 8px 14px;
        margin: 25px 80px;

    }
    .left p {
        margin: 10px 60px;
        font-size: 1em;
        display: flex;
        align-items: center;
    }
    .contact-links {
        display: flex;
        flex-direction: row;
        width: 20px;
        margin-left: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 20px;
    }

    .left,
    .right {
        width: 100%;
    }

    .contact-heading {
        font-size: 1.8em;
    }
}

/* For devices with max widths of 428px and 412px (same layout) */
@media (max-width: 428px) {
    .contact-me {
        margin: 20px;
        border-radius: 50px;
    }

    .container {
        padding: 10px;
    }

    .left,
    .right {
        width: 100%;
        padding: 15px;
    }

    .left h4 {
        font-size: 1.2em;
    }

    .left p {
        font-size: 0.8em;
        margin: 10px 78px;
    }

    .download-resume {
        font-size: 0.9em;
        padding: 8px 14px;
        margin: 20px 75px;

    }

    .right input,
    .right textarea {
        font-size: 0.9em;
        padding: 8px;
    }

    .send-message {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .social-icons a {
        font-size: 1.2em;
        /* margin-left: 18px; */
        /* gap: 10px; */
    }

    .contact-links {
        margin-left: 60px;
    }
}

/* For devices with max width of 412px */
@media (max-width: 412px) {
    .contact-me {
        margin: 20px;
        border-radius: 50px;
    }

    .container {
        padding: 10px;
    }

    .left,
    .right {
        width: 100%;
        padding: 15px;
    }

    .left h4 {
        font-size: 1.2em;
    }

    .left p {
        font-size: 0.9em;
        margin: 10px 55px;
    }

    .download-resume {
        font-size: 0.9em;
        padding: 8px 14px;
        margin: 20px 60px;

    }

    .right input,
    .right textarea {
        font-size: 0.9em;
        padding: 8px;
    }

    .send-message {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    .social-icons a {
        font-size: 1.2em;
    }

    .contact-links {
        margin-left: 50px;
    }
}