/* ==========================================
   NORTHGATE BANK - GLOBAL STYLES & THEME
   ========================================== */

   :root {
    --primary-navy: #0a192f;
    --secondary-navy: #172a45;
    --accent-blue: #0284c7;
    --accent-light: #38bdf8;
    --silver-gray: #f8fafc;
    --border-gray: #e2e8f0;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --white: #ffffff;
    --error-red: #ef4444;
    --success-green: #10b981;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--silver-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation Bar */
header {
    background-color: var(--primary-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-light);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    transition: var(--transition);
}

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

/* Active Link State Identifier */
.nav-links a.active {
    color: var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
}

/* Navigation Buttons (Login & Sign Up) */
.btn-nav-login {
    background-color: transparent;
    color: var(--white) !important;
    border: 1px solid var(--accent-blue);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.btn-nav-login:hover {
    background-color: rgba(2, 132, 199, 0.2);
    color: var(--white) !important;
}

.btn-nav-login.active {
    border-color: var(--accent-light) !important;
    background-color: rgba(56, 189, 248, 0.1) !important;
}

.btn-nav {
    background-color: var(--accent-blue);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: var(--transition);
}

.btn-nav:hover {
    background-color: var(--accent-light);
    color: var(--primary-navy) !important;
}

/* Mobile Nav Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.75rem;
    cursor: pointer;
}

/* Sections & Typography */
section {
    padding: 5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--primary-navy);
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Footer styling */
footer {
    background-color: var(--primary-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 2rem 2rem 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification Container & Elements */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    pointer-events: none;
}

.notification {
    background-color: var(--error-red);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 450px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: auto;
    animation: slideIn 0.35s forwards cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    padding: 7rem 2rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 80%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--accent-light), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    color: var(--primary-navy);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Graphic/Image Style */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.glass-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--accent-light);
}

/* Statistics Section */
.stats {
    background-color: var(--white);
    padding: 4rem 2rem;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 h4 {
    font-size: 2.5rem;
    color: var(--accent-blue);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* Services Page & Highlights Section */
.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden; /* Ensures image borders match card rounding */
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(2, 132, 199, 0.2);
}

/* Responsive Images inside Cards */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .card-img {
    transform: scale(1.04);
}

.service-card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-icon-floating {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-navy);
    color: var(--accent-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-icon-floating svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.35rem;
    color: var(--primary-navy);
    margin-top: 1rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Why Choose Section & Content Cards */
.features {
    background-color: #f1f5f9;
}

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

.feature-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--accent-blue);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card-content {
    padding: 2rem;
}

.feature-card h4 {
    color: var(--primary-navy);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Customer Trust (Social Proof) Section */
.trust {
    background-color: var(--white);
    text-align: center;
}

.trust-logos {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 3rem;
    opacity: 0.6;
}

/* Form Styles (Login, Sign-up, Contact) */
.form-section {
    min-height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.form-container {
    background-color: var(--white);
    width: 100%;
    max-width: 450px;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-gray);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 1.85rem;
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.form-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

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

/* Contact Page Form styling */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    background-color: var(--primary-navy);
    color: var(--white);
    padding: 3rem;
    border-radius: 12px;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-list svg {
    width: 24px;
    height: 24px;
    color: var(--accent-light);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-md);
}

/* Financial Dashboard Styles */
.dashboard-nav {
    background-color: var(--primary-navy);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    color: var(--primary-navy);
}

.dashboard-header .user-info {
    font-size: 1rem;
    color: var(--text-light);
}

.dashboard-header .user-info strong {
    color: var(--primary-navy);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.balance-card {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, transparent 80%);
    border-radius: 50%;
}

.balance-card h3 {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.balance-amount {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.balance-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    opacity: 0.8;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn-action {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-deposit {
    background-color: var(--accent-blue);
    color: var(--white);
}

.btn-deposit:hover {
    background-color: var(--accent-light);
    color: var(--primary-navy);
}

.btn-withdraw {
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--accent-blue);
}

.btn-withdraw:hover {
    background-color: rgba(2, 132, 199, 0.2);
}

/* Statement Table Styling */
.statement-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 3rem;
}

.statement-card h3 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statement-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: normal;
}

.table-responsive {
    overflow-x: auto;
}

.statement-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.statement-table th {
    padding: 1rem;
    background-color: var(--silver-gray);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-gray);
}

.statement-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-gray);
    font-size: 0.95rem;
}

.statement-table tr:last-child td {
    border-bottom: none;
}

.amt-positive {
    color: var(--success-green);
    font-weight: 600;
}

.amt-negative {
    color: var(--error-red);
    font-weight: 600;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(2, 132, 199, 0.15); /* Light gray/blue base ring */
    border-top-color: var(--accent-blue);       /* High-contrast blue spinning arc */
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin: 0 auto 2rem auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.page-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary-navy); /* Dark navy background */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Stays above everything on the screen */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    color: var(--white);
}

.page-loader-overlay p {
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--accent-light);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* This class will be applied by JS after 3 seconds */
.page-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    width: 200%; /* Since there are 2 slides, the track is twice the container width */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    width: 50%; /* Each slide is half of the total track width (100% of container) */
    padding-right: 2px; /* Avoid spacing overlaps */
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.carousel-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-gray);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background-color: var(--accent-blue);
    transform: scale(1.2);
}

/* Premium Styling for Savings Card Slide */
.savings-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.savings-card::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 80%);
    border-radius: 50%;
}

.savings-card h3 {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Responsive adjustments */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-cta {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-navy);
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }
}