/* 
   VERSATILE GROUP - MULTI-PAGE WEBSITE
   Primary Color: #023d57
*/

/* ==================== VARIABLES ==================== */
:root {
    --primary: #023d57;
    --primary-dark: #012840;
    --primary-light: #034d6f;
    --accent: #df3174;
    --accent-dark: #c52861;

    --dark: #1a1a1a;
    --gray-dark: #333333;
    --gray: #666666;
    --gray-light: #999999;

    --white: #ffffff;
    --off-white: #f8f9fa;
    --light: #e9ecef;

    --font-primary: 'Poppins', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-dark);
    line-height: 1.7;
    background: var(--white);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--off-white);
}

.bg-primary {
    background: var(--primary);
    color: var(--white);
}

.text-white {
    color: var(--white);
}

.centered {
    text-align: center;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-contact {
    background: var(--accent);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 100px;
    object-fit: contain;
    max-width: 100%;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--gray-dark);
    position: relative;
}

.nav-menu a:not(.btn-contact):hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a:not(.btn-contact)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:not(.btn-contact):hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 61, 87, 0.95), rgba(2, 61, 87, 0.85));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 24px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-description {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.description-item {
    display: inline;
}

.description-item:not(:last-child)::after {
    content: " | ";
    margin: 0 4px;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    margin-bottom: 48px;
    position: relative;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 12px;
}

.bg-primary .section-header h2 {
    color: var(--white);
}

.section-header.centered h2 {
    text-align: center;
}

.section-header p {
    color: var(--gray);
    font-size: 18px;
}

.diagonal-accent {
    width: 80px;
    height: 6px;
    background: var(--primary);
    margin-bottom: 16px;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
}

.diagonal-accent.light {
    background: var(--accent);
}

.section-header.centered .diagonal-accent {
    margin: 0 auto 16px;
}

/* ==================== ABOUT INTRO ==================== */
.content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.content-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray);
    font-weight: 500;
}

/* ==================== COMPANIES SECTION ==================== */
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.company-card {
    background: var(--white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.company-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.company-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.company-card p {
    color: var(--gray);
    font-weight: 500;
}

.company-card.featured {
    background: var(--primary);
    color: var(--white);
    border-left: 4px solid var(--accent);
}

.company-card.featured h3,
.company-card.featured p {
    color: var(--white);
}

/* ==================== SERVICES OVERVIEW ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
}

.link-arrow:hover {
    color: var(--primary-dark);
}

/* ==================== WHY SECTION ==================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.why-item {
    text-align: center;
    padding: 32px 24px;
}

.why-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin: 0 auto 20px;
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.why-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* ==================== CONTACT FORM ==================== */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 150px;
    object-fit: contain;
    max-width: 100%;
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-col p {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--gray-light);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-light);
    font-size: 14px;
}

/* ==================== MANUFACTURING PAGE STYLES ==================== */
.factory-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.stat-item {
    background: var(--off-white);
    padding: 16px 24px;
    border-radius: 8px;
    border-bottom: 3px solid var(--accent);
    flex: 1;
    min-width: 140px;
    text-align: center;
}

.stat-val {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.stat-lbl {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.machine-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.machine-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.machine-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: inline-block;
}

.machine-card h3 {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.machine-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.quality-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.quality-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}

@media (max-width: 900px) {
    .quality-content {
        grid-template-columns: 1fr;
    }

    .quality-content .quality-image {
        order: -1;
    }
}

/* ==================== CONTACT PAGE STYLES ==================== */
.contact-grid-page {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info-block {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 4px;
}

.info-text p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.6;
}

.contact-form-page-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--accent);
}

.contact-form-page-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.map-section {
    width: 100%;
    height: 450px;
    background: var(--light);
}

@media (max-width: 900px) {
    .contact-grid-page {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-page-wrapper {
        padding: 30px 20px;
    }
}

/* ==================== PROJECTS PAGE STYLES ==================== */
.project-filters {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-primary);
    font-size: 15px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--light);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 61, 87, 0.85);
    /* Primary color opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.project-info p {
    font-size: 14px;
    opacity: 0.9;
}

.project-details {
    padding: 20px;
}

.project-details h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-dark);
}

.project-cat {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SERVICES PAGE STYLES ==================== */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 40px;
}

.service-detail-grid.reversed {
    direction: rtl;
}

.service-detail-grid.reversed .service-content {
    direction: ltr;
    /* Reset text direction for content */
}

.service-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    /* Fixed height for consistency */
    object-fit: cover;
}

.service-content h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.feature-list {
    margin: 24px 0 32px;
}

.feature-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
    font-size: 16px;
    color: var(--gray-dark);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* PEB Types Grid */
.peb-types {
    margin-top: 60px;
}

.peb-types h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 40px;
    color: var(--gray-dark);
}

.peb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.peb-card {
    background: var(--off-white);
    padding: 24px;
    border-radius: 4px;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}

.peb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.peb-card h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.peb-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

@media (max-width: 900px) {

    .service-detail-grid,
    .service-detail-grid.reversed {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 40px;
    }

    .service-image img {
        height: 300px;
    }
}

/* ==================== ABOUT PAGE STYLES ==================== */
.page-header {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.purpose-content p,
.policy-content p,
.profile-content p,
.advantage-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

/* Vision & Mission */
.vision-mission {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.vm-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.vm-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.vm-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.vm-card p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Leadership Section */
.leadership-section {
    background: var(--off-white);
}

.leadership-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

.leadership-message {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
}

.leadership-message p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--gray-dark);
}

.leadership-message p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--primary);
}

.leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.leader-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.leader-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.leader-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--light);
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info {
    padding: 24px;
    text-align: center;
}

.leader-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-dark);
    margin-bottom: 8px;
}

.leader-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.leader-company {
    font-size: 13px;
    color: var(--gray);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nav-menu {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .logo img {
        height: 70px;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 14px;
    }

    .nav-menu a {
        padding: 8px 12px;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-description {
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px 24px;
    }

    .companies-grid,
    .services-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        height: 100px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .hero-badges {
        flex-direction: column;
    }

    .badge {
        text-align: center;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}