/* --- CSS Variables & Design System --- */
:root {
    --bg-main: #0B0B0B;
    --bg-secondary: #151515;
    --bg-accent: #222222;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dark: #333333;
    
    /* Subtle Electric Blue or Orange - Let's go with a high-tech Electric Blue */
    --accent-color: #00E5FF;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --accent-shadow: rgba(0, 229, 255, 0.2);

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --color-silver: #C0C8D0;
    
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.highlight {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 3px;
    width: 60px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 11, 11, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-img {
    height: 52px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    /* subtle brightness boost so it pops on dark background */
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(0, 229, 255, 0.15));
    transition: filter var(--transition-fast);
}

.logo:hover .logo-img {
    filter: brightness(1.25) drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
}

.logo-img--footer {
    height: 60px;
    margin-bottom: 16px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-primary);
}

.nav-links a:not(.btn-quote-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-links a:hover:not(.btn-quote-nav)::after {
    width: 100%;
    box-shadow: 0 0 8px var(--accent-glow);
}

.btn-quote-nav {
    border: 1px solid var(--accent-color);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--accent-color);
    transition: var(--transition-fast);
}

.btn-quote-nav:hover {
    background: var(--accent-color);
    color: var(--bg-main);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: radial-gradient(circle at center, rgba(30,30,30,1) 0%, rgba(11,11,11,1) 70%);
}

#particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Optional 3D Graphite Block floating in BG - achieved via pseudo elements */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%) rotate(45deg);
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(40,40,40,0.8) 0%, rgba(15,15,15,0.9) 100%);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 0 100px rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    z-index: 1;
    opacity: 0.4;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(-50%) rotate(45deg) scale(1); }
    50% { transform: translateY(-55%) rotate(42deg) scale(1.02); }
    100% { transform: translateY(-50%) rotate(45deg) scale(1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-headline {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    letter-spacing: 3px;
}

.hero-headline .highlight {
    /* Animated shimmer: wide gradient slides left→right over 3 s */
    background: linear-gradient(
        105deg,
        #7A8490 0%,
        #9BA3AB 18%,
        #C8D0D8 30%,
        #EEF2F6 40%,   /* bright shine highlight */
        #FFFFFF 44%,
        #EEF2F6 48%,
        #C8D0D8 58%,
        #9BA3AB 72%,
        #7A8490 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 12px rgba(220,228,240,0.45));
    animation: silver-shine 2.8s linear infinite;
}

@keyframes silver-shine {
    0%   { background-position: 200% center; }
    100% { background-position: -50% center; }
}

.hero-subheading {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 2px solid #B0B8C4;
    color: #C8D0D8;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
    letter-spacing: 1px;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, #8A9099, #C8D0D8, #EEF2F6, #C8D0D8, #8A9099);
    z-index: -1;
    transition: var(--transition-fast);
}

.btn-glow:hover::before {
    left: 0;
}

.btn-glow:hover {
    color: #111;
    border-color: #D4DDE6;
    box-shadow: 0 0 28px rgba(192, 208, 224, 0.5);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: calc(50% - 74px);
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    margin-top: 6px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

/* --- Process Section (3D Canvas Animation) --- */
.process-section {
    background: var(--bg-secondary);
}

/* ── Canvas wrapper ── */
.process-3d-wrapper {
    width: 100%;
    height: 520px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #080808;
    border: 1px solid rgba(0, 229, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03),
        0 30px 80px rgba(0,0,0,0.7),
        inset 0 0 60px rgba(0,0,0,0.9);
    margin-bottom: 60px;
}

.machining-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── HUD overlay ── */
.process-hud {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.hud-label {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    letter-spacing: 3px;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
    text-transform: uppercase;
}

.hud-progress-bar {
    width: 220px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.hud-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-color);
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.1s linear;
}

/* ── Step tracker ── */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.p-step {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 8px;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.p-step.active {
    background: rgba(0, 229, 255, 0.04);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.08);
}

.p-step-dot {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    margin-top: 4px;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.p-step.active .p-step-dot {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.p-step-body h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.p-step.active .p-step-body h4 {
    color: var(--text-primary);
}

.p-step-body p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* --- Capabilities Section --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.capability-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-fast);
}

.capability-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.capability-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-fast);
}

.capability-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 15px var(--accent-glow);
}

.capability-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.capability-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Machines Section --- */
.machines-section {
    background: var(--bg-main);
}

.machine-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.machine-row.reverse {
    flex-direction: row-reverse;
}

.machine-row:last-child {
    margin-bottom: 0;
}

.machine-image {
    flex: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    border: 1px solid rgba(255,255,255,0.05);
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(1.2);
    transition: var(--transition-smooth);
}

.machine-image:hover img {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(11,11,11,0.6), transparent);
}

.machine-row.reverse .image-overlay {
    background: linear-gradient(to left, rgba(11,11,11,0.6), transparent);
}

.machine-info {
    flex: 1;
}

.machine-name {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.machine-info p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.machine-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.machine-specs li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.machine-specs li i {
    color: var(--accent-color);
}

/* --- Applications Section --- */
.applications-section {
    background: var(--bg-secondary);
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.app-card {
    background: var(--bg-main);
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.app-card i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.app-card h4 {
    transition: var(--transition-fast);
}

.hover-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

.app-card:hover {
    background: #1a1a1a;
}

.app-card:hover i {
    color: var(--accent-color);
    transform: translateY(-10px);
}

.app-card:hover .hover-line {
    width: 100%;
}

/* --- Gallery Section --- */
.gallery-section {
    background: var(--bg-main);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-accent);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.gallery-overlay span {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--transition-fast);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* --- Contact Section --- */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.method {
    display: flex;
    align-items: center;
    gap: 20px;
}

.method i {
    font-size: 1.8rem;
    color: var(--accent-color);
    width: 50px;
    height: 50px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.method h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.method p {
    margin-bottom: 0;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-form-container {
    flex: 1;
    position: relative;
    padding: 40px;
    background: var(--bg-main);
    border-radius: 8px;
    z-index: 1;
}

.glowing-border {
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--bg-main), var(--accent-color), var(--bg-main));
    border-radius: 10px;
    z-index: -1;
    opacity: 0.5;
    animation: border-glow 4s linear infinite;
    background-size: 400% 400%;
}

@keyframes border-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-group textarea {
    resize: vertical;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent-color);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -15px;
    font-size: 0.8rem;
    color: var(--accent-color);
}

.file-upload {
    margin-top: 10px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.file-label:hover {
    color: var(--accent-color);
}

.btn-submit {
    background: var(--accent-color);
    color: var(--bg-main);
    border: none;
    padding: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #fff;
    color: var(--bg-main);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* --- Footer --- */
.footer {
    background: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 400px;
}

.footer h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 25px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    position: relative;
    padding-left: 0;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.05);
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--bg-main);
    border-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Animations & Intersection Observers (CSS Classes) --- */
.observe-fade-up, .observe-scale-up, .observe-slide-left, .observe-slide-right, .observe-scroll-up {
    opacity: 0;
    will-change: transform, opacity;
}

.observe-fade-up { transform: translateY(50px); }
.observe-scale-up { transform: scale(0.9); }
.observe-slide-left { transform: translateX(-50px); }
.observe-slide-right { transform: translateX(50px); }
.observe-scroll-up { transform: translateY(100px); }

/* In-View States */
.in-view {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Delay Classes */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Responsive */
@media (max-width: 991px) {
    .hero-headline { font-size: 3.5rem; }
    .contact-wrapper { flex-direction: column; }
    .machine-row, .machine-row.reverse { flex-direction: column; }
    .machine-image { width: 100%; height: 300px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; /* simple hidden for mobile, can add hamburger later if needed */ }
    .hero-headline { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
