/* =========================================================
   SAFE ZONE INDUSTRIAL - MASTER STYLESHEET
   Theme: Industrial Professional (Oil & Gas Sector)
   Palette: Slate Black, Industrial Gray, Safety Green
   ========================================================= */

/* ===========================
   :ROOT VARIABLES
   =========================== */
:root {
    --slate-black: #0f141a;
    --industrial-gray: #1e252e;
    --safety-green: #2ecc71; 
    --glow-green: rgba(46, 204, 113, 0.2);
    --text-muted: #94a3b8;
    --off-white: #f8fafc;
}

/* ===========================
   GLOBAL RESET & TYPOGRAPHY
   =========================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    background-color: var(--slate-black); 
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif; 
    color: var(--off-white); 
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--slate-black); }
::-webkit-scrollbar-thumb { background: #2d3748; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--safety-green); }

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
    background: var(--industrial-gray);
    border-bottom: 2px solid #2d3748;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.logo { 
    font-size: 1.2rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    color: white; 
}

.logo::before { 
    content: ""; 
    width: 10px; 
    height: 10px; 
    background: var(--safety-green); 
    border-radius: 50%; 
    margin-right: 10px; 
    box-shadow: 0 0 8px var(--safety-green); 
}

nav { 
    display: flex; 
    align-items: center; 
}

nav a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-left: 20px; 
    font-size: 0.8rem; 
    font-weight: 600; 
    text-transform: uppercase;
    transition: 0.3s;
}

nav a:hover, nav a.active { 
    color: var(--safety-green); 
}

nav a.active {
    position: relative;
}

nav a.active::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--safety-green);
    box-shadow: 0 0 8px var(--safety-green);
}

.nav-verify {
    border: 1px solid var(--safety-green);
    padding: 8px 15px;
    color: var(--safety-green) !important;
    margin-left: 25px;
}

.nav-verify:hover { 
    background: var(--safety-green); 
    color: var(--slate-black) !important; 
}


/* ===========================
   HERO SECTION
   =========================== */
.hero {
    height: 55vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(90deg, rgba(15,20,26,0.95) 30%, rgba(15,20,26,0.4) 100%), 
                url('/assets/home.jpg');
    background-size: cover; 
    background-position: center;
}

.hero-content h1 { 
    font-size: 3rem; 
    margin-bottom: 1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-content p { 
    border-left: 3px solid var(--safety-green); 
    padding-left: 15px; 
    color: var(--text-muted); 
    margin-bottom: 25px;
    max-width: 500px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-general {
    display: inline-block;
    padding: 14px 30px;
    background: var(--safety-green);
    color: var(--slate-black);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-general:hover { 
    filter: brightness(1.1); 
    box-shadow: 0 0 20px var(--glow-green);
    transform: translateY(-2px);
}

/* ===========================
   SERVICES GRID
   =========================== */
.services-container {
    padding: 80px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--industrial-gray);
    padding: 35px;
    border-left: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card:hover {
    border-left: 3px solid var(--safety-green);
    background: #252d37;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transform: translateY(-8px);
}

.service-card h3 {
    color: var(--safety-green);
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--safety-green);
    font-weight: bold;
}

/* ===========================
   VERIFY SECTION (HOME PAGE)
   =========================== */
.verify-section {
    padding: 80px 5%;
    background: var(--industrial-gray);
    text-align: center;
    border-top: 1px solid #2d3748;
}

.verify-content {
    max-width: 700px;
    margin: 0 auto;
}

.verify-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verify-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.verify-section .btn-general {
    padding: 14px 28px;
    font-size: 0.85rem;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--slate-black);
    border-top: 1px solid #2d3748;
    padding: 60px 5% 30px;
    font-size: 0.85rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3,
.footer h4 {
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--off-white);
}

.footer p { color: var(--text-muted); margin-bottom: 10px; }
.footer-cert { color: var(--safety-green); font-weight: 600; }

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: var(--text-muted); transition: 0.3s; }
.footer-links a:hover { color: var(--safety-green); }

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    text-align: center;
    color: #556375;
    font-size: 0.75rem;
}

/* ===========================
   PAGE FADE ANIMATION
   =========================== */
main {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ===========================
   RESPONSIVE GLOBAL (HAMBURGER FIXED)
   =========================== */

/* Hide checkbox and icon on desktop */
.menu-toggle, .hamburger {
    display: none;
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        position: sticky;
        top: 0;
    }

    /* Show the hamburger icon */
    .hamburger {
        display: block;
        cursor: pointer;
        padding: 10px;
        z-index: 1100;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--safety-green);
        margin: 6px 0;
        transition: 0.3s;
        border-radius: 2px;
    }

    /* Transform nav into a mobile dropdown */
    nav {
        display: none; /* Hidden by default */
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: absolute;
        top: 100%; /* Directly below header */
        left: 0;
        width: 100%;
        height: 100vh; /* Full screen height overlay */
        background: var(--industrial-gray);
        padding: 40px 0;
        border-top: 1px solid #2d3748;
        z-index: 1000;
    }

    nav a {
        margin: 15px 0 !important;
        font-size: 1.2rem !important;
        width: 100%;
        text-align: center;
    }

    .nav-verify {
        margin-left: 0 !important;
        border: 2px solid var(--safety-green);
        width: 80%;
    }

    /* --- THE TOGGLE LOGIC --- */
    
    /* When checkbox is checked, show navigation */
    .menu-toggle:checked ~ nav {
        display: flex;
        animation: slideIn 0.3s ease-out forwards;
    }

    /* Hamburger Animation to 'X' */
    .menu-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Typography adjustments for mobile */
    .hero-content h1 { 
        font-size: 2rem; 
    }
    
    .hero {
        height: 60vh;
        padding: 0 5%;
    }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   VERIFY PAGE (CERTIFICATION PORTAL)
   ========================================================= */
body.verify-page {
    background-color: var(--slate-black);
    background-image:
        linear-gradient(rgba(46,204,113,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,204,113,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

body.verify-page .verify-portal {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 5%;
}

body.verify-page .search-box {
    background: var(--industrial-gray);
    padding: 30px;
    width: 100%;
    max-width: 550px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #2d3748;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

body.verify-page .verify-title {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

body.verify-page .input-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

body.verify-page input[type="text"] {
    flex: 1;
    padding: 12px;
    background: #0b0f14;
    border: 1px solid #2d3748;
    color: var(--safety-green);
    font-family: inherit;
    outline: none;
}

body.verify-page input::placeholder {
    color: var(--safety-green);
    opacity: 0.5;
}

body.verify-page .error-msg {
    color: #ff4757;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: bold;
    display: none;
}

body.verify-page #result-area {
    display: none;
    width: 100%;
    max-width: 700px;
}

body.verify-page .cert-header {
    background: #161c24;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #2d3748;
    border-bottom: none;
}

body.verify-page .ref-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

body.verify-page .ref-id {
    font-family: monospace;
    font-size: 1rem;
}

body.verify-page .status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

body.verify-page .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

body.verify-page .dot-active {
    background: var(--safety-green);
    box-shadow: 0 0 8px var(--safety-green);
    animation: pulse 1.5s infinite;
}

body.verify-page .dot-inactive {
    background: #ff4757;
    box-shadow: 0 0 8px #ff4757;
}

@keyframes pulse {
    0% { opacity: 1; scale: 1; }
    50% { opacity: 0.4; scale: 1.2; }
    100% { opacity: 1; scale: 1; }
}

body.verify-page .viewer-container {
    width: 100%;
    aspect-ratio: 1 / 1.41;
    background: #252a31;
    border: 1px solid #2d3748;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.verify-page #fileViewer {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

body.verify-page .action-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
}

body.verify-page .btn-outline {
    background: transparent;
    border: 1px solid #2d3748;
    color: var(--text-muted);
    padding: 10px 20px;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: 0.3s;
}

body.verify-page .btn-outline:hover {
    border-color: var(--safety-green);
    color: var(--safety-green);
}
body.verify-page .btn-general.small {
    font-size: 0.75rem;
    padding: 10px 18px;
}


/* ===========================
   SERVICES PAGE DETAIL SECTIONS
   =========================== */
body.services-page .services-header {
    padding: 100px 10% 60px;
    background: linear-gradient(rgba(10,14,20,0.8), rgba(10,14,20,0.8)),
                url('../assets/industrial-bg.jpg') center/cover no-repeat;
    text-align: center;
}

body.services-page .services-header h1 {
    font-size: 3rem;
    color: var(--safety-green);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

body.services-page .services-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

body.services-page .service-detail-section {
    padding: 80px 10%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    border-bottom: 1px solid #1a202c;
}

/* Swap image/text in even sections without breaking text */
body.services-page .service-detail-section:nth-child(even) .service-text {
    order: 2;
}

body.services-page .service-detail-section:nth-child(even) .service-image {
    order: 1;
}

/* Text styles */
body.services-page .service-text h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

body.services-page .service-text h2 span {
    color: var(--safety-green);
    font-family: monospace;
    font-size: 1.2rem;
}

body.services-page .service-text p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 25px;
}

body.services-page .spec-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

body.services-page .spec-list li {
    color: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.services-page .spec-list li::before {
    content: "→";
    color: var(--safety-green);
    font-weight: bold;
}

/* Service images */
body.services-page .service-image {
    width: 100%;
    height: 400px;
    background: #161c24;
    border: 1px solid var(--safety-green);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s, box-shadow 0.5s;
}

body.services-page .service-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--glow-green) 0%, transparent 100%);
}

/* Hover glow effect */
body.services-page .service-image:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--safety-green);
}

/* Assign images per service */
.inspection-img { background-image: url('/assets/inspection.jpg'); }
.calibration-img { background-image: url('/assets/calibration.jpg'); }
.training-img { background-image: url('/assets/training.jpg'); }
.certification-img { background-image: url('/assets/certification.jpg'); }
.engineering-img { background-image: url('/assets/engineering.jpg'); }
.risk-img { background-image: url('/assets/risk.jpg'); }

/* Responsive */
@media (max-width: 900px) {
    body.services-page .service-detail-section {
        grid-template-columns: 1fr;
        padding: 60px 5%;
        gap: 30px;
    }
    body.services-page .service-image {
        height: 250px;
    }
}

/* ===========================
   ABOUT PAGE STYLES
   Scoped to body.about-page
   =========================== */
body.about-page .about-hero {
    padding: 120px 10% 80px;
    background: linear-gradient(rgba(10,14,20,0.9), rgba(10,14,20,0.9)),
                url('../assets/industrial-blueprint.jpg') center/cover no-repeat;
    text-align: left;
}

body.about-page .about-hero h1 {
    font-size: 3.5rem;
    color: var(--safety-green);
    margin-bottom: 20px;
}

body.about-page .about-hero p {
    color: #fff;
    font-size: 1.2rem;
    opacity: 0.8;
}

body.about-page .about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    padding: 80px 10%;
    align-items: start;
}

body.about-page .content-block h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--safety-green);
    padding-left: 20px;
}

body.about-page .content-block p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

body.about-page .stats-sidebar {
    background: var(--industrial-gray);
    padding: 40px;
    border-top: 3px solid var(--safety-green);
}

body.about-page .stat-item {
    margin-bottom: 30px;
}

body.about-page .stat-item h4 {
    color: var(--safety-green);
    font-size: 2rem;
    margin: 0;
}

body.about-page .stat-item p {
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-top: 5px;
}

body.about-page .values-section {
    padding: 80px 10%;
    background: #0b0f14;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

body.about-page .value-card {
    padding: 30px;
    border: 1px solid #1a202c;
    transition: 0.3s;
}

body.about-page .value-card:hover {
    border-color: var(--safety-green);
    background: #161c24;
}

body.about-page .value-card h3 {
    color: var(--safety-green);
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    body.about-page .about-grid,
    body.about-page .values-section {
        grid-template-columns: 1fr;
        padding: 60px 5%;
    }
    body.about-page .about-hero h1 {
        font-size: 2.5rem;
    }
}

/* ===========================
   CONTACT PAGE STYLES
   Scoped to body.contact-page
   =========================== */
body.contact-page .contact-hero {
    padding: 120px 10% 80px;
    background: linear-gradient(rgba(10,14,20,0.9), rgba(10,14,20,0.9)),
                url('../assets/industrial-contact.jpg') center/cover no-repeat;
    text-align: center;
    color: var(--off-white);
}

body.contact-page .contact-hero h1 {
    font-size: 3rem;
    color: var(--safety-green);
    margin-bottom: 15px;
}

body.contact-page .contact-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

body.contact-page .contact-section {
    padding: 80px 10%;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

body.contact-page .contact-card {
    background: var(--industrial-gray);
    padding: 40px;
    border-top: 4px solid var(--safety-green);
    text-align: center;
    flex: 1 1 300px;
    min-width: 280px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: 0.3s;
}

body.contact-page .contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

body.contact-page .contact-card h2 {
    color: var(--safety-green);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

body.contact-page .contact-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

body.contact-page .contact-link {
    color: var(--safety-green);
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

body.contact-page .contact-link:hover {
    text-decoration: underline;
    color: #00ff7f;
}

body.contact-page .phone-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

body.contact-page .phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--safety-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
}

body.contact-page .phone-link:hover {
    color: #00ff7f;
}

body.contact-page .phone-icon,
body.contact-page .whatsapp-icon {
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    body.contact-page .contact-section {
        flex-direction: column;
        padding: 60px 5%;
    }
}
