/* MASTER THEME STYLES - UK PRECIOUS */

:root {
    --accent: #00d2ff; 
    --accent-glow: rgba(0, 210, 255, 0.4);
    --navy-dark: #002741;  
    --navy-light: #134169; 
    --text-main: #e0e0e0;
}

/* 
   AOS OVERFLOW PROTECTION 
   This prevents "ghost" elements from stretching the mobile width 
*/
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

/* Force sections to clip any animating children that drift off-screen */
section, header, footer, .row {
    max-width: 100%;
    overflow-x: hidden;
}

/* Global Reset & Body */
body {
    background-color: var(--navy-dark) !important;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* Typography Enhancements */
h1, h2, h3, h4 { color: var(--accent); }
.text-accent { color: var(--accent) !important; }
.Lato { font-family: 'Lato', sans-serif; }

/* --- Hero Section --- */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden; /* Vital for hero animations */
}

.hero-bg { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; z-index: 0; 
}

.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(to bottom, rgba(0,39,65,0.4) 0%, rgba(0,39,65,0.95) 100%); 
    z-index: 2; 
}

.hero-content { position: relative; z-index: 10; width: 100%; }

/* Grid Pattern Texture */
.bg-grid {
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* --- Bootstrap Card Customization --- */

/* Strategic Verticals: Image height fix */
.card-img-top {
    height: 220px; 
    object-fit: cover; 
}

/* Adding Visual Style to standard Bootstrap Cards */
.card.bg-transparent {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.card.bg-transparent-border-white {
    background-color: transparent !important;
    border: 2px solid var(--accent-glow) !important;
}

/* On desktop, allow hover lift. On mobile, we keep it simple */
@media (min-width: 992px) {
    .card.bg-transparent:hover {
        border-color: var(--accent) !important;
        transform: translateY(-5px);
    }
}

/* Custom Icon Box color utility */
.bg-accent { background-color: var(--accent) !important; }

/* --- Buttons --- */
.btn-accent {
    background-color: var(--accent);
    color: #000 !important;
    font-weight: 700;
    border-radius: 0;
}

.btn-accent:hover {
    background-color: #00b8e6 !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-hero-sm {
    padding: 10px 22px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
}

/* --- Section Dividers & Backgrounds --- */
.bg-navy-light { background-color: var(--navy-light) !important; }
.bg-navy-dark { background-color: var(--navy-dark) !important; }

.separator-slanted-reverse {
    height: 100px;
    background: var(--navy-light);
    clip-path: polygon(0 0, 100% 100%, 100% 0);
    margin-bottom: -1px;
}

.separator-slanted-straight {
    height: 100px;
    background: var(--navy-light);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    margin-bottom: -1px;
}

/* Parallax Logic */
.parallax-section {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    padding: 100px 0;
    overflow: hidden; /* Clips AOS items inside */
}

.para-section-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .display-1 { font-size: 2.8rem !important; }
    .display-5 { font-size: 2.2rem !important; }
    
    /* Disable parallax attachment on mobile for better scrolling */
    .parallax-section { background-attachment: scroll; } 
    
    .card-img-top { height: 180px; } 
}