/* =====================================================
   Premier Physic Metrologie - Landing Page Styles
   ===================================================== */

/* CSS Variables */
:root {
    --primary-color: #a52a2a;
    --primary-dark: #8b2323;
    --primary-light: #b33c3c;
    --white: #ffffff;
    --light-gray: #d3d3d3;
    --text-dark: #333333;
    --font-family: 'Roboto', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-color);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =====================================================
   Header Styles
   ===================================================== */
.header {
    background-color: var(--white);
    padding: 20px 0 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 190px;
    height: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #1a4d7c;
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #c41e3a;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    background-color: var(--primary-color);
    padding: 20px 0 40px;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    min-height: 200px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =====================================================
   Who We Are Section
   ===================================================== */
.who-we-are-section {
    background-color: var(--primary-color);
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 30px;
}

.video-wrapper {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    max-width: 100vw;
    background-color:transparent;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 50%;              /* move to center */
    transform: translateX(-50%); /* shift back half its width */
    width: 70%;             /* desired width */
    height: 100%;
}

/* =====================================================
   Professional Calibration Analyst Section
   ===================================================== */
.calibration-section {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.calibration-image-wrapper {
    background-color: var(--light-gray);
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.calibration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.calibration-content {
    padding: 20px 30px;
    text-align: center;
}

.calibration-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.calibration-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.8;
}

/* =====================================================
   Hazardous Gas Section
   ===================================================== */
.hazardous-section {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.hazardous-content {
    padding: 20px;
    text-align: center;
}

.hazardous-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.hazardous-text {
    font-size: 12px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.8;
    text-align: justify;
}

.hazardous-image-wrapper {
    background-color: var(--light-gray);
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.hazardous-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

/* =====================================================
   Work Environment Section
   ===================================================== */
.work-environment-section {
    background-color: var(--primary-color);
    padding: 60px 0;
}

.work-image-wrapper {
    background-color: var(--light-gray);
    width: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 280px;
}

.work-content {
    padding: 20px 30px;
    text-align: center;
}

.work-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.work-text {
    font-size: 12px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.8;
    text-align: justify;
}

/* =====================================================
   Fifth Image Section
   ===================================================== */
.fifth-image-section {
    background-color: var(--primary-color);
    padding: 40px 0;
}

.fifth-image-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--light-gray);
    min-height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.fifth-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* =====================================================
   Company Overview Section
   ===================================================== */
.company-overview-section {
    background-color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
}

.overview-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.overview-content {
    max-width: 900px;
    margin: 0 auto 30px;
}

.overview-content p {
    font-size: 12px;
    font-weight: 300;
    color: var(--white);
    line-height: 1.8;
    text-align: center;
}

.overview-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-overview {
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-learn-more {
    background-color: #1a4d7c;
    color: var(--white);
    border: none;
}

.btn-learn-more:hover {
    background-color: #163d62;
    color: var(--white);
}

.btn-reach-us {
    background-color: #1a4d7c;
    color: var(--white);
    border: none;
}

.btn-reach-us:hover {
    background-color: #163d62;
    color: var(--white);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    background-color: var(--white);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.copyright {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dark);
    margin: 0;
}

/* =====================================================
   Responsive Styles
   ===================================================== */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large Devices (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Medium Devices - Tablets (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .calibration-title,
    .hazardous-title,
    .work-title {
        font-size: 22px;
    }
    
    .calibration-content,
    .work-content {
        padding: 15px 20px;
    }
    
    .calibration-text,
    .hazardous-text,
    .work-text {
        font-size: 13px;
    }
}

/* Small Devices - Landscape Phones (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    /* Calibration Section */
    .calibration-section .row {
        flex-direction: column;
    }
    
    .calibration-content {
        text-align: center;
        padding: 25px 15px;
    }
    
    .calibration-image-wrapper {
        min-height: 200px;
    }
    
    .calibration-image {
        min-height: 200px;
    }
    
    /* Hazardous Section */
    .hazardous-section .row {
        flex-direction: column-reverse;
    }
    
    .hazardous-content {
        text-align: center;
        padding: 25px 15px;
    }
    
    .hazardous-text {
        text-align: center;
    }
    
    .hazardous-image-wrapper {
        min-height: 200px;
    }
    
    .hazardous-image {
        min-height: 200px;
    }
    
    /* Work Environment Section */
    .work-environment-section .row {
        flex-direction: column;
    }
    
    .work-content {
        text-align: center;
        padding: 25px 15px;
    }
    
    .work-text {
        text-align: center;
    }
    
    .work-image-wrapper {
        min-height: 200px;
    }
    
    .work-image {
        min-height: 200px;
    }
    
    .overview-title {
        font-size: 20px;
    }
    
    .overview-content p {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* Extra Small Devices - Portrait Phones (320px to 575px) */
@media (max-width: 575px) {
    .header {
        padding: 10px 0;
    }
    
    .logo {
        width: 30px;
    }
    
    .logo-title {
        font-size: 12px;
    }
    
    .logo-subtitle {
        font-size: 8px;
    }
    
    .hero-section {
        padding: 15px 0 30px;
    }
    
    .hero-image-wrapper {
        min-height: 150px;
    }
    
    .section-title {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .who-we-are-section {
        padding: 30px 0;
    }
    
    .calibration-section,
    .hazardous-section,
    .work-environment-section {
        padding: 40px 0;
    }
    
    .calibration-title,
    .hazardous-title,
    .work-title {
        font-size: 18px;
    }
    
    .calibration-text,
    .hazardous-text,
    .work-text {
        font-size: 12px;
    }
    
    .fifth-image-section {
        padding: 30px 0;
    }
    
    .fifth-image-wrapper {
        min-height: 150px;
    }
    
    .company-overview-section {
        padding: 40px 0;
    }
    
    .overview-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .overview-content p {
        font-size: 11px;
        line-height: 1.7;
        padding: 0 5px;
    }
    
    .btn-overview {
        padding: 8px 25px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .overview-buttons {
        gap: 10px;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .copyright {
        font-size: 10px;
    }
}

/* Very Small Devices (320px) */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .logo-title {
        font-size: 11px;
    }
    
    .logo-subtitle {
        font-size: 7px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .calibration-title,
    .hazardous-title,
    .work-title {
        font-size: 16px;
    }
    
    .overview-title {
        font-size: 16px;
    }
    
    .overview-content p {
        font-size: 10px;
    }
    
    .btn-overview {
        padding: 7px 20px;
        font-size: 12px;
    }
}

/* =====================================================
   Animation & Enhancements
   ===================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth hover effects for images */
.hero-image-wrapper,
.calibration-image-wrapper,
.hazardous-image-wrapper,
.work-image-wrapper,
.fifth-image-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image-wrapper:hover,
.calibration-image-wrapper:hover,
.hazardous-image-wrapper:hover,
.work-image-wrapper:hover,
.fifth-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Button hover animation */
.btn-overview {
    position: relative;
    overflow: hidden;
}

.btn-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-overview:hover::before {
    left: 100%;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--white);
}

/* Default glow effect */
.hero-image-wrapper,
.calibration-image-wrapper,
.hazardous-image-wrapper,
.work-image-wrapper,
.fifth-image-wrapper {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6); /* soft white glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Glow intensifies on hover */
.hero-image-wrapper:hover,
.calibration-image-wrapper:hover,
.hazardous-image-wrapper:hover,
.work-image-wrapper:hover,
.fifth-image-wrapper:hover{
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.9); /* stronger glow */
}
