/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #e7ecef 0%, #a3cef1 100%);
    color: #274c77;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Importing Cool Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&family=Playfair+Display:wght@700&family=Anton&display=swap');

/* Header and Navigation */
header {
    background: linear-gradient(145deg, #274c77 0%, #6096ba 100%);
    width: 100%;
    padding: 1.5rem 0 3.5rem 0;
    position: relative;
    top: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.logo {
        display: flex;
        position: relative;
        align-items: flex-start;
        justify-content: flex-start;
}

.logo img {
    width: 300px; /* You can increase this value as needed */
    height: 100px;
    object-fit: contain;
    padding-left: 20px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.logo h1 {
    color: #e7ecef;
    font-family: 'Anton', sans-serif;
    font-size: 3.2rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    padding-right: 20px;
}

.nav-links li a {
    color: #e7ecef;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links li a i {
    margin-right: 0.5rem;
}

.header-title {
    text-align: center;
    width: 100%;
    color: #e7ecef;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin: 1.5rem 0;
    line-height: 0px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}


/* Right-aligned "Signed in" text */

.signed-in-text {
    color: white;
    margin-left: auto;
    font-size: 14px;
    align-self: center;
    text-align: right;
    margin-right: 20px;
    white-space: nowrap;
    padding-right: 50px;
}

.signed-in-text strong {
    color: yellow;
}

/* Keyframes for Animations */
@keyframes glow {
    0% { text-shadow: 0 0 10px #a3cef1, 0 0 20px #a3cef1, 0 0 30px #6096ba; }
    100% { text-shadow: 0 0 20px #a3cef1, 0 0 30px #6096ba, 0 0 40px #274c77; }
}

@keyframes slideIn {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Login Section */
.login-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 3rem;
    display: flex;
    justify-content: center;
}

.login-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: slideIn 1s ease-out;
}

.login-avatar img {
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid #a3cef1;
}

.login-container h2 {
    font-family: 'Playfair Display', serif;
    color: #274c77;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8b8c89;
    font-size: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    border: 1px solid #a3cef1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #274c77;
    background: #e7ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6096ba;
    box-shadow: 0 0 8px rgba(96, 150, 186, 0.3);
}

.btn-custom {
    display: block;
    width: 100%;
    background: linear-gradient(45deg, #6096ba, #a3cef1);
    color: #e7ecef;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-custom:hover::before {
    left: 100%;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #a3cef1, #6096ba);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* User Manual Section */
.manual-container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 3rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.manual-container h1 {
    font-family: 'Anton', sans-serif;
    color: #274c77;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1.5px;
}

.manual-container h2 {
    font-family: 'Playfair Display', serif;
    color: #274c77;
    font-size: 2rem;
    margin: 2rem 0 1rem;
}

.manual-container p {
    font-family: 'Poppins', sans-serif;
    color: #274c77;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.manual-container ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.manual-container ul li {
    font-family: 'Poppins', sans-serif;
    color: #274c77;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.manual-container ul li::before {
    content: '•';
    color: #6096ba;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
}

.manual-container ul ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.manual-container a {
    color: #6096ba;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.manual-container a:hover {
    color: #274c77;
}

/* Footer */
    footer {
        background-color: #333;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 19.19;
        position: absolute;
        margin: auto;
        padding-top: 6px 0; /* Further reduced vertical padding */
        padding-left: 6px 0;
        padding-right: 6px 0;
        padding-bottom: 6px 0;
        justify-content: center;
    }

    .footer-content {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .footer-content .logo {
        display: flex;
        align-items: flex-start;
        position: relative;
        overflow: hidden;
        padding-left: 20px;
    }

    .footer-content .logo img {
        width: 300px;
        height: 100px; /* You can increase this value as needed */
    }

    .contact-info {
        flex: 1;
        text-align: center;
    }

    .contact-info h2 {
        font-family: 'Anton', sans-serif;
        font-size: 1.6rem; /* Slightly smaller to reduce height */
        margin-bottom: 0.5rem;
    }

    .contact-info p {
        color: #e7ecef;
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem;
        line-height: 0.5;
    }

    .copyright {
        text-align: center;
        padding-left: 20px;
        padding-right: 40px;
    }

    .copyright p {
        color: #e7ecef;
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem;
        line-height: 0.5;
        padding-bottom: 10px;
        justify-content: center;
        text-align: center;
    }
    .social-buttons {
        display: flex;
        align-items: center; /* Vertically center social icons */
        align-self: stretch;
        padding-right: 40px;
        justify-content: flex-end;
        flex-direction: row;
        gap: 12px;
    }

    .social-buttons a img {
        display: flex;
        align-items: center;
        flex-direction: column;
        width: 44px; /* Slightly larger icons */
        transition: all 0.3s ease;
    }

    .social-buttons a img:hover {
        transform: scale(1.2) rotate(10deg);
        filter: brightness(1.15);
    }

    footer > p {
        display: flex;
        align-items: center;
        align-self: stretch;
        flex-direction: column;
        justify-content: flex-end;

        margin-top: 1.2rem;
        color: white;
        font-size: 13.6;
        font-style: Regular;
        font-family: 'Poppins', sans-serif;
        text-align: center;
        font-weight: 400;
        line-height: 23.12px;
        padding-bottom: 3px;
        font-size: 0.85rem;
        letter-spacing: 0.7px;
    }

.about {
    justify-content: center;
    align-items: center;
    align-self: center;
    display: inline-block;
    background: linear-gradient(45deg, #6096ba, #a3cef1);
    color: #e7ecef;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.about:hover::before {
    left: 100%;
}

.about:hover {
    background: linear-gradient(45deg, #a3cef1, #6096ba);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}


/* Extra Large Screens (Desktops, >1400px) */
@media (min-width: 1400px) {
    nav, .login-section, .manual-container, .footer-content {
        max-width: 100%;
    }
}

/* Large Screens (Laptops, 1024px - 1400px) */
@media (max-width: 1400px) {
    nav, .login-section, .manual-container, .footer-content {
        max-width: 100%;
        padding: 0 2rem;
    }

    .logo img {
        width: 300px;
    }

    .logo h1 {
        font-size: 2.8rem;
    }
    
    .signed-in-text {
        font-size: 13px;
        margin-right: 15px;
    }

    .header-title {
        font-size: 3rem;
    }

    .login-container {
        padding: 2rem;
        max-width: 400px;
    }

    .login-container h2 {
        font-size: 2.2rem;
    }

    .manual-container h1 {
        font-size: 2.5rem;
    }

    .manual-container h2 {
        font-size: 1.8rem;
    }

    .manual-container p, .manual-container ul li {
        font-size: 1rem;
    }
}

/* Medium Screens (Tablets, 768px - 1023px) */
@media (max-width: 1023px) {
    body {
        line-height: 1.6;
        font-size: 15px;
    }

    header {
        padding: 1rem 0;
    }

    nav {
        flex-direction: row;
        gap: 24px;
        padding: 0 2rem;
    }

    .logo img {
        width: 250px;
        height: 83.33px;
    }

    .logo h1 {
        font-size: 2.2rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }

    .nav-links li a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .signed-in-text {
        font-size: 12px;
        margin-right: 0;
        text-align: center;
        margin-top: 0.5rem;
    }

    .header-title {
        font-size: 2.5rem;
        margin: 1rem 0;
    }

    .login-section {
        margin: 2rem auto;
        padding: 0 2rem;
    }

    .login-container {
        padding: 1.5rem;
        max-width: 350px;
    }

    .login-container h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .login-avatar img {
        width: 80px;
        height: 80px;
    }

    .form-control {
        padding: 0.7rem 1rem 0.7rem 2.5rem;
        font-size: 0.9rem;
    }

    .input-icon i {
        font-size: 1rem;
        left: 0.8rem;
    }

    .btn-custom {
        padding: 0.7rem;
        font-size: 1rem;
    }

    .manual-container {
        margin: 3rem auto;
        padding: 0 2rem;
    }

    .manual-container h1 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .manual-container h2 {
        font-size: 1.6rem;
        margin: 1.5rem 0 0.8rem;
    }

    .manual-container p, .manual-container ul li {
        font-size: 0.95rem;
    }

    .manual-container ul li {
        padding-left: 1.2rem;
    }

    footer {
        padding: 4px 0;
    }

    .footer-content {
        flex-direction: row;
        gap: 1rem;
        padding-left: 0px;
        padding-right: 0px;
    }

    .footer-content .logo img {
        width: 250px;
        height: 83.33px;
    }

    .copyright {
        text-align: center;
        padding-left: 0px;
        padding-right: 0px;
    }

    .copyright p {
        color: #e7ecef;
        font-family: 'Poppins', sans-serif;
        font-size: 0.9rem;
        justify-content: center;
        text-align: center;
    }

    .contact-info h2 {
        font-size: 1.4rem;
    }

    .contact-info p {
        font-size: 0.85rem;
    }

    .social-buttons a img {
        width: 40px;
    }

    footer > p {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
}

/* Small Screens (Mobile Phones, <=767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    header {
        padding: 0.8rem 0;
    }

    nav {
        padding: 0 1.5rem;
    }

    .logo img {
        width: 250px;
        height: 83.33px;
    }

    .logo h1 {
        font-size: 1.8rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links li a {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .signed-in-text {
        font-size: 11px;
        margin-top: 0.5rem;
    }

    .header-title {
        font-size: 2rem;
        margin: 0.8rem 0;
    }

    .login-section {
        margin: 1.5rem auto;
        padding: 0 1.5rem;
    }

    .login-container {
        padding: 1.2rem;
        max-width: 300px;
    }

    .login-container h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .login-avatar img {
        width: 70px;
        height: 70px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-control {
        padding: 0.6rem 1rem 0.6rem 2.2rem;
        font-size: 0.85rem;
    }

    .input-icon i {
        font-size: 0.9rem;
        left: 0.7rem;
    }

    .btn-custom {
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    .manual-container {
        margin: 2rem auto;
        padding: 0 1.5rem;
    }

    .manual-container h1 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .manual-container h2 {
        font-size: 1.4rem;
        margin: 1.2rem 0 0.6rem;
    }

    .manual-container p, .manual-container ul li {
        font-size: 0.9rem;
    }

    .manual-container ul li {
        padding-left: 1rem;
        margin-bottom: 0.6rem;
    }

    .manual-container ul li::before {
        font-size: 1.2rem;
    }

    footer {
        padding: 3px 0;
        margin-top: 1.5rem;
    }

    .footer-content {
        padding: 3px 2px;
    }

    .footer-content .logo img {
        width: 200px;
        height: 66.67px;
        padding-left: 0px;
    }

    .contact-info h2 {
        font-size: 1.2rem;
    }

    .contact-info p {
        font-size: 0.8rem;
    }

    .social-buttons {
        padding-right: 2px;
        gap: 0.6rem;
    }

    .social-buttons a img {
        width: 34px;
    }

    footer > p {
        font-size: 0.75rem;
        margin-top: 0.8rem;
    }
    .about {
        display: block;              /* Ensures full-width support if needed */
        width: 40%;                 /* Optional: makes it full-width on small screens */
        max-width: 150px;            /* Controls max button size */
        margin: 1rem auto;           /* Center horizontally */
        padding: 0.75rem 1.5rem;     /* Slightly reduced padding */
        font-size: 0.9rem;           /* Slightly smaller font */
        border-radius: 40px;         /* Slightly tighter rounded corners */
    }
}

/* Extra Small Screens (Small Mobile Phones, <=480px) */
@media (max-width: 480px) {
    body {
        font-size: 12px;
    }

    .logo img {
        width: 250px;
        height: 83.33px;
    }

    .logo h1 {
        font-size: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links li a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .signed-in-text {
        font-size: 10px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }

    .login-container {
        padding: 1rem;
        max-width: 280px;
    }

    .login-container h2 {
        font-size: 1.5rem;
    }

    .login-avatar img {
        width: 60px;
        height: 60px;
    }

    .form-control {
        padding: 0.5rem 0.8rem 0.5rem 2rem;
        font-size: 0.8rem;
    }

    .input-icon i {
        font-size: 0.8rem;
        left: 0.6rem;
    }

    .btn-custom {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .manual-container h1 {
        font-size: 1.5rem;
    }

    .manual-container h2 {
        font-size: 1.2rem;
    }

    .manual-container p, .manual-container ul li {
        font-size: 0.85rem;
    }

    .footer-content .logo img {
        width: 140px;
    }


    .contact-info h2 {
        font-size: 1rem;
    }

    .social-buttons a img {
        width: 28px;
    }

    
    .about {
        display: inline-block;
        max-width: 100px;           /* Reduced width */
        width: 100%;
        padding: 0.5rem 1rem;       /* Smaller horizontal padding */
        font-size: 0.85rem;         /* Slightly smaller text */
        border-radius: 35px;        /* Optional: tighter curve */
        margin: 1rem auto;
        text-align: center;
    }
}
