
:root {
--primary: #000000;
--secondary: #333333;
--accent: #ffffff;
--dark: #111111;
--light: #f8f8f8;
--border: 1px solid rgba(0, 0, 0, 0.1);
--desktop-width: 1440px; /* عرض پایه دسکتاپ */
--mobile-breakpoint: 768px; /* نقطه تغییر برای موبایل */
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}

html {
font-size: 16px;

/* افزایش سایز فونت برای دستگاه‌های کوچک */
@media (max-width: 767px) {
    font-size: 21px; /* 12.5% بزرگتر از حالت عادی */
}
}

body {
background-color: var(--accent);
color: var(--primary);
line-height: 1.7;
max-width: var(--desktop-width);
margin: 0 auto;
width: 100%;
overflow-x: hidden;
}

/* مقیاس‌دهی برای دستگاه‌های کوچک‌تر */
@media (max-width: 1439px) {
body {
    transform-origin: top center;
    transform: scale(calc(100vw / var(--desktop-width)));
    width: var(--desktop-width);
    height: calc(100vh * (var(--desktop-width) / 100vw));
    overflow-x: hidden;
}

/* تنظیمات خاص برای موبایل */
@media (max-width: 767px) {
    body {
        /* کاهش میزان کوچکنمایی برای موبایل */
        transform: scale(calc(100vw / var(--desktop-width) * 1.15));
        height: calc(100vh * (var(--desktop-width) / 100vw) / 1.15);
    }
}
}

/* تنظیمات فونت برای عناصر خاص در موبایل */
@media (max-width: 767px) {
h1 {
    font-size: 2.2rem !important;
}

h2 {
    font-size: 1.8rem !important;
}

.cta-button {
    font-size: 1.1rem !important;
}

/* می‌توانید برای هر عنصر دیگری که نیاز است تنظیمات خاص اضافه کنید */
}

/* Enhanced Border Techniques */
.border-gradient {
border: 1px solid transparent;
background: 
    linear-gradient(var(--accent), var(--accent)) padding-box,
    linear-gradient(to right, var(--primary), var(--secondary)) border-box;
border-radius: 8px;
}

.border-dashed-accent {
border: 2px dashed var(--primary);
background-clip: padding-box;
}

/* Header Styles */
header {
background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), 
            url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?ixlib=rb-4.0.3&auto=format&fit=crop&w=1470&q=80') no-repeat center center/cover;
height: 90vh;
color: var(--accent);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 0 2rem;
border-bottom: 1px solid var(--secondary);
}

header h1 {
font-size: 4rem;
margin-bottom: 1.5rem;
font-weight: 700;
letter-spacing: -1px;
}

header p {
font-size: 1.5rem;
max-width: 800px;
margin-bottom: 3rem;
font-weight: 300;
opacity: 0.9;
}

/* Navigation */
nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 2rem 5%;
background-color: var(--accent);
position: sticky;
top: 0;
z-index: 100;
border-bottom: var(--border);
}

.logo {
font-size: 2rem;
font-weight: 900;
color: var(--primary);
letter-spacing: -1px;
}

.nav-links {
display: flex;
gap: 3rem;
}

.nav-links a {
text-decoration: none;
color: var(--primary);
font-weight: 500;
transition: all 0.3s ease;
position: relative;
padding: 0.5rem 0;
}

.nav-links a:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: var(--primary);
transition: width 0.3s ease;
}

.nav-links a:hover:after {
width: 100%;
}

.nav-links a i {
margin-right: 0.5rem;
}

.cta-button {
background-color: var(--primary);
color: var(--accent);
padding: 0.8rem 2rem;
border-radius: 0;
transition: all 0.3s ease;
border: 2px solid var(--primary);
font-weight: 600;
letter-spacing: 0.5px;
}

.cta-button:hover {
background-color: transparent;
color: var(--primary);
}

/* Main Content */
.container {
max-width: 1400px;
margin: 0 auto;
padding: 6rem 2rem;
}

section {
margin-bottom: 8rem;
}

h2 {
font-size: 3rem;
margin-bottom: 3rem;
color: var(--primary);
text-align: center;
position: relative;
padding-bottom: 1.5rem;
}

h2:after {
content: '';
position: absolute;
width: 80px;
height: 3px;
background-color: var(--primary);
bottom: 0;
left: 50%;
transform: translateX(-50%);
}

h3 {
font-size: 2rem;
margin-bottom: 2rem;
color: var(--primary);
font-weight: 600;
}

/* About Section */
.about-content {
display: flex;
gap: 5rem;
align-items: center;
}

.about-text {
flex: 1;
padding: 3rem;
background-color: var(--light);
border-left: 4px solid var(--primary);
}

.about-image {
flex: 1;
position: relative;
}

.about-image:before {
content: '';
position: absolute;
width: 100%;
height: 100%;
border: 2px solid var(--primary);
top: -20px;
left: -20px;
z-index: -1;
}

.about-image img {
width: 100%;
height: auto;
display: block;
border: 1px solid var(--primary);
}

/* Values Section */
.values {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 3rem;
}

.value-card {
background-color: var(--accent);
padding: 3rem 2rem;
text-align: center;
transition: all 0.4s ease;
border: var(--border);
position: relative;
overflow: hidden;
}

.value-card:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background-color: var(--primary);
transform: scaleX(0);
transform-origin: left;
transition: transform 0.4s ease;
}

.value-card:hover:before {
transform: scaleX(1);
}

.value-card i {
font-size: 2.5rem;
color: var(--primary);
margin-bottom: 2rem;
}

/* Team Section */
.team {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 3rem;
}

.team-member {
background-color: var(--accent);
transition: all 0.3s ease;
border: var(--border);
}

.team-member:hover {
transform: translateY(-10px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member img {
width: 100%;
height: 350px;
object-fit: cover;
border-bottom: 1px solid var(--primary);
}

.member-info {
padding: 2rem;
text-align: center;
}

.member-info h4 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

.member-info p {
color: var(--secondary);
font-weight: 500;
margin-bottom: 1.5rem;
position: relative;
display: inline-block;
}

.member-info p:after {
content: '';
position: absolute;
width: 40px;
height: 1px;
background-color: var(--primary);
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}

/* Portfolio Section */
.portfolio {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 2rem;
}

.portfolio-item {
position: relative;
height: 400px;
overflow: hidden;
}

.portfolio-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.8s ease;
}

.portfolio-item:hover img {
transform: scale(1.1);
}

.portfolio-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 2rem;
color: var(--accent);
opacity: 0;
transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
opacity: 1;
}

/* Testimonials */
.testimonials {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
gap: 3rem;
}

.testimonial {
background-color: var(--accent);
padding: 3rem;
border: var(--border);
position: relative;
}

.testimonial:before {
content: '"';
position: absolute;
top: 20px;
left: 20px;
font-size: 5rem;
color: rgba(0, 0, 0, 0.05);
font-family: serif;
line-height: 1;
}

.testimonial-content {
margin-bottom: 2rem;
font-style: italic;
font-size: 1.1rem;
position: relative;
z-index: 1;
}

.testimonial-author {
display: flex;
align-items: center;
}

.testimonial-author img {
width: 60px;
height: 60px;
border-radius: 50%;
object-fit: cover;
margin-right: 1.5rem;
border: 2px solid var(--primary);
}

/* CTA Section */
.cta-section {
background-color: var(--primary);
color: var(--accent);
text-align: center;
padding: 6rem 2rem;
position: relative;
overflow: hidden;
}

.cta-section:before {
content: '';
position: absolute;
top: -50px;
left: -50px;
width: 200px;
height: 200px;
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 50%;
}

.cta-section:after {
content: '';
position: absolute;
bottom: -50px;
right: -50px;
width: 200px;
height: 200px;
border: 2px dashed rgba(255, 255, 255, 0.2);
border-radius: 50%;
}

.cta-section h2 {
color: var(--accent);
position: relative;
z-index: 1;
}

.cta-section h2:after {
background-color: var(--accent);
}

.cta-section p {
max-width: 700px;
margin: 0 auto 3rem;
opacity: 0.9;
position: relative;
z-index: 1;
}

.cta-buttons {
display: flex;
justify-content: center;
gap: 2rem;
flex-wrap: wrap;
position: relative;
z-index: 1;
}

.cta-buttons a {
display: inline-block;
padding: 1rem 3rem;
border-radius: 0;
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
letter-spacing: 0.5px;
}

.primary-btn {
background-color: var(--accent);
color: var(--primary);
border: 2px solid var(--accent);
}

.secondary-btn {
background-color: transparent;
color: var(--accent);
border: 2px solid var(--accent);
}

.primary-btn:hover {
background-color: transparent;
color: var(--accent);
}

.secondary-btn:hover {
background-color: var(--accent);
color: var(--primary);
}

/* Footer */
footer {
background-color: var(--primary);
color: var(--accent);
padding: 6rem 2rem 3rem;
position: relative;
}

.footer-content {
max-width: 1200px;
margin: 0 auto;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 4rem;
margin-bottom: 4rem;
}

.footer-column h3 {
color: var(--accent);
margin-bottom: 2rem;
font-size: 1.5rem;
position: relative;
padding-bottom: 1rem;
}

.footer-column h3:after {
content: '';
position: absolute;
width: 40px;
height: 2px;
background-color: var(--accent);
bottom: 0;
left: 0;
}

.footer-column ul {
list-style: none;
}

.footer-column ul li {
margin-bottom: 1rem;
}

.footer-column ul li a {
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
transition: all 0.3s ease;
display: inline-block;
padding: 0.3rem 0;
}

.footer-column ul li a:hover {
color: var(--accent);
transform: translateX(5px);
}

.social-links {
display: flex;
gap: 1.5rem;
}

.social-links a {
color: var(--primary);
background-color: var(--accent);
width: 45px;
height: 45px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
}

.social-links a:hover {
transform: translateY(-5px);
box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.copyright {
padding-top: 3rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.7);
font-size: 0.9rem;
text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
header h1 {
    font-size: 3rem;
}

header p {
    font-size: 1.3rem;
}

.about-content {
    flex-direction: column;
}

.about-text {
    order: 2;
}

.about-image {
    order: 1;
    margin-bottom: 3rem;
}
}

@media (max-width: 768px) {
header {
    height: 70vh;
}

header h1 {
    font-size: 2.5rem;
}

header p {
    font-size: 1.1rem;
}

h2 {
    font-size: 2.2rem;
}

.nav-links {
    display: none;
}

.cta-section {
    padding: 4rem 2rem;
}
}

@media (max-width: 576px) {
.container {
    padding: 4rem 1.5rem;
}

section {
    margin-bottom: 5rem;
}

.cta-buttons {
    flex-direction: column;
    gap: 1rem;
}

.cta-buttons a {
    width: 100%;
    text-align: center;
}
}
