/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root {
    /* Light Theme */
    --body-color: #fafafa;
    --color-white: rgb(255, 255, 255);
    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);
    --first-color: #6E57E0;
    --first-color-hover: rgb(40, 91, 212);
    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);
    --btn-bg: #efefef;
    --nav-color: rgba(255, 255, 255, 0.2);

    /* -MyColor(You can change)- */
    --projectCardh: #1f2937;
    --about-p-color: #777;
    --header-color: #999;
    --loaderColor: #2c3e50;
    --instagram-color: #006666;
    --nav-shadows: rgba(0, 0, 0, 0.1);

    /* New Variables from Elements */
    --success-color: #28a745;
    --black-color: #000;
    --loader-border-top: #3498db;
    --loader-border-bottom: #e74c3c;
    --text-color-primary: #333;
    --feature-bg: #e9f5ff;
    --feature-border: #007bff;
    --icon-color: #007bff;
    --scrollbar-hover: #bbb;
    --accent-color: #00B5E7;
    --input-border: #AAA;
    --footer-bg: #F8F8F8;
    --close-btn-color: #333;

    /* Newly added variables */
    --card-bg: var(--color-white);
    --card-shadow: 0 2px 5px var(--first-shadow-color);
    --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    --loader-border-faint: rgba(52, 152, 219, 0.1);
    --loader-bg: rgba(255, 255, 255, 0.95);
    --nav-bg: var(--nav-color);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --icon-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);


    /* Add transitions */
    --transition: all 0.3s ease;
}



[data-theme="dark"] {
    /* Dark Theme */
    --body-color: #121212;
    --color-white: #1e1e1e;
    --text-color-second: #cccccc;
    --text-color-third: #00e3f7;
    --first-color: #7f6df3;
    --first-color-hover: #4a8df2;
    --second-color: #00c8ff;
    --third-color: #d4ba31;
    --first-shadow-color: rgba(255, 255, 255, 0.1);
    --btn-bg: #2d2d2d;
    --nav-color: rgba(0, 0, 0, 0.2);

    /* -MyColor- */
    --projectCardh: #1a1a1a;
    --about-p-color: #9ca3af;
    --header-color: #d1d5db;
    --loaderColor: #4a5568;
    --instagram-color: #00A3A3;
    --nav-shadows: rgba(255, 255, 255, 0.1);


    /* Updated Component Variables */
    --success-color: #2ecc71;
    --black-color: #ffffff;
    --loader-border-top: #4ecdc4;
    --loader-border-bottom: #ff6b6b;
    --text-color-primary: #e5e7eb;
    --feature-bg: rgba(39, 51, 67, 0.5);
    --feature-border: #4a90e2;
    --icon-color: #63b3ed;
    --scrollbar-hover: #666;
    --accent-color: #00e3f7;
    --input-border: #666666;
    --footer-bg: rgba(0, 0, 0, 0.4);
    --close-btn-color: #e5e7eb;

    /* Dark Mode Specific Additions */
    --button-hover-dark: rgba(255, 255, 255, 0.1);
    --card-shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.4);
    --text-muted-dark: #6b7280;

    /* Dark mode overrides for new variables */
    --card-bg: var(--projectCardh);
    --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 8px 12px rgba(0, 0, 0, 0.6);
    --loader-border-faint: rgba(78, 205, 196, 0.1);
    --loader-bg: rgba(30, 30, 30, 0.95);
    --nav-color: rgba(0, 0, 0, 0.2);

    --nav-bg: var(--nav-color);

    --modal-overlay: rgba(0, 0, 0, 0.7);
    --icon-shadow: 0px 2px 5px 0px rgba(255, 255, 255, 0.1);

}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ----- SMOOTH SCROLL ----- */
html {
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar {
    width: 0px;
    border-radius: 25px;
}

::-webkit-scrollbar-track {
    background: transparent;
    color: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}


/* ----- GLOBAL BUTTON DESIGN ----- */
.btn {
    font-weight: 500;
    padding: 12px 20px;
    background: var(--btn-bg);
    color: var(--text-color-second);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
}

.btn>i {
    margin-left: 10px;
}

.btn:hover {
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i {
    font-size: 16px;
}

/* ------- BASE -------- */
body {
    padding: 0 20px;
    background: var(--body-color);
}

.container {
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav {
    position: fixed;
    left: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--nav-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;


    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.nav-logo {
    position: relative;
}

.nav-name {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}

.nav-logo span {
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}

.nav-menu,
.nav_menu_list {
    display: flex;
}

.nav-menu .nav_list {
    list-style: none;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}

.nav-menu-btn {
    display: none;
}

.nav-menu-btn i {
    font-size: 28px;
    cursor: pointer;
}

.active-link {
    position: relative;
    color: var(--first-color);
    transition: .3;
}

.active-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper {
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text {
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}

.featured-text-card span {
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 5px;
}

.featured-name {
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}

.typedText {
    text-transform: capitalize;
    color: var(--text-color-third);
}

.featured-text-info {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}

.featured-text-btn {
    display: flex;
    gap: 20px;
}

.featured-text-btn>.blue-btn {
    background: var(--first-color);
    color: var(--color-white);
}

.featured-text-btn>.blue-btn:hover {
    background: var(--first-color-hover);
}

.social_icons, .footer-social {
    display: flex;
    margin-top: 5em;
    gap: 30px;
}
.footer-social {
    margin-top: 1em;
}


.icon {
    display: flex;
    justify-content: center;
    /* Centers horizontally */
    align-items: center;
    /* Centers vertically */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.social_icons .icon a, .footer-social .icon a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.social_icons .icon img, .footer-social .icon img {
    width: 45%;
    height: 45%;
    object-fit: contain;
    margin: 0 auto;
}

.icon:hover {
    color: var(--first-color);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image {
    display: flex;
    justify-content: right;
    align-content: center;
    min-height: 80vh;
    width: 50%;
}

.image {
    margin: auto 0;
    width: 380px;
    height: 380px;
    border-radius: 55% 45% 55% 45%;
    overflow: hidden;
    animation: imgFloat 6s ease-in-out infinite;
}

.image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
}

@keyframes imgFloat {
    50% {
        transform: translateY(10px);
        border-radius: 45% 55% 45% 55%;
    }
}


/* ----- MAIN BOX ----- */
.section {
    padding-block: 3em;
}

.row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.col {
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header {
    text-align: center;
    margin-bottom: 5em;
}

.top-header h1 {
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}

.top-header span {
    color: var(--header-color);
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 30px 40px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}

.about-info p {
    text-align: center;
    font-size: 15px;
    color: var(--about-p-color);
}

.about-btn button {
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}

.about-btn button:hover {
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-box {
    margin: 10px;
}

.skills-header {
    margin-bottom: 30px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.skills-list span {
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}

/* ----- PROJECTS BOX ----- */
.project-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.project-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}

.project-box>i {
    font-size: 50px;
    color: #00B5E7;
    margin-bottom: 25px;
}


.project-box label {
    font-size: 15px;
    color: var(--about-p-color);
}

.project-box::after,
.contact-info::after {
    content: "";
    position: absolute;
    bottom: -100%;
    background: var(--second-color);
    width: 100%;
    height: 100%;
    transition: .4s;
    z-index: 1;
}

.project-box:hover.project-box::after,
.contact-info:hover.contact-info::after {
    bottom: 0;
}

.project-box:hover.project-box i,
.project-box:hover.project-box>h3,
.project-box:hover.project-box>label {
    color: var(--color-white);
    z-index: 2;
}

/* ----- CONTACT BOX ----- */
.contact-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 30px;
    width: 100%;
    height: 315px;
    background: var(--second-color);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: hidden;
}

.contact-info>h2 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.contact-info>p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    margin-block: 5px;
}

.contact-info p>i {
    font-size: 18px;
}

.contact-info::after {
    background: var(--color-white);
}

.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i {
    color: var(--about-p-color);
    z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.form-inputs {
    display: flex;
    gap: 16px;
    width: 100%;
}

.input-field {
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}

textarea {
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}


.form-button>.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}

.form-button>.btn:hover {
    background: #00B5E7;
}


.form-button i {
    font-size: 18px;
    rotate: -45deg;
}

/* ----- FOOTER BOX ----- */
footer {
    display: flex;
    border-radius: 0.9rem 0.9rem 0 0;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: var(--footer-bg);
    padding-block: 40px 60px;
}


.top-footer p {
    font-size: 25px;
    font-weight: 600;
}

.middle-footer .footer-menu {
    display: flex;
}

.footer_menu_list {
    list-style: none;
}

.footer_menu_list a {
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}


.bottom-footer {
    font-size: 14px;
    margin-top: 10px;
}


#projects {
    text-align: center;
}

.tags {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.tag {
    background-color: var(--first-color);
    color: white;
    border-radius: 15px;
}

/* ----- EXPERIENCE SECTION ----- */
.experience-container {
    display: grid;
    gap: 2rem;
    padding-block: 30px;
}

.experience-card {
    position: relative;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.experience-title h3 {
    color: var(--first-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.experience-company {
    font-size: 0.9rem;
    color: var(--about-p-color);
}

.experience-date {
    background: var(--first-color);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    white-space: nowrap;
}

.experience-content {
    color: var(--about-p-color);
    font-size: 15px;
    line-height: 1.6;
}

.experience-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.experience-list li {
    margin-bottom: 0.8rem;
    position: relative;
}

.experience-list li::before {
    content: "▹";
    color: var(--first-color);
    position: absolute;
    left: -1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-date {
        align-self: flex-start;
    }
}

li {
    list-style-type: none;
}



/* Modal Container */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;

    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-out;
}

.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    padding-left: 1rem;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.tech-list li i {
    font-size: 1.5rem;
    color: #007bff;
}


.modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    position: relative;
    background: var(--color-white);
    padding: 2rem;
    border-radius: 20px 0 20px 20px;
    width: 94%;
    height: 80vh;
    overflow: visible;
    max-width: 550px;
    text-align: left;
    align-content: flex-start;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.modal-scrollable {
    max-height: 100%;
    overflow:scroll; 
  }
  
.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Close Button Styling */
.close-btn {
    position: absolute;
    top: -15px;
    right: -10px;
    z-index: 9999;
    cursor: pointer;
    float: right;
    font-size: 2rem;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

  .close-btn:hover {
    transform: scale(1.2);
  }
  
/* Optional: Modal Buttons */
.modal-buttons {
    margin-top: 1rem;
    display: flex;
    width: fit-content;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.feature-list li {
    padding: 2px 0 2px 5px;
    margin-bottom: 10px;
    background: #e9f5ff;
    font-family: 'Poppins', sans-serif;
    border-left: 5px solid #007bff;
    border-radius: 3px;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}


.feature-list li:hover {
    transform: scale(1.02);
}

.p-desc {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 1rem;
}


.btn.btn-primary.view-live,
.btn.github {
    padding: 7px 15px;
    transition: background 0.7s ease, border 0.5s ease;
}

.btn.btn-primary.view-live:hover {
    background: #28a745;
    border: #28a745;
    color: #fff;
}


.btn.github:hover {
    background: #000;
    border: #000;
    color: #fff;
}


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

/* general */
a {
    text-decoration: none;
    color: inherit;
}


/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px) {
    .featured-text {
        padding: 0;
    }

    .image,
    .image img {
        width: 320px;
        height: 320px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button {
        display: none;
    }

    .nav-menu.responsive {
        left: 0;
    }

    body {
        padding: 0;
    }

    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
        background: var(--body-color);
    }

    .nav_menu_list {
        flex-direction: column;
    }

    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .featured-box {
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }

    .featured-text {
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }

    .social_icons, .footer-social {
        margin-top: 2em;
    }

    .footer-social {
        margin-top: 0.5em;
    }

    .featured-image {
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }

    .image,
    .image img {
        width: 150px;
        height: 150px;
    }

    .row {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }

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

    .about-info,
    .contact-info {
        width: 100%;
    }

    .project-container {
        justify-content: center;
    }

    .project-box {
        width: 80%;
    }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px) {
    .featured-name {
        font-size: 40px;
    }

    .project-box {
        width: 100%;
    }

    .form-inputs {
        flex-direction: column;
    }

    .input-field {
        width: 100%;
    }
}

/* ----- My Shits ----- */

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

.project-link {
    display: block;
    width: 30%;
    height: 250px;
    text-decoration: none;
}

.social_icons .icon a, .footer-social .icon a {
    text-decoration: none;
    color: inherit;
}

.social_icons .icon a:hover, .footer-social .icon a:hover {
    color: inherit;
}

@media (max-width: 1024px) {
    .project-link {
        width: 32%;
    }
}

@media (max-width: 768px) {
    .project-link {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .project-link {
        width: 100%;
        display: flex;
    }
}



/* Send Button Animation */

/* Hide all span elements inside the button by default */
#submit-button span {
    display: none;
}

/* Show the default content when no state is applied */
#submit-button .default-content {
    display: inline-block;
}

/* When the button is in a loading state */
#submit-button.loading span {
    display: none;
}

#submit-button.loading .loading-content {
    display: inline-block;
}

/* When the button is in a success state */
#submit-button.success span {
    display: none;
}

#submit-button.success .success-content {
    display: inline-block;
}

/* When the button is in an error state */
#submit-button.error span {
    display: none;
}

#submit-button.error .error-content {
    display: inline-block;
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 10px);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

/* Add loader styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.loader::before {
    content: "";
    width: 80px;
    height: 80px;

    border-radius: 50%;
    position: absolute;
}

.loader::after {
    content: "";
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top: 3px solid #3498db;
    border-bottom: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    position: relative;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
        scale: 1;
    }

    50% {
        transform: rotate(180deg);
        scale: 0.8;
    }

    100% {
        transform: rotate(360deg);
        scale: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Optional: Add loading text */
.loader span {
    position: absolute;
    bottom: 40%;
    font-family: system-ui, sans-serif;
    color: var(--loaderColor);
    font-size: 14px;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Grid container */
.project-dashboard {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .project-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1199px) {
    .project-dashboard {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {
    .project-dashboard {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Project Card styling */
.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Increase padding slightly on larger screens */
@media (min-width: 768px) {
    .project-card {
        padding: 1.5rem;
    }
}

.project-card:hover {
    transform: translateY(-4px);

}

/* Image styling */
/* Using an aspect ratio ensures the image always fills its container */
.project-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* adjust this ratio as needed */
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive heading */
.project-card h3 {
    font-size: clamp(0.7rem, 2vw, 1.25rem);
    color: var(--projectCardh);
    margin: 0.5rem 0.5rem;
    line-height: 1.4;
}

/* Responsive paragraph */
.project-card p {
    font-size: clamp(0.65rem, 1.5vw, 1rem);
    margin: 0.5rem 0.5rem;
}

/* Tags styling */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: clamp(0.45rem, 1vw, 0.875rem);
    padding: 0.25rem 0.5rem;
}


.theme-toggle {
    background: none;
    /* Remove background */
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun,
.moon {
    position: absolute;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.moon {
    opacity: 0;
    transform: rotate(-180deg);
}

.theme-toggle.active .sun {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-toggle.active .moon {
    opacity: 1;
    transform: rotate(0deg);
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.theme-toggle.spin .sun,
.theme-toggle.spin .moon {
    animation: spin 0.2s linear;
}

/* Color-related properties only */
.btn.btn-primary.view-live:hover {
    background: var(--success-color);
    border: var(--success-color);
    color: var(--color-white);
}

.btn.github:hover {
    background: var(--black-color);
    border: var(--black-color);
    color: var(--color-white);
}

.loader::after {
    border-top: 3px solid var(--loader-border-top);
    border-bottom: 3px solid var(--loader-border-bottom);
}

.p-desc {
    color: var(--text-color-primary);
}

.feature-list li {
    background: var(--feature-bg);
    border-left: 5px solid var(--feature-border);
}

.close-btn {
    color: var(--close-btn-color);
}

.tech-list li i {
    color: var(--icon-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-hover);
}

.project-box>i {
    color: var(--accent-color);
}

.input-field {
    border: 2px solid var(--input-border);
}

textarea {
    border: 2px solid var(--input-border);
}

footer {
    background: var(--footer-bg);
}

.form-button>.btn:hover {
    background: var(--accent-color);
}

.project-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

.loader::before {
    border: 3px solid var(--loader-border-faint);
}

.loader {
    background: var(--loader-bg);
    backdrop-filter: blur(5px);
}


.modal {
    background-color: var(--modal-overlay);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.icon {
    box-shadow: var(--icon-shadow);
}

.nav-menu-btn {
    position: relative;
    /* Required for absolute positioning of icons */
}

.nav-menu-btn svg {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth timing function */
}

/* Initial state */
.nav-menu-btn svg:first-child {
    /* Hamburger icon */
    opacity: 1;
    transform: rotate(0deg);
}

.nav-menu-btn svg:last-child {
    /* Close icon */
    opacity: 0;
    transform: rotate(-180deg);
    position: absolute;
    left: 0;
}

/* Active state */
.nav-menu-btn.active svg:first-child {
    opacity: 0;
    transform: rotate(180deg);
}

.nav-menu-btn.active svg:last-child {
    opacity: 1;
    transform: rotate(0deg);
}


.text-area {
    position: relative;
}

.input-field,
textarea {
    color: var(--text-color-second);
    width: 100%;
    padding: 1rem;
}

.input-container {
    position: relative;
    width: 100%;
}

.floating-placeholder {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.2s ease;
    color: var(--text-color-second);
    background: var(--body-color);
    padding: 0 0.3rem;
    z-index: 2;
    font-size:0.7rem;
}

textarea+.floating-placeholder {
    top: 1.2rem;
    transform: none;
}

/* Active states */
.input-field:focus~.floating-placeholder,
.input-field:not(:placeholder-shown)~.floating-placeholder,
textarea:focus~.floating-placeholder,
textarea:not(:placeholder-shown)~.floating-placeholder {
    top: -0.5rem;
    font-size: 0.7rem;
    transform: translateY(0);
}

/* Color changes ONLY when content exists */
.input-field:not(:placeholder-shown)~.floating-placeholder,
textarea:not(:placeholder-shown)~.floating-placeholder {
    color: var(--first-color);
}

/* Remove focus color change */
.input-field:focus~.floating-placeholder,
textarea:focus~.floating-placeholder {
    color: var(--text-color-second);
}

#header {
    background: var(--nav-color);
}
