
/* ENEXA PREMIUM 2026 DESIGN SYSTEM */
:root {
    --primary-color: #D31027;
    --primary-hover: #9E0B22;
    --secondary-color: #EA384D;
    --accent-color: #1E293B;
    --bg-light: #F8FAFC;
    --bg-dark: #111827;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--bg-dark);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover, a:focus {
    color: var(--primary-color);
    text-decoration: none;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Glassmorphism Navbar */
header .navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: padding var(--transition-smooth);
}

.navbar-brand img {
    height: auto;
    max-height: 70px;
    transition: transform var(--transition-smooth);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--text-main) !important;
    padding: 10px 15px !important;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus, .navbar-nav .nav-item.active .nav-link, .dropdown-item:hover {
    color: var(--primary-color) !important;
    background: transparent;
}

/* Premium Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: opacity var(--transition-smooth);
    opacity: 0;
}

.btn-premium:hover::before {
    opacity: 1;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(211, 16, 39, 0.3);
    color: white !important;
}

/* Slider Overrides */
#featured {
    position: relative;
    background: var(--bg-dark);
    padding: 60px 0;
    overflow: hidden;
}

#featured::after {
    display: none;
}

/* Quad Box Redesign */
.box {
    background: var(--white);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-smooth);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.box .icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(211,16,39,0.1), rgba(234,56,77,0.1));
    color: var(--primary-color);
    transition: all var(--transition-smooth);
}

.box:hover .icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.box-bottom a {
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.box-bottom a::after {
    content: ' →';
    opacity: 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    transform: translateX(-5px);
    display: inline-block;
}

.box:hover .box-bottom a::after {
    opacity: 1;
    transform: translateX(5px);
}

/* Call to Action */
.callaction {
    background: linear-gradient(135deg, var(--bg-dark), #3F0008);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    border-radius: 24px;
    margin: 40px 15px;
    position: relative;
    overflow: hidden;
}

.callaction::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(211,16,39,0.15) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.callaction h1, .callaction h2 {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.callaction h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #94A3B8;
    padding: 30px 0 10px;
    font-size: 14px;
}

footer h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 20px;
}

footer a {
    color: #CBD5E1;
}

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

.sub-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    padding: 24px;
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--glass-border);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner h3 {
    margin: 0;
    font-size: 18px;
}

.cookie-banner p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.cookie-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
}
.btn-reject {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

/* Inner Pages & Portfolio Grid Fixes */
ul.portfolio, ul.portfolio-categ {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.portfolio {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
ul.portfolio li.item-thumbs {
    width: calc(25% - 20px);
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform var(--transition-smooth);
}
ul.portfolio li.item-thumbs:hover {
    transform: translateY(-5px);
}
ul.portfolio li.item-thumbs img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
@media (max-width: 991px) { ul.portfolio li.item-thumbs { width: calc(50% - 20px); } }
@media (max-width: 767px) { ul.portfolio li.item-thumbs { width: 100%; height: auto; } }

ul.portfolio-categ {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}
ul.portfolio-categ li a {
    padding: 8px 20px;
    background: #f1f5f9;
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 500;
    transition: all var(--transition-fast);
}
ul.portfolio-categ li.active a, ul.portfolio-categ li a:hover {
    background: var(--primary-color);
    color: white;
}

/* Blog & Generic Article Fixes */
.post-image img { 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    margin-bottom: 30px; 
    width: 100%;
    height: auto;
}
.post-heading h2 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
}
.post-heading h2 a { 
    color: var(--text-main); 
    text-decoration: none;
}
.post-heading h2 a:hover { 
    color: var(--primary-color); 
}

.widgetheading {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--bg-dark);
}
ul.cat {
    list-style: none;
    padding: 0;
}
ul.cat li {
    margin-bottom: 10px;
}
ul.cat li a {
    color: var(--text-muted);
}
ul.cat li a:hover {
    color: var(--primary-color);
}

/* Vanilla JS Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.95);
    z-index: 100000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Ensure pointer cursor on portfolio items */
.item-thumbs,
.item-thumbs img,
.item-thumbs .hover-wrap,
.item-thumbs a.fancybox {
    cursor: pointer !important;
}
.lightbox-overlay.active {
    opacity: 1;
}
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-title {
    color: white;
    margin-top: 15px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 100001;
    transition: color 0.2s;
}
.lightbox-close:hover {
    color: var(--primary-color);
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    z-index: 100001;
    transition: color 0.2s;
}
.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--primary-color);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
