/* ==========================================================================
   MEFA ELEKTRİK - High-Voltage Animated Theme
   ========================================================================== */

:root {
    --bg-dark: #030712;
    --bg-surface: #0b1329;
    --bg-card: #111c38;
    --electric-blue: #00f0ff;
    --electric-orange: #ff5500;
    --electric-green: #00ff88;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(0, 240, 255, 0.15);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ELEKTRİK CANVAS BACKGROUND */
#lightningCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.section-block { padding: 90px 0; }
.dark-surface { background-color: var(--bg-surface); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-electric { color: var(--electric-blue); text-shadow: 0 0 10px var(--electric-blue); }

/* Header */
.cyber-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }

.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lightning-icon {
    width: 42px; height: 42px; background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--electric-blue); border-radius: 8px;
    display: flex; justify-content: center; align-items: center; font-size: 1.3rem;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}
.brand-text .title { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: #fff; display: block; line-height: 1; letter-spacing: 1px; }
.brand-text .sub { font-size: 0.65rem; color: var(--electric-blue); letter-spacing: 2px; }

.cyber-nav { display: flex; gap: 28px; }
.cyber-nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.cyber-nav a:hover { color: var(--electric-blue); text-shadow: 0 0 8px var(--electric-blue); }

.btn-electric {
    background: transparent; border: 1px solid var(--electric-blue);
    color: var(--electric-blue); padding: 10px 20px; border-radius: 6px;
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px;
}
.btn-electric:hover {
    background: var(--electric-blue); color: #000;
    box-shadow: 0 0 20px var(--electric-blue);
}

/* Hero Cyber */
.hero-cyber { padding: 130px 0 100px 0; position: relative; }
.voltage-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--electric-blue); border-radius: 20px;
    color: var(--electric-blue); font-family: var(--font-heading); font-size: 0.75rem; margin-bottom: 24px;
}
.pulse-dot { width: 8px; height: 8px; background: var(--electric-green); border-radius: 50%; box-shadow: 0 0 10px var(--electric-green); }

.hero-title { font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: 1px; }
.glow-text {
    color: var(--electric-blue);
    text-shadow: 0 0 15px var(--electric-blue), 0 0 30px var(--electric-blue);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    0% { text-shadow: 0 0 10px var(--electric-blue); }
    100% { text-shadow: 0 0 25px var(--electric-blue), 0 0 40px var(--electric-blue); }
}

.hero-desc { max-width: 700px; margin: 0 auto 36px auto; color: var(--text-secondary); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; }

.btn-glow-primary {
    background: var(--electric-blue); color: #000; padding: 14px 30px;
    border-radius: 6px; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 800;
    text-decoration: none; border: none; cursor: pointer; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.btn-glow-primary:hover { box-shadow: 0 0 30px var(--electric-blue); transform: translateY(-2px); }

.btn-glow-secondary {
    background: transparent; border: 1px solid var(--border-color); color: #fff;
    padding: 14px 28px; border-radius: 6px; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-glow-secondary:hover { border-color: var(--electric-blue); color: var(--electric-blue); }

/* Gallery Section */
.cyber-tag { font-family: var(--font-heading); font-size: 0.8rem; color: var(--electric-blue); letter-spacing: 2px; }
.section-title { font-family: var(--font-heading); font-size: 2.2rem; margin-top: 6px; margin-bottom: 40px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 20px; }
.gallery-card { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-color); transition: var(--transition); }
.gallery-card.card-large { grid-column: span 2; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-card:hover img { transform: scale(1.08); }

.card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 20px; background: linear-gradient(to top, rgba(3, 7, 18, 0.95), transparent);
}
.card-overlay .tag { font-family: var(--font-heading); font-size: 0.7rem; color: var(--electric-blue); background: rgba(0, 240, 255, 0.1); padding: 2px 8px; border-radius: 4px; }
.card-overlay h3 { font-size: 1.1rem; margin-top: 6px; color: #fff; }

.glow-box { transition: var(--transition); }
.glow-box:hover { border-color: var(--electric-blue); box-shadow: 0 0 20px rgba(0, 240, 255, 0.3); }

/* Services Cyber Cards */
.service-cyber-card {
    background: var(--bg-card); border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border-color); transition: var(--transition);
}
.service-cyber-card:hover { transform: translateY(-6px); border-color: var(--electric-blue); box-shadow: 0 0 25px rgba(0, 240, 255, 0.2); }
.card-img-wrap { height: 180px; position: relative; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.electric-border { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--electric-blue); box-shadow: 0 0 10px var(--electric-blue); }

.card-content { padding: 24px; }
.card-content h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 10px; }
.card-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.btn-link { background: none; border: none; color: var(--electric-blue); font-family: var(--font-heading); font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 8px; }

/* Profile Cyber Cards */
.profile-cyber-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 28px; display: flex; gap: 20px; align-items: center; transition: var(--transition);
}
.profile-cyber-card:hover { border-color: var(--electric-blue); }
.p-icon {
    width: 60px; height: 60px; background: rgba(0, 240, 255, 0.1);
    color: var(--electric-blue); border-radius: 50%; border: 1px solid var(--electric-blue);
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem; flex-shrink: 0;
}
.p-details h3 { font-family: var(--font-heading); font-size: 1.2rem; }
.p-details .role { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 14px; }
.p-actions { display: flex; gap: 10px; }
.p-btn {
    padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; text-decoration: none;
    color: #fff; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color);
}
.p-btn.wa { background: rgba(0, 255, 136, 0.1); color: var(--electric-green); border-color: rgba(0, 255, 136, 0.3); }

/* Location Map */
.info-line { font-size: 1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.map-container { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); }

/* Footer */
.cyber-footer { padding: 30px 0; border-top: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.85rem; }

/* Modal */
.modal-layer {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(3, 7, 18, 0.92); backdrop-filter: blur(12px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-layer.active { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--bg-card); border: 1px solid var(--electric-blue);
    border-radius: 16px; width: 90%; max-width: 440px; padding: 30px; position: relative;
}
.close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; color: var(--text-secondary); font-size: 1.8rem; cursor: pointer; }

.step { display: none; }
.step.active { display: block; }
.step-badge { font-family: var(--font-heading); font-size: 0.75rem; color: var(--electric-blue); background: rgba(0, 240, 255, 0.1); padding: 2px 8px; border-radius: 4px; }
.step-badge.green { color: var(--electric-green); background: rgba(0, 255, 136, 0.1); }
.modal-box h3 { font-family: var(--font-heading); font-size: 1.4rem; margin: 10px 0 15px 0; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px; background: var(--bg-dark); border: 1px solid var(--border-color);
    border-radius: 6px; color: #fff; font-family: inherit; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--electric-blue); box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }

.full-width { width: 100%; justify-content: center; margin-top: 10px; }
.green-btn { background: var(--electric-green); box-shadow: 0 0 15px rgba(0, 255, 136, 0.4); }

.math-container { text-align: center; margin: 20px 0; padding: 20px; background: var(--bg-dark); border-radius: 8px; }
.math-q { font-family: var(--font-heading); font-size: 2rem; color: var(--electric-blue); display: block; margin-bottom: 10px; }
.math-input { width: 120px; text-align: center; font-size: 1.2rem; font-weight: 700; padding: 8px; background: var(--bg-card); border: 1px solid var(--border-color); color: #fff; border-radius: 6px; outline: none; }

/* Responsive */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-card.card-large { grid-column: span 1; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.8rem; }
}
@media (max-width: 768px) {
    .cyber-nav { display: none; }
}