* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}
:root {
    --primary-color: #4A90E2;
    --secondary-color: #2ECC71;
    --background-color: #F5F7FA;
    --text-color: #333333;
    --heading-color: #2C3E50;
    --accent-color: #FFD700;
    --error-color: #E74C3C;
   --success-color: #27AE60;   
}

body {
    color: #000;
    background: #fff;
    line-height: 1.6;
}
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --text-color: #000000;
        --background-color: #fff;
    }
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    background: #061136;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.logo:hover {
     background: #0053b8f7;
    color: #fff;
    box-shadow: 0 0 20px #0053b8f7;
}
    
.navbar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: .3s;
    animation: slideLeft .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
    white-space: nowrap;
}

.nav-links a:hover {
    color: #1358ce;
}

.nav-links a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 35px;
}

/* Update existing button styles */
.login-btn,
.signup-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: slideLeft .5s ease forwards;
    animation-delay: calc(.2s * var(--i));
}

.login-btn i,
.signup-btn i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Mobile menu adjustments */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 0 80px;
    }
    
    .nav-links {
        gap: 50px;
        margin-left: 20px;
    }
    
    .nav-links a {
        font-size: 20px;
        
    }
    
    .auth-buttons {
        margin-left: 20px;
    }
}
/* Responsive Styles */
@media screen and (max-width: 768px) {
    .auth-buttons {
        display: none;
    }

.mobile-auth {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    margin-left: 18px;
    position: relative;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.mobile-menu-btn .menu-icon,
.mobile-menu-btn .close-icon {
    position: absolute;
    transition: 0.5s ease;
}

.mobile-menu-btn .close-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

.navbar.active .mobile-menu-btn .menu-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.navbar.active .mobile-menu-btn .close-icon {
    opacity: 1;
    transform: rotate(0);
}

@media screen and (max-width: 768px) {
    .nav-container {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: #061136;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: 0.5s ease-in-out;
        z-index: 1001;
    }
    .navbar.active .nav-container {
        left: 0;
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 20px;
        margin-top: 30px;
    }
    .nav-links a {
        font-size: 20px;
        opacity: 0;
        transform: translateX(-100px);
        width: 90vw;
        justify-content: flex-start;
        background: none;
        border: none;
        text-align: left;
        padding: 15px 20px;
        border-radius: 8px;
        transition: background 0.3s, color 0.3s;
    }
    .navbar.active .nav-links a {
        opacity: 1;
        transform: translateX(0);
        transition: 0.5s ease;
    }
    .nav-links a:hover {
        background: #012290f7;
        color: #fff;
    }
    .auth-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
        gap: 15px;
        width: 100%;
    }
    .auth-buttons button {
        opacity: 0;
        transform: translateX(-100px);
        width: 90vw;
        justify-content: flex-start;
        padding: 15px 20px;
        border-radius: 8px;
        font-size: 20px;
        background: none;
        border: none;
        color: #fff;
        text-align: left;
        transition: background 0.3s, color 0.3s;
    }
    .navbar.active .auth-buttons button {
        opacity: 1;
        transform: translateX(0);
        transition: 0.5s ease;
    }
    .auth-buttons button:hover {
        background: #012290f7;
        color: #fff;
    }
    .mobile-menu-btn {
        z-index: 1100;
    }
    .mobile-menu-btn .menu-icon {
        display: block;
    }
    .mobile-menu-btn .close-icon {
        display: none;
    }
    .navbar.active .mobile-menu-btn .menu-icon {
        display: none;
    }
    .navbar.active .mobile-menu-btn .close-icon {
        display: block;
    }
}

.home {
    position: relative;
    width: 100%;
    justify-content: space-between;
    height: 100vh;
    background: url("https://i.pinimg.com/736x/85/b1/c4/85b1c4158b994cb02a37881c87b8a42e.jpg") no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
}

.home-content h4 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.home-content h4:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;

}

.home-content h4 span {
    color: #012290f7;
}

.home-content h2 {
    font-size:40px;
    font-weight: 700;
    margin: -3px 0;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content p {
    font-size: 20px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #012290f7;
    border-radius: 50%;
    font-size: 20px;
    color: #012290f7;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.home-sci a:hover {
    background: #0053b8f7;
    color: #fff;
    box-shadow: 0 0 20px #0053b8f7;
}

.btn-box {
    display: inline-block;
    padding-top: 10px ;
    padding-left: 48px;
    background: #012290f7;
    border-radius: 30px;
    width: 200px;
    height: 50px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #012290f7,
        0 0 25px #012290f7;
}
.btn-box.primary {
    background: linear-gradient(90deg, #012290f7 60%, #4A90E2 100%);
    color: white;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.btn-box.primary:hover {
    background: linear-gradient(120deg, #4A90E2 40%, #012290f7 100%);
    color: #fff;
    transform: scale(1.13) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}

.btn-box.secondary {
    margin-left: 35px;
    background-color: white;
    color: #012290f7;
    border: 2px solid #012290f7;

}
.btn-box:hover {
    box-shadow: 0 0 5px #bbc5e3,
        0 0 25px #cdd6f3, 0 0 50px #c4cce7,
        0 0 100px #d8e1ff, 0 0 200px #cdd6f0;
}
.about{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 1.5rem;
}
.about-content{
    max-width: 30px;
    height: auto;
    width: 100%;
    border-radius: 8px;
    margin-left: 50px;
    margin-Top: -190px;
}
.about-text h2{
    font-size: 50px; 
    margin-Top: 100px;
}
.about-text h2 span{
    color: #012290f7;
}
.about-text i{
    margin-top: 1px;

}
.about-text h3{
    font-size: 29px;
    font-weight: 600;
    color: #000;
    line-height: 0.8;
    margin-top: 10px;
}
.about-text p{
    color: #000;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
#conditions{
    color: #000;
    font-size:  20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.sub-title{
    text-align: center;
    font-size: 50px;
    padding-bottom: 70px;
    margin-top: 120px;
}
.sub-title span{
   color: #012290f7;
}
.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(259px,1fr));
    grid-gap: 40px;
    margin-top: 40px;
    margin-left: 50px;
    margin-right: 40px;

}
.services-list div{
    background-color: transparent;
    padding: 40px;
    font-size: 13px;
    font-weight: 13px;
    border-right: 10px;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
    box-shadow: 1px 1px 20px #012290f7,
            1px 1px 40px #0053b8f7;
}
.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}
.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}
.services-list div a {
    display: inline-block;
    justify-content: center;
    text-align: center;
    width: 200px;
    height: 50px;
    background-color: #012290f7;
    border: 2px solid #012290f7;
    margin-top: 20px;
    padding-top: 13px;
    border-radius: 25px;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    transition: .5s ease;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: calc(.2s * var(--i));
    margin: 30px 15px 30px 0;
}

.services-list a:hover {
    background: #012290f7;
    color: #fff;
     box-shadow: 0 0 5px #bbc5e3,
        0 0 25px #cdd6f3, 0 0 50px #c4cce7,
        0 0 100px #d8e1ff, 0 0 200px #cdd6f0;
}

.read {
    background: linear-gradient(90deg, #012290f7 60%, #4A90E2 100%);
    color: #fff !important;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 10px 28px;
    display: inline-block;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
.read:hover {
    background: linear-gradient(75deg, #4A90E2 70%, #012290f7 100%);
    color: #fff !important;
    transform: scale(1.13) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}

.great{
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(75deg, #012290f7 40%, #4A90E2 100%);
    border-radius: 40px;
    font-size: 16px;
    color: #081b29;
    letter-spacing: 1px;
    margin-bottom: 90px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #012290f7,
        0 0 25px #012290f7;
    border: 2px solid #012290f7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.great:hover {
    background: linear-gradient(120deg, #4A90E2 40%, #012290f7 100%);
    color: #fff !important;
    transform: scale(1.0) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}
.services-list div:hover{
    transform: translateY(-10px);
}


.main-text{
   padding-top: 130px; 
   margin-top: 0px;
}
.main-text h2{
    font-size: 60px;
    line-height: 1;
    text-align: center;
}
.main-text h2 span{
    color: #012290f7;
}
.portfolio-content{
    display: grid;
    margin-left: 50px;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
}
.row{
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}
.row img{
    width: 90%;
    height: 60%;
    background: transform 0.5s;
    margin-top: 150px;
    margin-left: 50px;
    align-items: center;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(16, 215, 254, 0.1),#012290f7);
    border-radius: 8px;
    left:0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;
}
.layer h5{
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-top: 100px;
}
.layer p{
    color: #000;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.layer i {
    color: #fff;
    margin-top: 20px;
    font-size: 20px;
    background: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.row:hover img{
    transform: scale(1.1);
    height: 25%;
}
.row:hover .layer{
    height: 40%;
}
.contact{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 3rem;
    padding-left: 30px;
    margin-top: 130px;
}
.contact-text h1{
    font-size: 60px;
    line-height: 1;
    margin-left: 45px;
}
.contact-text h1 span{
    color: #012290f7;

}
.contact-text h4{
    margin: 15px 0;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    margin-left: 48px;
}
.contact-text p{
    color: #000;
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 2rem;
    margin-left: 48px;
}
.contact-list {
    margin-bottom: 3rem;
}
.contact-list li{
    margin-bottom: 10px;
    display: block;
    margin-left: 40px;
}

.contact-list i{
    display: inline-block;
    color:#012290f7;
    font-size: 20px;
    font-weight: 600;
    transition: all .40s ease;
    margin-left: 10px;
}
.contact-list li a:hover{
         box-shadow: 0 0 5px #bbc5e3,
        0 0 25px #bbc5e3, 0 0 50px #bbc5e3,
        0 0 100px #bbc5e3, 0 0 200px #bbc5e3;
}
.contact-icons {
    margin-left: 48px;
    margin-bottom: 20px;
}
.contact-icons i{
 display: inline-flex;
 justify-content: center;
 align-items: center;
 width: 40px;
 height: 40px;
 background: transparent;
 border: 2px solid #012290f7;
 border-radius: 50%;
 font-size: 20px;
 color: #012290f7;
 text-decoration: none;
 margin-left: 10px;
 margin-bottom: 40px;
 transition: .5s ease;
 opacity: 0;
 animation: slideLeft 1s ease forwards;
 animation-delay: calc(.2s * var(--i));
}
.contact-icons i:hover{
    background: #012290f7;
    color: #fff;
    box-shadow: 0 0 20px #012290f7;
}
.contact-form form{
    position: relative;
}
.contact-form form input,form textarea,form select{
border: none;
outline: none;
width: 80%;
padding: 18px;
background: #bbc5e3;
color: #000;
font-size: 1rem;
font-weight: 600;
margin-bottom: 0.5rem;
border-radius: 0.5rem;
margin-right: 15px;
border: 2px solid #012290f7;
}
.contact-form textarea{
    resize: none;
    height: 220px;
    background: #bbc5e3;
}
.contact-form form .send{
    display: inline-block;
    padding: 12px 28px;
    background: #012290f7;
    border-radius: 40px;
    font-size: 16px;
    color: #fff;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: slideTop 1s ease forwards;
    animation-delay: 2s;
    box-shadow: 0 0 5px #bbc5e3,
        0 0 25px #bbc5e3;
    border: 2px solid #bbc5e3;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-form form .send:hover {
     box-shadow: 0 0 5px #bbc5e3,
        0 0 25px #bbc5e3, 0 0 50px #bbc5e3,
        0 0 100px #bbc5e3, 0 0 200px #bbc5e3;
}
.last-text p{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #012290f7;
    font-weight: 300;
    margin-top: 70px;
    color: #fff;
}

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

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

@keyframes slideLeft {
    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;
    }
}

.radial-bars{
    width: 50%;
    height: 170px;
    margin-bottom: 10px;
    position: relative;
}

.radial-bars svg{
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 120px;
    height: 160px;
}

.radial-bars .progress-bar{
    stroke-width: 10;
    stop-color: white;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
    animation: animate-bar 1s linear forwards;
}

@keyframes animate-bar{
    100%{
        stroke-dashoffset: -1;
    }
}

.path{
    stroke-width: 10;
    stroke: #012290f7;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}

.path-1{
    animation: animate-path1 1s 1s linear forwards;
}
.path-2{
    animation: animate-path2 1s 1s linear forwards;
}
.path-3{
    animation: animate-path3 1s 1s linear forwards;
}
.path-4{
    animation: animate-path4 1s 1s linear forwards;
}

@keyframes animate-path1{
    100%{
        stroke-dashoffset: 50;
    }
}
@keyframes animate-path2{
    100%{
        stroke-dashoffset: 175;
    }
}
@keyframes animate-path3{
    100%{
        stroke-dashoffset: 125;
    }
}
@keyframes animate-path4{
    100%{
        stroke-dashoffset: 75;
    }
}

.radial-bars .percentage{
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-50%, -50%);
    font-size: 17px;
    font-weight: 500;
    animation: showtext 0.5s 1s linear forwards;
    opacity: 0;
}

.radial-bar .text{
    width: 100;
    position: relative;
    text-align: center;
    top: 50%;
    left: 10%;
    bottom: -5px;
    transform: translateX(-50px);
    font-size: 17px;
    font-weight: 500;
    animation: showtext 0.5s 1s linear forwards;
    opacity: 0;
}

/* Footer */
footer {
    background-color: #b7b7cd;
    color: black;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: black;
    text-decoration: none;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 0.5rem 1rem;
    background-color: #012290f7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.558);
}

/* Emergency Support Button */
.emergency-button {
    position: fixed;
    bottom: 2rem;
    left: 0.9rem;
    padding: 1rem 2rem;
    background-color: #012290f7;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.emergency-button:hover {
    transform: scale(1.05);
    background-color: #012290f7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .navbar {
        display: none;
    }
    
    .home-content h1 {
        font-size: 2rem;
    }
    
    .home-content h3 {
        font-size: 1.2rem;
    }
    
    .btn-box {
        display: block;
        margin: 1rem auto;
        max-width: 200px;
    }
    
    .emergency-button {
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
    }
}

/* Accessibility Features */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #012290f7;
    color: black;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles */
:focus {
    outline: 3px solid #012290f7;
    outline-offset: 2px;
}

/* ARIA Support */
[aria-hidden="true"] {
    display: none;
}



/* Chatbot Styles */
.chat-container {
    position: fixed;
    bottom: 80px;
    right: 10px;
    z-index: 1000;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #012290f7 60%, #4A90E2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    background: linear-gradient(120deg, #4A90E2 30%, #012290f7 100%);
    color: #fff;
    transform: scale(1.13) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}

.chat-icon i {
    font-size: 24px;
    color: white;
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.5;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #012290f7;
    color: white;
    border-radius: 15px 15px 0 0;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.minimize-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.user-message, .bot-message {
    max-width: 80%;
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
}

.user-message {
    background: #012290f7;
    color: white;
    margin-left: auto;
}

.bot-message {
    background: #f0f0f0;
    color: #333;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.chat-input button {
    background: #012290f7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background: #012290f7;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 5px 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #90949c;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.3s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .chat-box {
        width: 90%;
        height: 70vh;
        right: 5%;
        left: 5%;
    }

    .chat-icon {
        right: 10px;
    }

    .navbar {
        padding: 10px 4%;
    }

    .home-content {
        padding: 0 5%;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .portfolio-content {
        grid-template-columns: 1fr;
    }

    .contact {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.chat-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.font-size-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    min-width: 40px;
    min-height: 40px;
}

.font-size-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.message-content {
    padding: 8px;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.message-content li {
    margin: 4px 0;
}

.message-content a {
    color: #012290f7;
    text-decoration: underline;
    word-break: break-all;
}

.bot-message .message-content {
    background: #f0f0f0;
    border-radius: 12px;
}

.user-message .message-content {
    background: #012290f7;
    color: white;
    border-radius: 12px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .chat-box {
        border: 2px solid #000;
    }

    .bot-message .message-content {
        background: #fff;
        border: 2px solid #000;
        color: #000;
    }

    .user-message .message-content {
        background: #000;
        color: #fff;
    }

    .chat-input input {
        border: 2px solid #000;
    }
}

/* Focus Indicators */
.chat-input input:focus,
.chat-input button:focus,
.font-size-btn:focus,
.minimize-btn:focus {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Loading Indicator */
.typing-indicator {
    padding: 8px;
    background: #f0f0f0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 8px 0;
}

/* Status Messages */
.chat-status {
    padding: 8px;
    margin: 8px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    background: #e3f2fd;
    color: #1565c0;
}

.chat-error {
    padding: 8px;
    margin: 8px;
    border-radius: 4px;
    background: #ffebee;
    color: #c62828;
    font-size: 14px;
    text-align: center;
}

/* Cognitive Support Styles */
.cognitive-support-container {
    position: fixed;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.support-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #012290f7 60%, #4A90E2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.support-icon:hover {
    background: linear-gradient(135deg, #4A90E2 30%, #012290f7 100%);
    color: #fff;
    transform: scale(1.13) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}

.support-panel {
    position: fixed;
    right: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    overflow: hidden;
}

.support-panel.active {
    right: 90px;
}

.support-header {
    padding: 15px;
    background: #012290f7;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-header h3 {
    margin: 0;
    font-size: 18px;
}

.support-content {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.support-section {
    margin-bottom: 20px;
}

.support-section h4 {
    margin: 0 0 10px;
    color: #333;
    font-size: 16px;
}

.support-btn {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.support-btn:hover {
    background: #f5f5f5;
    border-color: #012290f7;
}

.support-btn i {
    font-size: 18px;
    color: #012290f7;
}

.breadcrumb {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
}

.progress-indicator {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.progress-bar {
    height: 6px;
    background: #012290f7;
    border-radius: 3px;
    margin-top: 8px;
    width: 20%;
    transition: width 0.3s ease;
}

.notes-panel {
    position: fixed;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
}

.notes-header {
    padding: 15px;
    background: #012290f7;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notes-header h4 {
    margin: 0;
}

#notesArea {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: none;
    resize: none;
    font-size: 14px;
}

.save-btn {
    width: 100%;
    padding: 12px;
    background: #012290f7;
    color: white;
    border: none;
    cursor: pointer;
}

.cognitive-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    animation: slideIn 0.3s ease;
}

.cognitive-notification.info {
    background: #e3f2fd;
    color: #1565c0;
}

.cognitive-notification.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.cognitive-notification.error {
    background: #ffebee;
    color: #c62828;
}

/* Simplified Text Mode */
.simplified-text {
    font-size: 18px;
    line-height: 1.8;
    word-spacing: 0.2em;
}

.simplified-text p {
    margin-bottom: 1.5em;
}

/* High Contrast Mode */
.high-contrast {
    background: black !important;
    color: white !important;
}

.high-contrast a {
    color: yellow !important;
}

.high-contrast button {
    background: white !important;
    color: black !important;
    border: 2px solid white !important;
}

/* Focus Mode */
.focus-mode .content:not(:hover) {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.focus-mode .content:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .support-panel,
    .support-icon,
    .cognitive-notification {
        transition: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .support-icon,
    .support-header,
    .save-btn {
        background: black;
        color: white;
        border: 2px solid white;
    }

    .support-btn {
        border: 2px solid black;
    }
}

/* Auth Styles */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-btn,
.signup-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}

.login-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.signup-btn {
    background: linear-gradient(120deg, #012290f7 30%, #4A90E2 100%);
    color: #fff;
}

.login-btn:hover {
    background-color: #fff;
    color: #012290f7;
}

.signup-btn:hover {
    background: linear-gradient(120deg, #4A90E2 30%, #012290f7 100%);
    color: #fff;
    transform: scale(1.13) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 15px;
    width: 30%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h2 {
    text-align: center;
    color: #012290f7;
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #012290f7;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-group input:focus {
    border-color: #012290f7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(1, 34, 144, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #012290f7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #0053b8f7;
    box-shadow: 0 0 20px #0053b8f7;
}

/* Social Login */
.social-login {
    margin: 1.5rem 0;
}

.social-btn {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.social-btn.google {
    background-color: #fff;
    color: #333;
    border: 1px solid #ddd;
}

.social-btn.facebook {
    background-color: #1877f2;
    color: #fff;
}

.social-btn.github {
    background-color: #333;
    color: #fff;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background-color: #ddd;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: #fff;
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.form-footer a {
    color: #012290f7;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: #012290f7;
    text-decoration: none;
    margin-top: 0.5rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 25px;
    color: #fff;
    cursor: pointer;
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: none;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    display: block;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background-color: #f5f5f5;
    color: #012290f7;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: #fff;
    z-index: 1100;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background-color: #27ae60;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.info {
    background-color: #012290f7;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Read Aloud Controls */
.read-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.read-btn,
.control-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-btn {
    background-color: #0ef;
    color: #1f242d;
}

.read-btn:hover {
    background-color: #00c2cc;
}

.stop-btn {
    background-color: #ff4444;
    color: white;
}

.stop-btn:hover {
    background-color: #cc0000;
}

.resume-btn {
    background-color: #00C851;
    color: white;
}

.resume-btn:hover {
    background-color: #007E33;
}

.read-btn i,
.control-btn i {
    font-size: 16px;
}

.read-btn.reading {
    background-color: #666;
    pointer-events: none;
}

/* Unified button style for all buttons except emergency, find resources, social, and support-btn */
button:not(.emergency-button):not(.btn-box.secondary):not(.social-btn):not(.support-btn),
input[type="submit"]:not(.emergency-button):not(.btn-box.secondary):not(.social-btn):not(.support-btn),
.unified-btn {
    background: linear-gradient(90deg, #012290f7 60%, #4A90E2 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.2s, color 0.2s;
}
button:not(.emergency-button):not(.btn-box.secondary):not(.social-btn):not(.support-btn):hover,
input[type="submit"]:not(.emergency-button):not(.btn-box.secondary):not(.social-btn):not(.support-btn):hover,
.unified-btn:hover {
    background: linear-gradient(120deg, #4A90E2 40%, #012290f7 100%);
    color: #fff;
    transform: scale(1.13) translateY(-4px);
    box-shadow: 0 8px 24px rgba(1,34,144,0.22), 0 2px 8px rgba(0,0,0,0.13);
    opacity: 1;
}

/* Floating Buttons */
.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(120deg, #012290f7 30%, #4A90E2 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(1,34,144,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1200;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
.floating-btn:hover {
  background: linear-gradient(120deg, #4A90E2 40%, #012290f7 100%);
  transform: scale(1.13) translateY(-4px);
  box-shadow: 0 8px 24px rgba(1,34,144,0.22);
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1300;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  min-width: 320px;
  max-width: 340px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  position: relative;
  animation: popIn 0.4s;
}
.modal .close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.modal .close:hover {
  color: #012290f7;
}

/* Responsive Floating Buttons */
@media (max-width: 600px) {
  .floating-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .ai-search-btn { bottom: 110px !important; }
  .feedback-float-btn { bottom: 10px !important; }
  .access-widget-btn { top: 10px !important; }
}

/* Dashboard & Progress */
.dashboard-content {
  min-height: 200px;
  padding: 1rem 0;
}
.progress-bar {
  width: 100%;
  height: 12px;
  background: #e3e3e3;
  border-radius: 8px;
  margin: 1rem 0;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #012290f7 60%, #4A90E2 100%);
  border-radius: 8px;
  transition: width 0.5s;
}

/* Poll Modal */
.poll-modal .modal-content {
  text-align: center;
}
.poll-modal button {
  margin: 0 10px;
}

/* Section/Card Animations */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; }
}
.animated-section {
  animation: fadeIn 0.7s;
}
.animated-card {
  animation: popIn 0.5s;
}

/* Accessibility Widget */
.access-modal .modal-content button {
  margin: 0.5rem 0;
}

