/*
   EDIZ OTOMASYON DESIGN SYSTEM
   Theme: Dark + Glassmorphism
*/

:root {
    --primary: #d90429;
    --primary-glow: #ef233c;
    --primary-dim: #8d021f;

    --bg-body: #050505;
    --bg-surface: #0a0a0a;
    --bg-surface-2: #121212;

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(20px);

    --container-width: 1240px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-base: all 0.4s var(--ease-out);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

span {
    color: var(--primary-glow);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-120%);
    padding: 0.8rem 1rem;
    background: #111827;
    color: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 0 0 8px 0;
    z-index: 2000;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

ul {
    list-style: none;
}

section {
    position: relative;
    padding: 100px 0;
    scroll-margin-top: calc(var(--header-height) + 24px);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    max-width: 780px;
    margin: 0.5rem auto 0;
    color: var(--text-muted);
}

.lead-copy {
    margin-top: 1rem;
    color: #cbd5e1;
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 30px rgba(217, 4, 41, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(217, 4, 41, 0.5);
    background: var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
}

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.2rem 0;
    transition: var(--transition-base);
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    margin: 0 auto;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: white;
}

.nav-brand-item {
    background: transparent;
    padding: 4px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    margin-left: 0.4rem;
}

.nav-brand-item img {
    height: 24px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    background: white;
    transition: var(--transition-base);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background: radial-gradient(circle at 50% 50%, #1a050a 0%, #050505 80%);
}

.hero-content {
    max-width: 1000px;
}

.hero-logo {
    width: min(280px, 70vw);
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 0 30px rgba(217, 4, 41, 0.4));
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0 auto 2.5rem;
}

.partners {
    background: var(--bg-surface);
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    align-items: center;
}

.partner-item {
    display: flex;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition-base);
}

.partner-item:hover {
    opacity: 1;
}

.partner-logo {
    max-width: 180px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(1) invert(1);
}

.astor-item {
    background: white;
    padding: 10px;
    border-radius: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-surface-2);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: linear-gradient(145deg, var(--bg-surface-2), rgba(217, 4, 41, 0.05));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

.products {
    background: var(--bg-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
}

.product-content {
    padding: 1.6rem;
}

.product-content h3 {
    margin-bottom: 0.8rem;
}

.product-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.product-highlights {
    margin-bottom: 1.2rem;
}

.product-highlights li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.product-highlights li::before {
    content: '•';
    color: var(--primary-glow);
    margin-right: 0.5rem;
}

.product-content .btn-secondary {
    margin-left: 0;
}

.product-comparison {
    margin-top: 3rem;
}

.product-comparison h3 {
    margin-bottom: 1rem;
}

.comparison-table-wrapper {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    background: var(--bg-surface-2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td {
    color: #cbd5e1;
}

.comparison-table a {
    color: var(--primary-glow);
    font-weight: 600;
}

.product-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1100;
}

.product-modal.open {
    display: flex;
}

.product-modal-dialog {
    width: min(760px, 100%);
    max-height: 90vh;
    overflow: auto;
    background: #0f0f11;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    position: relative;
}

.product-modal-close {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    font-size: 1.6rem;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.product-modal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.product-modal h3 {
    margin-bottom: 0.6rem;
}

.product-modal p {
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

.product-modal-specs {
    margin-bottom: 1rem;
}

.product-modal-specs li {
    color: #e2e8f0;
    margin-bottom: 0.35rem;
}

.ev-charging .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ev-content h2 {
    font-size: clamp(2.1rem, 3.4vw, 3rem);
    margin-bottom: 1.5rem;
}

.ev-content p {
    color: var(--text-muted);
}

.ev-features {
    margin: 2rem 0;
}

.ev-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.ev-features li::before {
    content: '✓';
    color: var(--primary);
    margin-right: 1rem;
    font-weight: 900;
}

.charger-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about {
    background: var(--bg-surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat {
    background: var(--bg-surface-2);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--glass-border);
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat .label {
    color: var(--text-muted);
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.field-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.ev-map-section {
    background: var(--bg-surface);
}

.ev-map-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.6rem;
}

.ev-map-sidebar,
.ev-map-panel {
    background: var(--bg-surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.ev-filter-group {
    margin-bottom: 0.9rem;
}

.ev-filter-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    color: #e2e8f0;
}

.ev-filter-group select,
.ev-filter-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: #0b0b0e;
    color: white;
}

.ev-results-count {
    color: #cbd5e1;
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.ev-station-list {
    max-height: 420px;
    overflow: auto;
    display: grid;
    gap: 0.65rem;
}

.ev-station-item {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
    border-radius: 10px;
    padding: 0.7rem;
    cursor: pointer;
}

.ev-station-item:hover,
.ev-station-item.active {
    border-color: var(--primary);
    background: rgba(217, 4, 41, 0.08);
}

.ev-station-item h4 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.ev-station-item p {
    font-size: 0.86rem;
    color: #cbd5e1;
}

.ev-station-item a {
    color: #fda4af;
    font-size: 0.86rem;
}

#evMap {
    width: 100%;
    min-height: 560px;
    border-radius: var(--radius-sm);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-card {
    background: var(--bg-surface-2);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.contact-card h2 {
    margin-bottom: 1.2rem;
}

.contact-card p,
.address-details p {
    color: #cbd5e1;
    margin-bottom: 0.8rem;
}

.address-details a {
    color: #fda4af;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.ev-filter-group select:focus,
.ev-filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(217, 4, 41, 0.05);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-glow);
    outline-offset: 2px;
}

.nav-links a:focus-visible,
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.35);
    border-radius: 10px;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--radius-lg);
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    width: 120px;
    margin-bottom: 1.5rem;
    height: auto;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.whatsapp-float img {
    width: 35px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: black;
        flex-direction: column;
        justify-content: center;
        transform: none;
        border-radius: 0;
        z-index: 1001;
    }

    .menu-toggle {
        display: block;
    }

    .hero-logo {
        width: 200px;
    }

    .partners-grid,
    .services-grid,
    .products-grid,
    .ev-charging .container,
    .about-grid,
    .field-grid,
    .contact-grid,
    .ev-map-layout {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        padding: 1.5rem;
    }

    .ev-content h2 {
        font-size: 2.2rem;
    }

    .btn-secondary {
        margin-left: 0;
        margin-top: 0.7rem;
    }

    .contact-card {
        padding: 2rem 1.4rem;
    }

    #evMap {
        min-height: 420px;
    }
}
