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

:root {
    --primary-blue: #2563eb;
    --primary-cyan: #06b6d4;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #f1f5f9;
    --accent-green: #10b981;
    --accent-orange: #f97316;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
body.dark-mode {
    --light-bg: #0f172a;
    --light-card: #1e293b;
    --text-dark: #f1f5f9;
    --text-light: #94a3b8;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

body.dark-mode {
    background: var(--dark-bg);
}

body.dark-mode .feature-card,
body.dark-mode .flow-step,
body.dark-mode .screenshots-section,
body.dark-mode .feature-detailed,
body.dark-mode .tech-architecture {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .benefit-item {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .hardware-card {
    background: var(--dark-card);
    border-color: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--light-bg);
    overflow-x: hidden;
    transition: background-color var(--transition-normal);
}

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

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle:active {
    transform: scale(0.95);
}

.dark-mode-toggle .moon-icon {
    display: none;
}

.dark-mode-toggle .sun-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .moon-icon {
    display: block;
}

body.dark-mode .dark-mode-toggle {
    background: rgba(37, 99, 235, 0.3);
    border-color: rgba(37, 99, 235, 0.5);
    color: #60a5fa;
}

body.dark-mode .dark-mode-toggle:hover {
    background: rgba(37, 99, 235, 0.4);
    border-color: rgba(37, 99, 235, 0.7);
}

/* Hero Section */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.logo-container {
    margin-bottom: 2rem;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 4rem;
}

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

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.scroll-indicator {
    display: inline-block;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Fade In Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
}

.fade-in-delay-4 {
    animation: fadeIn 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

/* Section Styles */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-dark {
    background: var(--dark-bg);
    color: var(--text-white);
}

body.dark-mode .section-dark {
    background: #000000;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-dark .section-title {
    color: white;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-dark .section-subtitle {
    color: var(--text-white);
    opacity: 0.8;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 4rem 0 2rem;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Technology Architecture */
.tech-architecture {
    margin-top: 5rem;
    padding: 3rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.architecture-diagram {
    position: relative;
    height: 400px;
    margin: 3rem 0;
}

.arch-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.arch-server {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    text-align: center;
    min-width: 180px;
}

.arch-server svg {
    margin-bottom: 0.5rem;
}

.arch-server span {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pulse {
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 10px 40px rgba(37, 99, 235, 0.5);
    }
}

.arch-client {
    position: absolute;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    min-width: 140px;
    border: 2px solid var(--light-bg);
    transition: all var(--transition-normal);
}

.arch-client:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-cyan);
}

.arch-client-1 {
    top: 10%;
    left: 15%;
}

.arch-client-2 {
    top: 10%;
    right: 15%;
}

.arch-client-3 {
    bottom: 10%;
    left: 15%;
}

.arch-client-4 {
    bottom: 10%;
    right: 15%;
}

.client-icon {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.arch-client span {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.3;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.conn-line {
    stroke: var(--primary-cyan);
    stroke-width: 2;
    opacity: 0.3;
    stroke-dasharray: 5, 5;
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.module-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

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

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.2);
}

.module-featured {
    border-color: var(--accent-green);
    background: linear-gradient(135deg, var(--dark-card) 0%, #1a2942 100%);
}

.module-featured::before {
    background: linear-gradient(90deg, var(--accent-green) 0%, var(--primary-cyan) 100%);
    transform: scaleX(1);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.module-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.module-featured .module-icon {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-cyan) 100%);
}

.module-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
}

.featured-badge {
    position: absolute;
    top: -0.5rem;
    right: 0;
    background: var(--accent-green);
    color: white;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-summary {
    color: var(--text-white);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-expand-btn {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.module-expand-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.module-featured .module-expand-btn {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-cyan) 100%);
}

/* Manufacturing Flow */
.manufacturing-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all var(--transition-normal);
}

.flow-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.flow-number {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.flow-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    margin-top: 1rem;
}

.flow-step p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.flow-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: var(--light-bg);
    color: var(--primary-blue);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.flow-arrow {
    font-size: 2rem;
    color: var(--primary-cyan);
    font-weight: 300;
}

/* Screenshot Slider */
.screenshots-section {
    margin: 5rem 0;
    background: white;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.screenshot-slider {
    margin-top: 2rem;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.slider-track {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.screenshot-slide {
    display: none;
}

.screenshot-slide.active {
    display: block;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.screenshot-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
}

.screenshot-caption {
    background: var(--dark-bg);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    border-radius: 0 0 0.75rem 0.75rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: -1.5rem;
}

.slider-next {
    right: -1.5rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--primary-blue);
    transform: scale(1.3);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.benefit-item svg {
    color: var(--accent-green);
    flex-shrink: 0;
}

.benefit-item span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Hardware Section */
.hardware-section {
    margin: 5rem 0;
    padding: 4rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.hardware-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hardware-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.hardware-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-xl);
}

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

.hardware-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.hardware-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.hardware-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.hardware-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hw-tag {
    background: white;
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--primary-blue);
}

body.dark-mode .hw-tag {
    background: var(--dark-bg);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
    border-color: white;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    max-width: 80%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Features Detailed */
.features-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-detailed {
    background: white;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.feature-detailed:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.feature-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
}

.feature-detailed h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-detailed p {
    color: var(--text-light);
    line-height: 1.8;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-logo p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-info h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-info li {
    opacity: 0.8;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.footer-info li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: 2rem;
    animation: slideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--dark-bg);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--primary-blue);
}

.modal-body {
    padding: 3rem;
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.modal-body h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.modal-body p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    list-style: none;
    margin: 1rem 0;
}

.modal-body li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.modal-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

/* Scroll Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .manufacturing-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid,
    .modules-grid,
    .gallery-grid,
    .features-detailed {
        grid-template-columns: 1fr;
    }
    
    .architecture-diagram {
        height: 600px;
    }
    
    .arch-client-1,
    .arch-client-2 {
        top: 5%;
    }
    
    .arch-client-3,
    .arch-client-4 {
        bottom: 5%;
    }
    
    .slider-btn {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }
    
    .slider-prev {
        left: -0.75rem;
    }
    
    .slider-next {
        right: -0.75rem;
    }
    
    .modal-content {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 2rem 1.5rem;
    }
    
    /* Lightbox mobile adjustments */
    .lightbox-image {
        max-width: 95%;
        max-height: 70vh;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-caption {
        bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
