/* 
 * Ncbank Việt Nam - Premium Style Sheet
 * Version: 2.0 (Premium Revamp)
 * Author: Ncbank Dev Team
 * Theme: Corporate Luxury, Depth, Innovation
 */

/* =========================================
   1. Design System & Variables
   ========================================= */
:root {
    /* --- Premium Color Palette --- */
    /* Primary: Midnight Navy - Deep, Authoritative */
    --primary-900: #020617;
    /* Darkest background */
    --primary-800: #0f172a;
    /* Card background */
    --primary-700: #1e293b;
    /* Borders/Separators */

    /* Secondary: Metallic Gold - Wealth, Success */
    --gold-100: #fbf6e2;
    --gold-300: #e8d086;
    --gold-400: #dcb053;
    --gold-500: #c99327;
    /* Main Gold */
    --gold-600: #a16e16;
    --gold-gradient: linear-gradient(135deg, #e8d086 0%, #c99327 50%, #a16e16 100%);
    --gold-text-gradient: linear-gradient(to right, #e8d086, #c99327, #fbf6e2);

    /* Accents */
    --accent-teal: #0d9488;
    --accent-blue: #3b82f6;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-800: #1e293b;

    /* Semantics */
    --text-primary: var(--primary-900);
    --text-secondary: var(--gray-500);
    --text-on-dark: var(--gray-100);
    --bg-body: var(--gray-50);
    --bg-card: var(--white);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-xl: 1280px;
    --header-height: 90px;
    --header-height-scrolled: 70px;

    /* Effects */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 10px 30px -5px rgba(201, 147, 39, 0.3);

    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --blur-amt: 12px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    /* Elegant snap */
    --transition-fast: 0.2s var(--ease-out);
    --transition-normal: 0.4s var(--ease-out);
    --transition-slow: 0.7s var(--ease-out);
}

/* =========================================
   2. Reset & Typography
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-900);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Selection */
::selection {
    background: var(--gold-300);
    color: var(--primary-900);
}

/* =========================================
   3. Utility Classes (Custom)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.flex-column {
    flex-direction: column;
}

.w-100 {
    width: 100%;
}

/* Grid System Sim */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-lg-6,
.col-md-6,
.col-lg-4,
.col-lg-7,
.col-lg-5 {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }

    .col-md-4 {
        width: 33.333%;
    }
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: 50%;
    }

    .col-lg-4 {
        width: 33.333%;
    }

    .col-lg-7 {
        width: 58.333%;
    }

    .col-lg-5 {
        width: 41.666%;
    }

    .col-lg-3 {
        width: 25%;
    }
}

/* Spacing */
.py-5 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mt-5 {
    margin-top: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    cursor: pointer;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--white);
    border: none;
    box-shadow: 0 10px 20px rgba(201, 147, 39, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #c99327 0%, #a16e16 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(201, 147, 39, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-900);
    border: 2px solid var(--primary-900);
}

.btn-secondary:hover {
    background: var(--primary-900);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-900);
}

/* =========================================
   4. Header & Navigation (Glassmorphism)
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-normal);
    background: transparent;
}

.main-header.scrolled {
    height: var(--header-height-scrolled);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(var(--blur-amt));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    max-height: 50px;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-900);
    letter-spacing: -0.5px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-800);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-500);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-connect {
    padding: 10px 24px;
    border-radius: 40px;
    background: var(--primary-900);
    color: var(--white) !important;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.btn-connect:hover {
    background: var(--gold-500);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-connect::after {
    display: none;
}

/* =========================================
   5. Hero Section (Immersive)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomSlow 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(2, 6, 23, 0.85) 0%, rgba(2, 6, 23, 0.6) 50%, rgba(2, 6, 23, 0.4) 100%);
    backdrop-filter: blur(2px);
}

.hero-text-wrapper {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.main-title {
    color: var(--white);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.sub-title {
    color: var(--gold-300);
    font-size: 2rem;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-description {
    color: var(--gray-200);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 20px;
}

.site-status-notice {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold-500);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

/* Quick Contact Form on Hero */
.hero-contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-contact-form h3 {
    color: var(--white);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.fast-contact-form input,
.fast-contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 14px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.fast-contact-form input:focus,
.fast-contact-form textarea:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 147, 39, 0.3);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--gold-gradient);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.btn-submit:hover {
    transform: scale(1.02);
}

/* =========================================
   6. Content Sections
   ========================================= */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.line-shape {
    width: 100px;
    height: 3px;
    background: var(--gold-gradient);
    margin: 20px auto;
    border-radius: 2px;
}

/* Intro Section */
.intro-section {
    background: var(--white);
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: 30px;
    background: linear-gradient(135deg, #020617 0%, #1e293b 100%);
    color: var(--white);
    padding: 30px;
    border-radius: 0 30px 0 30px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-badge .year {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-400);
    display: block;
    line-height: 1;
}

.experience-badge .text {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Services (Cards) */
.services-section {
    background: var(--gray-50);
}

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
    height: 100%;
    transition: var(--transition-normal);
    border-bottom: 4px solid transparent;
    /* Prepare for hover */
    box-shadow: var(--shadow-sm);
}

.service-img {
    overflow: hidden;
    height: 240px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-bottom-color: var(--gold-500);
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-card:hover h3 {
    color: var(--gold-600);
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    color: var(--gold-600);
    font-weight: 600;
    gap: 8px;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Partners */
.partner-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px;
    height: 100%;
    background: var(--white);
    transition: var(--transition-fast);
}

.partner-item:hover {
    border-color: var(--gold-400);
    box-shadow: var(--shadow-md);
}

/* Sponsorship Tiers */
.tier-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    height: 100%;
}

.tier-card.featured {
    border: 2px solid var(--gold-500);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

/* SEO Backlink Styling */
.seo-backlink {
    color: var(--primary-900);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--gold-300);
    transition: all 0.3s ease;
}

.seo-backlink:hover {
    color: var(--gold-600);
    background: rgba(201, 147, 39, 0.1);
    border-bottom-color: var(--primary-900);
}

.tier-header h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tier-icon {
    font-size: 3rem;
    color: var(--gold-500);
    margin-bottom: 1.5rem;
    display: block;
}

.tier-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.tier-card.featured:hover {
    transform: scale(1.08);
}

/* =========================================
   7. Contact & Footer (Dark Theme)
   ========================================= */
.contact-section {
    background: var(--primary-900);
    color: var(--white);
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--primary-800) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.contact-info-wrapper h2 {
    color: var(--white);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item .icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gold-400);
    border: 1px solid rgba(201, 147, 39, 0.2);
}

.contact-form-box {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    color: var(--primary-900);
    box-shadow: var(--shadow-2xl);
    position: relative;
    top: 50px;
    /* Overlap footer */
}

/* Footer */
.main-footer {
    background: var(--primary-800);
    color: var(--gray-300);
    padding-top: 150px;
    /* Space for contact form overlap */
    padding-bottom: 50px;
    position: relative;
    z-index: 0;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-heading {
    color: var(--gold-400);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    transform: translateY(-3px);
}

/* =========================================
   8. Responsive Design
   ========================================= */
@media (max-width: 991px) {
    .main-header {
        background: var(--white);
        height: 70px;
        box-shadow: var(--shadow-sm);
    }

    .nav-list {
        display: none;
    }

    .navbar-toggler {
        display: block;
        border: none;
        background: transparent;
        font-size: 1.5rem;
        color: var(--primary-900);
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-900);
        /* Dark solid background */
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1100;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu.active {
        left: 0;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .nav-link {
        color: var(--white);
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:hover {
        color: var(--gold-400);
        padding-left: 10px;
    }

    .hero-section {
        height: auto;
        padding: 140px 0 80px 0;
        min-height: auto;
        text-align: center;
    }

    .hero-text-wrapper {
        margin: 0 auto;
    }

    .cta-group {
        justify-content: center;
    }

    .contact-form-box {
        position: static;
        margin-top: 50px;
        padding: 30px;
    }

    .main-footer {
        padding-top: 80px;
    }

    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
    }

    .contact-form-box {
        padding: 20px;
    }
}

/* =========================================
   9. Animation Keyframes & Utilities
   ========================================= */
@keyframes zoomSlow {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Scroll Reveal Classes (To be toggled by JS if implemented, or purely CSS hover) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}