/* ===============================================
   GLOBAL VARIABLES & RESET
   =============================================== */
:root {
    /* Safety Professional Color Palette */
    --navy-dark: #0A1628;
    --navy-primary: #1B2A41;
    --navy-medium: #2C3E50;
    --slate-dark: #374151;
    --slate-medium: #4B5563;
    --slate-light: #6B7280;
    --safety-red: #DC2626;
    --safety-red-dark: #B91C1C;
    --accent-blue: #3B82F6;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --light-gray: #E5E7EB;
    --border-gray: #D1D5DB;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--navy-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===============================================
   TYPOGRAPHY
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy-dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--slate-medium);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ===============================================
   BUTTONS
   =============================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--safety-red);
    color: var(--white);
    border-color: var(--safety-red);
}

.btn-primary:hover {
    background-color: var(--safety-red-dark);
    border-color: var(--safety-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--navy-primary);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===============================================
   HEADER & NAVIGATION
   =============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.header.scrolled {
    background-color: var(--navy-dark);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-image {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.05);
}

.logo-text {
    white-space: normal;
    max-width: 220px;
    line-height: 1.2;
    font-size: 0.75rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--safety-red);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===============================================
   HERO SECTION
   =============================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.85);
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem 24px;
    background: rgba(10, 22, 40, 0.35);
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.3px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.98);
    font-weight: 600;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}

/* ===============================================
   STATS BAR
   =============================================== */
.stats-bar {
    background-color: var(--white);
    padding: 3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--safety-red);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '+';
}

.stat-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--slate-medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===============================================
   TRUST SIGNALS & STATS SECTION
   =============================================== */
.trust-signals {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 2rem 1.5rem;
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--safety-red);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--navy-primary);
    font-weight: 600;
    line-height: 1.5;
}

/* ===============================================
   SERVICES SECTION
   =============================================== */
.services {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    border-top-color: var(--safety-red);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--navy-primary);
    text-align: center;
}

.service-description {
    color: var(--slate-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--slate-dark);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--safety-red);
    font-weight: 700;
}

.service-link {
    color: var(--safety-red);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--safety-red-dark);
    transform: translateX(5px);
    display: inline-block;
}

/* ===============================================
   CONTENT SECTION (Generic for text blocks)
   =============================================== */
.content-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.content-body {
    max-width: 900px;
    margin: 0 auto;
    color: var(--slate-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

.content-list {
    margin-top: 1.2rem;
    margin-left: 0;
}

.content-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
}

.content-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--safety-red);
    font-weight: 700;
}

/* ===============================================
   PORTFOLIO SECTION
   =============================================== */
.portfolio {
    padding: var(--section-padding);
    background-color: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.healthcare-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.public-bg {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.education-bg {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.residential-bg {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--navy-primary);
}

.portfolio-description {
    color: var(--slate-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--off-white);
    color: var(--navy-medium);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--light-gray);
}

/* ===============================================
   TRUST SIGNALS SECTION
   =============================================== */
.trust-signals {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, var(--off-white) 0%, var(--white) 100%);
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--navy-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.certifications {
    margin-bottom: 5rem;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.cert-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cert-logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.cert-name {
    color: var(--slate-medium);
    font-size: 0.9rem;
    font-weight: 500;
}

.resource-center {
    margin-bottom: 5rem;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--accent-blue);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.resource-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.resource-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--navy-primary);
}

.resource-description {
    color: var(--slate-medium);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.resource-link {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.resource-link:hover {
    color: var(--navy-primary);
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.methodology-card {
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-medium) 100%);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.methodology-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(27, 42, 65, 0.3);
}

.methodology-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.methodology-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ===============================================
   ABOUT SECTION
   =============================================== */
.about {
    padding: var(--section-padding);
    background-color: var(--off-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    color: var(--slate-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.highlight-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.highlight-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--safety-red);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.highlight-text {
    display: block;
    color: var(--slate-medium);
    font-size: 0.95rem;
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-img-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--navy-primary) 0%, var(--slate-dark) 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.about-img-placeholder::after {
    content: '🏗️';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.3;
}

/* ===============================================
   CONTACT SECTION
   =============================================== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-medium) 100%);
    color: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

/* Ensure contact section title is readable on dark background */
.contact .section-title {
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.detail-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.detail-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--navy-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--safety-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===============================================
   FOOTER
   =============================================== */
.footer {
    background-color: var(--navy-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-licenses {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-licenses strong {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li,
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--safety-red);
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--white);
}

/* ===============================================
   PORTFOLIO PROJECTS SECTION
   =============================================== */
.portfolio-projects {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.projects-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

.projects-grid::-webkit-scrollbar {
    height: 8px;
}

.projects-grid::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: var(--safety-red);
    border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: var(--safety-red-dark);
}

.project-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 340px;
    flex-shrink: 0;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10, 22, 40, 0.15);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--navy-primary);
}

.project-info p {
    color: var(--slate-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.project-link {
    color: var(--safety-red);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--safety-red-dark);
}

/* ===============================================
   EQUIPMENT & TECHNICAL SYSTEMS SECTION
   =============================================== */
.equipment-systems {
    padding: var(--section-padding);
    background: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.equipment-card {
    background: var(--off-white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
}

.equipment-card:hover {
    border-color: var(--safety-red);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.1);
    transform: translateY(-3px);
}

.equipment-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--light-gray);
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.08);
}

/* Tech Solutions Subsection */
.tech-solutions-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--safety-red), transparent);
    margin: 3rem 0 2rem 0;
}

.tech-solutions-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy-dark);
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--safety-red);
    display: inline-block;
    width: 100%;
}

.equipment-card h3 {
    font-size: 1.1rem;
    padding: 1.25rem 1.5rem 0.5rem;
    color: var(--navy-primary);
}

.equipment-card p {
    padding: 0 1.5rem 1.5rem;
    color: var(--slate-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===============================================
   PRINCIPAL ENGINEER HERO SECTION
   =============================================== */
.principal-hero {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
    overflow: hidden;
}

.principal-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.principal-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.principal-left {
    color: var(--white);
}

.principal-badge {
    display: inline-block;
    background: rgba(220, 38, 38, 0.15);
    color: #FCA5A5;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.principal-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white) 0%, #E5E7EB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.principal-credential {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.principal-years {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.principal-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #D1D5DB;
    max-width: 500px;
}

.principal-right {
    position: relative;
}

.principal-card-hero {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.card-section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--safety-red);
}

.expertise-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.expertise-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.expertise-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-text h4 {
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.expertise-text p {
    color: #D1D5DB;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===============================================
   PROFESSIONAL MEMBERSHIPS SECTION
   =============================================== */
.memberships {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f3f4f6 0%, var(--off-white) 100%);
}

.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.membership-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.membership-card:hover {
    border-color: var(--safety-red);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.1);
}

.membership-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: var(--navy-dark);
    padding: 1.5rem;
    border-radius: 8px;
}

.membership-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.membership-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--navy-primary);
    line-height: 1.5;
}

.membership-card p {
    color: var(--slate-medium);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.membership-link {
    color: var(--safety-red);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.membership-link:hover {
    color: var(--safety-red-dark);
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.8rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
        font-weight: 600;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-wrapper,
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-primary) 100%);
        width: 100%;
        padding: 2.5rem;
        gap: 1.5rem;
        transition: var(--transition);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        border-bottom: 2px solid var(--safety-red);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-menu .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .stats-grid {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        font-weight: 800;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
        font-weight: 600;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .portfolio-grid,
    .resource-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        gap: 1.5rem;
    }
    
    .project-card {
        min-width: 280px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-info {
        padding: 1rem;
    }
    
    .project-info h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .project-info p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .equipment-grid,
    .memberships-grid {
        grid-template-columns: 1fr;
    }
    
    .principal-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .principal-title {
        font-size: 2rem;
    }
    
    .principal-credential {
        font-size: 1rem;
    }
    
    .principal-card-hero {
        padding: 1.5rem;
    }
    
    .card-section-title {
        font-size: 1.2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .footer-content {
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .footer-text {
        margin-bottom: 1rem;
    }
    
    .footer-licenses {
        font-size: 0.85rem;
    }
    
    .logo-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        gap: 8px;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .logo-text {
        display: block;
        font-size: 0.65rem;
        max-width: 140px;
        line-height: 1.1;
    }
    
    .nav-menu {
        padding: 2rem 1.5rem;
    }
    
    .nav-menu .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-text {
        font-size: 1.4rem;
    }
}
