/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #0f172a; /* Deep Navy */
    --secondary-color: #1e3a8a; /* Brighter Blue */
    --accent-color: #2563eb;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --container-padding: 0 5%;
    --section-padding: 5rem 0;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background-color: var(--bg-white);
    color: var(--primary-color);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    padding: 8rem 0;
    text-align: center;
}

.hero-content h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem auto;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
#about {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-image-placeholder {
    background-color: #e2e8f0;
    height: 400px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
    border: 2px dashed #cbd5e1;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
#services {
    padding: var(--section-padding);
}

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

.service-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Machinery Categories Section
   ========================================================================== */
#machinery {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

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

.machinery-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.machinery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.machine-img-placeholder {
    height: 200px;
    background-color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 500;
}

.machinery-info {
    padding: 1.5rem;
}

.machinery-info h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
#process {
    padding: var(--section-padding);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.step {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--bg-white);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    width: 100%;
    border: 1px solid var(--border-color);
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Why SNI Section
   ========================================================================== */
#why-sni {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    color: var(--bg-white);
}

#why-sni .section-title,
#why-sni .section-subtitle {
    color: var(--bg-white);
}

#why-sni .section-subtitle {
    opacity: 0.8;
}

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

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-icon {
    color: #60a5fa;
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.benefit-item h4 {
    color: var(--bg-white);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
#contact {
    padding: var(--section-padding);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.submit-btn {
    width: 100%;
    font-size: 1.125rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: #020617;
    color: #94a3b8;
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        padding: 2rem;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .process-steps::before {
        left: 20px;
    }
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .contact-container {
        padding: 2rem 1.5rem;
    }
}