@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #1e40af;
    /* Deep Royal Blue */
    --primary-rgb: 30, 64, 175;
    --secondary: #0f172a;
    /* Slate 900 */
    --secondary-rgb: 15, 23, 42;
    --accent: #2563eb;
    /* Vibrant Blue */
    --accent-rgb: 37, 99, 235;
    --dark: #ffffff;
    /* Pure White Background */
    --dark-surface: #f8fafc;
    /* Light Blue-Gray Surface */
    --dark-card: #f1f5f9;
    /* Slate Card/Surface background */
    --light: #0f172a;
    --light-surface: #1e293b;
    --text-dark: #0f172a;
    /* Headings are now Dark */
    --text-light: #1e293b;
    /* Body text is Dark Slate */
    --text-muted: #64748b;
    --border-color: rgba(30, 41, 59, 0.08);

    /* Layout Rules */
    --header-height: 80px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 38px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: #ffffff;
    padding: 0.6rem 1.3rem;
    border-radius: var(--border-radius);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.25);
}

.nav-cta:hover {
    background: var(--accent);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Layout Utilities */
.section {
    padding: 8rem 2rem;
    position: relative;
}

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

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 5rem;
}

.section-subtitle {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: inline-block;
    position: relative;
    padding-left: 2.2rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Cline x1='1' y1='8' x2='15' y2='8' stroke-dasharray='3,2'/%3E%3Cpolygon points='15,4 21,8 15,12' fill='%231e40af' stroke='none'/%3E%3Ccircle cx='22' cy='8' r='1.5' fill='%232563eb' stroke='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.06) 0%, rgba(255, 255, 255, 0) 80%),
        radial-gradient(circle at 90% 80%, rgba(30, 64, 175, 0.05) 0%, rgba(255, 255, 255, 0) 80%);
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Background video styling */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-video-container video,
.hero-video-container iframe {
    width: 100vw !important;
    height: 56.25vw !important; /* 16:9 ratio */
    min-height: 100vh !important;
    min-width: 177.77vh !important; /* 16:9 ratio */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    opacity: 0.85 !important;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 13, 22, 0.72); /* Premium dark mask overlay */
    z-index: 1;
}

/* Custom background animations */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    pointer-events: none;
    z-index: 2;
}

.hero-laser {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
    top: 40%;
    left: -100%;
    animation: scan 6s linear infinite;
    z-index: 2;
}

@keyframes scan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    z-index: 3;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.hero-content h1 span.highlight {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: #cbd5e1 !important;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--accent) !important;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: var(--border-radius);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: var(--transition-smooth);
    gap: 0.75rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(30, 64, 175, 0.25);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-dark);
    border: 1px solid rgba(30, 41, 59, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: #e2e8f0;
    border-color: rgba(30, 41, 59, 0.15);
    transform: translateY(-2px);
}

/* Hero visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    animation: rotate-dashed 40s linear infinite;
}

@keyframes rotate-dashed {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.visual-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0.9) 70%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 1px solid rgba(30, 64, 175, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    animation: morph 8s ease-in-out infinite alternate;
    overflow: hidden;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
}

.visual-image-wrapper img {
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    background: var(--dark-card);
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.06);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Stats Counter Section */
.stats-section {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-surface) 50%, var(--dark) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

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

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-title {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Portfolio Page & Filters */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f1f5f9;
    border: 1px solid rgba(30, 41, 59, 0.06);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    color: var(--text-muted);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.25);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
    border-color: rgba(30, 64, 175, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--dark-surface);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}

.portfolio-item:hover .portfolio-overlay-icon {
    transform: translateY(0);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-category {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-item-title {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Lightbox / Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    padding: 2rem;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 900px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    transform: scale(0.9);
    transition: var(--transition-smooth);
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: 1px solid rgba(30, 41, 59, 0.1);
    color: var(--text-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.modal-image-wrapper {
    background: var(--dark-surface);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-category {
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.modal-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.modal-spec-list {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.modal-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.modal-spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.modal-spec-val {
    color: var(--text-dark);
    font-weight: 600;
}

/* About Page Specific Styles */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-intro-content .accent-badge {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.about-intro-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.about-intro-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-intro-visual {
    position: relative;
}

.about-image-stack {
    position: relative;
    height: 480px;
}

.about-img-1 {
    width: 80%;
    height: 380px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

.about-img-2 {
    position: absolute;
    width: 60%;
    height: 250px;
    bottom: 0;
    right: 0;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid var(--dark-surface);
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.pillar-card {
    background: var(--dark-surface);
    padding: 3rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    background: var(--dark-card);
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.2);
}

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

.pillar-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

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

.machine-card {
    background: var(--dark-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.machine-card:hover {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
}

.machine-image {
    height: 220px;
    background: var(--dark-surface);
    position: relative;
    overflow: hidden;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.machine-card:hover .machine-image img {
    transform: scale(1.05);
}

.machine-info {
    padding: 2rem;
}

.machine-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.machine-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.machine-specs {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.machine-spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
}

.machine-spec-name {
    color: var(--text-muted);
}

.machine-spec-value {
    color: var(--text-dark);
    font-weight: 600;
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: stretch;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.contact-card:hover {
    background: var(--dark-card);
    border-color: rgba(37, 99, 235, 0.2);
}

.contact-card-icon {
    font-size: 1.5rem;
    color: var(--accent);
    width: 45px;
    height: 45px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.contact-card-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-form-panel {
    background: var(--dark-surface);
    border: 1px solid var(--border-color);
    padding: 3.5rem;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.contact-form-panel::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    pointer-events: none;
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.15);
}

textarea.form-input {
    resize: none;
    height: 150px;
}

.form-submit-btn {
    width: 100%;
}

/* Map section styling */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 6rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #f0f7ff 0%, var(--dark-surface) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    position: relative;
}

.map-placeholder-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.map-placeholder-title {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-blueprint-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* Footer styling */
footer {
    background: #0f172a;
    border-top: 1px solid var(--border-color);
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-info .footer-logo img {
    height: 40px;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
    font-size: 1rem;
}

.footer-social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-column-title {
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
    color: #94a3b8;
}

.footer-contact-icon {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Animations Trigger System (JS active class hook) */
.anim {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-up {
    transform: translateY(40px);
}

.anim-left {
    transform: translateX(-40px);
}

.anim-right {
    transform: translateX(40px);
}

.anim-scale {
    transform: scale(0.92);
}

.anim.show {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .about-intro-grid {
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .mobile-toggle {
        display: flex;
        z-index: 1100;
    }

    .mobile-menu-active .mobile-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-active .mobile-toggle span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-active .mobile-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #0f1319;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3rem;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: var(--transition-smooth);
        border-left: 1px solid var(--border-color);
        z-index: 1050;
    }

    .mobile-menu-active .nav-menu {
        right: 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .visual-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-intro-content {
        order: 2;
    }

    .about-intro-visual {
        order: 1;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .contact-form-panel {
        padding: 2rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-details {
        padding: 2rem;
    }
}

/* Custom CNC Cutter Pointer & Sparks Styling */
body {
    cursor: none !important;
    /* Hide default mouse cursor on desktop */
}

a,
button,
select,
input,
textarea,
.filter-btn,
.portfolio-overlay-icon,
.modal-close {
    cursor: none !important;
    /* Hide cursor on interactive items */
}

.custom-cursor {
    width: 24px;
    height: 24px;
    position: fixed;
    pointer-events: none;
    /* Make sure it doesn't block clicks */
    z-index: 100000;
    transform: translate(-50%, -50%);
    display: block;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    /* Coral laser dot */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent);
    z-index: 2;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--primary);
    /* CNC ring pointer */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.25s ease-out, height 0.25s ease-out, border-color 0.25s ease-out;
    opacity: 0.7;
    z-index: 1;
}

/* CNC G-code Crosshair lines inside target pointer */
.cursor-ring::before,
.cursor-ring::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    opacity: 0.5;
    transition: background-color 0.25s ease-out;
}

.cursor-ring::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.cursor-ring::after {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

/* Expanding and rotating cutter effect on hover */
body.cursor-hover .cursor-ring {
    width: 48px;
    height: 48px;
    border-color: var(--accent);
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 1;
}

body.cursor-hover .cursor-ring::before,
body.cursor-hover .cursor-ring::after {
    background-color: var(--accent);
}

body.cursor-hover .cursor-dot {
    background-color: #ffffff;
    box-shadow: 0 0 12px #ffffff;
}

/* Sparks click animation class */
.cursor-spark {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 8px var(--accent);
    animation: spark-drift 0.6s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes spark-drift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.2);
        opacity: 0;
    }
}

/* Hide on mobile devices where touch interface is used */
@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }

    a,
    button,
    select,
    input,
    textarea,
    .filter-btn,
    .portfolio-overlay-icon,
    .modal-close {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }
}

/* Hero Particle Canvas */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Client Brands Marquee Slider */
.logo-marquee {
    overflow: hidden;
    width: 100%;
    background: var(--dark-surface);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.logo-marquee-fade-left,
.logo-marquee-fade-right {
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.logo-marquee-fade-left {
    left: 0;
    background: linear-gradient(90deg, var(--dark) 0%, transparent 100%);
}

.logo-marquee-fade-right {
    right: 0;
    background: linear-gradient(-90deg, var(--dark) 0%, transparent 100%);
}

.logo-marquee-track {
    display: flex;
    width: calc(260px * 12);
    animation: marquee-scroll 24s linear infinite;
}

.logo-marquee-item {
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    gap: 0.8rem;
    opacity: 0.6;
    transition: var(--transition-smooth);
    user-select: none;
    flex-shrink: 0;
}

.logo-marquee-item:hover {
    opacity: 1;
    color: var(--text-dark);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

.logo-marquee-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-260px * 6));
    }
}

/* Scroll-triggered Slow Spinning Cogwheels/Gears in Background */
.bg-gear-decor {
    position: absolute;
    color: rgba(37, 99, 235, 0.025);
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bg-gear-1 {
    width: 350px;
    height: 350px;
    top: 15%;
    right: -100px;
}

.bg-gear-2 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    left: -150px;
}