/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #4a5568;
    --background-light: #f8fafc;
    --background-dark: #2d3748;
    --background-darker: #1a202c;
    --white: #ffffff;
    --border-color: #e2e8f0;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 15px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 60px;
    --spacing-2xl: 100px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.3rem;
    --font-size-2xl: 1.4rem;
    --font-size-3xl: 1.8rem;
    --font-size-4xl: 2.2rem;
    --font-size-5xl: 2.5rem;
    --font-size-6xl: 3.5rem;
    --line-height: 1.6;
    
    /* Borders and Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-pill: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.6s ease;
    
    /* Layout */
    --container-max-width: 1200px;
    --nav-height: 70px;
}

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

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-normal);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-fast);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
    padding-top: calc(var(--nav-height) + var(--spacing-xl));
    padding-bottom: var(--spacing-xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: var(--font-size-6xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

.hero p {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* Hero Video */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto var(--spacing-lg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.hero-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s ease, opacity 0.3s ease;
    opacity: 1;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn svg {
    width: 100%;
    height: 100%;
}

.hero-video-wrapper.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.cta-button {
    display: inline-block;
    padding: var(--spacing-sm) 35px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-pill);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Section Styles */
.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    text-align: center;
    font-size: var(--font-size-5xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Products Section */
.products {
    background: var(--background-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-fast);
}

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

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

.product-image {
    width: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.product-card:hover .product-image {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.product-card h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-weight: 600;
}

.product-card p {
    color: var(--text-secondary);
    line-height: var(--line-height);
    margin-bottom: var(--spacing-md);
}

.machine-specs {
    background: var(--background-light);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
    margin: var(--spacing-sm) 0;
    border: 1px solid var(--border-color);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

.spec-value {
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

/* About Section */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: 25px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-lg);
}

.stats {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.about-image {
    border-radius: var(--border-radius-lg);
    height: 400px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* Contact Section */
.contact {
    background: var(--background-dark);
    color: var(--white);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: 25px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* Footer */
.footer {
    background: var(--background-darker);
    color: var(--white);
    text-align: center;
    padding: var(--spacing-lg) 0;
}

/* Animations */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--spacing-lg));
        padding-bottom: var(--spacing-lg);
    }

    .hero h1 {
        font-size: var(--font-size-5xl);
    }

    .hero p {
        font-size: var(--font-size-lg);
    }

    .hero-video-wrapper {
        border-radius: var(--border-radius-sm);
    }

    .video-play-btn {
        width: 60px;
        height: 60px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-card {
        padding: var(--spacing-md);
    }

    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}