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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #fff;
    --text-secondary: #a0a0a0;
    --text-muted: #666;
    --accent-primary: #ADFF2F;
    --accent-secondary: #ff6b35;
    --accent-yellow: #ffd700;
    --accent-white: #ffffff;
    --border-color: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #ADFF2F 0%, #7FFF00 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --gradient-yellow: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --shadow-light: 0 4px 20px rgb(173 255 47 / 10%);
    --shadow-dark: 0 8px 40px rgb(0 0 0 / 30%);
    --shadow-yellow: 0 4px 20px rgb(255 215 0 / 20%);
    --shadow-white: 0 4px 20px rgb(255 255 255 / 20%);
}

body {
    font-family: Inter, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(10 10 10 / 95%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ensure header stretches across the full width */
.header {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.navbar {
    padding: 1rem 0;
}

/* --- Header Flex Layout --- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 60px;
    gap: 1rem;
}

.nav-header-left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.nav-header-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-header-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo h2 {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-white), 0 0 16px var(--accent-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-white), 0 0 20px var(--accent-white);
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 5px var(--accent-white), 0 0 10px var(--accent-white);
}

.lang-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 7px var(--accent-white), 0 0 15px var(--accent-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Active hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 33.333%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6vw 6vw;
    color: #fff;
    background: transparent;
}

.hero-video-wrapper {
    position: relative;
    width: 66.666%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-yellow);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
}

.hero-badge span {
    color: var(--accent-yellow);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    display: block;
    visibility: visible;
}

.gradient-text {
    background: var(--gradient-yellow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 600px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-light), 0 0 20px var(--accent-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(173, 255, 47, 0.3), 0 0 30px var(--accent-white), 0 0 50px var(--accent-white);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(173, 255, 47, 0.1);
    box-shadow: 0 0 15px var(--accent-white);
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--accent-white), 0 0 20px var(--accent-white);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1.5s cubic-bezier(.4,2,.6,1);
    transform: scale(1.05);
}

.hero-bg-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    pointer-events: none;
}

.video-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.video-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.video-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.8);
}

.video-indicator.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-white), 0 0 20px var(--accent-white);
}

.video-preview {
    position: relative;
    width: 400px;
    height: 300px;
}

.video-container {
    position: relative;
    width: 560px;
    height: 315px;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

#custom-player {
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 16px;
    background: #000;
    z-index: 1;
}

.video-controls {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.video-nav-btn {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    box-shadow: 0 0 10px var(--accent-white);
}

.video-nav-btn:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-white), 0 0 30px var(--accent-white);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

.video-placeholder i {
    font-size: 3rem;
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-white), 0 0 25px var(--accent-white);
}

.video-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.ai-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(173, 255, 47, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-white);
}

.ai-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px var(--accent-white);
}

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

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Technology Section */
#technology {
    position: relative;
    z-index: 1;
}
.technology {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.technology .container {
    max-width: 100vw;
    width: 100vw;
    padding: 0;
    margin: 0;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.tech-card {
  aspect-ratio: 16 / 9;
  min-width: 380px;
  max-width: 650px;
  width: 100%;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  background: var(--bg-tertiary);
  border-radius: 24px;
  box-shadow: 0 0 24px 0 rgba(0,0,0,0.12);
}
.tech-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  width: 100%;
  z-index: 2;
  position: relative;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
}
.tech-card:hover .tech-card-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Sound indicator styles */
.sound-indicator {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    white-space: nowrap;
    min-width: 140px;
    justify-content: center;
}

.sound-indicator i {
    font-size: 1rem;
    flex-shrink: 0;
}

.tech-card:hover .sound-indicator {
    opacity: 1;
    pointer-events: auto;
}

.tech-card.sound-enabled .sound-indicator {
    background: rgba(173, 255, 47, 0.2);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.sound-indicator:hover {
    background: rgba(173, 255, 47, 0.25);
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.3);
}
.tech-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 0 20px var(--accent-white);
  position: static;
}
.tech-icon i {
  font-size: 2rem;
  color: var(--text-primary);
}
.tech-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: center;
  width: 100%;
}
.tech-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}
.tech-preview-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  border-radius: 24px;
}

.tech-card:hover .tech-preview-video {
  opacity: 1;
  pointer-events: auto;
}

.tech-face-replacement:hover h3,
.tech-head-replacement:hover h3,
.tech-face-rejuvenation:hover h3,
.tech-lip-sing:hover h3 {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Remove remaining duplicate selectors */

.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-light), 0 0 20px var(--accent-white);
}

.tech-card:hover .sound-indicator {
    opacity: 1;
    pointer-events: auto;
}

.sound-indicator:hover {
    background: rgba(173, 255, 47, 0.25);
    border-color: var(--accent-primary);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(173, 255, 47, 0.3);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px var(--accent-white);
}

.tech-face-replacement:hover .tech-icon,
.tech-head-replacement:hover .tech-icon {
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--accent-primary);
}

.tech-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0.5rem 0;
}

.tech-face-replacement:hover h3,
.tech-head-replacement:hover h3 {
    color: var(--accent-primary);
}

.tech-card p {
    font-size: 1rem;
    text-align: center;
    margin: 0.5rem 0;
}

.tech-face-replacement:hover p,
.tech-head-replacement:hover p {
    color: var(--accent-primary);
}

.solution-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.solution-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.solution-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.solution-content p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.solution-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.solution-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tech-face-replacement:hover .tech-preview-video,
.tech-head-replacement:hover .tech-preview-video,
.tech-face-rejuvenation:hover .tech-preview-video,
.tech-lip-sing:hover .tech-preview-video {
    opacity: 1;
    pointer-events: auto;
}

/* Solutions Section */
.solutions {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--bg-tertiary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-light), 0 0 20px var(--accent-white);
}

.solution-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 3rem;
    box-shadow: 0 0 30px var(--accent-white);
}

.solution-content {
    padding: 2rem;
}

.solution-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.solution-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.solution-features {
    list-style: none;
}

.solution-features li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.solution-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    text-shadow: 0 0 8px var(--accent-white);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 15px var(--accent-white);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.about-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px var(--accent-white), 0 0 25px var(--accent-white);
}

.about-stat .stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.ai-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.neural-network {
    position: relative;
    width: 200px;
    height: 200px;
}

.neural-network.neural-network-header {
    width: 54px;
    height: 54px;
    position: relative;
    margin-right: 0;
    margin-left: 0;
    display: block;
    min-width: 54px;
    min-height: 54px;
}

.neural-network.neural-network-header .node {
    position: absolute;
    width: 13px;
    height: 13px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px 4px var(--accent-primary), 0 0 24px 6px var(--accent-primary);
    animation: neuron-glow 2.2s infinite alternate;
}

@keyframes neuron-glow {
    0% { box-shadow: 0 0 8px 2px var(--accent-primary), 0 0 16px 4px var(--accent-primary); }
    100% { box-shadow: 0 0 18px 8px var(--accent-primary), 0 0 32px 12px var(--accent-primary); }
}

.neural-network.neural-network-header .connection {
    position: absolute;
    background: linear-gradient(90deg, var(--accent-primary) 60%, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 6px 1px var(--accent-primary);
    opacity: 0.7;
    animation: neuron-conn-flicker 2.5s infinite alternate;
}

@keyframes neuron-conn-flicker {
    0% { opacity: 0.7; }
    100% { opacity: 1; filter: blur(1px); }
}

.neural-network.neural-network-header .connection:nth-child(4) {
    transform: translate(-50%, -50%) rotate(-30deg);
}

.neural-network.neural-network-header .connection:nth-child(5) {
    transform: translate(-50%, -50%) rotate(60deg);
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 0 10px var(--accent-white), 0 0 20px var(--accent-white);
}

.node:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.node:nth-child(2) { top: 60%; left: 60%; animation-delay: 1s; }
.node:nth-child(3) { top: 40%; left: 80%; animation-delay: 2s; }

.connection {
    position: absolute;
    height: 2px;
    background: var(--accent-primary);
    opacity: 0.3;
    animation: pulse 2s infinite;
    box-shadow: 0 0 5px var(--accent-white);
}

.connection:nth-child(4) {
    top: 30%;
    left: 30%;
    width: 40px;
    transform: rotate(45deg);
}

.connection:nth-child(5) {
    top: 50%;
    left: 70%;
    width: 30px;
    transform: rotate(-30deg);
}

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

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    box-shadow: 0 0 15px var(--accent-white);
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 8px var(--accent-white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
/* Large screens (4K, ultrawide) */
@media (min-width: 2560px) {
  .container {
    max-width: 100vw;
    padding: 0 80px;
  }
  .nav-container {
    width: 100%;
    padding: 0 60px;
  }
  .hero-content {
    width: 50%;
    padding: 10vw 4vw;
  }
  .hero-video-wrapper {
    width: 50%;
    height: 100vh;
  }
}

/* Large desktop screens */
@media (min-width: 1920px) and (max-width: 2559px) {
    .container {
        max-width: 1600px;
        padding: 0 30px;
    }
    
    .nav-container {
        width: 100%;
        padding: 0 60px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .nav-menu {
        gap: 3rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    /* Large desktop sound indicator */
    .sound-indicator {
        top: 20px;
        right: 20px;
        padding: 12px 18px;
        font-size: 0.9rem;
        min-width: 160px;
        gap: 10px;
        border-radius: 30px;
    }
    
    .sound-indicator i {
        font-size: 1.1rem;
    }
    
    /* Large desktop sound indicator for face rejuvenation */
    .tech-face-rejuvenation .sound-indicator {
        top: 20px;
        right: 20px;
    }
}

/* Standard desktop screens */
@media (min-width: 1200px) and (max-width: 1919px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .nav-container {
        width: 100%;
        padding: 0 60px;
    }
}

@media (max-width: 1024px) {
    .video-container {
        width: 420px;
        height: 236px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-dark);
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
        z-index: 999;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .language-switcher {
        margin-left: 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .tech-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .video-preview {
        width: 100%;
        max-width: 400px;
    }

    .video-container {
        width: 100%;
        min-width: 220px;
        min-height: 120px;
        height: auto;
    }
    
    #custom-player {
        min-height: 120px;
    }
    
    /* Improve mobile navigation */
    .nav-container {
        padding: 0 60px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .logo-madein {
        font-size: 0.75rem;
    }
    
    /* Mobile sound indicator */
    .sound-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 120px;
        gap: 6px;
    }
    
    .sound-indicator i {
        font-size: 0.9rem;
    }
    
    /* Mobile sound indicator for face rejuvenation */
    .tech-face-rejuvenation .sound-indicator {
        top: 10px;
        right: 10px;
    }
    
    /* Hide text content when video is playing on mobile */
    .tech-card.playing .tech-card-content {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .tech-card.playing h3,
    .tech-card.playing p {
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    /* Show text when video is not playing */
    .tech-card:not(.playing) .tech-card-content {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .tech-card:not(.playing) h3,
    .tech-card:not(.playing) p {
        opacity: 1;
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 900px) {
    .nav-container {
        padding: 0 60px;
        gap: 0.5rem;
    }
    
    .nav-header-center {
        display: none;
    }
    
    .nav-header-left {
        flex: 1;
    }
    
    .nav-header-right {
        flex: 0 0 auto;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        padding: 4rem 3rem;
        text-align: center;
    }
    
    .hero-video-wrapper {
        width: 100%;
        height: 40vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    .logo-madein {
        position: static;
        padding-left: 0;
        text-align: center;
    }
    
    .header, .nav-logo {
        margin-top: 0;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
    max-width: 100vw;
  }
  .hero-content {
    width: 100%;
    padding: 2rem 3rem;
  }
  .hero-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: #ffffff;
  }
  .hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
  }
  .section-header h2 {
    font-size: 1.3rem;
  }
  .section-header p {
    font-size: 1rem;
  }
  .tech-grid {
    flex-direction: column;
    gap: 1rem;
  }
  .tech-card {
    min-width: unset;
    max-width: 100%;
    padding: 1rem 1rem;
    border-radius: 16px;
  }
  .tech-card h3 {
    font-size: 1.1rem;
  }
  .tech-card p {
    font-size: 0.95rem;
  }
  .about-content,
  .footer-content,
  .contact-content {
    display: block;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }
  .about-text h2 {
    font-size: 1.2rem;
  }
  .about-text p {
    font-size: 0.95rem;
  }
  .footer {
    padding: 2rem 0 1rem;
  }
  .footer-section h3, .footer-section h4 {
    font-size: 1.1rem;
  }
  .footer-section p, .footer-section ul li {
    font-size: 0.95rem;
  }
  .video-container {
    width: 100%;
    min-width: unset;
    height: auto;
    aspect-ratio: 16/9;
    max-width: 100vw;
  }
  .video-preview {
    width: 100%;
    max-width: 100vw;
    height: auto;
  }
}

@media (max-width: 414px) {
  .hero-title { font-size: 1.4rem; }
  .hero-description { font-size: 0.95rem; }
  .tech-card { padding: 0.7rem 0.5rem; }
}

@media (max-width: 375px) {
  .hero-title { font-size: 1.2rem; }
  .hero-description { font-size: 0.9rem; }
  .tech-card { padding: 0.5rem 0.3rem; }
}

@media (max-width: 360px) {
  .hero-title { font-size: 1.05rem; }
  .hero-description { font-size: 0.85rem; }
  .tech-card { padding: 0.3rem 0.5rem; }
  .nav-container { padding: 0 60px; }
  .container { padding: 0 10px; }
}

@media (max-width: 320px) {
  .hero-title { font-size: 0.95rem; }
  .hero-description { font-size: 0.8rem; }
  .tech-card { padding: 0.2rem 0.3rem; }
  .nav-container { padding: 0 60px; }
  .container { padding: 0 8px; }
  .nav-logo h2 { font-size: 1.2rem; }
  .logo-madein { font-size: 0.6rem; }
}

/* Landscape orientation for mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .hero-video-wrapper {
        height: 50vh;
        min-height: 200px;
    }
    
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg-video,
    .tech-preview-video {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-bg-video,
    .tech-preview-video {
        animation: none !important;
    }
}

/* Dark mode support (already implemented) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0a0a;
        --bg-secondary: #111111;
        --text-primary: #ffffff;
    }
}

@media (max-width: 1100px) {
  .tech-card {
    min-width: 250px;
    padding: 1.2rem 0.7rem 0.7rem 0.7rem;
    font-size: 0.97rem;
    border-radius: 20px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2vw 2rem 2vw;
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--accent-white);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-white);
}

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

.tech-card,
.solution-card,
.feature-item,
.contact-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-dark);
    animation: slideInRight 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-success {
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-white);
}

.notification-error {
    border-left: 4px solid #ff6b35;
}

.notification-info {
    border-left: 4px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-white);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo-glow {
    text-shadow: 0 0 8px rgba(255,255,255,0.3), 0 0 16px rgba(255,255,255,0.3), 0 0 32px rgba(255,255,255,0.3), 0 0 8px rgba(173,255,47,0.3), 0 0 16px rgba(173,255,47,0.3), 0 0 32px rgba(173,255,47,0.3);
}

/* Restore .logo-madein to its previous flex-based, centered style */
.nav-logo {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-madein {
    position: static;
    font-size: 0.85rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-align: center;
    font-weight: 400;
    text-shadow: 0 0 4px rgba(255,255,255,0.3), 0 0 8px rgba(255,255,255,0.3);
    z-index: auto;
    padding-left: 0;
}

/* Particle animation */
@keyframes float-particle {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

/* Додаю стилі для .tech-bg-image як фонової картинки */
.tech-face-rejuvenation .tech-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tech-face-rejuvenation:hover .tech-bg-image {
  opacity: 0;
}

/* Піднімаю текст і відео вище картинки */
.tech-face-rejuvenation > *:not(.tech-bg-image) {
  position: relative;
  z-index: 2;
}

/* Спеціальне позиціонування для кнопки звуку в картці омолодження */
.tech-face-rejuvenation .sound-indicator {
  z-index: 10;
  position: absolute;
  top: 15px;
  right: 15px;
}

.tech-face-rejuvenation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-face-rejuvenation .tech-card-content {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 1.5rem;
  box-sizing: border-box;
}

.tech-face-rejuvenation .tech-preview-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1);
  transform: none !important;
}

.tech-face-rejuvenation:hover .tech-preview-video {
  opacity: 1;
  pointer-events: auto;
} 