/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-color: #701d0b;
    --white: #ffffff;
    --hover-color: #272832;
    --accent-color: #0071FF;
    --text-color: #c9c9c9;
    --text-white: #fff;
    --gold-color: #F4C60B;
    --second-accent: #c75000;
    --complementary: #0b5a70;
    --soft-complement: #0b705a;
    --accent: #f29f05;
    --background-color: #f4f4f4;
    --text-color: #1a1a1a;
    --cards-backgroud: #d9d9d9;
    --burnt-orange: #702d0b;
    --deep-burgundy: #701b1d;
    --light-orange: #aa2c00;
    --light-blue: #475569;
    --poppins: 'Poppins', sans-serif;
    --lato: 'Lato', sans-serif;
    --roboto: 'Roboto', sans-serif;
    --roboto-slab: 'Roboto Slab', sans-serif;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scrollbar-width: auto;
    scrollbar-color: #701b1d #f1f1f1;
}

html {
    font-family: "Open Sans", sans-serif;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--white);
    overflow-x: hidden;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #701b1d;
    border-radius: 10px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #e67e00;
}

/* Desktop Navbar */
nav {
    background-color: var(--primary-color);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav .home-li {
    margin-right: auto;
}

nav li {
    display: flex;
}

nav a {
    display: flex;
    text-decoration: none;
    color: var(--text-white) !important;
    text-align: center;
    transition: background-color 150ms ease;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 600;
    justify-content: center;
    height: 100%;
    position: relative;
}

nav a.active-link:hover {
    background-color: var(--hover-color);
}

nav a.active-link {
    border-bottom: 2px solid var(--gold-color);
    padding: 0.5em 1em;
}

nav a.accent-link {
    position: relative;
    margin: 0.5em 1.5em;
    padding: 3px 0;
    text-decoration: none;
}

nav a.accent-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.1em;
    background-color: var(--gold-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

nav a.accent-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav a.accent-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

nav a.login-btn {
    padding: 13.5px 45px;
    border-radius: 30px;
    margin-right: 25px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    transition: 0.3s ease-in-out;
    text-transform: capitalize;
    background-size: 200%;
    border: 1px solid var(--accent);
    box-shadow: rgba(255, 126, 95, 0.15) 0px 12px 20px 0px;
}

nav a.login-btn:hover {
    background-image: linear-gradient(to left, rgb(238, 57, 15) 0%, rgb(249, 183, 0) 51%, rgb(238, 57, 15) 100%);
    filter: drop-shadow(4px 4px 5px rgba(255, 255, 255, 0.5));
}

/* Mobile Menu Button */
#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

.fa-solid.fa-x, .fa-solid.fa-bars {
    color: var(--text-white);
}

.fa-solid.fa-x {
    color: var(--gold-color);
    display: flex;
    font-size: 1.025rem;
}

/* Mobile Sidebar */
nav.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    z-index: 10;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4rem;
    transition: right 300ms ease-out;
}

nav.mobile-sidebar.show {
    right: 0;
}

nav.mobile-sidebar ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

nav.mobile-sidebar li {
    justify-content: center;
    width: 100%;
}

nav.mobile-sidebar a {
    text-align: center;
}

#close-sidebar-button {
    position: absolute;
    top: 0;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    z-index: 20;
}

/* Overlay */
#overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

nav.show ~ #overlay {
    display: block;
}

/* Responsive Side bar */

.fa-solid.fa-x, .fa-solid.fa-bars {
    color: black;
}

#open-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    margin-left: auto;
    cursor: pointer;
}

#close-sidebar-button {
    display: none;
    background: none;
    border: none;
    padding: 1em;
    cursor: pointer;
}

#overlay {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

/* Responsive Sidebar ends */

/* Hero Headlines Section */

/* -------------------- Hero Section General Styles -------------------- */
.hero-headlines {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 100px;
    position: relative;
    gap: 30px;
}

.hero-container {
    max-width: 600px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 2;
    /* border: 3px solid var(--gold-color); */
}

.hero-container:hover {
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.6);
}

.hero-headlines h1 {
    font-size: 3.3rem;
    font-weight: 800;
    padding-bottom: 15px;
    text-shadow: -3px 2px 0 #fd3f55;
    line-height: 1.2;
}

.hero-headlines h1 b {
    color: var(--accent);
}

.hero-headlines h1 span {
    color: var(--light-orange);
    display: block;
}

.hero-headlines p {
    margin-top: 0.5em;
    font-size: 1.25rem;
    line-height: 2rem;
    color: var(--hover-color);
}

.hero-headlines p strong {
    color: var(--accent);
    font-weight: 800;
}

.hero-headlines p b {
    color: var(--light-orange);
}

.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 13.5px 45px;
    border-radius: 30px;
    font-size: 1.3rem;
    color: var(--white);
    background-color: var(--primary-color);
    border: 2px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}

.hero-btn:hover {
    background-image: linear-gradient(to left, rgb(238, 57, 15) 0%, rgb(249, 183, 0) 51%, rgb(238, 57, 15) 100%);
    filter: drop-shadow(4px 4px 5px rgba(0, 0, 0, 0.5));
}

/* Hero image and circles */
.hero-img-box {
    position: absolute;
    right: 0;
    top: 0;
    margin-right: 100px;
    max-width: 40%;
}

.hero-img-box img {
    max-width: 100%;
    height: auto;
}

.circle {
    border-radius: 50%;
    position: absolute;
}

.circle.one {
    width: 250px;
    height: 250px;
    top: 400px;
    right: -50px;
    background: linear-gradient(135deg, transparent 20%, var(--complementary));
}

.circle.two {
    width: 150px;
    height: 150px;
    top: 510px;
    right: 100px;
    background: linear-gradient(135deg, transparent 20%, var(--accent-color));
}

/* Hero Section ends */

/* Feature Section Starts */
.feature-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 150px 0px;
}

.feature-container-h1 {
    font-size: 3rem;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    margin-bottom: 15px;
    color: var(--complementary);
    line-height: 1.2em;
}

#ptag {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #475569;
}

.features {
    display: flex;
    flex-direction: row;
    padding: 15px 0px;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 5px;
}

/* Flip Card Container */
.feature-box {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    margin: 15px;
}

/* Flip Card Inner */
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Hover Effect */
.feature-box:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Face Base Styles */
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;  /* For Safari/Chrome */
    -moz-user-select: none;     /* For Firefox */
    -ms-user-select: none; /* For Edge */
}

/* Front Face */
.flip-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 3px solid rgba(11, 112, 90, 0.5);
    color: var(--hover-color);
}

.flip-card-front img {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.flip-card-front h4 {
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
    color: var(--hover-color);
    margin: 0;
    font-weight: 600;
}

/* Back Face */
.flip-card-back {
    background: linear-gradient(135deg, var(--complementary) 0%, #0b705a 100%);
    color: white;
    transform: rotateY(180deg);
    border: 3px solid var(--complementary);
}

.flip-card-back h4 {
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
    text-align: center;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Hover Effects for Enhanced Interaction */
.feature-box:hover .flip-card-front img {
    transform: scale(1.1);
}

.feature-box:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Features Section Ends */

/* Key Feature Section Start */

.key-features-section {
    display: flex;
    flex-direction: column;
    color: white;
    margin-top: 110px;
    margin-bottom: 110px;
    width: 100%;
}

.key-features-section::after {
    content: '';
    clear: both;
    margin-bottom: 50px;
}

.key-container {
    background-image: linear-gradient(to left, rgb(238, 57, 15) 0%, rgb(249, 183, 0) 51%, rgb(238, 57, 15) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 50px 0;
    position: relative;
}

.sub-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 67px;
    text-align: center;
    opacity: 0.9;
}

.key-container h1 {
    display: inline-block;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 2.375rem;
    text-align: center;
    width: 1000px;
    font-size: 38px;
    font-weight: bold;
    text-align: center;
}

.key-boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 20px;
    margin: 50px 120px;
}

.key-box-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin: 20px 0px;
    color: black;
    padding: 15px 35px 30px 17px;
    border-radius: 5px;
    background-color: var(--white);
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.2));
    transition: all ease-out 0.3s;
}

.key-box-item:hover {
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.4));
}

.key-box-item img {
    width: 140px;
    height: 140px;
}

.key-box-item h3 {
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #272832;
    opacity: 0.9;
    padding-bottom: 10px;
    margin-top: 5px;
}

.key-box-item p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
}

.about-hr {
    width: 100%;
    position: absolute;
    border: 16px solid var(--gold-color);
    left: 0px;
    top: -20px;
}

/* About us section */

#about-us {
    width: 100%;
    height: 100%;
    padding: 100px 0px;
}

.about-container {
    display: flex;
    flex-direction: row;
    margin: 20px 50px;
}

.about-img-box {
    position: relative;
}

.background-about {
    position: absolute;
    background-color: rgba(242, 159, 5, 0.3);
    border-radius: 70% 40% 40% 70% / 70% 40% 70% 40%;
    height: 500px;
    width: 700px;
    z-index: -10;
}

.about-img-box img {
    border: none;
    outline: none;
}

.about-info {
    margin: 50px 20px;
}

.about-container h1 {
    font-family: var(--poppins);
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 600;
    padding-left: 60px;
    position: relative;
    color: var(--second-accent);
    line-height: 1.5;
    margin-bottom: 10px;
}

.about-container h1::before {
    position: absolute;
    content: '';
    background: var(--gold-color);
    width: 50px;
    height: 3px;
    left: 0;
    top: 40%;
    display: block;
}

.about-info p {
    padding: 0px 30px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
    text-align: justify;
    font-size: 1.025rem;
    font-family: var(--poppins);
}

.mission-vision-btn {
    display: inline-block;
    margin: 20px 30px;
    padding: 15px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    border: 2px solid #F4C60B;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease-in;
}

.mission-vision-btn:hover {
    background-image: linear-gradient(to left, rgb(238, 57, 15) 0%, rgb(249, 183, 0) 51%, rgb(238, 57, 15) 100%);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.6);
    color: #fff;
    transform: scale(1.01);
}

/* About us section Ends */

/* Footer Section */

.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--light-orange));
    color: #ffffff;
    padding: 3em 1.5em 1em;
    font-family: 'Poppins', sans-serif;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-top: 100px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.footer-logo h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.3em;
}

.footer-logo span {
    color: #fbbf24;
    font-weight: bold;
    text-shadow: -3px 2px #aa2c00;
}

.footer-logo span.IT-span {
    text-shadow: -3px 2px #aa2c00;
    color: var(--text-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 0.5em 0;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fbbf24;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact p {
    margin: 0.3em 0;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    margin-top: 6em;
    font-size: 0.9rem;
    border-top: 1px solid rgba(199, 80, 0, 1);
    padding-top: 1em;
}

/* Footer Section Ends */

/* Contact Us Section Start */

.container-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--text-white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
  
.form {
    width: 100%;
    max-width: 820px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.1);
    z-index: 1;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.contact-form {
    background-color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, transparent 20%, var(--accent));
    position: absolute;
}

.circle.four {
    width: 130px;
    height: 130px;
    top: 130px;
    right: 0;
}

.circle.five {
    width: 80px;
    height: 80px;
    top: 10px;
    right: 30px;
}

.contact-form:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: var(--primary-color);
    transform: rotate(45deg);
    top: 50px;
    left: -13px;
}

form {
    padding: 2.3rem 2.2rem;
    z-index: 10;
    overflow: hidden;
    position: relative;
}

.title {
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.input-container {
    position: relative;
    margin: 1rem 0;
}

.input {
    width: 100%;
    outline: none;
    border: 2px solid #fafafa;
    background: none;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 25px;
    transition: 0.3s;
}

textarea.input {
    padding: 0.8rem 1.2rem;
    min-height: 150px;
    border-radius: 22px;
    resize: none;
    overflow-y: auto;
    
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    padding: 0 0.4rem;
    color: #fafafa;
    font-size: 0.9rem;
    font-weight: 400;
    pointer-events: none;
    z-index: 1000;
    transition: 0.5s;
}

.input-container.textarea label {
    top: 1rem;
    transform: translateY(0);
}

/* NEW: Inline field error messages (from JavaScript) */
.field-error-message {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    animation: slideIn 0.3s ease-out;
}

.btn-submit {
    padding: 0.6rem 1.3rem;
    background-color: #fff;
    border: 2px solid #fafafa;
    font-size: 0.95rem;
    color: var(--primary-color);
    line-height: 1;
    border-radius: 25px;
    outline: none;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
}

.btn-submit:hover {
    background-color: transparent;
    color: #fff;
}

/* Button disabled state */
.btn-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
}

.input-container span {
    position: absolute;
    top: 0;
    left: 25px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    padding: 0 0.4rem;
    color: transparent;
    pointer-events: none;
    z-index: 500;
}

.input-container span:before,
.input-container span:after {
    content: "";
    position: absolute;
    width: 10%;
    height: 5px;
    opacity: 0;
    transition: 0.3s;
    background-color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
}

.input-container span:before {
    left: 50%;
}

.input-container span:after {
    right: 50%;
}

.input-container.focus label {
    top: 0;
    transform: translateY(-50%);
    left: 25px;
    font-size: 0.8rem;
}

.input-container.focus span:before,
.input-container.focus span:after {
    width: 50%;
    opacity: 1;
}

.contact-info {
    padding: 2.3rem 2.2rem;
    position: relative;
}

.contact-info .title {
    color: var(--light-orange);
    font-weight: 600;
}

.text {
    color: #333;
    margin: 1.5rem 0 2rem 0;
}

.information-container {
    display: flex;
    flex-direction: column;
}

.information {
    display: flex;
    color: #555;
    margin: 0.7rem 0;
    align-items: center;
    font-size: 0.95rem;
}

.information p {
    display: block;
}

.icon {
    width: 28px;
    margin-right: 0.7rem;
}

.social-media {
    padding: 2rem 0 0 0;
}

.social-media p {
    color: #333;
}

.social-icons {
    display: flex;
    margin-top: 0.5rem;
}

.social-icons a {
    width: 35px;
    height: 35px;
    border-radius: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--light-orange));
    color: #fff;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: scale(1.05);
    color: gold;
}

.contact-info:before {
    content: "";
    position: absolute;
    width: 110px;
    height: 100px;
    border: 22px solid var(--primary-color);
    border-radius: 50%;
    bottom: -77px;
    right: 50px;
    opacity: 0.3;
}

.big-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(to bottom, var(--second-accent), var(--accent));
    bottom: 50%;
    right: 50%;
    transform: translate(-40%, 38%);
}

.big-circle:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    background-color: #fafafa;
    border-radius: 50%;
    top: calc(50% - 180px);
    left: calc(50% - 180px);
}

.square {
    position: absolute;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(181%, 11%);
    opacity: 0.2;
}

/* Contact Us Section Ends */

/* Success Message style */
p.success-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(180deg, rgba(112, 29, 11, 1) 20%, rgba(170, 44, 0, 1) 100%);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.5s ease-out, fadeOut 1s ease-out 4s forwards;
}

/* NEW: Error message styling similar to success but red */
.error-message {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: linear-gradient(180deg, rgba(220, 38, 38, 1) 20%, rgba(185, 28, 28, 1) 100%);
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
    animation: slideDown 0.5s ease-out, fadeOut 1s ease-out 4s forwards;
}

/* Slide in animation from above */
@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Fade out and move up again */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission-vision-hero {
        padding: 70px 0;
    }
    
    .mission-vision-hero h1 {
        font-size: 2.5rem;
    }
    
    .card-header {
        padding: 20px 30px;
    }
    
    .card-content {
        padding: 30px;
    }
    
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .card-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-headlines h1 b {
        font-size: 2rem;
    }

    .hero-headlines h1 span {
        font-size: 2rem;
    }

    .features {
        display: grid;
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .feature-container-h1 {
        text-align: center;
        font-size: 2rem;
    }

    #ptag {
        font-size: 1.5rem;
    }

    .feature-box {
        text-align: center;
    }

    .flip-card-front h4,
    .flip-card-back h4 {
        font-size: 1.2rem;
    }

    .flip-card-back p {
        font-size: 0.9rem;
        padding: 0 10px;
    }

    .mission-vision-hero h1 {
        font-size: 2rem;
    }
    
    .mission-vision-hero p {
        font-size: 1rem;
    }

    .content-section .container h1 {
        font-size: 2rem;
    }

    .content-section .container p {
        font-size: 1rem;
    }
    
    .card-content p {
        font-size: 1rem;
    }
}

/* Mission and Vision Section Ends */


/* ---------- Responsive Design ---------- */

@media (max-width: 768px) {
    /* About us */
    .about-container h1 {
        font-size: 1.4rem;
        padding-left: 60px;
    }

    .mission-vision-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Nav, Hero Section Start */
    nav a {
        font-size: 1rem;
        padding: 0.5em 1em;
    }

    .hero-headlines h1 b {
        font-size: 1.8rem;
    }

    .hero-headlines h1 span {
        font-size: 1.8rem;
    }

    .hero-headlines p {
        font-size: 0.95rem;
    }

    .hero-btn {
        font-size: 0.9rem;
    }

    .sub-title {
        font-size: 1rem;
    }
    /* Nav, Hero Section Ends */


    /* About Us Section Page */
    #about-us {
        padding: 60px 10px;
    }

    .about-container {
        flex-direction: column;
        margin: 20px;
    }

    .about-container h1 {
        font-size: 1.2rem;
        padding-left: 60px;
    }

    .about-img-box img {
        width: 500px;
        max-width: 100%;
        height: auto;
    }

    .background-about {
        width: 700px;
        height: 320px;
    }

    .about-info p {
        font-size: 0.95rem;
        padding: 0 20px;
    }

    .mission-vision-btn {
        margin: 10px 15px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* About Us Section Page Ends */

    /* Contact us Section start */
    .container-section {
        padding: 1.5rem;
    }

    .contact-info:before {
        display: none;
    }

    .square,
    .big-circle {
        display: none;
    }

    form,
    .contact-info {
        padding: 1.7rem 1.6rem;
    }

    .text,
    .information,
    .social-media p {
        font-size: 0.8rem;
    }

    .information img {
        width: 30px;
        height: 30px;
    }
    
    .information p {
        font-size: 0.8rem;
        padding-right: 10px;
    }

    .title {
        font-size: 1.15rem;
    }

    .social-icons a {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .icon {
        width: 23px;
    }

    .input {
        padding: 0.45rem 1.2rem;
    }

    .btn {
        padding: 0.45rem 1.2rem;
    }
    /* Contact us section ends */
}

@media screen and (min-width: 320px) and (max-width: 479px) {
    .background-about {
        display: none;
    }
}

/* Footer Responsive */

@media screen and (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo h2 {
        font-size: 1.7rem;
    }

    .footer-contact, .footer-links {
        margin-top: 1em;
    }
}

/* Responsive Breakpoints */

@media (min-width: 481px) and (max-width: 768px) {

    .hero-headlines h1 {
        font-size: 2rem;
    }

    .hero-headlines p {
        font-size: 0.95rem;
    }

    .hero-btn {
        font-size: 0.9rem;
    }
}

/* Media Screen for Responsive Design */
/* Media Queries */
@media screen and (max-width: 700px) {
    #open-sidebar-button, #close-sidebar-button {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        z-index: 10;
        background-color: var(--primary-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: right 300ms ease-out;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1rem;
    }

    nav li {
        justify-content: center;
        width: 100%;
    }

    nav.show {
        right: 0;
    }

    nav a.active-link {
        border-bottom: none;
        margin-left: 10px;
    }

    nav a.accent-link {
        margin-left: 2rem;
        text-align: center;
    }

    .login-btn {
        margin-left: 20px;
    }

    nav.show ~ #overlay {
        display: block;
    }
}

/* Prevent horizontal scroll and zoom issues on mobile */
@media screen and (max-width: 700px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    * {
        max-width: 100%;
    }
}


@media screen and (min-width: 700px) and (max-width: 1024px) {
    .features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-container h1 {
        font-size: 2rem;
        text-align: center;
    }

    .feature-container p {
        font-size: 1rem;
    }

    .feature-box {
        text-align: center;
        margin: 0 auto;
    }
}

/* Hero section */

/* Responsive Styles for 2560px (Large screens) */
@media screen and (min-width: 1921px) {
    .hero-headlines {
        padding: 120px 200px;
        max-width: 100%;
        margin: 0 30px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
    
    .hero-container {
        max-width: 100%;
        align-self: flex-end;
    }
    
    .hero-img-box {
        display: flex;
        justify-content: flex-end;
        width: 55%;
        position: relative;
    }
    
    .hero-headlines h1 {
        font-size: 5rem;
        padding-bottom: 25px;
        text-shadow: -4px 3px 0 #fd3f55;
    }
    
    .hero-headlines p {
        font-size: 1.6rem;
        line-height: 2.6rem;
        margin-top: 0.5em;
    }
    
    .hero-btn {
        padding: 18px 60px;
        font-size: 1.6rem;
        margin-top: 35px;
        border-radius: 40px;
    }
    
    .circle.one {
        width: 300px;
        height: 300px;
        top: 400px;
        right: -100px;
    }
    
    .circle.two {
        width: 200px;
        height: 200px;
        top: 550px;
        left: 300px;
    }
    
    .hero-img-box img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* Responsive Styles for 1440px */
@media screen and (max-width: 1440px) {
    .hero-container {
        max-width: 45%;
    }
    
    .hero-headlines h1 {
        font-size: 3rem;
    }
    
    .hero-headlines p {
        font-size: 1.1rem;
        line-height: 1.8rem;
        text-align: left;
    }
    
    .hero-btn {
        padding: 12px 40px;
        font-size: 1.2rem;
    }
    
    .circle.one {
        width: 250px;
        height: 250px;
    }
    
    .circle.two {
        width: 180px;
        height: 180px;
    }
}

@media screen and (max-width: 1024px) {
    .hero-headlines {
        flex-direction: column;
        align-items: center;
        padding: 80px 80px;
        text-align: center;
    }

    .hero-container {
        max-width: 100%;
        z-index: 1;
    }

    .hero-headlines h1 {
        font-size: 2.5rem;
    }

    .hero-headlines p {
        font-size: 1rem;
        line-height: 1.5rem;
        text-align: center;
    }

    .hero-btn {
        font-size: 1rem;
        padding: 10px 15px;
    }

    .hero-img-box {
        position: static;
        margin: 2em auto 0;
        max-width: 80%;
    }

    .hero-img-box img {
        width: 100%;
        height: auto;
    }

    .circle, .circle.one, .circle.two {
        display: none;
    }

    /* For the Key Features Section */
    .key-boxes {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 30px;
    }

    .key-container h1 {
        font-size: 1.8rem;
        width: 100%;
        padding: 0 20px;
    }

    .key-box-item img {
        width: 120px;
        height: 120px;
    }

    .key-box-item h3 {
        font-size: 1.5rem;
    }
}

/* Contact us Responsive */

@media (max-width: 850px) {
    .form {
        grid-template-columns: 1fr;
    }

    .contact-info:before {
        bottom: initial;
        top: -75px;
        right: 65px;
        transform: scale(0.95);
    }

    .contact-form:before {
        top: -13px;
        left: initial;
        right: 70px;
    }

    .square {
        transform: translate(140%, 43%);
        height: 350px;
    }

    .big-circle {
        bottom: 75%;
        transform: scale(0.9) translate(-40%, 30%);
        right: 50%;
    }

    .text {
        margin: 1rem 0 1.5rem 0;
    }

    .social-media {
        padding: 1.5rem 0 0 0;
    }

    .key-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .key-container h1 {
        display: inline-block;
        width: 600px;
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        line-height: 1.3;
        text-align: center; 
    }

    .key-box-item h3 {
        font-size: 1.125rem;
    }

    .key-box-item img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .key-boxes {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px;
    }

    .key-container h1 {
        width: 100%;
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .key-box-item {
        padding: 20px 15px;
        align-items: center;
        text-align: center;
    }

    .key-box-item img {
        width: 100px;
        height: 100px;
    }

    .key-box-item h3 {
        font-size: 1.2rem;
    }

    .key-box-item p {
        font-size: 0.9rem;
    }
}

/* Tablet landscape and smaller desktops */
@media (min-width: 481px) and (max-width: 1024px) {

    .about-img-box {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .background-about {
        width: 700px;
        height: 520px;
    }

    .about-container {
        flex-direction: column;
        margin: 20px;
    }

    .about-container h1 {
        padding-left: 60px;
        font-size: 1.6rem;
    }

    .about-info p {
        padding: 0 20px;
    }
}

/* Mobile phones - 480px and below */
@media (max-width: 480px) {
    .hero-headlines {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1em;
        gap: 20px;
    }

    .hero-container {
        padding: 20px;
    }

    .hero-container p {
        font-size: 1rem;
        line-height: 1.5rem;
        padding: 0 10px;
    }

    .hero-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .hero-img-box {
        position: static;
        margin: 0;
    }

    .circle,
    .circle.one,
    .circle.two {
        display: none;
    }
    
    .feature-container-h1 {
        font-size: 1.7em;
        text-align: center;
    }

    #ptag {
        font-size: 1.2rem;
    }
}

@media (max-width: 350px) {
    .hero-headlines h1 b {
        font-size: 1.5rem;
    }

    .hero-headlines h1 span {
        font-size: 1.5rem;
    }

    .hero-container p {
        font-size: .9rem;
    }
}