/* ============================================
   Persons Industries LLC - Main Stylesheet
   Modern Autonomous Systems & Robotics Design
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    --navy-blue: #1c2a39;
    --light-grey: #969696;
    --white: #ffffff;
    --off-white: #f8f9fa;
    --accent-blue: #2c4a63;
    --text-dark: #2a2a2a;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(28, 42, 57, 0.1);
    --shadow-md: 0 4px 6px rgba(28, 42, 57, 0.1);
    --shadow-lg: 0 10px 25px rgba(28, 42, 57, 0.15);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--navy-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-image {
  width: 65px;
  height: 65px;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Social Media Bar ========== */
.social-bar {
    background-color: var(--navy-blue);
    padding: 0.5rem 0;
    position: relative;
    z-index: 100;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition-base);
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

/* ========== Navigation Bar ========== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 99;
    transition: var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--navy-blue);
    transition: var(--transition-base);
}

/* ========== Hero Section ========== */
.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(28, 42, 57, 0.95) 0%, rgba(44, 74, 99, 0.95) 100%),
                url('../images/banner.jpg') center center / cover no-repeat;
    color: var(--white);
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-secondary {
    padding: 5rem 0 3rem;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-graphic {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.15;
    width: 50%;
    z-index: 1;
}

.circuit-pattern {
    width: 100%;
    height: auto;
}

/* Page Header Breadcrumb Style */
.page-header {
    text-align: center;
    padding: 2rem 0 1rem;
    background-color: var(--off-white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--navy-blue);
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--accent-blue);
}

.breadcrumb span {
    color: var(--light-grey);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0;
}

/* ========== Buttons ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--white);
    color: var(--navy-blue);
    font-weight: 600;
    border: 2px solid var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

/* ========== Engineering Info Section ========== */
.engineering-info {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.engineering-info h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.info-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--navy-blue);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
}

.info-header svg {
    flex-shrink: 0;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.info-status {
    font-size: 0.875rem;
    color: var(--light-grey);
    font-weight: 500;
}

/* ========== Mission Vision Values Section ========== */
.mvv-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.mvv-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.mvv-card {
    padding: 2.5rem;
    background-color: var(--off-white);
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--navy-blue), var(--accent-blue));
}

.mvv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mvv-icon {
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
}

.mvv-card h3 {
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.mvv-card p {
    line-height: 1.8;
}

/* ========== Customers Carousel Section ========== */
.customers-section {
    padding: 5rem 0;
    background-color: var(--white);
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

.customers-section h2 {
    text-align: center;
    color: var(--navy-blue);
    margin-bottom: 3rem;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 4rem;
    animation: scroll 45s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.customer-logo {
    max-height: 80px;
    width: auto;
    opacity: 0.85;
    transition: var(--transition-base);
}

.customer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-248%);
    }
}

/* ========== Services Section ========== */
.services-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.125rem;
    color: var(--text-light);
}

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

.service-card {
    padding: 2rem;
    background-color: var(--off-white);
    border-radius: 8px;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--navy-blue);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--navy-blue);
    flex-shrink: 0;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--navy-blue);
    min-height: 3rem;
    display: flex;
    align-items: center;
}

.service-card p {
    flex-grow: 1;
}

/* ========== Projects Section ========== */
.projects-section {
    padding: 5rem 0;
    background-color: var(--white);
}

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

.project-card {
    padding: 2rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-blue);
}

.project-status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--navy-blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.project-status.active {
    background-color: #10b981;
}

.project-status.research {
    background-color: var(--accent-blue);
    color: #fff;
}

.project-status.completed {
    background-color: var(--light-grey);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--navy-blue);
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.meta-tag {
    padding: 0.25rem 0.75rem;
    background-color: var(--off-white);
    color: var(--text-light);
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.project-card > p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.project-tech span {
    padding: 0.375rem 0.75rem;
    background-color: var(--navy-blue);
    color: var(--white);
    font-size: 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    color: var(--navy-blue);
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.project-link:hover {
    color: var(--accent-blue);
}

.project-placeholder {
    border: 2px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 300px;
}

.placeholder-icon {
    color: var(--light-grey);
    margin-bottom: 1rem;
}

/* ========== About Section ========== */
.about-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--navy-blue);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    padding: 1.5rem;
    background-color: var(--off-white);
    border-radius: 8px;
    border-left: 4px solid var(--navy-blue);
}

.highlight-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--navy-blue);
}

.highlight-card ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.highlight-card li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    font-size: 0.9rem;
}

.highlight-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--navy-blue);
    font-weight: 600;
}

/* ========== Contact Section ========== */
.contact-section {
    padding: 5rem 0;
    background-color: var(--off-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item svg {
    flex-shrink: 0;
    color: var(--navy-blue);
    margin-top: 0.25rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--navy-blue);
}

.contact-form-container {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inquiry-btn {
  justify-content: flex-end;
}

.inquiry-btn:hover {
  color: #353535;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-base);
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 3px rgba(28, 42, 57, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.75rem;
    color: var(--light-grey);
    text-align: center;
    margin-top: -0.5rem;
}

/* ========== News/Blog Section ========== */
.news-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.news-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--off-white);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.news-placeholder svg {
    margin: 0 auto 1.5rem;
    color: var(--light-grey);
}

.news-placeholder h3 {
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

.news-placeholder p {
    max-width: 600px;
    margin: 0 auto;
}

.facebook-feed-container {
    max-width: 800px;
    margin: 0 auto;
    min-height: 500px;
}

/* ========== Footer ========== */
.footer {
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 40fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-base);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ========== Responsive Design ========== */
@media (max-width: 968px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero {
        padding: 5rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        padding: 4rem 0 3rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .info-grid,
    .mvv-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-track {
        gap: 2rem;
    }
    
    .carousel-item {
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
