@import url("https://fonts.googleapis.com/css2?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&display=swap");

:root {
    --background: #fff;
    --text: #000000;
    --border: #444;
    --abouttext: #fff;
    --aboutbackground: #000000;
    --button-hover-color: #fff;
}

body.dark {
    --background: #000000;
    --text: #fff;
    --border: #444;
    --abouttext: #000000;
    --aboutbackground: #fff;
    --button-hover-color: #fff;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

.top-nav {
    margin-top: 5px;
    position: fixed;
    top: 0;
    right: 10px;
    padding: 10px 10px 10px 10px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    transition: 0.3s ease-out;
    backdrop-filter: blur(82px) brightness(3.2);
    -webkit-backdrop-filter: blur(8px) brightness(1.2);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.593);
    color: white;
    font-size: 16px;
    z-index: 1000;
}

@media (min-width: 640px) {
    .top-nav {
        padding: 15px 35px;
    }
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: orange;
}

.nav-list {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
}

.menu-toggle {
    display: none;
}

@media (width>=640px) {
    .menu-btn {
        display: none;
        margin-left: 10px;
    }

    .my-photo {
        left: 70%;
        top: 30%;
    }

    .center-msg1 {

        top: 40%;
    }

    .center-msg2 {

        top: 50%;
    }

    .social {
        top: 57%;
    }
}

@media (width< 640px) {
    .menu-btn {
        display: inline-block;
        margin-left: 2px;
    }

    .top-nav {
        top: 10px;
    }

    .my-photo {
        left: 20%;
        top: 20%;
    }

    .center-msg1 {

        top: 50%;
    }

    .center-msg2 {

        top: 58%;
    }

    .social {
        top: 65%;
    }

}

.menu-btn {
    width: 24px;
    height: 18px;
    background: url("data:image/svg+xml, %3Csvg%20xmlns=%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox=%270%200%2024.8%2018.92%27%20width=%2724.8%27%20height=%2718.92%27%3E%3Cpath%20d=%27M23.8,9.46H1m22.8,8.46H1M23.8,1H1%27%20fill=%27none%27%20stroke=%27%23fff%27%20stroke-linecap=%27round%27%20stroke-width=%272%27%2F%3E%3C%2Fsvg%3E") no-repeat center;
    background-size: cover;
    cursor: pointer;

    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

@media (min-width: 640px) {
    .nav-list {
        display: flex;
    }
}

.nav-list li {
    margin-left: 20px;
}

@media (max-width: 639px) {
    .nav-list {
        display: none;
        /* Hide nav-list by default on smaller screens */
    }

    #menu-toggle:checked+.menu-btn+.nav-list {
        display: none;
        /* Ensure nav-list remains hidden */
    }
}

@media (min-width: 640px) {
    .nav-list {
        display: flex !important;
        /* Show nav-list on larger screens */
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100%;
    background-color: var(--background);
    color: var(--text);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-out;
    z-index: 900;
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.sidebar.open {
    right: 0;
}

.sidebar-list {
    list-style-type: none;
    padding: 20px;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.sidebar-list a {
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
}

.sidebar-list a:hover {
    text-decoration: underline;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    align-self: flex-end;
}

.theme-switch {
    display: inline-block;
    width: 34px;
    height: 20px;
    position: relative;
    border: 1px solid orange;
    border-radius: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    color: var(--text);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked+.slider {
    background-color: var(--background);
}

input:checked+.slider:before {
    transform: translateX(14px);
}

.inner {
    position: absolute;

}

.outer {
    width: 100%;
    min-height: 100vh;
    object-fit: cover;
}

video {
    width: 100%;
    min-height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.center-msg1 {
    left: 5%;

    color: rgb(0 224 255);
    font-size: 45px;
    line-height: 47px;
}

.center-msg2 {
    left: 5%;

    color: rgb(0, 255, 229);
    font-size: 25px;
}

.center-msg2>p {
    padding: 0px;
    margin-top: 12px;
}

.inner.center-msg2 {
    padding-top: 2px;
    padding-left: 2px;
}



.my-photo-at-home {
    width: 250px;
    height: 250px;
    border-radius: 250px;

    box-shadow: rgba(7, 78, 231, 0.625) 0px 20px 50px 0px;
}

.home-icon {
    color: #fff;
    margin: 15px;
    position: absolute;
    top: 10px;
    margin: 0px;
    left: 10px;
}

.about-heading {
    display: flex;
    width: 100%;
    justify-content: center;
}

.one-div {
    position: relative;
    height: 250px;
    width: 250px;
    background-color: rgb(15, 15, 15);
    transform-style: preserve-3d;
    animation: rot 2s infinite ease;
    border-radius: 250px;
    box-shadow: 0 0 50px 0px, inset 0 0 90px 0px;
    color: blue;
    transition: 1.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}


.one-div:hover {
    box-shadow: 0 0 25px 100px rgba(50, 83, 203, 0.747), inset 5px 5px 5px 0px rgba(19, 56, 223, 0.67);
}

@keyframes rot {
    0% {
        transform: rotateX(-15deg) translateY(0px);
    }

    50% {
        transform: rotateX(-15deg) translateY(-10px);
    }

    100% {
        transform: rotateX(-15deg) translateY(0px);
    }
}

.social {
    left: 5%;
}

.social-links,
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-btn {
    cursor: pointer;
    height: 55px;
    width: 55px;
    font-family: 'Titillium Web', sans-serif;
    color: #333;
    border-radius: 55px;
    box-shadow: 0px 10px 10px rgba(0, 0, 0, 0.1);
    background: white;
    margin: 5px;
    transition: 0.3s;
    justify-content: center;
    padding: 5px;
}

.social-btn svg {
    height: 24px;
    width: 24px;
}

.social-btn span {
    width: 0px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    margin-left: 5px;
}

.social-btn:hover {
    width: 160px;
    border-radius: 5px;
}

.social-btn:hover span {
    padding: 2px;
    padding-right: 0px;
    width: 160px;
}

#twitter svg {
    fill: #1da1f2;
}

#linkedin svg {
    fill: #0e76a8;
}

#github {
    fill: #333;
}








/* The actual timeline (the vertical ruler) */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* The actual timeline (the vertical ruler) */
.timeline::after {
    content: "";
    position: absolute;
    width: 6px;
    background-color: aqua;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Container around content */
.container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    color: var(--abouttext);
}

/* The circles on the timeline */
.container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--text);
    border: 4px solid aqua;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Place the container to the left */
.left {
    left: 0;
}

/* Place the container to the right */
.right {
    left: 50%;
}

/* Add arrows to the left container (pointing right) */
.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--aboutbackground);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--aboutbackground);
}

/* Add arrows to the right container (pointing left) */
.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--aboutbackground);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--aboutbackground) transparent transparent;
}

/* Fix the circle for containers on the right side */
.right::after {
    left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: var(--aboutbackground);
    position: relative;
    border-radius: 6px;
}

/* Media queries - Responsive timeline on screens less than 600px wide */
@media screen and (max-width: 600px) {

    /* Place the timelime to the left */
    .timeline::after {
        left: 31px;
    }

    /* Full-width containers */
    .container {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    /* Make sure that all arrows are pointing leftwards */
    .container::before {
        left: 60px;
        border: medium solid rgb(0, 0, 0);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--abouttext) transparent transparent;
    }

    /* Make sure all circles are at the same spot */
    .left::after,
    .right::after {
        left: 15px;
    }

    /* Make all right containers behave like the left ones */
    .right {
        left: 0%;
    }
}




.about-body {
    padding: 20px;
    /* Add padding around the content */
    margin: 0 auto;
    /* Center the content horizontally */
    max-width: 800px;
    /* Limit the width for better readability */
    font-family: Arial, sans-serif;
    /* Set a clean font */
    line-height: 1.6;
    /* Improve readability */
}

.about-body p {
    font-size: 1rem;
    /* Adjust font size for better reading */
    text-align: justify;
    /* Justify the text for a clean layout */
}

@media (max-width: 768px) {
    .about-body {
        padding: 15px;
        /* Reduce padding for smaller screens */
    }

    .about-body p {
        font-size: 0.9rem;
        /* Slightly smaller font size on smaller devices */
    }
}

@media (max-width: 480px) {
    .about-body {
        padding: 10px;
        /* Further reduce padding for very small screens */
    }

    .about-body p {
        font-size: 0.85rem;
        /* Adjust font size for compact devices */
    }
}

/*Contact Section*/


/* Section Styles */
.contact {
    background-color: var(--background);
    padding: 60px 0;
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.max-width {
    width: 80%;
    margin: 0 auto;
}

.title.main-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Left Column (Contact Info) */
.column.left {
    flex: 1;
    min-width: 300px;
}

.text.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--section-title-color);
}

p.section-description {
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--description-color);
}

.icons .row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.icons .row i.icon {
    font-size: 24px;
    color: var(--icon-color);
    margin-right: 15px;
}

.info .head.info-title {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.info .sub-title.info-description {
    font-size: 16px;
    color: var(--description-color);
}

/* Right Column (Contact Form) */
.column.right {
    flex: 2;
    min-width: 300px;
}

.text.section-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--section-title-color);
}

form .fields {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.field {
    flex: 1;
}

.input-field {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: aqua;
    outline: none;
}

.submit-button {
    padding: 12px 20px;
    background-color: aqua;
    color: black;
    /* Text color matching dark mode theme */
    border: 2px solid var();
    /* Border color matches the dark/light theme */
    border-radius: 8px;
    /* Rounded corners */
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.submit-button:hover {
    color: #000000;
    background-color: aquamarine;
    border-color: white;
    /* Change border color on hover */
}


/* Responsive Styles */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    .column.left,
    .column.right {
        flex: 1;
        min-width: 100%;
    }

    .title.main-title {
        font-size: 30px;
    }

    p.section-description {
        font-size: 14px;
    }

    .icons .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .icons .row i.icon {
        margin-bottom: 10px;
    }

    .input-field {
        font-size: 14px;
    }

    .submit-button {
        font-size: 14px;
    }
}

/* More Phone-Friendly */
@media (max-width: 480px) {
    .title.main-title {
        font-size: 24px;
    }

    p.section-description {
        font-size: 12px;
    }

    .icons .row i.icon {
        font-size: 20px;
    }

    .info .head.info-title {
        font-size: 12px;
    }

    .info .sub-title.info-description {
        font-size: 14px;
    }

    .submit-button {
        font-size: 12px;
        padding: 10px 16px;
    }

    .input-field {
        font-size: 14px;
        padding: 10px;
    }
}

.about-body p {
    padding: 10px;
}



.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 10px;
    background-color: var(--background);
    /* Use background variable */
}

.skill-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: var(--skill-box-background);
    /* Use skill box background variable */
    color: var(--text);
    /* Use text color variable */
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.skill-image {
    width: 50px;
    /* Adjust size as needed */
    height: 50px;
    /* Adjust size as needed */
    border-radius: 50%;
    /* Optional: make the image circular */
    margin-bottom: 10px;
    /* Add space below the image */
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }

    .skill-box {
        padding: 5px;
    }

    .skill-image {
        width: 40px;
        /* Adjust size for mobile */
        height: 40px;
        /* Adjust size for mobile */
    }
}

.skills-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text);
    /* Use text color variable */
}




.projects-section {
    padding: 20px;
    background-color: var(--background);
    /* Use background variable */
}

.projects-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text);
    /* Use text color variable */
}

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

.project-card {
    background-color: var(--skill-box-background);
    /* Use skill box background variable */
    color: var(--text);
    /* Use text color variable */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-description {
    font-size: 1em;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--text);
    /* Use button hover color variable */
    color: var(--background);
    /* Use text color variable */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.project-link:hover {
    background-color: var();
    /* Use text color variable */
    color: var(--border);
    /* Use background variable */
}

/* Media query for mobile devices */
@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
        /* Display one project at a time */
    }
}



.skill-section {
    padding: 55px 0;
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

.skill-section h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 40px;
}

.rd-txt {
    color: var(--text);
    /* You can optionally use another highlight color if desired */
}

.skill-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 25px;
    padding: 0 40px;
}

.skill-box {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--aboutbackground);
    color: var(--abouttext);
    transition: transform 0.3s, background-color 0.3s;
}

.skill-box i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
}

.skill-box:hover {
    transform: translateY(-5px);
    background-color: var(--button-hover-color);
    color: var(--abouttext);
}


/* Responsive grid columns */
@media screen and (min-width: 768px) {
    .skill-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1024px) {
    .skill-wrapper {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .skill-section h2 {
        font-size: 44px;
    }
}

@media screen and (min-width: 1440px) {
    .skill-section h2 {
        font-size: 49px;
    }
}