:root {
    /* Rich Light Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f2f4f8;
    --bg-dark: #0a0b10;
    --text-primary: #111113;
    --text-secondary: #6e6e73;
    --text-light: #ffffff;
    --accent-blue: #0066CC;
    --accent-cyan: #00C2FF;
    --accent-glow: rgba(0, 102, 204, 0.4);
    --glass-surface: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 120px 0;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --radius-full: 999px;

    /* Animations */
    --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 700;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

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

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 194, 255, 0.1) 100%);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* "Island" Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    min-width: 700px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    margin-right: 24px;
}

.logo-text {
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 500;
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.04);
}

.nav-links a.active {
    background: var(--accent-blue);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 24px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #eef2f8 0%, #ffffff 70%);
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: url('../assets/hero-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 0;
    filter: blur(60px) contrast(1.2);
    animation: drift 20s infinite alternate ease-in-out;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1s var(--ease-out) forwards;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 102, 204, 0.1);
    border: 1px solid rgba(0, 102, 204, 0.2);
    border-radius: var(--radius-full);
    color: var(--accent-blue);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeUp 1s var(--ease-out) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero h1 {
    margin-bottom: 24px;
    animation: fadeUp 1s var(--ease-out) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero p {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 20px;
    animation: fadeUp 1s var(--ease-out) forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 1s var(--ease-out) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-blue);
    color: white;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: all 0.3s var(--ease-elastic);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

.cta-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(0, 102, 204, 0.05);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

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

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

/* Bento Grid */
.grid-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 24px;
}

.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(30px);
}

.card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    z-index: 2;
}

.card-icon i {
    font-size: 24px;
    color: white;
}

.card h3 {
    z-index: 2;
    font-size: 26px;
    letter-spacing: -0.01em;
}

.card p {
    z-index: 2;
    font-size: 16px;
    margin-top: 12px;
}

.card-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.card:hover .card-bg {
    opacity: 0.15;
}

.card-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.card-dark h3,
.card-dark p {
    color: white;
}

.card-dark p {
    color: rgba(255, 255, 255, 0.7);
}

.card-gradient {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.card-decorative {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Specific Card Layouts */
.card-wide {
    grid-column: span 12;
}

.card-half {
    grid-column: span 6;
}

.card-third {
    grid-column: span 4;
}

.card-featured {
    background: linear-gradient(135deg, #fafbfd 0%, #ffffff 100%);
    padding: 0;
}

.card-content-wide {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 40px;
    position: relative;
    z-index: 2;
    gap: 40px;
}

.card-main {
    max-width: 500px;
}

.card-machines h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.machine-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: var(--text-primary);
}

.machine-list li:last-child {
    border-bottom: none;
}

.machine-list i {
    color: var(--accent-blue);
}

/* Robotics Section */
.robotics-showcase {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: linear-gradient(to right, #fbfbfd, #ffffff);
    border-radius: var(--radius-lg);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.robotics-showcase.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.robotics-img {
    flex: 1;
    min-height: 500px;
    background: url('../assets/robotics.png') no-repeat center center;
    background-size: cover;
}

.robotics-text {
    flex: 1;
    padding: 60px;
}

.robotics-text h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.robotics-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.robotics-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 194, 255, 0.1) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 20px;
    color: var(--accent-blue);
}

.feature-item h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

.learn-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.learn-more-link:hover {
    gap: 12px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease-out);
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Machines Section */
.machines-section {
    padding: 100px 0;
}

.machines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.machine-card {
    background: linear-gradient(135deg, #0a0b10 0%, #16213e 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    transform: translateY(30px);
}

.machine-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.machine-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
}

.machine-image {
    height: 300px;
    overflow: hidden;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.machine-info {
    padding: 24px;
    text-align: center;
}

.machine-info h4 {
    color: white;
    font-size: 22px;
    margin-bottom: 8px;
}

.machine-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 60px 0 120px;
}

.cta-card {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #0052a3 100%);
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content h2 {
    color: white;
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin: 0;
}

.cta-section .cta-button {
    background: white;
    color: var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.cta-section .cta-button:hover {
    background: #f0f4ff;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0a0b10 0%, #0f1118 100%);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .footer-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.footer-division {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.footer-division a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.footer-division a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.footer-links h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Footer Contact Styles */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact li i {
    color: var(--accent-cyan);
    font-size: 14px;
    margin-top: 3px;
    width: 16px;
}

.footer-contact li span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-newsletter h4 {
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.footer-newsletter>p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

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

.newsletter-form input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 8px 30px var(--accent-glow);
    transition: all 0.3s var(--ease-elastic);
    z-index: 999;
}

.floating-contact:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

/* Page Header (for subpages) */
.page-header {
    padding: 160px 24px 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, #eef2f8 0%, #ffffff 70%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/hero-bg.png') no-repeat center center;
    background-size: cover;
    opacity: 0.3;
    filter: blur(40px);
}

.page-header-content {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    margin-bottom: 16px;
}

.page-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: #f8fafc;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse>* {
    direction: ltr;
}

.content-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.content-image img {
    width: 100%;
    height: auto;
    display: block;
}

.content-text h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.content-text p {
    margin-bottom: 16px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 194, 255, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon i {
    font-size: 32px;
    color: var(--accent-blue);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #0a0b10 0%, #16213e 100%);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 24px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.product-info p {
    font-size: 14px;
    margin-bottom: 16px;
}

.product-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--accent-blue);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s var(--ease-out);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 280px;
    background: linear-gradient(135deg, #0a0b10 0%, #16213e 100%);
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.project-overlay h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 8px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-cyan));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--accent-blue);
    border-radius: 50%;
}

.timeline-year {
    font-size: 14px;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 15px;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

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

.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.team-card h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes drift {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .navbar {
        width: 95%;
        min-width: auto;
        padding: 0 16px;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: white;
        border-radius: var(--radius-lg);
        flex-direction: column;
        padding: 16px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 14px 20px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .card-wide,
    .card-half,
    .card-third {
        grid-column: span 1;
    }

    .card-content-wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .robotics-showcase {
        flex-direction: column-reverse;
    }

    .robotics-img {
        width: 100%;
        min-height: 300px;
    }

    .robotics-features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .content-grid.reverse {
        direction: ltr;
    }

    .services-grid,
    .products-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-button,
    .cta-button-secondary {
        width: 100%;
        justify-content: center;
    }

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

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

/* =====================================================
   Process Timeline Section (Redesigned)
   ===================================================== */
.process-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.process-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 4px;
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 60px;
}

.process-step:nth-child(odd) {
    flex-direction: row;
    padding-right: 50%;
    text-align: right;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
    padding-left: 50%;
    text-align: left;
}

.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    box-shadow: 0 8px 30px var(--accent-glow);
    z-index: 2;
}

.step-icon {
    display: none;
}

.step-content {
    padding: 0 40px;
    max-width: 380px;
}

.step-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.process-step:last-child {
    margin-bottom: 0;
}

/* =====================================================
   Machines Sold Grid (Clients Page)
   ===================================================== */
.machines-sold-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.machine-sold-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
}

.machine-sold-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.machine-sold-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecf2 100%);
}

.machine-sold-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.machine-sold-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #00D68F 0%, #00b878 100%);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.machine-sold-info {
    padding: 24px;
}

.machine-sold-info h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.machine-model {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px !important;
}

.machine-sold-details {
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.detail-item i {
    color: var(--accent-blue);
    width: 16px;
}

.machine-sold-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(0, 214, 143, 0.08) 0%, rgba(0, 180, 120, 0.08) 100%);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #00b878;
    font-weight: 500;
}

.machine-sold-status i {
    color: #00D68F;
}

/* =====================================================
   Testimonials Grid (Clients Page)
   ===================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-quote {
    margin-bottom: 16px;
}

.testimonial-quote i {
    font-size: 28px;
    color: var(--accent-blue);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 24px !important;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.author-info strong {
    display: block;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

.testimonial-rating {
    display: flex;
    gap: 3px;
}

.testimonial-rating i {
    color: #FFB800;
    font-size: 14px;
}

/* =====================================================
   Responsive Styles for New Components
   ===================================================== */
@media (max-width: 900px) {
    .process-line {
        left: 30px;
    }

    .process-step,
    .process-step:nth-child(odd),
    .process-step:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
        padding-right: 0;
        text-align: left;
    }

    .step-number {
        left: 30px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .step-content {
        padding: 0;
    }

    .machines-sold-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .machines-sold-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        padding: 20px 0;
    }

    .process-step {
        margin-bottom: 40px;
    }
}