:root {
    --primary-orange: #FF6600;
    --secondary-orange: #FF8533;
    --light-orange: #FFA366;
    --primary-black: #121212;
    --secondary-black: #232323;
    --gray-light: #f0f0f0;
    --gray-medium: #cccccc;
    --navy-dark: #0d2040;
    --navy-medium: #1c3d63;
    --navy-light: #2c5282;
    --gray-dark: #333333;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'SF Pro Display', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif;
    color: var(--primary-black);
    background-color: #fafafa;
    position: relative;
    line-height: 1.6;
    letter-spacing: -0.01em;
    font-weight: 400;
    scroll-behavior: smooth;
}

body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.25;
    background: url('https://newoaks.s3.us-west-1.amazonaws.com/AutoDev/8683/c1b5f4f9-f749-4d44-b897-529ca108b8cd.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

/* Base Styling */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
}

p {
    line-height: 1.7;
    margin: 0 0 1rem 0;
    color: rgba(18, 18, 18, 0.8);
    font-size: 1rem;
}

/* Professional Text Styles */
.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.6;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.5;
}

/* Improved Spacing System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2.5rem;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Modern Button System */
.btn-primary {
    background-color: var(--primary-orange);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
    background-color: var(--secondary-orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--primary-black);
    border: none;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background-color: var(--secondary-black);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 18, 18, 0.3), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Professional Header & Navigation */
.site-header {
    background-color: var(--primary-black);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.75rem 0;
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Dropdown Menu Styles */
.products-dropdown {
    animation: fadeInDown 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-heading {
    padding: 5px 15px;
    font-weight: 600;
    color: var(--primary-orange);
    font-size: 0.9rem;
}

.dropdown-item {
    padding: 2px 0;
}

.dropdown-link {
    display: block;
    padding: 5px 15px 5px 25px;
    color: var(--primary-black);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-link:hover {
    background-color: #f5f5f5;
    color: var(--primary-orange);
}

/* Mobile Dropdown Styles */
.mobile-products-submenu {
    animation: fadeIn 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.mobile-dropdown-section {
    padding: 5px 0;
    margin-bottom: 8px;
}

.mobile-dropdown-heading {
    font-weight: 600;
    color: var(--primary-orange);
    font-size: 0.9rem;
    margin: 5px 0;
}

.mobile-dropdown-item {
    margin: 2px 0;
}

.mobile-dropdown-link {
    display: block;
    padding: 5px 10px;
    color: white;
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.mobile-dropdown-link:hover {
    opacity: 1;
}

/* Professional Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.6)), url('shutterstock_1582400806.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 102, 0, 0.1) 0%, 
        transparent 50%, 
        rgba(13, 32, 64, 0.1) 100%);
    pointer-events: none;
}

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

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        background-attachment: scroll;
    }
}

/* Professional Section Styling */
.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95);
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section:last-child {
    border-bottom: none;
}

.section.elevated {
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    margin: 2rem 0;
    padding: 4rem 0;
}

.section:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.02;
    background-image: radial-gradient(var(--navy-medium) 2px, transparent 2px);
    background-size: 30px 30px;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--primary-black);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    bottom: -12px;
    left: 0;
    border-radius: 2px;
}

.section-title.centered {
    text-align: center;
}

.section-title.centered:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Modern Product Cards */
.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 102, 0, 0.2);
}

.product-card-image {
    height: 200px !important;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f8f8;
    position: relative;
    flex-shrink: 0;
}

.product-card-image:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    background-image: repeating-linear-gradient(45deg, var(--navy-light) 0, var(--navy-light) 1px, transparent 0, transparent 50%);
    background-size: 10px 10px;
    pointer-events: none;
}

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

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

.product-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 1rem;
}

.product-card-title {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary-black);
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Language Switcher */
.language-switcher button {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-switcher button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-black);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-title {
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: var(--gray-medium);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-orange);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--secondary-black);
    color: var(--gray-medium);
}

/* Culture Section */
.culture-card {
    border-left: 4px solid var(--primary-orange);
    padding: 1.5rem;
    background-color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.culture-card-title {
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table th {
    background-color: var(--primary-black);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

table td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--gray-light);
}

/* Add hover effect to table rows */
table tbody tr:hover {
    background-color: rgba(255, 102, 0, 0.05);
    transition: background-color 0.2s ease;
}

/* Add alternating row colors */
table tbody tr:nth-child(even) {
    background-color: rgba(240, 240, 240, 0.5);
}

/* Make sure hover effect works over alternating colors */
table tbody tr:nth-child(even):hover {
    background-color: rgba(255, 102, 0, 0.05);
}

/* Professional Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .hero-section {
        min-height: 500px;
    }
    
    .grid-cols-4,
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .grid {
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .product-card-content {
        padding: 1.5rem;
    }

    /* Responsive tables */
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Product Details */
.product-detail-image {
    height: 350px;
    overflow: hidden;
    border-radius: 8px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1rem;
}

.product-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
}

.product-features li i {
    color: var(--primary-orange);
    margin-right: 10px;
}

/* Contact Form */
.contact-form .form-control {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 40px;
    height: 40px;
    background-color: var(--primary-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

/* Circuit Pattern Overlay */
.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        linear-gradient(var(--navy-medium) 1px, transparent 1px),
        linear-gradient(to right, var(--navy-medium) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Technology Accent */
.tech-accent {
    position: relative;
}

/* Geometric Pattern Section */
.pattern-section {
    position: relative;
    overflow: hidden;
}

.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background: 
        linear-gradient(45deg, transparent 49.5%, var(--primary-orange) 49.5%, var(--primary-orange) 50.5%, transparent 50.5%),
        linear-gradient(-45deg, transparent 49.5%, var(--navy-medium) 49.5%, var(--navy-medium) 50.5%, transparent 50.5%),
        linear-gradient(90deg, transparent 49.5%, var(--navy-light) 49.5%, var(--navy-light) 50.5%, transparent 50.5%);
    background-size: 30px 30px, 30px 30px, 30px 30px;
    animation: movePattern 60s infinite linear;
}

@keyframes movePattern {
    0% {
        background-position: 0 0, 0 0, 0 0;
    }
    25% {
        background-position: 30px 0, -30px 30px, 0 -30px;
    }
    50% {
        background-position: 60px 30px, -60px 0, 30px -60px;
    }
    75% {
        background-position: 30px 60px, -30px -30px, 60px -30px;
    }
    100% {
        background-position: 0 0, 0 0, 0 0;
    }
}

.tech-accent:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: 
        radial-gradient(circle at 30% 30%, var(--navy-light) 1px, transparent 1px),
        radial-gradient(circle at 70% 70%, var(--navy-light) 1px, transparent 1px),
        radial-gradient(circle at 70% 30%, var(--navy-light) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, var(--navy-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    z-index: -1;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

/* Tech Icons and Animation Styles */
.tech-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    position: relative;
}

.tech-icon {
    width: 100%;
    height: 100%;
}

.tech-icon-wrapper.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tech-icon-wrapper.pulse {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tech-icon-accent {
    position: absolute;
    z-index: -1;
    opacity: 0.15;
}

.tech-accent-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05;
    background-image: radial-gradient(var(--primary-orange) 1px, transparent 1px), 
                     radial-gradient(var(--navy-medium) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    animation: patternShift 20s infinite linear;
}

@keyframes patternShift {
    0% { background-position: 0 0, 10px 10px; }
    50% { background-position: 10px 10px, 0 0; }
    100% { background-position: 0 0, 10px 10px; }
}

/* Background animation removed to use static image pattern */

/* Video Player Styles */
.video-player-container {
    position: relative;
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced video containers with proper aspect ratio */
.video-player-container .media-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
}

.video-player-container .media-placeholder {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    background-color: #000;
    aspect-ratio: 16/9;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player-container video {
    transition: opacity 0.3s ease;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
    border-radius: inherit;
}

/* Ensure videos fit within frames */
.media-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.factory-tour-video video {
    object-fit: cover;
}

/* Global video fitting rules */
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Ensure all videos maintain aspect ratio and fit within containers */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Video frame fitting utility classes */
.video-fit-contain {
    object-fit: contain !important;
    object-position: center !important;
}

.video-fit-cover {
    object-fit: cover !important;
    object-position: center !important;
}

.video-fit-fill {
    object-fit: fill !important;
}

/* Responsive video container */
.responsive-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
}

.responsive-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Professional Spacing Utilities */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-16 { margin-top: 4rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }

.transform { transform: translateZ(0); }
.hover\:scale-105:hover { transform: scale(1.05); }
.duration-300 { transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Professional Layout Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.overflow-hidden { overflow: hidden; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

/* Professional Color System */
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-600 { color: #6b7280; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-orange-500 { color: var(--primary-orange); }
.text-orange-600 { color: var(--secondary-orange); }

.bg-white { background-color: white; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }
.bg-orange-500 { background-color: var(--primary-orange); }

/* Professional Hover Effects */
.hover\:text-orange-600:hover { color: var(--secondary-orange); }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }

.transition-all { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-shadow { transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1); }

/* Factory Tour Video Styling */
.factory-tour-container {
    position: relative;
    margin: 1rem 0;
    transition: all 0.3s ease-in-out;
}

.factory-tour-video {
    position: relative;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.factory-tour-video:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.1);
}

.factory-tour-video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, var(--primary-orange), transparent);
    opacity: 0.3;
    transition: height 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.factory-tour-video:hover::before {
    height: 5px;
}

/* Custom play button for factory tour */
.factory-tour-container .fa-play,
.factory-tour-container .fa-pause {
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.factory-tour-container:hover .fa-play,
.factory-tour-container:hover .fa-pause {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

/* Professional Animation Classes */
.slide-up {
    animation: slideUpFade 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.slide-up:nth-child(1) { animation-delay: 0.1s; }
.slide-up:nth-child(2) { animation-delay: 0.2s; }
.slide-up:nth-child(3) { animation-delay: 0.3s; }

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

/* International Professional Polish */
.section.bg-white {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
}

.elevated-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.elevated-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Professional Focus States */
.btn-primary:focus,
.btn-secondary:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* International Layout Improvements */
.international-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .international-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .video-container {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    .factory-tour-video {
        width: 100%;
        aspect-ratio: 16/9;
    }
    
    /* Mobile video containers */
    .video-player-container .media-container {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
    
    .video-player-container .media-placeholder {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16/9;
    }
    
    /* Ensure videos fit properly on mobile */
    .video-player-container video {
        object-fit: contain;
    }
}

/* For tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-player-container .media-container {
        width: 100%;
        max-width: 90%;
        aspect-ratio: 16/9;
    }
    
    .video-player-container .media-placeholder {
        width: 100%;
        max-width: 90%;
        aspect-ratio: 16/9;
    }
}

/* For larger screens */
@media (min-width: 1025px) {
    .video-player-container .media-container {
        max-width: 800px;
    }
    
    .video-player-container .media-placeholder {
        max-width: 800px;
    }
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.testimonial-footer {
    margin-top: auto;
}

.testimonial-card .fa-quote-left {
    font-size: 3rem;
    position: absolute;
    top: 10px;
    left: 10px;
    opacity: 0.1;
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .testimonial-card {
        margin-bottom: 1.5rem;
    }
}

/* Popup Styles */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.popup-container.hidden {
    display: none;
    opacity: 0;
}

.popup-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupFadeIn 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-dark);
    transition: color 0.2s ease;
}

.popup-close:hover {
    color: var(--primary-orange);
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Video Controls Animation */
@keyframes controlsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.factory-tour-container:hover .video-controls {
    animation: controlsFadeIn 0.3s ease forwards;
}

/* Video aspect ratio utilities */
.aspect-video {
    aspect-ratio: 16/9;
}

.aspect-square {
    aspect-ratio: 1/1;
}

.aspect-4-3 {
    aspect-ratio: 4/3;
}

/* Prevent video overflow */
.video-container-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Video loading placeholder */
.video-loading-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    animation: loadingAnimation 2s linear infinite;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 1.2rem;
}

@keyframes loadingAnimation {
    0% { background-position: 0 0, 0 10px, 10px -10px, -10px 0px; }
    100% { background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px; }
}