/* ============================================
   CyberX.ist — İstanbul Siber Güvenlik
   Dark Mode Cyber Theme
   Fonts: Orbitron (headings), Exo 2 (body), JetBrains Mono (accents)
   ============================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1629;
    --bg-card: #121a2d;
    --bg-card-hover: #1a2540;
    
    --accent: #00ff9d;
    --accent-dim: #00c97a;
    --accentglow: rgba(0, 255, 157, 0.15);
    
    --text-primary: #e8ecf4;
    --text-secondary: #9ca3b8;
    --text-muted: #6b7280;
    
    --border: rgba(0, 255, 157, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.06);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid overlay - subtle cyber texture */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 157, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.accent { color: var(--accent); }

/* ========== Header & Nav ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo-bracket { color: var(--accent); opacity: 0.8; }
.logo-dot { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Mobile menu open state */
@media (max-width: 768px) {
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
        background: rgba(10, 14, 23, 0.98);
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.open a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.open a:last-child {
        border-bottom: none;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
}

.hero-content {
    max-width: 640px;
    z-index: 1;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.25s; }
.title-line:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all var(--transition);
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 24px var(--accentglow);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 24px var(--accentglow);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
}

.cyber-hex {
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, transparent 40%, var(--accentglow) 50%, transparent 60%),
        repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(0,255,157,0.03) 20px, rgba(0,255,157,0.03) 21px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: pulse 4s ease-in-out infinite;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan 3s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(320px); }
}

/* ========== Container ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ========== Services ========== */
.services {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    opacity: 0.8;
    margin-bottom: 0.75rem;
    display: block;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== About ========== */
.about {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========== Contact ========== */
.contact {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
    background: var(--bg-secondary);
    overflow: hidden;
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 255, 157, 0.04) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 157, 0.02) 100%);
    pointer-events: none;
}

.contact .section-header {
    margin-bottom: 2.5rem;
}

.contact-whatsapp {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    flex-direction: row;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--accent);
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
    color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn svg {
    flex-shrink: 0;
    color: #25d366;
}

.whatsapp-btn:hover svg {
    color: #25d366;
}

.whatsapp-btn .whatsapp-text {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
}

.whatsapp-btn .whatsapp-text strong {
    font-size: 1.15rem;
    font-weight: 600;
}

.whatsapp-btn .whatsapp-text small {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 0.15rem;
}


/* ========== Footer ========== */
.footer {
    padding: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero {
        padding: 5rem 1.5rem 3rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
