/* Design System & Global Styles */
:root {
    --white: #FFFFFF;
    --space-grey: #1F1F1F;
    --light-grey: #F5F5F7;
    --accent-blue: #007AFF;
    --accent-green: #34C759;
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-base: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Adjust based on navbar height */
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
}

.logo-subtext {
    font-size: 0.6rem;
    color: var(--text-secondary);
    letter-spacing: 0.2rem;
}

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

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

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

.btn-primary {
    background-color: var(--space-grey);
    color: var(--white) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    transition: transform 0.2s ease !important;
}

.btn-primary:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #fbfbfb, #ffffff);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 400px;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    opacity: 0.15;
    pointer-events: none;
    transition: var(--transition-base);
}

.hero::before {
    left: -100px;
    background-image: url('assets/images/medical_part_1.png');
}

.hero::after {
    right: -100px;
    background-image: url('assets/images/medical_part_2.png');
}

.theme-services .hero::before,
.theme-services .hero::after {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

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

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--space-grey);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #000;
    transform: translateY(-2px);
}



/* Technology */
.technology {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10rem 0 6rem 0;
    background-color: var(--light-grey);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.technology::before,
.technology::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 380px;
    height: 380px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(15deg);
    opacity: 0.08;
    pointer-events: none;
}

.technology::before {
    left: -80px;
    background-image: url('assets/images/star-sr-32jiii.png');
}

.technology::after {
    right: -80px;
    background-image: url('assets/images/precision-parts.png');
}

.section-badge {
    display: inline-block;
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.technology h2 {
    margin-bottom: 1.5rem;
}

.machine-lead {
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 5rem;
    align-items: center;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.brand-item img {
    max-width: 100%;
    height: auto;
    max-height: 160px;
    filter: none;
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-item img:hover {
    transform: scale(1.1);
}

.machine-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.machine-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.machine-specs h3 {
    margin-bottom: 2rem;
}

.machine-specs ul {
    list-style: none;
}

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

/* Expertise */
.expertise {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
}

.expertise::before,
.expertise::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 380px;
    height: 380px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(-10deg);
    opacity: 0.07;
    pointer-events: none;
}

.expertise::before {
    left: -80px;
    background-image: url('assets/images/medical_part_2.png');
}

.expertise::after {
    right: -80px;
    background-image: url('assets/images/service_parts_1.png');
    background-size: cover;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

body.theme-services {
    background-color: #f8f9fa;
}

.theme-services .expertise {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('assets/images/service_parts_1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.expertise-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    width: 40px;
    height: 10px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.blue-accent {
    background-color: var(--accent-blue);
}

.green-accent {
    background-color: var(--accent-green);
}

/* How It Works Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background: var(--light-grey);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--border-color);
    box-shadow: var(--shadow-heavy);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    opacity: 0.35;
    margin-bottom: 1rem;
    font-family: monospace;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quality */
.quality {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10rem 0 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quality::before,
.quality::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 380px;
    height: 380px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(20deg);
    opacity: 0.07;
    pointer-events: none;
}

.quality::before {
    left: -60px;
    background-image: url('assets/images/precision-parts.png');
}

.quality::after {
    right: -60px;
    background-image: url('assets/images/medical_part_1.png');
}

.quality-lead {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.iso-tags {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-weight: 600;
}

/* Contact */
.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 10rem 0 6rem 0;
    background-color: #f5f5f7;
    position: relative;
    overflow: hidden;
}

.contact::before,
.contact::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 350px;
    height: 350px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%) rotate(-15deg);
    opacity: 0.07;
    pointer-events: none;
}

.contact::before {
    left: -60px;
    background-image: url('assets/images/star-sr-32jiii.png');
}

.contact::after {
    right: -60px;
    background-image: url('assets/images/medical_part_2.png');
}

.contact-card {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 4rem;
    align-items: start;
}

/* Left Side */
.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-left h2 {
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: auto;
}

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

.contact-info-icon {
    width: 42px;
    height: 42px;
    background-color: var(--light-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin: 0;
}

.contact-info-value {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    margin: 0.15rem 0 0;
}

/* Right Side — Form */
.contact-right {
    background: var(--light-grey);
    border-radius: 24px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

/* Floating Label Fields */
.form-field {
    position: relative;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 1.4rem 1.2rem 0.5rem;
    background: var(--white);
    border: 1.5px solid transparent;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-main);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.form-field label {
    position: absolute;
    top: 1rem;
    left: 1.2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.form-field input:not(:placeholder-shown)~label,
.form-field input:focus~label,
.form-field textarea:not(:placeholder-shown)~label,
.form-field textarea:focus~label {
    top: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.08);
}

.form-field textarea {
    resize: none;
    min-height: 130px;
    padding-top: 1.4rem;
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background-color: var(--space-grey);
    color: var(--white);
    padding: 1.1rem;
    border: none;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(4px);
}

.submit-btn:disabled {
    background-color: var(--text-secondary);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    text-align: center;
}

.form-status.success {
    display: block;
    color: var(--accent-green);
}

.form-status.error {
    display: block;
    color: #FF3B30;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    animation: fadeIn 1s .5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .machine-grid,
    .expertise-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .brand-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        text-align: center;
    }

    .contact-card {
        padding: 3rem 2rem;
    }

    .step-card {
        text-align: center;
    }
}