/* Global Variables & Reset */
:root {
    --primary-color: #007bff;
    /* Vibrant Blue for Trust/Tech */
    --secondary-color: #ff6b00;
    /* Industrial Orange for Action/Safety */
    --dark-bg: #0f172a;
    /* Deep Navy/Slate */
    --darker-bg: #020617;
    /* Almost Black */
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    /* Tech/Industrial feel */

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--darker-bg);
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eyebrow {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    border-color: var(--light-text);
    color: var(--light-text);
    background: transparent;
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--light-text);
    color: var(--dark-bg);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .accent-text {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-text);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Show mobile toggle only on tablets and below */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') center center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 0%, rgba(15, 23, 42, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Featured Section (Machine Focus) */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
}

.feature-list {
    margin-top: 30px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.featured-image-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #2d3748, #1a202c);
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-placeholder i {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-box i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card:hover .icon-box i {
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* About Section */
.about-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-wrapper .lead {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 20px;
}

.about-wrapper p {
    color: var(--gray-text);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-top: 60px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.contact-info {
    background: linear-gradient(180deg, var(--card-bg), rgba(0, 0, 0, 0.2));
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    border-right: 1px solid var(--border-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    margin-top: 5px;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.contact-form {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--light-text);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
    background: var(--darker-bg);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive Media Queries */
@media (max-width: 900px) {

    .featured-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 30px;
    }

    .contact-form {
        padding: 30px;
    }

    .product-wrapper {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
        /* Hide for now, toggle with JS */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .product-detail-section {
        padding-top: 100px;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }

    .product-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .product-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .product-info h1 {
        font-size: 1.75rem;
    }

    .product-image {
        padding: 15px;
    }

    .product-specs h3 {
        font-size: 1.1rem;
    }

    .spec-list li {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 1rem;
    }

    .eyebrow {
        font-size: 0.75rem;
    }

    .product-card-content {
        padding: 20px;
    }

    .product-card-content h3 {
        font-size: 1.25rem;
    }

    .section-header h1 {
        font-size: 1.75rem;
    }
}

/* Product Detail Page */
.product-detail-section {
    padding-top: 140px;
    /* Account for fixed header */
    min-height: 80vh;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 100%;
    overflow-x: hidden;
}

.product-image {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.product-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-specs {
    margin: 30px 0;
}

.product-specs h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.product-specs h3 i {
    margin-right: 10px;
}

.spec-list {
    list-style: none;
}

.spec-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--gray-text);
}

.spec-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.spec-list strong {
    color: var(--light-text);
}

.product-actions {
    margin-top: 40px;
}

@media (max-width: 900px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-image {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Products Catalog Page */
.products-catalog-section {
    padding-top: 140px;
    min-height: 80vh;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.2);
}

.product-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--darker-bg);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.product-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-card-content p {
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-highlights {
    list-style: none;
    margin-bottom: 25px;
}

.product-highlights li {
    color: var(--gray-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.product-highlights i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.85rem;
}

.product-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    transition: var(--transition);
}

.product-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.product-link:hover {
    color: var(--secondary-color);
}

.product-link:hover i {
    transform: translateX(5px);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .section-header h1 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .product-card-image {
        height: 250px;
    }
}

@media (max-width: 600px) {
    .products-catalog-section {
        padding-top: 100px;
    }

    .products-grid {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .product-card-image {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .product-card-image {
        height: 200px;
    }

    .product-highlights li {
        font-size: 0.85rem;
    }
}