/* KAVIT Electronics - Main Stylesheet */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c1f;
    --border: #27272a;
    --border-light: #3f3f46;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-subtle: rgba(59, 130, 246, 0.1);
    --navy: #0d1b6d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.serif { font-family: 'Instrument Serif', Georgia, serif; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes radarSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes blip {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(40%) sepia(90%) saturate(500%) hue-rotate(190deg);
}
.nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    align-items: center;
}
.nav-links li a, .nav-links li > span {
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links li a:hover, .nav-links li > span:hover { color: var(--text-primary); }
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}
.dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 4px;
    margin-left: 16px;
}
.lang-switcher button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lang-switcher button:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}
.lang-switcher button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    pointer-events: none;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.mobile-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 24px;
}
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 600px;
}
.hero h1 .serif {
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
}
.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

/* Radar */
.radar-container { display: flex; justify-content: center; align-items: center; }
.radar {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    position: relative;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
}
.radar-circle {
    position: absolute;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.radar-circle:nth-child(1) { width: 100%; height: 100%; }
.radar-circle:nth-child(2) { width: 66%; height: 66%; }
.radar-circle:nth-child(3) { width: 33%; height: 33%; }
.radar-line-h, .radar-line-v {
    position: absolute;
    background: rgba(59, 130, 246, 0.3);
}
.radar-line-h { width: 100%; height: 1px; top: 50%; }
.radar-line-v { width: 1px; height: 100%; left: 50%; }
.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(59, 130, 246, 0.01) 5deg,
        rgba(59, 130, 246, 0.15) 20deg,
        rgba(59, 130, 246, 0.4) 40deg,
        rgba(59, 130, 246, 0.15) 45deg,
        transparent 50deg,
        transparent 360deg
    );
    border-radius: 50%;
    animation: radarSweep 6s linear infinite;
}
.radar-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: blip 2s ease-in-out infinite;
}
.radar-blip:nth-child(7) { top: 25%; left: 65%; animation-delay: 0.3s; }
.radar-blip:nth-child(8) { top: 45%; left: 28%; animation-delay: 0.9s; }
.radar-blip:nth-child(9) { top: 70%; left: 55%; animation-delay: 1.5s; }
.radar-blip:nth-child(10) { top: 35%; left: 75%; animation-delay: 0.6s; }
.radar-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--accent);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 100px;
    border: 1px solid var(--border);
}
.stat {
    background: var(--bg-primary);
    padding: 40px;
    text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* Sections */
section { padding: 100px 0; }
.section-header { margin-bottom: 60px; }
.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 700px;
}
.section-title .serif {
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
}

/* Solutions Grid */
.solutions {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}
.solution-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}
.solution-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.solution-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.page-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}
.breadcrumb {
    display: flex;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb .current { color: var(--text-secondary); }

/* Product Page */
.product-content { padding: 80px 0; }
.product-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
}
.product-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 20px;
}
.product-info h2:first-child { margin-top: 0; }
.product-info > p { color: var(--text-secondary); line-height: 1.8; }
.product-info ul { list-style: none; }
.product-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.product-info li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}
.product-gallery.single { grid-template-columns: 1fr; }
.product-gallery.three { grid-template-columns: repeat(3, 1fr); }
.product-gallery img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}
.product-gallery.single img {
    height: 300px;
}
.specs-table {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.spec-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-label {
    padding: 14px 20px;
    background: var(--bg-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}
.spec-value { padding: 14px 20px; color: var(--text-secondary); font-size: 0.9rem; }
.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.application-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.application-item svg { color: var(--accent); }

/* About */
.about { padding: 80px 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}
.about h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 32px; }
.about h2 .serif { font-weight: 400; font-style: italic; color: var(--text-secondary); }
.about p { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.9375rem;
}
.about-feature svg { color: var(--accent); }

/* Clients */
.clients-section {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}
.clients-title {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 40px;
}
.clients-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact */
.contact {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}
.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 40px; line-height: 1.7; }
.contact-details { list-style: none; }
.contact-details li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}
.contact-details svg { color: var(--text-muted); flex-shrink: 0; margin-top: 2px; }
.contact-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.contact-value { color: var(--text-primary); }
.contact-value a { color: var(--text-primary); text-decoration: none; transition: color 0.2s ease; }
.contact-value a:hover { color: var(--accent); }

/* Form */
.contact-form {
    background: var(--bg-tertiary);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { min-height: 120px; resize: none; }
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
.form-submit {
    width: 100%;
    padding: 14px 28px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}
.form-submit:hover { background: var(--accent-hover); }
.g-recaptcha { margin-bottom: 20px; }

/* Comparison Table */
.comparison-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
}
.comparison-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 32px;
}
.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.comparison-table th,
.comparison-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.comparison-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    white-space: nowrap;
}
.comparison-table td:first-child {
    background: var(--bg-secondary);
    font-weight: 500;
}
.comparison-table tr:last-child td { border-bottom: none; }

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo { cursor: pointer; }
.footer-logo img {
    height: 45px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(40%) sepia(90%) saturate(500%) hue-rotate(190deg);
}
.footer-text { color: var(--text-muted); font-size: 0.875rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}
.footer-links a:hover { color: var(--text-primary); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-description { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .radar-container { display: none; }
    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .lang-switcher { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu .lang-switcher {
        display: flex;
        justify-content: center;
        gap: 10px;
        padding: 15px 0;
        border-top: 1px solid var(--border);
        margin-top: 10px;
    }
    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 140px 0 60px; min-height: auto; }
    .solutions-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .applications-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .page-header { padding: 120px 0 40px; }
    .page-header h1 { font-size: 2rem; }
    section { padding: 60px 0; }
}
