/* Main Interface Styles */
/* =========================================
Global Main Styles & Variables
========================================= */
:root {
/* Color System - Rivoni Matimba Brand & Google UI Inspired */
--primary-light: #fce8e6;       /* Light red tint for backgrounds */
--primary-medium: #d93025;      /* Brand Red */
--primary-dark: #b31412;        /* Darker red for hovers */
--primary-darker: #202124;      /* Brand Black */

/* Background Colors */
--bg-primary: #ffffff;          /* Clean White background */
--bg-secondary: #f8f9fa;        /* Light gray for section contrast */
--bg-tertiary: #f1f3f4;         /* Slightly darker gray */

/* Text Colors */
--text-primary: #202124;        /* Near black for high readability */
--text-secondary: #5f6368;      /* Standard gray for secondary text */
--text-muted: #80868b;          /* Muted gray */
--text-light: #ffffff;          /* White text */

/* Border Colors */
--border-light: #f1f3f4;
--border-medium: #dadce0;
--border-glass: 1px solid #dadce0;

/* Shadow Colors (Material Design Inspired) */
--shadow-light: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
--shadow-medium: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
--shadow-heavy: 0 2px 6px 2px rgba(60,64,67,0.3), 0 8px 12px 6px rgba(60,64,67,0.15);

/* Gradients (Simplified for clean UI) */
--gradient-primary: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary-dark) 100%);
--gradient-secondary: linear-gradient(135deg, var(--primary-darker) 0%, #3c4043 100%);
--glass-bg: rgba(255, 255, 255, 0.95);

/* Effects */
--blur-glass: blur(0px); /* Removed blur for cleaner look */
--transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-quick: all 0.2s ease;
--transition-bounce: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
GLOBAL RESET & BASE STYLES
======================================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Roboto', 'Exo 2', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
overflow-x: hidden;
padding-top: 80px;
line-height: 1.6;
}

/* ========================================
BACKGROUND & LAYOUT COMPONENTS
======================================== */
.gradient-bg {
background: var(--bg-secondary);
position: relative;
overflow: hidden;
}

/* Removed heavy animations, kept selectors to maintain structure */
.gradient-bg::before,
.gradient-bg::after {
display: none; 
}

/* ========================================
NAVIGATION COMPONENTS
======================================== */
nav {
position: fixed !important;
top: 0;
left: 0;
right: 0;
width: 100%;
z-index: 100000 !important;
height: 80px;
transition: transform 0.3s ease-in-out;
transform: translateZ(0);
backface-visibility: hidden;
background: var(--bg-primary) !important;
border-bottom: 1px solid var(--border-medium);
box-shadow: 0 1px 2px 0 rgba(60,64,67,0.1);
}

nav.nav-hidden {
transform: translateY(-100%);
}

.mobile-menu {
position: fixed;
top: 80px;
left: 0;
right: 0;
background: var(--bg-primary);
transform: translateY(-20px);
opacity: 0;
visibility: hidden;
transition: var(--transition-quick);
z-index: 99999;
border-bottom: 1px solid var(--border-medium);
box-shadow: var(--shadow-medium);
padding: 0;
max-height: calc(100vh - 80px);
overflow-y: auto;
}

.mobile-menu.active {
transform: translateY(0);
opacity: 1;
visibility: visible;
}

.mobile-menu a {
display: block;
padding: 1rem 1.5rem;
color: var(--text-primary);
text-decoration: none;
border-bottom: 1px solid var(--border-light);
transition: var(--transition-quick);
font-weight: 500;
}

.mobile-menu a:hover {
background: var(--bg-secondary);
color: var(--primary-medium);
padding-left: 2rem;
}

nav .hidden.xl\:flex a {
position: relative;
transition: var(--transition-quick);
padding: 0.5rem 1rem;
border-radius: 4px;
color: var(--text-secondary);
font-weight: 500;
}

nav .hidden.xl\:flex a:hover {
background: var(--primary-light);
color: var(--primary-medium);
}

.mobile-menu-button {
padding: 0.5rem;
border-radius: 4px;
transition: var(--transition-quick);
position: relative;
z-index: 100001;
color: var(--text-secondary);
}

.mobile-menu-button:hover {
background: var(--bg-tertiary);
color: var(--primary-darker);
}

/*-------- website message error / success --------*/
#webmessage_red, #webmessage_green {
font-weight: 500;
text-align: center;
position: fixed;
top: 100px;
right: 20px;
padding: 1rem 1.5rem;
border-radius: 4px;
color: white;
box-shadow: var(--shadow-medium);
z-index: 99998;
animation: slideIn 0.3s ease-out forwards, slideOut 0.3s ease-out forwards 5s;
font-family: inherit;
}

#webmessage_red { background-color: var(--primary-medium); }
#webmessage_green { background-color: #188038; } /* Google Green */

@keyframes slideIn {
from { transform: translateX(100%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOut {
from { transform: translateX(0); opacity: 1; }
to { transform: translateX(100%); opacity: 0; }
}

/* ========================================
TYPOGRAPHY & TEXT STYLING
======================================== */
h1, h2, h3, h4, h5, h6 {
color: var(--primary-darker);
font-weight: 700;
}

h1 {
font-family: inherit;
background: none;
-webkit-text-fill-color: var(--primary-darker);
text-shadow: none;
animation: none;
}

.py-32 {
padding-top: clamp(3rem, 10vw, 8rem);
padding-bottom: clamp(3rem, 10vw, 8rem);
}

.text-5xl {
font-size: clamp(2.5rem, 5vw, 3.5rem);
letter-spacing: -0.5px;
}

/* ========================================
FOOTER COMPONENTS
======================================== */
footer {
background: var(--bg-primary);
border-top: 1px solid var(--border-medium);
color: var(--text-primary);
padding: 4rem 2rem 2rem;
position: relative;
}

.footer-logo-container {
width: 100%;
display: flex;
justify-content: center;
margin: auto;
}

.footer-bottom {
border-top: 1px solid var(--border-light);
padding-top: 2rem;
text-align: center;
margin-top: 2rem;
}

.footer-legal {
margin-bottom: 1rem;
}

.footer-legal a {
color: var(--text-secondary);
text-decoration: none;
margin: 0 1rem;
font-size: 0.875rem;
transition: var(--transition-quick);
}

.footer-legal a:hover {
color: var(--primary-medium);
}

.footer-certifications {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 1rem;
}

.cert-icon {
height: 40px;
opacity: 0.6;
transition: var(--transition-quick);
filter: grayscale(100%);
}

.cert-icon:hover {
opacity: 1;
filter: grayscale(0%);
}

.copyright {
font-size: 0.875rem;
color: var(--text-muted);
}

/* ========================================
ANIMATION UTILITIES (Simplified)
======================================== */
.floating, .pulse, .fa-graduation-cap, .fa-certificate, .fa-clock {
animation: none;
transform-style: flat;
filter: none;
}

.slide-in {
opacity: 0;
transform: translateY(20px);
transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.visible {
opacity: 1;
transform: translateY(0);
}

.card-hover {
transition: var(--transition-smooth);
position: relative;
border-radius: 8px;
background: var(--bg-primary);
}

.card-hover::before { display: none; }

.card-hover:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-medium);
}

/* ========================================
KEYFRAMES & ANIMATIONS (Overrides to disable old effects)
======================================== */
@keyframes cosmicWave { to { } }
@keyframes float3D { to { } }
@keyframes quantumPulse { to { } }
@keyframes shimmer { to { } }
@keyframes titleGlow { to { } }
@keyframes priceGlow { to { } }
@keyframes buttonScan { to { } }
@keyframes iconFloat { to { } }
@keyframes textShimmer { to { } }
@keyframes quantumParticles { to { } }
@keyframes mobileFloat { to { } }
@keyframes cosmicSlide { to { } }

/* ========================================
RESPONSIVE BREAKPOINTS
======================================== */
@media (min-width: 1280px) {
    .mobile-menu { display: none !important; }
}

@media (max-width: 768px) {
    footer .grid { grid-template-columns: repeat(2, 1fr); }
    .footer-legal a { display: block; margin: 0.5rem 0; }
    .footer-certifications { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    h1 { font-size: 2rem !important; }
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .py-20 { padding-top: 3rem; padding-bottom: 3rem; }
    .mb-16 { margin-bottom: 2rem; }
    .gap-8 { gap: 1.5rem; }
}

@media (max-width: 500px) {
    footer .grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    * { max-width: 100%; box-sizing: border-box; }
    body { overflow-x: hidden; }
}

.overflow-x-hidden { overflow-x: hidden; }

@media (hover: none) {
    .btn:active { transform: scale(0.98); }
}
@media (hover: hover) {
    .card-hover:hover { transform: translateY(-4px); }
}