/* ------------------- */
/* Custom Properties   */
/* ------------------- */
:root {
    --clr-dark: #111111;
    --clr-light: #f5f5f5;
    --clr-accent-orange: #FF8C00;
    --clr-accent-gold: #FFD700;

    --ff-headings: 'Poppins', sans-serif;
    --ff-body: 'Inter', sans-serif;
}

/* ------------------- */
/* Reset & Globals     */
/* ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--clr-dark);
    color: var(--clr-light);
    font-family: var(--ff-body);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Centers the container */
}

a {
    color: var(--clr-light);
    text-decoration: none;
}

ul {
    list-style: none;
}


/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.main-nav {
    display: flex;
    justify-content: space-between; /* Pushes items to the edges */
    align-items: center; /* Vertically aligns items */
}

.logo {
    z-index: 1001; /* Ensure logo is above mobile menu overlay */
    display: flex;
    align-items: center;
}

.logo svg {
    height: 80px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem; /* Adds space between nav items */
}

.main-nav ul a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul a:hover {
    color: var(--clr-accent-gold);
}

.button-primary {
    background: linear-gradient(90deg, var(--clr-accent-orange), var(--clr-accent-gold));
    color: var(--clr-dark);
    font-family: var(--ff-headings);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.button-primary:hover {
    transform: scale(1.05);
}

/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero {
    padding: 6rem 0; /* Creates vertical space */
    text-align: center; /* Centers all the content */
}

.hero-title {
    font-family: var(--ff-headings);
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    line-height: 1.1;
    max-width: 20ch; /* Limits the line length for readability */
    margin: 0 auto; /* Centers the title */
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 60ch;
    margin: 1.5rem auto 2.5rem; /* Top, horizontal, bottom margin */
    color: rgba(245, 245, 245, 0.85); /* Slightly less bright than pure white */
}

/* ------------------------ */
/* Industries Section (Home)*/
/* ------------------------ */
.industries {
    padding: 6rem 0;
}

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

.section-intro h2 {
    font-family: var(--ff-headings);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.1rem;
    max-width: 60ch;
    margin: 0 auto;
    color: rgba(245, 245, 245, 0.85);
}

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

.industry-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    color: var(--clr-accent-gold);
    margin-bottom: 1rem;
    height: 40px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.lucide-icon {
    width: 100%;
    height: 100%;
}

.industry-card h3 {
    font-family: var(--ff-headings);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ------------------------ */
/* Services Section (Home)  */
/* ------------------------ */
.services {
    padding: 6rem 0;
    background-color: #000;
}

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

.services-content h2 {
    font-family: var(--ff-headings);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.services-content p {
    font-size: 1.1rem;
    color: rgba(245, 245, 245, 0.85);
    max-width: 50ch;
}

.services-list ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services-list li {
    padding-left: 1.5rem;
    border-left: 3px solid var(--clr-accent-orange);
}

.services-list h3 {
    font-family: var(--ff-headings);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

/* ------------------------ */
/* CTA Section              */
/* ------------------------ */
.cta {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(90deg, var(--clr-accent-orange), var(--clr-accent-gold));
    color: var(--clr-dark);
}

.cta h2 {
    font-family: var(--ff-headings);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.15rem;
    max-width: 55ch;
    margin: 0 auto 2.5rem;
}

.button-secondary {
    background: var(--clr-dark);
    color: var(--clr-light);
    font-family: var(--ff-headings);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
}

.button-secondary:hover {
    background: #000;
    transform: scale(1.05);
}

/* ------------------------ */
/* Footer                   */
/* ------------------------ */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info p {
    margin-top: 0.5rem;
    color: rgba(245, 245, 245, 0.7);
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(245, 245, 245, 0.85);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--clr-light);
}

/* ------------------------ */
/* Inner Page Styles        */
/* ------------------------ */
.page-header {
    padding: 4rem 0;
    text-align: center;
    background-color: #000;
}

.page-header h1 {
    font-family: var(--ff-headings);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 60ch;
    margin: 0 auto;
    color: rgba(245, 245, 245, 0.85);
}

/* About Page */
.about-content {
    padding: 6rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-text h2 {
    font-family: var(--ff-headings);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--clr-accent-gold);
}

.about-text p {
    margin-bottom: 1rem;
    color: rgba(245, 245, 245, 0.9);
}

/* Services Page */
.services-page-content {
    padding: 6rem 0;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-top: 4px solid var(--clr-accent-orange);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-family: var(--ff-headings);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-description {
    color: rgba(245, 245, 245, 0.85);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-accent-gold);
}

/* Contact Page */
.contact-content {
    padding: 6rem 0;
}

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

.contact-info h3 {
    font-family: var(--ff-headings);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: rgba(245, 245, 245, 0.85);
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    color: rgba(245, 245, 245, 0.85);
}

.contact-info strong {
    color: var(--clr-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--clr-light);
    font-family: var(--ff-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
}

#form-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

#form-status:not(:empty) {
    background: rgba(255, 255, 255, 0.1);
}

/* Industries Page (Parallax) */
.parallax-bg {
    height: 60vh; 
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.parallax-content {
    padding: 6rem 0;
    background-color: #000;
    margin-bottom: 6rem;
}

.industry-text-box {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.industry-text-box h2 {
    font-family: var(--ff-headings);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.industry-text-box p {
    margin-bottom: 1.5rem;
    color: rgba(245, 245, 245, 0.85);
}

.industry-applications {
    list-style: none;
    padding-left: 0;
}

.industry-applications li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.industry-applications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--clr-accent-gold);
}

/* ------------------------ */
/* CLS Optimization         */
/* ------------------------ */

.logo {
    min-height: 80px;
}

.hero-title {
    min-height: 100px;
}

.hero-subtitle {
    min-height: 60px;
}

.about-image {
    min-height: 400px;
}

.services-grid {
    min-height: 400px;
}

#industries-list-container {
    min-height: 100vh;
}

/* ----------------------------- */
/* Mobile Navigation Styles      */
/* ----------------------------- */

.nav-links {
    display: flex; /* Show by default on desktop */
}

.desktop-cta {
    display: block; /* Show by default on desktop */
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-toggle .hamburger-icon rect {
    fill: var(--clr-light);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate hamburger to an 'X' */
.mobile-menu-toggle.active .hamburger-icon rect:nth-child(1) {
    transform: translateY(22.5px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-icon rect:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-icon rect:nth-child(3) {
    transform: translateY(-22.5px) rotate(-45deg);
}

/* Slide-in panel instead of full-screen */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 200px; /* Set a fixed width for the panel */
    max-width: 60%;
    height: 100vh;
    background-color: var(--clr-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    transition: right 0.4s ease-in-out;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.active {
    right: 0; /* Slide into view */
}

.mobile-nav a {
    font-family: var(--ff-headings);
    font-size: 1.0rem;
    color: var(--clr-light);
}

/* Media Query for mobile devices */
@media (max-width: 768px) {
    .nav-links, .desktop-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
/* ------------------------ */
/* Blog Page Styles         */
/* ------------------------ */

.blog-list-section {
    padding: 6rem 0;
}

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

.post-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--clr-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-family: var(--ff-headings);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-card-date {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
}

/* ------------------------ */
/* Single Post Page Styles  */
/* ------------------------ */

.post-section {
    padding: 6rem 0;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
}

.post-container h1 {
    font-family: var(--ff-headings);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.post-date {
    color: rgba(245, 245, 245, 0.7);
    margin-bottom: 2rem;
}

.post-main-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}