/* Reset and Minimal Base */
:root {
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-400: #A3A3A3;
    --gray-600: #525252;
    --gray-800: #262626;
    --gray-900: #171717;
    --border: #E5E5E5;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Minimal Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

/* Minimal Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--black);
    border-radius: 0;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    background: transparent;
    color: var(--black);
}

.btn-primary {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.btn-primary:hover {
    background: var(--gray-800);
}

.btn-secondary {
    background: transparent;
    color: var(--black);
    border-color: var(--gray-400);
}

.btn-secondary:hover {
    border-color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--black);
    border: 1px solid var(--gray-400);
}

.btn-outline:hover {
    border-color: var(--black);
}

/* Minimal Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--gray-900);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gray-900);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.cta-button {
    background: var(--black);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    border: 1px solid var(--black);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--gray-800);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger span {
    width: 20px;
    height: 1px;
    background: var(--gray-900);
    transition: 0.3s;
}

/* Minimal Hero Section */
.hero {
    padding: 120px 0 80px;
    margin-top: 80px;
    background: var(--white);
}

.hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.title-sub {
    display: block;
    font-size: 1.5rem;
    color: var(--gray-600);
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Minimal Sections */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: 1.1rem;
}

/* Minimal Services */
.services-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    border-color: var(--gray-400);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Minimal Projects */
.projects-section {
    padding: 80px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--gray-400);
}

.project-image {
    height: 250px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.image-placeholder {
    font-size: 0.9rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.project-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

.section-actions {
    text-align: center;
}

/* Minimal CTA */
.cta-section {
    padding: 80px 0;
    background: var(--gray-900);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.cta-content p {
    color: var(--gray-400);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--gray-900);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--gray-200);
}

/* Minimal Footer */
.footer {
    padding: 60px 0 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-section p {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section a {
    display: block;
    color: var(--gray-600);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--gray-900);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
}
/* Additional Styles for New Pages */

/* Projects Page */
.projects-detailed {
    padding: 80px 0;
}

/* Services Detailed Page */
.services-detailed {
    padding: 60px 0;
}

.service-detail {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-header .service-icon {
    font-size: 3rem;
}

.service-header h2 {
    margin: 0;
    font-size: 1.8rem;
}

.service-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* About Page */
.about-section {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.specialties-list {
    list-style: none;
    padding: 0;
}

.specialties-list li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* Values Section */
.values-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: var(--gray-600);
    margin-bottom: 0.3rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--border);
}

.contact-form h2 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-900);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gray-600);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}
/* New Styles for Logo and Links */

/* Logo in Header */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Logo in Hero Section */
.hero-logo {
    margin-bottom: 2rem;
    text-align: center;
}

.hero-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Logo in Footer */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Service Cards as Links */
.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Project Cards as Links */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: inherit;
}
/* Styles for Detail Pages */
.service-detail-page,
.project-detail-page {
    padding: 80px 0;
}

.service-content,
.project-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-content h2,
.project-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.service-content p,
.project-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.service-features,
.project-specs,
.project-features {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.service-features h3,
.project-specs h3,
.project-features h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.service-features ul,
.project-specs ul,
.project-features ul {
    list-style: none;
    padding: 0;
}

.service-features li,
.project-specs li,
.project-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
    position: relative;
    padding-right: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--success-color);
    font-weight: bold;
}

.project-specs li strong {
    color: var(--gray-900);
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.cta-section h3 {
    margin-bottom: 1rem;
    color: var(--gray-900);
}