:root {
    --primary: #0052cc;
    --primary-dark: #003d99;
    --primary-light: #4d94ff;
    --secondary: #00c9ff;
    --accent: #00ff88;
    --dark: #0a0e27;
    --gray-dark: #2d3748;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    overflow-x: hidden;
}

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

/* Modern Navbar */
.navbar-modern {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 82, 204, 0.1);
}

.navbar-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary) 20%,
        var(--secondary) 50%,
        var(--primary) 80%,
        transparent 100%
    );
    opacity: 0.3;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.navbar-brand {
    position: relative;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 82, 204, 0.15));
    transition: var(--transition);
}

.navbar-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(0, 82, 204, 0.25));
}

.navbar-menu {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 10px 20px;
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(0, 82, 204, 0.05);
    transform: translateY(-2px);
}

.nav-item:active {
    transform: translateY(0);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(0, 82, 204, 0.08);
}

.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-cta {
    background: var(--gradient);
    color: white !important;
    padding: 12px 28px;
    margin-left: 16px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.25);
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%) !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.nav-cta:hover::after {
    width: 300px;
    height: 300px;
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 82, 204, 0.35);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Hero Section */
.hero-modern {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(0, 82, 204, 0.7) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    padding: 0 24px;
}

.hero-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 26px;
    border-radius: 50px;
    margin-bottom: 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-location-badge svg {
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-contact {
    margin: 32px 0;
}

.hero-phone {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    letter-spacing: 1px;
}

.hero-phone:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary, .btn-cta-secondary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Service Cards */
.services-preview {
    padding: 100px 0;
    background: var(--gray-light);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.service-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 24px;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
}

.service-link:hover {
    gap: 8px;
}

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

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--gradient);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Machine Highlight */
.machines-highlight {
    padding: 100px 0;
}

.machine-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.machine-card-preview {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.machine-card-preview:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.machine-card-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.machine-preview-info {
    padding: 32px;
}

.machine-preview-info h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
}

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

.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-white {
    background: white;
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Industries */
.industries-compact {
    padding: 60px 0;
    background: var(--gray-light);
}

.industries-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--gray);
}

.industries-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.industry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.industry-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    transition: var(--transition);
}

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

.industry-item span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Footer Modern */
.footer-modern {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

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

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

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr 2.2fr;
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
}

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

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-contact .contact-line a {
    display: inline;
    margin-bottom: 0;
}

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

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

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }
    
    .navbar-mobile-toggle span {
        width: 24px;
        height: 2px;
        background: var(--dark);
        transition: var(--transition);
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .machine-carousel {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
    }

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

/* Hero Title and Subtitle for index.ejs */
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Phone Contact */
.hero-contact {
    margin: 2rem 0;
}

.hero-phone {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-phone:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}