/* ============================================
   IKH ERCH - Custom Styles
   Brand Colors: Teal (#0891b2) + Dark (#0f172a)
   ============================================ */

/* ---- Base ---- */
[x-cloak] { display: none !important; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #0891b2;
    color: white;
}

/* ---- Header Scroll Effect ---- */
#mainHeader.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* ---- Hero Section ---- */
.hero-section {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(8, 145, 178, 0.6) 100%);
}

.hero-inner-page {
    position: relative;
    padding: 100px 0 60px;
    background-size: cover;
    background-position: center;
}

.hero-inner-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(8, 145, 178, 0.7) 100%);
}

/* ---- Glassmorphism Cards ---- */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* ---- Section Styles ---- */
.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0891b2;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #22d3ee);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* ---- Animated Counter ---- */
.counter-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Service Cards ---- */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(8, 145, 178, 0.15);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0891b2, #22d3ee);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ---- Tab Styles ---- */
.tab-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.tab-btn.active {
    background: #0891b2;
    color: white;
    border-color: #0891b2;
}

.tab-btn:not(.active) {
    background: transparent;
    color: #475569;
    border-color: #e2e8f0;
}

.tab-btn:not(.active):hover {
    border-color: #0891b2;
    color: #0891b2;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Partner Logos ---- */
.partner-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ---- Product Sidebar ---- */
.product-sidebar-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.product-sidebar-item:hover,
.product-sidebar-item.active {
    background: #ecfeff;
    color: #0891b2;
    border-left-color: #0891b2;
}

.product-sidebar-item.has-children::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.product-sidebar-item.has-children.expanded::after {
    transform: rotate(180deg);
}

/* ---- Spec Table ---- */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.spec-table thead {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
}

.spec-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.spec-table td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.spec-table tbody tr:hover {
    background: #f8fafc;
}

.spec-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

/* ---- Contact Form ---- */
.form-input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 4px rgba(8, 145, 178, 0.1);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* ---- Gallery Grid ---- */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ---- Swiper Custom ---- */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #0891b2;
    width: 28px;
    border-radius: 5px;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ---- Loading Animation ---- */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- Back to Top ---- */
#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Pulse Dot ---- */
.pulse-dot {
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* ---- Print ---- */
@media print {
    header, footer, #backToTop { display: none !important; }
    .hero-section { min-height: auto; }
}
