/* assets/css/style.css */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --light: #f8fafc;
    --gray: #e2e8f0;
    --dark: #1e293b;
    --text: #334155;
    --white: #ffffff;
    --shadow: 0 10px 25px -5px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
    transition: background 0.3s, color 0.3s;
}

body.dark-mode {
    background: var(--secondary);
    color: #cbd5e1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
}

body.dark-mode header {
    background: rgba(15,23,42,0.95);
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.logo img {
    max-height: 60px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: color 0.3s;
}

body.dark-mode .nav-links a {
    color: #cbd5e1;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 1rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

.btn-wa {
    background: #25D366;
}

.btn-wa:hover {
    background: #128C7E;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary);
}

body.dark-mode .section-title {
    color: white;
}

.bg-light {
    background: #f1f5f9;
}

body.dark-mode .bg-light {
    background: #1e293b;
}

/* Cards */
.product-grid, .portfolio-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card, .portfolio-card, .testimonial-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.dark-mode .product-card,
body.dark-mode .portfolio-card,
body.dark-mode .testimonial-card {
    background: #1e293b;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--secondary);
}

body.dark-mode .product-info h3 {
    color: white;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 28px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

body.dark-mode .service-card {
    background: #1e293b;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
}

.footer a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* Contact form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

body.dark-mode .contact-form {
    background: #1e293b;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    font-family: inherit;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail img {
    width: 100%;
    border-radius: 24px;
}

@media (max-width: 768px) {
    .product-detail {
        grid-template-columns: 1fr;
    }
}
