/* --- Global Styles & Variables --- */

/* --- 404 Error Page Styles --- */

.error-page-body {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3f51b5 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.error-container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: float 6s ease-in-out infinite;
    max-width: 600px;
    width: 90%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.error-logo {
    max-width: 200px;
    margin-bottom: 20px;
    animation: fadeIn 1s ease-in-out;
}

.error-title {
    font-size: 10rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    background: var(--white-color);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInDown 1s ease-out;
}

.error-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin: 10px 0;
    animation: fadeIn 1.5s ease-in-out;
}

.error-text {
    font-size: 1rem;
    font-weight: 300;
    margin: 20px 0;
    animation: fadeIn 2s ease-in-out;
}

.error-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite, fadeIn 2.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.4);
}

.error-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(var(--secondary-color), 0.6);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
:root {
    --primary-color: #1a237e; /* Deep Blue */
    --secondary-color: #c62828; /* Accent Red from Logo */
    --dark-grey: #333;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scroll on html element as well */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-grey);
    background-color: var(--white-color);
    overflow-x: hidden; /* Prevent horizontal scrollbar from animations */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

#contact {
    padding-bottom: 40px; /* Reduced bottom padding */
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- Header & Navigation --- */
header {
    background: var(--white-color);
    box-shadow: var(--box-shadow);
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

/* --- General Style Improvements --- */
.card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* --- Header & Sidebar Navigation --- */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary-color);
    z-index: 1001;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px; /* Start off-screen */
    width: 300px;
    height: 100%;
    background: var(--white-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-grey);
}

.sidebar-header .logo img {
    height: 40px;
}

.close-btn {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark-grey);
    transition: color 0.3s ease;
}

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

.sidebar-links {
    list-style: none;
    padding: 30px 0;
    flex-grow: 1;
}

.sidebar-links li a {
    display: block;
    padding: 15px 30px;
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-links li a:hover {
    background-color: var(--light-grey);
    color: var(--secondary-color);
}

.sidebar-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid var(--light-grey);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1554224155-1696413565d3?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white-color);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 35, 126, 0.7); /* Primary color overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background: #a52020;
    transform: translateY(-3px);
}

/* --- About Section --- */
#about {
    margin-top: 30px;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 margin-left: auto;
margin-right: auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px; /* Increased gap for better separation */
}

.about-description, .about-features {
    flex: 1; /* Each takes up half the space */
}

.about-description {
display: flex;
margin-left: auto;
margin-right: auto;
flex-direction: column;
align-items: center;
width: 80%;
}

.about-description h3 {
    font-size: 2rem; /* Larger heading */
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.about-description p {
    font-size: 1.1rem; /* Slightly larger paragraph text */
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

.about-features ul {
    list-style: none;
    padding-left: 20px; /* Add some padding to align with the left column */
}

.about-features ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #333;
}

.about-features ul li i {
    color: var(--secondary-color);
    font-size: 1.4rem;
    margin-right: 15px;
    margin-top: 5px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 80%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* --- About GN Fincorp Section --- */
#about-gnfincorp {
    margin-top: 50px;
    background-color: var(--light-grey);
}

.about-gnfincorp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-gnfincorp-story h3 {
    font-size: 1.8rem;
    color: var(--dark-grey);
    margin-bottom: 20px;
}

.about-gnfincorp-story p {
    color: #555;
    line-height: 1.8;
}

.about-gnfincorp-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--dark-grey);
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-gnfincorp-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-gnfincorp-stats {
        margin-top: 40px;
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white-color);
    padding: 40px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* --- Partners Section --- */


.subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px;
    color: #666;
}

.partners-logo-container {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.partners-logo-container img {
    width: 100%;
    display: block;
}

/* --- Partners Section --- */
#partners {
    padding-bottom: 20px; /* Reduced for better spacing */
}

.partners-logo-container {
    max-width: 800px; /* Constrain the width of the logo container */
    margin: 40px auto 0; /* Center the container and add top margin */
    padding: 20px;
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.partners-logo-container img {
    max-width: 100%; /* Ensure the image is responsive within the container */
    height: auto;
}

.read-more-container {
    text-align: center;
    margin-top: 40px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.read-more-btn i {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

.read-more-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease-in-out;
}

.read-more-btn:hover::after {
    width: 100%;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--white-color);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form {
    flex: 1;
}

.contact-info {
    flex: 1;
    background: var(--light-grey);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-info ul li i {
    font-size: 1.6rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
    width: 30px; /* Ensures consistent alignment */
    text-align: center;
}

.contact-info ul li div {
    flex: 1;
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--secondary-color);
}



.social-media {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.social-media h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--white-color);
    border: 1px solid #ddd;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-form h3, .contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--secondary-color);
    color: var(--white-color);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-button:hover {
    background: #a52020;
}

.contact-info ul {
    display: flex;
    list-style: none;
    margin-top: 20px;
    flex-direction: column;
}

.contact-info ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-info ul li i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    margin-top: 5px;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white-color);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-content > div {
    flex: 1;
    min-width: 250px;
}

.footer-content h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-content h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-social a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom .fa-heart {
    color: var(--secondary-color);
}

/* --- Testimonials Section --- */
#testimonials {
    background-color: var(--light-grey);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-header img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid var(--secondary-color);
}

.testimonial-author h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.testimonial-body {
    position: relative;
    padding-left: 35px;
}

.testimonial-body .fa-quote-left {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.8rem;
    color: var(--secondary-color);
    opacity: 0.2;
}

.testimonial-body p {
    font-style: italic;
    color: #555;
    line-height: 1.7;
}

/* --- Contact Details Section --- */
#contact-details {
    background: linear-gradient(135deg, #f4f4f4 60%, #e3e7fa 100%);
    padding: 60px 0 80px 0;
}

#contact-details .container {
    max-width: 1100px;
    margin: 0 auto;
}

#contact-details h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    letter-spacing: 1px;
    font-weight: 800;
}

.contact-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    justify-content: center;
}

.contact-details-card {
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(200,200,255,0.18);
    padding: 36px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: box-shadow 0.35s cubic-bezier(.25,.8,.25,1), transform 0.35s cubic-bezier(.25,.8,.25,1), border 0.35s;
    position: relative;
    min-height: 220px;
    overflow: hidden;
}

.contact-details-card:before {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, #c62828 0%, transparent 70%);
    opacity: 0.08;
    z-index: 0;
}

.contact-details-card:hover {
    box-shadow: 0 16px 40px rgba(26,35,126,0.16), 0 0 0 4px #c6282840;
    transform: translateY(-10px) scale(1.045);
    border: 2px solid #c62828;
}

.contact-details-card i {
    font-size: 2.7rem;
    color: var(--secondary-color);
    margin-bottom: 18px;
    transition: color 0.3s, transform 0.35s cubic-bezier(.25,.8,.25,1);
    filter: drop-shadow(0 2px 8px #c6282822);
    z-index: 1;
}

.contact-details-card:hover i {
    color: #b71c1c;
    transform: scale(1.18) rotate(-8deg);
    filter: drop-shadow(0 4px 18px #c6282880);
}

.contact-details-card h3 {
    font-size: 1.18rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 1;
}

.contact-details-card p, .contact-details-card a {
    color: #444;
    font-size: 1.04rem;
    margin-bottom: 8px;
    text-decoration: none;
    word-break: break-word;
    z-index: 1;
    transition: color 0.25s;
}


.contact-details-card a {
    font-weight: 500;
    border-bottom: 1.5px dashed #c6282855;
    transition: color 0.25s, border-color 0.25s;
}

.contact-details-card a:hover {
    color: var(--secondary-color);
    border-bottom: 1.5px solid #c62828;
    text-decoration: none;
}

@media (max-width: 768px) {
    .contact-details-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .contact-details-card {
        padding: 28px 14px 22px 14px;
    }
}

@media (max-width: 768px) {
    /* --- General --- */
    .subtitle {
        margin-top: 20px;
    
   
}

.about-description p {
  width: 100%;
}

    .par
    section {
        padding: 60px 0;
    }
    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* --- Navigation --- */
    .nav-links {
        display: none; /* Hide horizontal nav on mobile */
    }
    .hamburger {
        display: block; /* Show hamburger menu button */
    }
    .about-description h3 {
     display: none;
    }

    /* --- Hero Section --- */
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    /* --- Contact Section --- */
    #contact .container {
        padding: 0 10px; /* Adjust container padding for smaller screens */
    }
    .contact-wrapper {
        padding: 20px; /* Reduce padding on contact box */
    }
    .contact-form h3, .contact-info h3 {
        font-size: 1.4rem;
    }

}
