@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;700&family=Inter:wght@300;400;700&display=swap');

:root {
    /* Dark Theme (Default) */
    --gold: #f0c330;
    --gold-dim: #b8860b;
    --industrial-bg: #0a0a0a;
    --bg-card: #111111;
    --text-light: #ffffff;
    --text-muted: #cccccc;
    --yellow-brush: #ffce00;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-card: #333333;
    --overlay-color: rgba(0, 0, 0, 0.9);
    --shadow-color: rgba(0, 0, 0, 0.8);
    --icon-bg: rgba(240, 195, 48, 0.05);
    --icon-border: rgba(240, 195, 48, 0.2);
}

.light-theme {
    /* Light Theme */
    --industrial-bg: #f8f8f8;
    --bg-card: #ffffff;
    --text-light: #111111;
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
    --border-card: #dddddd;
    --overlay-color: rgba(255, 255, 255, 0.92);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --icon-bg: rgba(240, 195, 48, 0.1);
    --icon-border: rgba(240, 195, 48, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Parallax Core */
.parallax-wrapper {
    position: relative;
    overflow-x: hidden;
}

.hero-parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url('images/modern_architectural_bg.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    transform: translateZ(0);
    will-change: transform;
}

body {
    background: var(--industrial-bg);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .heading {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Hero & Header */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 1rem;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(240, 195, 48, 0.4);
    letter-spacing: 2px;
}

.hero p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

/* Image Card Grid */
.industrial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.industrial-card {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    padding: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.industrial-card::before, .industrial-card::after, 
.industrial-card .corner-tl, .industrial-card .corner-tr {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #444;
    border-radius: 50%;
    z-index: 2;
}
.industrial-card::before { top: 5px; left: 5px; }
.industrial-card::after { bottom: 5px; right: 5px; }
.industrial-card .corner-tl { top: 5px; right: 5px; }
.industrial-card .corner-tr { bottom: 5px; left: 5px; }

.industrial-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(240, 195, 48, 0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 1px solid #222;
}

.card-content {
    padding: 1rem;
    text-align: center;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.card-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-content p::before {
    content: '♦ ';
    color: var(--gold);
}

/* Slogan Banner */
.slogan-banner {
    background: var(--yellow-brush);
    color: #000;
    font-family: 'Oswald';
    font-weight: 700;
    font-size: 1.8rem;
    text-align: center;
    padding: 0.75rem;
    margin: 4rem 0;
    transform: skewX(-5deg);
    box-shadow: 0 5px 15px rgba(255, 206, 0, 0.3);
}

/* Badges section - Premium Redesign */
.badges-row {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 6rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    perspective: 1000px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px) rotateX(-10deg);
}

.badge-item.reveal {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--icon-bg);
    border: 1px solid var(--icon-border);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(240, 195, 48, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.badge-item:hover .icon-wrapper {
    background: rgba(240, 195, 48, 0.15);
    border-color: var(--gold);
    transform: scale(1.1);
}

.badge-item:hover .icon-wrapper::after {
    opacity: 1;
}

.badge-item i {
    width: 3.5rem !important;
    height: 3.5rem !important;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(240, 195, 48, 0.4));
}

.badge-text h4 {
    font-family: 'Oswald';
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.badge-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Split Section (Expertise) - Redesign for Duty & Symmetry */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 6rem 0;
    border-top: 1px solid var(--border-color);
}

.illustration-area {
    position: relative;
    padding: 1rem;
}

.illustration-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    z-index: 0;
    pointer-events: none;
}

.illustration-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
    z-index: 0;
    pointer-events: none;
}

.illustration-area img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transition: transform 0.5s ease;
}

.illustration-area:hover img {
    transform: scale(1.02);
}

.list-area {
    padding-left: 2rem;
}

.list-area h2 {
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.check-list {
    list-style: none;
}

.check-list li {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.check-list li:hover {
    transform: translateX(10px);
}

.check-list li::before {
    content: '→';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--gold);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 2px;
}

/* Reality Gallery */
.reality-gallery {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border: 2px solid #333;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: var(--gold);
    padding: 0.8rem;
    font-family: 'Oswald';
    font-size: 0.9rem;
    border-top: 1px solid var(--gold);
}

.branding-footer {
    text-align: center;
    margin-top: 6rem;
}

.branding-footer h2 {
    font-size: 4rem;
    color: var(--gold);
    letter-spacing: 5px;
    margin-bottom: 0;
}

.branding-footer p {
    font-size: 1rem;
    letter-spacing: 8px;
    color: var(--text-muted);
    margin-top: -5px;
}

@media (max-width: 1024px) {
    .container { padding: 2rem 1rem; }
    .hero h1 { font-size: 2.8rem; }
    .industrial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p.subtitle { font-size: 1rem; }
    .industrial-grid { grid-template-columns: 1fr !important; }
    .industrial-card { max-width: 100%; margin: 0 auto; }
    .industrial-card[style*="column: span"] { grid-column: auto !important; }
    .industrial-card div[style*="display: flex"] { flex-direction: column !important; text-align: center; }
    .industrial-card div[style*="display: flex"] img { width: 100% !important; height: 180px; }
    .industrial-card div[style*="display: flex"] .card-content { width: 100% !important; }
    .slogan-banner { font-size: 1.4rem; padding: 1rem; margin: 2rem 0; }
    .badges-row { flex-direction: column !important; gap: 1.5rem; padding: 1.5rem 0; align-items: flex-start; }
    .split-section { grid-template-columns: 1fr !important; gap: 2rem; }
    .illustration-area img { width: 100%; height: auto; }
    .check-list li { font-size: 1.1rem; }
    .check-list li::before { font-size: 1.5rem; }
    .branding-footer h2 { font-size: 2.5rem; letter-spacing: 3px; }
    .branding-footer p { letter-spacing: 5px; font-size: 0.8rem; }
    
    .category-block h2 { font-size: 1.4rem; }
    .category-block { padding: 3rem 1.5rem; background-attachment: scroll; }
    .block-overlay { background: rgba(0,0,0,0.9); }
    .full-service-list { grid-template-columns: 1fr !important; }
    .service-item-box { padding: 1rem; }
    
    #b2b { padding: 2rem 1.5rem !important; }
    #b2b div[style*="display: grid"] { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* Service List Styles */
.service-section { margin-top: 6rem; padding-top: 4rem; }

/* Specific Section Backgrounds */
.category-block {
    margin-bottom: 6rem;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #222;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.7));
    z-index: 1;
}

.category-block h2, .category-block .full-service-list {
    position: relative;
    z-index: 2;
}

#supervision { background-image: url('images/modern_bg_supervision.png'); }
#expertise { background-image: url('images/modern_bg_expertise.png'); }
#inspections { background-image: url('images/modern_bg_inspections.png'); }
#engineering { background-image: url('images/modern_bg_engineering.png'); }

.category-block h2 {
    color: var(--gold);
    border-bottom: 2px solid var(--gold); 
    display: inline-block; 
    padding-bottom: 0.5rem; 
    margin-bottom: 2rem; 
    font-size: 1.8rem; 
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    color: var(--gold);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--gold);
}

.theme-toggle i {
    width: 1.5rem;
    height: 1.5rem;
}

.full-service-list { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem; 
}

.service-item-box { 
    background: var(--border-color); 
    border: 1px solid var(--border-card); 
    padding: 1.5rem; 
    position: relative; 
    border-left: 3px solid var(--gold); 
}

.service-item-box h3 { 
    font-size: 1.2rem; 
    margin-bottom: 1rem; 
    color: var(--text-light); 
}

.service-item-box ul { 
    list-style: none; 
}
.service-item-box li { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.4rem; padding-left: 1.2rem; position: relative; }
.service-item-box li::before { content: '→'; position: absolute; left: 0; color: var(--gold); font-weight: bold; }

@media (hover: none) {
    .industrial-card:hover { transform: none; box-shadow: none; }
}
