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

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}

body,
p,
li {
    font-family: 'Open Sans', sans-serif;
}

body {
    background: rgb(0, 0, 0);
    color: white;
}

/* ================= DROPDOWN MENU SECTION ================= */
.menu-container {
    position: fixed;
    top: 15px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: white;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    margin-bottom: 8px;
}

.menu-icon:hover {
    /* background: rgba(255, 255, 255, 0.25); */
    transform: scale(1.1);
}

.dropdown-menu {
    position: absolute;
    top: 52px;
    right: 0;
    background: transparent;
    list-style: none;
    overflow: visible;
    display: none;
    flex-direction: column;
    padding: 0;
    margin: 0;
    z-index: 1001;
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu li {
    margin: 0 0 10px 0;
    text-align: center;
}

.dropdown-menu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: white;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.dropdown-menu a.active {
    color: #687eff;
}

.dropdown-menu a i {
    font-size: 20px;
    pointer-events: none;
}

.dropdown-menu a:hover {
    /* background: rgba(255, 255, 255, 0.25); */
    transform: scale(1.1);
}

/* --- Mobile --- */
@media only screen and (max-width: 600px) {
    .menu-container {
        top: 8px;
        right: 6px;
    }

    .menu-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .dropdown-menu {
        top: 40px;
        right: 0;
    }

    .dropdown-menu a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .dropdown-menu a i {
        font-size: 16px;
    }

    .dropdown-menu li {
        margin-bottom: 6px;
    }
}

/* ================= HEADER SECTION ================= */
#header {
    width: 100%;
    height: 100vh;
    background-image: url(images/bg.jpeg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 100;
}

.container {
    padding: 0 10%;
}

/* Header layout */
.header {
    padding: 150px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-image {
    flex-basis: 35%;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.header-image img {
    width: 80%;
    border-radius: 15px;
    border: 1px solid rgb(20, 20, 20);
    transition: transform 0.3s ease;
}

.header-image img:hover {
    transform: scale(1.1);
}

.header-right {
    margin-top: 10%;
    flex-basis: 55%;
}

.header-text {
    font-size: 3rem;
    font-weight: bold;
}

.header-text h4 {
    opacity: 0;
    animation: slideBottom 1s ease forwards;
}

.name,
#element {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text div {
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

.header-text p {
    opacity: 0;
    animation: slideTop 1s ease forwards;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.header-contact .resume-btn1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.5s, color 0.5s;
}

.header-contact .resume-btn1:hover {
    background: linear-gradient(135deg, #5a6ad8, #6b42a0);
    color: white;
}

.header-contact .social-icons1 {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 30px;
    color: gray;
    transition: transform 0.4s;
}

.header-contact .social-icons1 i {
    vertical-align: middle;
}

.header-contact .social-icons1:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-5px);
}

/* --- Mobile --- */
@media only screen and (max-width: 600px) {
    #header {
        background-image: url(https://i.pinimg.com/originals/0d/09/b5/0d09b51c35ebfb2ce8b19aac39d00b70.jpg);
    }

    .header {
        padding: 70px 5%;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .header-image {
        flex-basis: auto;
        margin: 0 auto;
        text-align: center;
        padding: 0;
    }

    .header-image img {
        width: 100%;
        max-width: 250px;
    }

    .header-right {
        flex-basis: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        font-size: 1.7rem;
        line-height: 1.4;
        margin-top: 15px;
        /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); */
    }

    .header-contact .resume {
        margin-right: 10px;
        margin-top: 10px;
        padding: 5px 15px;
        font-size: 15px;
    }

    .header-contact .social-icons {
        margin-right: 10px;
        text-decoration: none;
        font-size: 25px;
        /* text-shadow: 1px 1px 10px black; */
    }
}

/* ================= ABOUT SECTION ================= */
#about {
    padding: 80px 0;
    color: gray;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
}

.about-col-1 img {
    margin-top: 10%;
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.about-col-2 {
    flex-basis: 60%;
}

.sub-title {
    font-size: 30px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style-type: none;
    margin: 10px 0;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}

.tab-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-contents ul li,
.tab-contents>div.card-row {
    margin-bottom: 20px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* Flex layout for icon + card */
.card-row {
    display: flex;
    align-items: center;
    gap: 18px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.6s forwards ease-out;
}

.card-row:nth-child(1) {
    animation-delay: 0.1s;
}

.card-row:nth-child(2) {
    animation-delay: 0.2s;
}

.card-row:nth-child(3) {
    animation-delay: 0.3s;
}

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

/* Modern Glassmorphism Icon Style */
.cap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    font-size: 28px;
    transition: all 0.3s ease;
}

/* Gradient text on the icon */
.cap-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    line-height: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Glassmorphism Card Content */
.card-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 22px 26px;
    color: #BFBFBF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-content:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Header inside card to separate degree and year */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-header .degree {
    font-weight: 600;
    font-size: 18px;
    color: #ffffff;
    word-break: break-word;
}

.card-header .year {
    font-weight: 600;
    font-size: 14px;
    color: white;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 6px 14px;
    border-radius: 20px;
}

/* Card content span styling */
.card-content span {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
}

/* For line breaks inside card content */
.card-content br {
    margin-bottom: 8px;
    display: block;
    line-height: 1.4;
}

.hidden-card {
  display: none;
}

.toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #667eea, #764ba2); */
  border: 1px solid #687eff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto 0; /* centers it */
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
}

.toggle-btn i {
  transition: transform 0.3s ease;
  font-size: 16px;
}

.toggle-btn.active i {
  transform: rotate(180deg);
}

/* --- Mobile Responsive --- */
@media only screen and (max-width: 600px) {
    .sub-title {
        font-size: 25px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
        text-align: center;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .about-col-1 img {
        margin-top: 0;
        width: 100%;
        height: auto;
        border-radius: 15px;
    }

    .tab-links {
        font-size: 16px;
        margin-right: 20px;
    }

    .card-row {
        gap: 12px;
    }

    .cap-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .card-content {
        padding: 18px 20px;
        border-radius: 12px;
        font-size: 12px;
    }

    .card-content span {
        font-size: 14px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }

    .card-header .year {
        align-self: flex-start;
        font-size: 10px;
        padding: 5px 10px;
        margin-top: 4px;
    }

    .card-header .degree {
        font-size: 16px;
    }
}

/* ================= SKILLS SECTION ================= */
#skills {
    padding: 50px 0;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
    width: 100%;
    text-align: center;
}

.skills-list div {
    width: 200px;
    height: 150px;
    background: rgb(20, 20, 20);
    padding: 20px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.skills-list div img {
    height: 80px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.skills-list div h3 {
    text-align: center;
    font-weight: 600;
    margin-top: 10px;
}

.skills-list div:hover {
    border: 1px solid #687eff;
    /* border-image: linear-gradient(135deg, #667eea, #764ba2) 1; */
    transform: translateY(-10px);
}

.hidden-skill {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#seeMoreSkillsBtn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #687eff;
    /* border-image: linear-gradient(135deg, #667eea, #764ba2) 1; */
    padding: 10px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    background: transparent;
    transition: background 0.5s, color 0.5s;
    cursor: pointer;
    font-size: 16px;
}

#seeMoreSkillsBtn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

/* --- Mobile --- */
@media only screen and (max-width: 600px) {
    .skills-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        grid-gap: 40px;
    }

    .skills-list div {
        width: 80px;
        height: 80px;
        padding: 10px;
        font-size: 10px;
    }

    .skills-list div img {
        height: 100%;
        width: 100%;
        display: inline-block;
        vertical-align: middle;
    }

    .skills-list div .name {
        height: 100%;
        width: 100%;
        display: inline-block;
        vertical-align: middle;
    }

    .skills-list div h3 {
        text-align: center;
        font-weight: 600;
        margin-top: 10px;
    }
}

/* ================= PROJECTS SECTION ================= */
#projects {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}

.work-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work-item img {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.work-info {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(102, 126, 234, 0.4));
    backdrop-filter: blur(2px);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    transition: height 0.5s;
}

.work-info h3 {
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 20px;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.46);
}

.work-info p {
    font-size: 14px;
    font-weight: 100;
    margin-bottom: 15px;
    text-shadow: 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.46);
}

.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.link-buttons {
    display: flex;
    gap: 10px;
}

.link-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    color: blue;
    font-size: 15px;
    text-decoration: none;
}

.tech-stack {
    background: black;
    display: flex;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 6px;
    align-items: center;
}

.tech-stack img.tech-icon {
    height: 24px;
    width: auto;
    object-fit: contain;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    padding: 0;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-item:hover .work-info {
    height: 100%;
}

.hidden-work {
    display: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease-in-out, height 0.3s ease-in-out;
}

#seeMoreWorksBtn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #687eff;
    /* border-image: linear-gradient(135deg, #667eea, #764ba2) 1; */
    padding: 10px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    background: transparent;
    transition: background 0.5s, color 0.5s;
    cursor: pointer;
    font-size: 16px;
}

#seeMoreWorksBtn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
}

/* --- Mobile --- */
@media only screen and (max-width: 600px) {

    #projects .container,
    .container .layer p {
        text-align: center;
    }

    #projects .sub-title {
        text-align: left;
    }

    .work-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .layer {
        padding: 0 5px;
        font-size: 10px;
    }

    .layer a {
        margin-top: 20px;
        background: linear-gradient(135deg, #667eea, #764ba2);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-decoration: none;
        font-size: 10px;
        line-height: 34px;
        background: white;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        text-align: center;
        /* text-shadow: 0px 0px 0px black; */
    }

    .btn {
        margin: 30px auto;
        width: fit-content;
        font-size: 11px;
        border: 1px solid;
        border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
        padding: 10px 20px;
        border-radius: 6px;
        text-decoration: none;
        color: white;
        transition: background 0.5s;
    }

    .work-info {
        padding: 0 10px;
        border-radius: 7px;
    }

    .work-info h3 {
        font-size: 16px;
        margin-bottom: 7px;
    }

    .work-info p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .link-buttons {
        gap: 7px;
    }

    .link-buttons a {
        font-size: 13px;
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    .tech-stack {
        flex-wrap: wrap;
        gap: 7px;
        padding: 7px 7px;
        border-radius: 4px;
    }

    .tech-stack img.tech-icon {
        height: 20px;
    }

}

/* --------- Mobile: Smaller "See More" Buttons --------- */
@media only screen and (max-width: 600px) {

    #seeMoreSkillsBtn,
    #seeMoreWorksBtn {
        padding: 6px 20px;
        font-size: 14px;
        border-radius: 4px;
        margin: 30px auto;
    }
}

/* ================= CONTACT SECTION ================= */
.contact-left {
    flex-basis: 40%;
    text-align: left;
}

.contact-right {
    flex-basis: 55%;
}

.contact-left p {
    margin-top: 20px;
}

.contact-left p i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 50px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    color: gray;
    transition: transform 0.5s;
}

.social-icons a:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-5px);
}

.resume-btn {
    display: inline-block;
    margin: 50px auto;
    width: fit-content;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 10px 45px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background 0.5s, color 0.5s;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.resume-btn:hover {
    background: linear-gradient(135deg, #5a6ad8, #6b42a0);
}

/* Message banner styles */
.message-banner {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    width: 80%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    /* position: relative; */
    text-align: center;
}


/* Show the banner */
.message-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
    animation: fadeIn 0.3s ease forwards;
}

/* Success notification - Green theme */
.message-banner.success {
    background: #2d5016;
    color: #4ade80;
}

.message-banner.success::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(156, 168, 136, 0.2);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    color: #4ade80;
}

/* Error notification - Red theme */
.message-banner.error {
    background: #4a1f1f;
    color: #f87171;
}

.message-banner.error::before {
    content: "✕";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(214, 158, 158, 0.2);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    color: #f87171;
}

/* Loading notification - Blue theme */
.message-banner.loading {
    background: #101e32;
    color: #60a5fa;
}

.message-banner.loading::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 179, 217, 0.3);
    border-top: 2px solid #60a5fa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

/* Warning notification - Orange/Brown theme */
.message-banner.warning {
    background: #4a3419;
    color: #f59e0b;
}

.message-banner.warning::before {
    content: "!";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(212, 184, 150, 0.2);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    color: #f59e0b;
}

/* Info notification - Blue theme */
.message-banner.info {
    background: #2d1b47;
    color: #8b5cf6;
}

.message-banner.info::before {
    content: "i";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(168, 85, 247, 0.2);
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    color: #8b5cf6;
}

/* Progress bar container */
.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 0.5rem 0.5rem;
    overflow: hidden;
}

/* Progress bar fill - different colors for each type */
.message-banner.success .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #4ade80;
    /* Bright green */
    transition: width 0.1s ease;
}

.message-banner.error .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #f87171;
    /* Bright red */
    transition: width 0.1s ease;
}

.message-banner.loading .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #60a5fa;
    /* Bright blue */
    transition: width 0.1s ease;
}

.message-banner.warning .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #f59e0b;
    /* Bright orange */
    transition: width 0.1s ease;
}

.message-banner.info .progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #8b5cf6; /* Bright violet progress bar */
    transition: width 0.1s ease;
}

/* Progress bar animations - different durations */
.message-banner.loading.show .progress-bar::after {
    animation: progressFillSlow 6s linear forwards;
}

.message-banner.success.show .progress-bar::after,
.message-banner.error.show .progress-bar::after,
.message-banner.warning.show .progress-bar::after,
.message-banner.info.show .progress-bar::after {
    animation: progressFill 3s linear forwards;
}

/* Auto-hide after progress completion */
.message-banner.loading.show {
    animation: fadeIn 0.3s ease forwards, autoHideLoading 6.3s ease forwards;
}

.message-banner.success.show,
.message-banner.error.show,
.message-banner.warning.show,
.message-banner.info.show {
    animation: fadeIn 0.3s ease forwards, autoHide 3.3s ease forwards;
}

/* Hide animation */
.message-banner.hide {
    animation: fadeOut 0.3s ease forwards;
}

/* Keyframes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

@keyframes autoHide {
    0%, 94% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.95);
        visibility: hidden;
    }
}

@keyframes autoHideLoading {
    0%, 96% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.95);
        visibility: hidden;
    }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes progressFillSlow {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-50px) scale(0.95);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}



/* Your existing form styles remain the same */
.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: rgb(20, 20, 20);
    padding: 15px;
    margin: 15px 0;
    color: white;
    font-size: 18px;
    border-radius: 6px;
}

.submitBtn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 10px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background 0.5s, color 0.5s;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

.submitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


.submitBtn:hover {
    background: linear-gradient(135deg, #5a6ad8, #6b42a0);
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 18px 0 12px 0;
    background: rgb(20, 20, 20);
    font-weight: 300;
    margin-top: 20px;
    position: relative;
}

.copyright .cr {
    margin-bottom: 8px;
    font-size: 1rem;
    color: #fff;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-top: 6px;
    letter-spacing: .5px;
    user-select: none;
    display: block;
    opacity: 0.85;
}

/* Responsive: shrink signature size on mobile */
@media only screen and (max-width: 600px) {
    .copyright {
        padding: 15px 0 10px 0;
    }

    .signature {
        font-size: 1.4rem;
        margin-top: 4px;
    }
}

/* #msg {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: rgb(14, 160, 14);
} */

/* --- Mobile --- */
@media only screen and (max-width: 600px) {

    #contact .container,
    .copyright .cr {
        text-align: center;
    }

    #contact .sub-title,
    p {
        text-align: left;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .contact-left p {
        font-size: 12px;
        margin-top: 20px;
    }

    .contact-left p i {
        margin-right: 15px;
        font-size: 20px;
    }

    .social-icons {
        margin-top: 22px;
        text-align: center;
    }

    .social-icons a {
        font-size: 28px;
        margin-right: 0;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .social-icons a:hover {
        transform: scale(1.2);
    }

    form input,
    form textarea {
        padding: 10px;
        margin: 10px 0;
        color: white;
        font-size: 14px;
        border-radius: 6px;
    }

    .message-banner {
    width: 90%;              /* take more width on small screen */
    max-width: 320px;        /* shrink max size */
    font-size: 0.75rem;      /* smaller text */
    padding: 0.75rem 1rem;   /* less padding */
    gap: 0.5rem;             /* tighter spacing */
  }

  .message-banner::before {
    width: 20px;
    height: 20px;
    font-size: 12px;         /* smaller icon size */
  }

  .message-banner.loading::before {
    width: 16px;
    height: 16px;
    border-width: 2px;
  }

    .copyright {
        margin-top: 50px;
        font-size: 14px;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes slideLeft {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

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

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

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

@keyframes slideTop {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

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

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

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