/*
Theme Name: Alperson Tech
Theme URI: https://alperson.tech
Author: Alperson Technologies
Description: Custom theme for Alperson Technologies, featuring a modern dark UI, neon accents, and complete content integration.
Version: 1.0
Text Domain: alperson-theme
*/

:root {
    --bg-dark: #020617;
    --bg-card: rgba(30, 41, 59, 0.5);
    --accent: #3B82F6;
    --accent-light: #60A5FA;
    --accent-dark: #1D4ED8;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-navigation a {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.main-navigation a:hover {
    color: var(--accent);
}

.lang-switch {
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
}

.lang-switch:hover {
    background: var(--accent);
    color: white;
}

/* RTL Support for Header */
html[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    overflow: hidden;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.15;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-secondary:hover {
    border-color: white;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.service-card h3 {
    color: var(--accent-light);
}

/* Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    position: relative;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

html[dir="rtl"] .step-number {
    right: auto;
    left: -15px;
}

/* Footer */
.site-footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* Media Queries (Responsive) */
@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
        /* Ideal: Add JS mobile menu toggle */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Page Content Typography (Matches Tailwind classes) */
.entry-content h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 1.5rem;
    /* text-2xl */
    font-weight: 600;
    color: var(--text-main);
    /* text-white */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.entry-content p {
    color: var(--text-muted);
    /* text-gray-300 */
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    /* text-lg */
    line-height: 1.75;
}

.entry-content ul {
    list-style-type: disc;
    list-style-position: inside;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content img {
    border-radius: 1rem;
    /* rounded-2xl */
    margin-bottom: 2rem;
    width: 100%;
    object-fit: cover;
}