/* Necsquare Premium SaaS Design - Visual Overhaul */

:root {
    --primary-color: #0f172a;
    /* Deep Navy */
    --secondary-color: #3b82f6;
    /* Tech Blue */
    --text-color: #334155;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --signpass-color: #10b981;
    --barosquare-color: #f59e0b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Navbar */
#mainNav {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 900;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.nav-link {
    font-weight: 600;
    color: var(--text-color) !important;
    font-size: 0.95rem;
    margin-left: 1rem;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

/* Hero Section */
header.masthead {
    position: relative;
    padding-top: 12rem;
    padding-bottom: 12rem;
    background: url('../img/hero-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

header.masthead::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: 1;
}

header.masthead .container {
    position: relative;
    z-index: 2;
}

header.masthead h1 {
    color: white;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

header.masthead p {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 700px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2563eb 100%);
    border: none;
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.5);
    color: white;
}

/* Section General */
.page-section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: #64748b;
    font-size: 1.2rem;
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 4rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Services Section */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.service-img-wrapper {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.05);
}

.service-content {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    align-self: flex-start;
}

.badge-signpass {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--signpass-color);
}

.badge-barosquare {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--barosquare-color);
}

.service-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    flex-grow: 1;
}

.service-link {
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: gap 0.2s;
    font-size: 1.1rem;
}

.link-signpass {
    color: var(--signpass-color);
}

.link-barosquare {
    color: var(--barosquare-color);
}

.service-link:hover {
    gap: 8px;
    text-decoration: none;
}

.link-signpass:hover {
    color: #059669;
}

.link-barosquare:hover {
    color: #d97706;
}

/* Trust Section */
.trust-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.trust-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
    border-color: transparent;
}

.trust-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #eff6ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: var(--secondary-color);
    font-size: 2rem;
}

.trust-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.trust-card p {
    color: #64748b;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #94a3b8;
    padding: 6rem 0 3rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer p {
    margin-bottom: 0.8rem;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.footer-divider {
    border-color: #334155;
    margin: 4rem 0 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}