:root {
    --bg-dark: #030303;
    --bg-black: #000000;
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);
    --accent: #e0e0e0;
    --font-main: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Base Background with slight radial gradient for depth */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, #111 0%, #000 70%);
    z-index: -2;
}

/* Blueprint overlay - removed broken path, using subtle pattern instead */
.blueprint-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(15, 60, 91, 0.1) 0%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

/* Typography styles */
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Header & Hero Wrapper */
.header-wrapper {
    position: relative;
    background-image: linear-gradient(rgba(15, 60, 91, 0.85), rgba(15, 60, 91, 0.85)), url('aerospace_machining_bg_1778480561573.png');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    min-height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--text-white);
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 1.3rem;
    text-transform: uppercase;
    line-height: 1;
}

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

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn-nav-cta {
    background: #e13d46; /* Matching the red color */
    color: var(--text-white);
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-nav-cta:hover {
    background: #c8323a;
}

.btn-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #111827; /* Dark gray */
    color: var(--text-white);
    padding: 0.6rem 0.6rem 0.6rem 1.5rem;
    border-radius: 2rem;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-hero-cta:hover {
    background: #000;
}

.icon-arrow {
    background: #fff;
    color: #e13d46;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-arrow svg {
    width: 20px;
    height: 20px;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 2rem;
    font-family: var(--font-main);
    font-size: 0.85rem;
    letter-spacing: 2px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
.btn-primary {
    background: var(--text-white);
    color: var(--bg-black);
    border: 1px solid var(--text-white);
}

/* Hero Section */
.hero {
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-transform: none;
}

.hero-subtext {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* Industrial Gallery */
.industrial-gallery {
    padding: 4rem;
    border-top: 1px solid var(--border-color);
}

.gallery-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.grid-line {
    flex-grow: 1;
    height: 1px;
    background: var(--border-color);
}

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

.product-card {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-image-wrapper {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.2);
    transition: transform 0.6s ease;
}

.product-card:hover .card-image {
    transform: scale(1.03);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.card-info {
    padding: 2rem;
}

.card-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Footer */
.site-footer {
    position: relative;
    background-image: linear-gradient(rgba(15, 60, 91, 0.95), rgba(15, 60, 91, 0.95)), url('aerospace_machining_bg_1778480561573.png');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding: 6rem 4rem 2rem 4rem;
}

.footer-grid-new {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left {
    max-width: 450px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 45px;
    width: auto;
}

.footer-logo span {
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-tagline {
    font-size: 1rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-contact-items {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: #e13d46;
}

.contact-item a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e13d46;
}

.footer-socials {
    margin-top: 2rem;
}

.social-icon {
    color: #e13d46;
    width: 24px;
    height: 24px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.footer-right .footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

.footer-nav a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: #e13d46;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5rem;
    padding-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Pages Header Wrapper */
.subpage-wrapper {
    position: relative;
    background-image: linear-gradient(rgba(15, 60, 91, 0.9), rgba(15, 60, 91, 0.9)), url('aerospace_machining_bg_1778480561573.png');
    background-size: cover;
    background-position: center;
    color: var(--text-white);
    padding-bottom: 4rem;
}

.page-header {
    padding: 8rem 4rem 4rem;
    text-align: center;
}

.content-section {
    padding: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section h2 {
    margin-bottom: 2rem;
    color: var(--text-white);
    border-left: 4px solid #e13d46;
    padding-left: 1.5rem;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #cbd5e1;
    max-width: none;
}

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

.spec-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-5px);
    border-color: #e13d46;
}

.spec-item h3 {
    color: #e13d46;
    margin-bottom: 1rem;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .hero-image-container {
        height: 50vh;
    }
    
    .top-nav {
        padding: 1rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0f3c5b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--text-white);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: #e13d46;
    background: rgba(0, 0, 0, 0.3);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
