:root {
    --primary: #8b1cf3;
    --primary-gradient: linear-gradient(135deg, #8b1cf3, #c048fb);
    --dark: #0a0a0a;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--light);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    /* Slightly larger for better legibility */
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--light);
}

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

a:hover {
    color: #c048fb;
}

/* Premium Navigation */
.premium-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.premium-nav.navbar-shrink {
    padding: 10px 0;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: none;
    background: var(--glass);
}

/*--------------------
3. Header
--------------------*/

header {
    /*background: linear-gradient(rgba(10, 10, 10, 0.2), var(--dark)), url(../images/demo/bg-main.jpg);*/
    background: url(../images/demo/bg-main.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

header .intro-text {
    max-width: 800px;
}

header .intro-lead-in {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

header .intro-heading {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 700;
    line-height: 1.1;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

/*--------------------
4. Sections
--------------------*/

section {
    padding: 80px 0;
    /* Standardized padding */
}

.section-title {
    margin-bottom: 50px;
    /* Consistent gap between title and content */
}

.section-title h2 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.section-title p {
    max-width: 800px;
    margin: 20px auto 0;
}

/* Global Helpers */
.mb-huge {
    margin-bottom: 4rem !important;
}

.pt-large {
    padding-top: 5rem !important;
}

pre>b {
    color: #d0a100;
}

figure.effect-bubba p {
    opacity: 1;
}

.light-bg {
    background-color: #0f0f0f;
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-white .section-title h2 {
    color: #000 !important;
}

.bg-white p {
    color: #333 !important;
}

.text-dark {
    color: #000 !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

/*--------------------
4.3. Portfolio (Cards)
--------------------*/

.ot-portfolio-item {
    margin-bottom: 30px;
}

figure {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: var(--dark);
    margin: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

figure img {
    width: 100%;
    transition: all 0.5s ease;
}

figcaption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.4s ease;
}

figure:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(139, 28, 243, 0.2);
}

figure:hover img {
    transform: scale(1.1);
    filter: blur(2px);
}

figure:hover figcaption {
    opacity: 1;
}

figcaption h2 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: all 0.4s ease 0.1s;
}

figcaption p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

figure:hover h2,
figure:hover p {
    transform: translateY(0);
}

/* Modern Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    background: var(--glass);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 1; /* Always visible */
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 28, 243, 0.25);
    border-color: var(--primary);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(139, 28, 243, 0.8) 0%, transparent 80%);
}

.gallery-caption {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Added for better legibility */
    margin: 0;
    transition: all 0.4s ease;
}

/*--------------------
4.4. Dark Short section (counters, quote, etc)
--------------------*/

.dark-bg {
    background: #323232;
    color: #fff;
}

.bg-img1 {
    background-image: url(../images/demo/office-bg.jpg);
    background-size: cover !important;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Removendo light-bg redundante */

.overlay-dark:before,
.overlay-light:before {
    background-color: rgba(32, 32, 32, 0.8);
    left: 0;
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    content: "";
    z-index: -1;
}

.overlay-dark,
.overlay-light {
    position: relative;
    z-index: 1;
}

.short-section {
    padding-top: 110px;
    padding-bottom: 110px;
}

.counter-item h2 {
    color: #fff;
    font-size: 60px;
    margin: 0;
}

.counter-item h6 {
    color: #fff;
    font-size: 19px;
    margin: 0;
}

/*--------------------
4.5. Partners / Store Grids
--------------------*/

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.grid-item {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.grid-item img {
    max-height: 220px;
    max-width: 100%;
    width: auto;
    transition: none;
    /* Removed transition */
}

/* Effects removed as requested */
.grid-item img {
    filter: none;
    opacity: 1;
}

.grid-item:hover img {
    opacity: 1;
    transform: none;
}

.bg-white .grid-item img {
    filter: none;
}

/*--------------------
4.7. Contacts (High Contrast Redesign)
--------------------*/

section#contact {
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url(../images/demo/bg-main.jpg);
    background-size: cover;
    background-attachment: fixed;
}

section#contact .form-group {
    margin-bottom: 25px;
}

section#contact .form-control {
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

section#contact .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

section#contact .form-control:focus {
    background: #252525;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 28, 243, 0.3);
    outline: none;
    color: #fff;
}

section#contact textarea.form-control {
    min-height: 150px;
}

.contact h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #fff;
}

.contact i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 20px;
}

/*--------------------
5. Footer
--------------------*/

footer {
    padding: 60px 0;
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

footer p {
    font-size: 13px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

footer a {
    font-weight: 600;
}

/*--------------------
6. Modal (Premium Glassmorphism)
--------------------*/

.modal-content {
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    padding: 25px 30px;
}

.modal-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
    padding: 20px 30px;
}

.modal-dialog-centered {
    margin: 0 auto;
}

.modal-fixed-height {
    max-height: calc(100% - 60px);
    top: 30px;
}

.tab-pre {
    text-align: left;
    white-space: pre-wrap;
}

/*--------------------
7. Components
--------------------*/

.btn {
    padding: 12px 30px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.btn-primary,
.btn-xl {
    background: var(--primary-gradient);
    border: none;
    color: #fff;
}

.btn-primary:hover,
.btn-xl:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 28, 243, 0.3);
}

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Back to top button */
#back-top {
    position: fixed;
    z-index: 1000;
    bottom: 40px;
    right: 40px;
}

#back-top a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#back-top a:hover {
    transform: scale(1.1);
}

/* Fix for lint warning: background-clip */
.header-bg-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mobile Navbar Improvements */
@media (max-width: 991.98px) {
    .premium-nav {
        background: rgba(10, 10, 10, 0.98) !important;
        padding: 15px 0;
    }

    .navbar-collapse {
        background: rgba(20, 20, 20, 0.95);
        margin-top: 15px;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid var(--glass-border);
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Portfolio Mobile Fixes */
    .ot-portfolio-item figure figcaption {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 75%) !important;
    }

    .ot-portfolio-item figure figcaption h2,
    .ot-portfolio-item figure figcaption p {
        transform: translateY(0) !important;
    }

    .ot-portfolio-item figure img {
        filter: blur(1px) !important;
        transform: scale(1.05) !important;
    }

    /* Logo Grid Mobile Improvements */
    .logo-grid {
        gap: 20px;
    }

    .grid-item img {
        max-height: 120px;
    }

    .section-title {
        margin-bottom: 30px;
    }
}

.navbar-toggler-icon {
    filter: invert(1);
}