/* ============================================
   PERION LANDING PAGE - Custom Styles
   ============================================
   
   This file contains custom styles that complement
   Tailwind CSS utilities. Edit these styles to customize
   the look and feel of the website.
   
   Color Reference (defined in Tailwind config):
   - perion-black: #0a0f14
   - perion-navy: #1a2332
   - perion-cyan: #00d4ff
   - perion-cyan-dark: #00a8cc
   - perion-orange: #ff6b35
   - perion-white: #e8eef4
   - perion-gray: #6b7c93
   - perion-border: #2a3444
   
============================================ */

/* ============================================
   BASE STYLES
============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #0a0f14;
}

::-webkit-scrollbar-thumb {
    background: #2a3444;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a4454;
}

/* Selection */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #e8eef4;
}


/* ============================================
   HEADER STYLES
============================================ */

#header {
	overflow-x: hidden;
    background: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#header.scrolled {
    background: rgba(10, 15, 20, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: #e8eef4;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #00a8cc);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

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

.mobile-nav-link {
    color: #e8eef4;
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #00d4ff;
}

.lang-btn {
    color: #6b7c93;
    transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
    color: #00d4ff;
}

#logo {
    transition: opacity 0.2s ease;
}


/* ============================================
   BUTTON STYLES
============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    color: #0a0f14;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #111827;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #FFD100; /* #2a3444 */
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary-hero {
   display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #e8eef4;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #FFD100; /* #2a3444 */
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.dark .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: transparent;
    color: #e8eef4;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid #FFD100; /* #2a3444 */
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.btn-secondary-hero:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}


/* ============================================
   HERO SECTION
============================================ */

#hero {
    overflow-x: hidden;
    min-height: 100svh; /* svh враховує адресний рядок iOS */
}

.hero-video {
	max-width: 100%;
    transition: opacity 1s ease-in-out;
}

/* Prevent AOS overflow on mobile */
section {
    overflow: clip;
}

/* ============================================
   PROBLEM SECTION
============================================ */

.problem-card {
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.problem-card:hover {
    border-color: #ff6b35;
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
}

.problem-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 1rem;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.05);
}


/* ============================================
   ADVANTAGES SECTION
============================================ */

.advantage-card {
    background: rgba(26, 35, 50, 0.3);
    border: 1px solid #2a3444;
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    border-color: #00d4ff;
	transform: scale(1,1);
    /* transform: translateY(-4px); */
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.advantage-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 0.75rem;
    color: #00d4ff;
}


/* ============================================
   HOW IT WORKS SECTION
============================================ */

.component-card {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.8) 0%, rgba(10, 15, 20, 0.8) 100%);
    border: 1px solid #2a3444;
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
}

.component-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #00a8cc);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.component-card:hover::before {
    opacity: 1;
}


.component-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 212, 255, 0.5);
    line-height: 1;

}

.dark .component-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(0, 212, 255, 0.1);
    line-height: 1;
}

.component-icon-wrapper {
    margin-bottom: 1.5rem;
}

.system-diagram svg {
    max-width: 100%;
    height: auto;
}


/* ============================================
   INSTALLATION SECTION
============================================ */

.installation-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    color: #0a0f14;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-content {
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
    border-radius: 1rem;
    padding: 2rem;
    flex: 1;
    width: 100%;
}

.step-icon {
    color: #00d4ff;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Connector lines between steps (desktop) */
@media (min-width: 768px) {
    .installation-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 2rem;
        left: calc(50% + 2rem);
        width: calc(100% - 4rem);
        height: 3px;
        background: linear-gradient(90deg, #00d4ff, transparent);
        opacity: 0.3;
    }
}

.installation-highlight {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 168, 204, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    color: #00d4ff;
    flex-shrink: 0;
}

.highlight-label {
    font-size: 0.875rem;
    color: #6b7c93;
    margin-bottom: 0.5rem;
    display: block;
}

.highlight-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00d4ff;
    line-height: 1;
}

.stat-unit {
    font-size: 0.875rem;
    color: #6b7c93;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: #2a3444;
}


/* ============================================
   SPECS SECTION
============================================ */

.spec-card {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0.6) 0%, rgba(10, 15, 20, 0.6) 100%);
    border: 1px solid #2a3444;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.spec-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.spec-label {
    font-size: 0.875rem;
    color: #6b7c93;
}


/* ============================================
   CALCULATOR SECTION
============================================ */

.calculator-form,
.calculator-results {
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
    border-radius: 1.5rem;
    padding: 2rem;
}

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


.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7c93;
    margin-bottom: 0.5rem;
}

.dark .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e8eef4;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #f8fafc; /* rgba(10, 15, 20, 0.8); */
    border: 1px solid #e5e7eb; /* 1px solid #2a3444; */
    border-radius: 0.75rem;
    color: #6b7c93; /* #e8eef4; */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dark .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #1a2332; /* rgba(10, 15, 20, 0.4); */
    border: 1px solid #2a3444;
    border-radius: 0.75rem;
    color: #e8eef4;  /* */
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder {
    color: #6b7c93;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #2a3444;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Fix checkbox checked state */
input[type="checkbox"]:checked + .checkbox-custom {
    background: #00d4ff;
    border-color: #00d4ff;
}

input[type="checkbox"]:checked + .checkbox-custom svg {
    display: block;
}

.results-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 2rem;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid #2a3444;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.result-card:hover {
    border-color: #00d4ff;
}

.result-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 0.5rem;
    color: #00d4ff;
    flex-shrink: 0;
}

.result-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.result-label {
    font-size: 0.9375rem;
    color: #6b7c93;
}

.result-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
}


/* ============================================
   INSTALLATIONS SECTION
============================================ */

.installation-card {
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.installation-card:hover {
    border-color: #00d4ff;
    transform: translateY(-4px);
}

.installation-image {
    height: 200px;
    overflow: hidden;
}

.installation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 20, 0.8);
}

.installation-content {
    padding: 1.5rem;
}

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

.installation-stats .stat {
    display: flex;
    flex-direction: column;
}

.installation-stats .stat-label {
    font-size: 0.75rem;
    color: #6b7c93;
}

.installation-stats .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #00d4ff;
}


/* ============================================
   VIDEO SECTION
============================================ */

.video-card {
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* ============================================
   DOWNLOADS SECTION
============================================ */

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.download-card:hover {
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.download-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 0.75rem;
    color: #00d4ff;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-action {
    color: #6b7c93;
    transition: color 0.3s ease;
}

.download-card:hover .download-action {
    color: #00d4ff;
}


/* ============================================
   CONTACT SECTION
============================================ */

.contact-form-wrapper {
    background: rgba(26, 35, 50, 0.5);
    border: 1px solid #2a3444;
    border-radius: 1.5rem;
    padding: 2rem;
}

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

.contact-item-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 0.75rem;
    color: #00d4ff;
    flex-shrink: 0;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid #2a3444;
    border-radius: 0.5rem;
    color: #6b7c93;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}


/* ============================================
   MODAL STYLES
============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 20, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-container {
    background: #1a2332;
    border: 1px solid #2a3444;
    border-radius: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #2a3444;
}

.modal-close {
    color: #6b7c93;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e8eef4;
}

.modal-content {
    padding: 2rem;
}


/* ============================================
   ANIMATIONS
============================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
============================================ */

@media (max-width: 768px) {
    .installation-highlight {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .highlight-stats {
        width: 100%;
        justify-content: center;
    }
    
    .spec-value {
        font-size: 2rem;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .result-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}


/* ============================================
   UTILITY CLASSES
============================================ */

.hidden {
    display: none !important;
}

.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;
}


/* ============================================
   DARK / LIGHT Themes Toogle
============================================ */

body {
transition:
background-color 0.3s ease,
color 0.3s ease;
}

.problem-card,
.advantage-card,
.component-card,
.installation-card,
.video-card,
.download-card,
.spec-card {
    background: white;
    border: 1px solid #e5e7eb;
}

/* Dark mode */
.dark .problem-card,
.dark .advantage-card,
.dark .component-card,
.dark .installation-card,
.dark .video-card,
.dark .download-card,
.dark .spec-card {
    background: #0a0f14;
    border: 1px solid #2a3444;
}


.calculator-form,
.calculator-results {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
}

.dark .calculator-form,
.dark .calculator-results {
    background: #0a0f14;
    border: 1px solid #2a3444;
}


.result-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.dark .result-card {
    background: #1a2332;
    border: 1px solid #2a3444;
}


.contact-form-wrapper {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.dark .contact-form-wrapper {
    background: #0a0f14;
    border: 1px solid #2a3444;
}


